Requirements-Based Test Generation: A Comprehensive Survey

Zhenzhen Yang, Rubing Huang, Chenhui Cui, Nan Niu, Dave ToweyarXiv 2025

TL;DR

This paper presents the first large-scale, comprehensive survey of Requirements-Based Test Generation (RBTG), analyzing 267 studies spanning three decades (1994–2024). It maps out the entire RBTG landscape—from input requirement types and intermediate representations to generation tools and evaluation metrics—while identifying critical gaps between academic research and industrial practice.

What Problem Does This Paper Address?

Software testing is a critical but expensive phase of development, often consuming over half of total development costs. While code-based test generation is highly effective at catching implementation errors, it happens late in the lifecycle and cannot address flaws stemming from misunderstood or poorly specified requirements.

Requirements-Based Test Generation (RBTG) offers a solution by constructing test cases directly from software requirements before any code is written. This early intervention helps catch ambiguities and inconsistencies when they are cheapest to fix. However, since its inception in 1994, RBTG research has become highly fragmented across various input formats (e.g., natural language, UML diagrams, formal math) and custom tools. Prior surveys have been narrow, focusing only on specific subsets like UML activity diagrams or Natural Language Processing (NLP). This paper addresses the lack of a holistic, up-to-date overview of the entire RBTG workflow to help researchers and engineers navigate the field.

Fig. 1. Requirements-based test-generation process.

Methods

The authors conducted a Systematic Literature Review (SLR) following the standard Kitchenham methodology, supplemented by snowballing techniques to ensure comprehensive coverage. They queried five major digital libraries (ACM, IEEE, ScienceDirect, Springer, and Wiley) for papers published up to January 2025, filtering an initial pool of 493 papers down to 267 core studies.

The survey establishes a unified taxonomy to classify these papers across several dimensions:

  • Input Requirements: Grouped into five distinct categories based on specification style.
  • Generation Strategies: Distinguishing between direct test generation and approaches that first transform requirements into an Intermediate Representation (IR) like control flow graphs or Finite State Machines (FSMs).
  • Output Types: Classifying the resulting test artifacts into abstract test cases, concrete test cases, or test scenarios.
Table 1. Requirements Classification for RBTG

Datasets

As a survey paper, this study does not introduce a new software dataset. Instead, it evaluates the benchmarking habits of the RBTG community. The authors reveal a significant benchmark deficit: the ATM (Automated Teller Machine) system is currently the only widely used benchmark in the literature. The vast majority of studies rely on custom, ad-hoc case studies, and nearly half of the reviewed research lacks any case-study validation at all.

Key Insights and Ideas

  • The Shift from Models to Text: Historically, model-based requirements (like UML diagrams) dominated the field, making up 53% of the surveyed papers. However, since 2019, Natural Language (NL) approaches have surged and surpassed model-based methods, fueled by rapid advancements in NLP and Large Language Models (LLMs).
  • The "Abstract" Bottleneck: A striking 61% of RBTG approaches only generate Abstract Test Cases (ATCs)—high-level, human-readable descriptions that lack concrete input values or executable scripts. Only 33% generate directly executable Concrete Test Cases (CTCs), highlighting a major gap in true end-to-end automation.
  • An Evaluation Deficiency: Over half (52%) of RBTG papers rely purely on "theoretical demonstrations" (simple illustrative examples) to validate their methods. Only 12% of the literature features rigorous, controlled comparative experiments against existing baselines.
  • Java Rules the Tooling Landscape: The survey identified 88 distinct RBTG tools. Among those with a specified implementation language, Java is overwhelmingly preferred, accounting for 42 tools.

Key Results

  • Publication Trends: RBTG research has seen sustained growth since 2001, with notable publication peaks in 2019 and 2021.
  • Input Formats: Model-based specifications are the most common input (53%), followed by Natural Language (28%). Within NL, unstructured text (36%) and use case descriptions (32%) are the most frequently utilized formats.
  • Intermediate Representations: 61% of all reviewed methodologies use an intermediate step. Graphical models (such as activity diagrams or combined directed graphs) are the most popular intermediate format, appearing in 90 studies.
  • Application Domains: Object-oriented programs (63 papers) and embedded systems (46 papers) are the primary domains where RBTG is applied, followed closely by web applications.

Limitations and Future Work

The authors candidly point out several limitations in the current state of RBTG:

  1. Functional Bias: Current RBTG methods focus almost exclusively on functional testing, largely ignoring non-functional requirements like performance, security, and usability.
  2. High Manual Overhead: Moving from abstract test cases to executable test scripts still heavily relies on manual data entry and human-crafted test oracles.

Promising Future Directions:

  • LLM-Driven RBTG: Utilizing the advanced parsing capabilities of LLMs to automatically clarify ambiguous natural language requirements before feeding them into formal constraint solvers.
  • Module-Centric Prioritization: Integrating the 80/20 rule (where 80% of defects reside in 20% of modules) into the requirements phase to generate more rigorous tests for critical system components.
  • Standardized Benchmarking: Developing open-source, multi-domain benchmarking datasets to allow researchers to fairly compare and replicate RBTG tool performance.

Summary updated

BibTeX
@misc{yang2025requirements,
  author = {Zhenzhen Yang and Rubing Huang and Chenhui Cui and Nan Niu and Dave Towey},
  title = {{Requirements-Based Test Generation: A Comprehensive Survey}},
  year = {2025},
  eprint = {2505.02015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.02015},
}
Figure