Generating Test Scenarios from NL Requirements using Retrieval-Augmented LLMs: An Industrial Study
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 14 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
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation System11 Jan
- 2023Retrieval-Augmented Generation for Large Language Models: A Survey18 Dec
Other references · 8
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
- 2021True Few-Shot Learning with Language Modelscited by 344
- 2023Advancing Requirements Engineering through Generative AI: Assessing the Role of LLMscited by 42
- 2023Generative Artificial Intelligence for Software Engineering -- A Research Agendacited by 23
- 2023A Taxonomy for Requirements Engineering and Software Test Alignmentcited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 3.
9 papers.
- 2024Generative AI for Requirements Engineering: A Systematic Literature Reviewcited by 11
- 2025Multi-Agent Debate Strategies to Enhance Requirements Engineering with Large Language Modelscited by 8
- 2025RAGVA: Engineering Retrieval Augmented Generation-based Virtual Assistants in Practicecited by 6
- 2025LLM-Agents Driven Automated Simulation Testing and Analysis of small Uncrewed Aerial Systemscited by 4
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standardscited by 1
- 2025From Domain Documents to Requirements: Retrieval-Augmented Generation in the Space Industrycited by 1
- 2026AI-Driven Test Case Generation from Natural Language Requirements: A Survey of Techniques and Research Gapscited by 1
- 2026Supporting software engineering tasks with agentic AI: Demonstration on document retrieval and test scenario generationcited by 0
- 2026WebMAC: A Multi-Agent Collaborative Framework for Scenario Testing of Web Systemscited by 0
- 2026AI-Driven Test Case Generation from Natural Language Requirements: A Survey of Techniques and Research Gaps4 Jun 2026
- 2026WebMAC: A Multi-Agent Collaborative Framework for Scenario Testing of Web Systems15 Apr 2026
- 2026Supporting software engineering tasks with agentic AI: Demonstration on document retrieval and test scenario generation4 Feb 2026
- 2025From Domain Documents to Requirements: Retrieval-Augmented Generation in the Space Industry10 Jul 2025
- 2025Multi-Agent Debate Strategies to Enhance Requirements Engineering with Large Language Models8 Jul 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025RAGVA: Engineering Retrieval Augmented Generation-based Virtual Assistants in Practice20 Feb 2025
- 2025LLM-Agents Driven Automated Simulation Testing and Analysis of small Uncrewed Aerial Systems21 Jan 2025
- 2024Generative AI for Requirements Engineering: A Systematic Literature Review10 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2025Generating High-Level Test Cases from Requirements using LLM: An Industry Study
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation
- 2024A Tool for Test Case Scenarios Generation Using Large Language Models
- 2026APITestGenie: Generating Web API Tests from Requirements and API Specifications with LLMs ↗
- 2025Towards Requirements Engineering for RAG Systems
- 2024LLM-based Unit Test Generation via Property Retrieval
- 2024A Methodology for Evaluating RAG Systems: A Case Study On Configuration Dependency Validation
- 2024Leveraging Graph-RAG and Prompt Engineering to Enhance LLM-Based Automated Requirement Traceability and Compliance Checks