Generating REST API Tests With Descriptive Names

๐Ÿ“… 2025-12-01
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Automated REST API test case generation often yields meaningless identifiers (e.g., `test0`, `test1`), severely impairing readability and maintainability. To address this, we propose three lightweight, deterministic, and external-API-free naming strategies that integrate rule-based heuristics with large language model (LLM) techniques to produce semantically rich, syntactically consistent, and descriptive test names. Unlike black-box LLMs such as GPT-3.5, our approach ensures enhanced security, full controllability, and significantly lower computational overheadโ€”while achieving clarity scores comparable to GPT-4o. Empirical evaluation demonstrates substantial improvements in test understandability; an industrial deployment at Volkswagen AG further validates its practical efficacy and operational value. This work establishes a robust, efficient, and trustworthy naming paradigm for automated testing engineering.

Technology Category

Application Category

๐Ÿ“ Abstract
Automated test generation has become a key technique for ensuring software quality, particularly in modern API-based architectures. However, automatically generated test cases are typically assigned non-descriptive names (e.g., test0, test1), which reduces their readability and hinders their usefulness during comprehension and maintenance. In this work, we present three novel deterministic techniques to generate REST API test names. We then compare eight techniques in total for generating descriptive names for REST API tests automatically produced by the fuzzer EvoMaster, using 10 test cases generated for 9 different open-source APIs. The eight techniques include rule-based heuristics and large language model (LLM)-based approaches. Their effectiveness was empirically evaluated through two surveys (involving up to 39 people recruited via LinkedIn). Our results show that a rule-based approach achieves the highest clarity ratings among deterministic methods, performs on par with state-of-the-art LLM-based models such as Gemini and GPT-4o, and significantly outperforms GPT-3.5. To further evaluate the practical impact of our results, an industrial case study was carried out with practitioners who actively use EvoMaster at Volkswagen AG. A developer questionnaire was then carried out based on the use of EvoMaster on four different APIs by four different users, for a total of 74 evaluated test cases. Feedback from practitioners further confirms that descriptive names produced by this approach improve test suite readability. These findings highlight that lightweight, deterministic techniques can serve as effective alternatives to computationally expensive and security-sensitive LLM-based approaches for automated system-level test naming, providing a practical step toward more developer-friendly API test generation.
Problem

Research questions and friction points this paper is trying to address.

Generates descriptive names for REST API tests
Compares rule-based and LLM-based naming techniques
Improves test readability for comprehension and maintenance
Innovation

Methods, ideas, or system contributions that make the work stand out.

Rule-based heuristics generate descriptive REST API test names
Deterministic techniques outperform GPT-3.5 and match advanced LLMs
Lightweight methods improve test readability without security concerns
๐Ÿ”Ž Similar Papers
No similar papers found.
P
Philip Garrett
Computer Science Dept., School of Exact and Natural Sciences, University of Buenos Aires, Buenos Aires, Argentina
J
Juan P. Galeotti
Institute of Computer Science Research, CONICET, Buenos Aires, Argentina
Andrea Arcuri
Andrea Arcuri
Professor of Software Engineering at Kristiania University College
Software TestingSBSESearch-Based Software EngineeringFuzzingREST
A
Alexander Poth
Volkswagen AG, Germany
O
Olsi Rrjolli
Volkswagen AG, Germany