mlsanityData to 7 Oct 2026

Generating Test Scenarios from NL Requirements using Retrieval-Augmented LLMs: An Industrial Study

arXiv 2404.12772 ↗First posted 19 Apr 2024cs.SEcited by 9

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

Test scenarios are specific instances of test cases that describe actions to validate a particular software functionality. By outlining the conditions under which the software operates and the expected outcomes, test scenarios ensure that the software functionality is tested in an integrated manner. Test scenarios are crucial for systematically testing an application under various conditions, including edge cases, to identify potential issues and guarantee overall performance and reliability. Specifying test scenarios is tedious and requires a deep understanding of software functionality and the underlying domain. It further demands substantial effort and investment from already time- and budget-constrained requirements engineers and testing teams. This paper presents an automated approach (RAGTAG) for test scenario generation using Retrieval-Augmented Generation (RAG) with Large Language Models (LLMs). RAG allows the integration of specific domain knowledge with LLMs' generation capabilities. We evaluate RAGTAG on two industrial projects from Austrian Post with bilingual requirements in German and English. Our results from an interview survey conducted with four experts on five dimensions -- relevance, coverage, correctness, coherence and feasibility, affirm the potential of RAGTAG in automating test scenario generation. Specifically, our results indicate that, despite the difficult task of analyzing bilingual requirements, RAGTAG is able to produce scenarios that are well-aligned with the underlying requirements and provide coverage of different aspects of the intended functionality. The generated scenarios are easily understandable to experts and feasible for testing in the project environment. The overall correctness is deemed satisfactory; however, gaps in capturing exact action sequences and domain nuances remain, underscoring the need for domain expertise when applying LLMs.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 10 of its 39 references that are in the map. First posted on arXiv 19 Apr 2024.

Builds on

10 of 39 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Seven Failure Points When Engineering a Retrieval Augmented Generation System11 Jan
  2. 2023Retrieval-Augmented Generation for Large Language Models: A Survey18 Dec

Other references · 8

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
  5. 2021True Few-Shot Learning with Language Modelscited by 343
  6. 2023Advancing Requirements Engineering through Generative AI: Assessing the Role of LLMscited by 42
  7. 2023Generative Artificial Intelligence for Software Engineering -- A Research Agendacited by 23
  8. 2023A Taxonomy for Requirements Engineering and Software Test Alignmentcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 3.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Generating High-Level Test Cases from Requirements using LLM: An Industry Study
  2. 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation
  3. 2024A Tool for Test Case Scenarios Generation Using Large Language Models
  4. 2026APITestGenie: Generating Web API Tests from Requirements and API Specifications with LLMs ↗
  5. 2025Towards Requirements Engineering for RAG Systems
  6. 2024LLM-based Unit Test Generation via Property Retrieval
  7. 2024A Methodology for Evaluating RAG Systems: A Case Study On Configuration Dependency Validation
  8. 2024Leveraging Graph-RAG and Prompt Engineering to Enhance LLM-Based Automated Requirement Traceability and Compliance Checks