Skip to content
Preprint

Requirements-Augmented Generation for Trustworthy Acceptance Testing of LLM-Based Software

Aug 2026 · 0 citations · 70 references
Computer Science

TL;DR

This paper introduces Requirements-Augmented Generation (REAG), which interprets user intentions by retrieving relevant software requirements, domain knowledge, and personas via adaptive RAG and self-reasoning to generate context-aware test oracles, and introduces a confidence-calibrated cascade judgment, which quantifies verdict reliability via simulated expert agreement.

Abstract

LLM-based software (LBS) integrates large language models as core components to deliver flexible, personalised responses. Unlike traditional software with deterministic outputs, LBSs exhibit context-dependent, stochastic behaviour that renders classical acceptance testing and test oracles insufficient: the same query may require fundamentally different responses depending on user personas and software context. This gap creates an urgent need for automated acceptance testing frameworks that autonomously interpret user instructions, while reliably inferring user intentions in a changing environment. In this paper, we present an automated acceptance testing framework for LBS with calibrated verdict reliability via two technical contributions. First, we introduce Requirements-Augmented Generation (REAG), which interprets user intentions by retrieving relevant software requirements, domain knowledge, and personas via adaptive RAG and self-reasoning to generate context-aware test oracles. Second, recognising that oracle generation may retrieve irrelevant constraints, misinterpret intent, or hallucinate requirements, we introduce a confidence-calibrated cascade judgment. This method quantifies verdict reliability via simulated expert agreement -- accepting high-confidence verdicts, escalating ambiguous cases, or abstaining when uncertain -- with empirical reliability guarantees backed by conformal risk control. An industrial case study on a production nutrition advisory application demonstrates that REAG achieves a 3.91/5 oracle quality score, reaching qualified or marginal oracle quality in 82% of cases. The confidence-calibrated cascade achieves 98.8% accuracy, improves oracle quality from 3.91 to 4.30 by filtering unqualified outputs, and delivers a 31.7% cost-efficiency improvement over single-judge baselines, validating industrial viability

View source

Similar papers

Jul 2026

Industrial Practice of LLM-Based Test Case Carving and Assertion Generation (Experience Paper)

NL2Test is presented, an end-to-end approach and tool that generates executable API regression tests from a natural-language scenario description and a traffic capture recorded while executing the scenario, indicating that traffic-grounded generation with deterministic guardrails can substantially reduce manual effort...

Hao-Zhen You, Zhen Dong, Jing-Jing Wang et al. · 0 citations
Jul 2026

Repository-Aware Metamorphic Relation Generation for Augmented Reality Applications using Large Language Models

The results show that combining repository-aware MR generation with reasoning-based refinement enables scalable construction of reliable, domain-relevant test oracles, and a manual oracle study shows refined relations are both logically valid and sufficiently concrete to be directly translated into test assertions.

Dibyendu Brinto Bose, Jiawei Qin, Chris Brown · 0 citations
Preprint Aug 2026

Agent-Based Test Assertion Generation via Diverse Perspective Aggregation

AssertMate is proposed, a novel agent-based assertion generation framework that enhances the quality and reliability of LLM-generated assertions through three key components: actual value construction that identifies assertion targets via static analysis and type-aware heuristics, and multi-perspective expected value p...

Dong Wang, Qiaoyu Han, Lin Yang et al. · 0 citations
#artificial intelligence Preprint Aug 2026

Validity-Aware Jailbreak Evaluation for Large Language Models

This work proposes Sequential Epistemic and Action-Level Validation (SEAV), a verification-centric jailbreak evaluation framework that decomposes responses into ordered steps and evaluates both validity and correctness, and shows that enforcing correctness substantially reshapes measured robustness.

Qilong Wu, Sahil Wadhwa, Pranab Mohanty et al. · 0 citations
Jul 2026

JSTestCraft: Addressing Context Deficits in JavaScript Unit Test Generation via Agentic Multi-Level Contextual Analysis

JSTestCraft reconstructs missing context via three enrichment agents: library, structural, and semantic via three enrichment agents, demonstrating that context reconstruction and agentic collaboration enable LLMs to perform more reliable and adaptive testing in dynamic JavaScript environments.

Yi-Yang Liu, Yanjie Zhao, Haoyu Wang · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.