Generating REST API Tests With Descriptive Names
Philip Garrett, Juan P. Galeotti, Andrea Arcuri, Alexander Poth, Olsi Rrjolli

TL;DR
This paper introduces deterministic techniques for generating descriptive names for REST API tests, improving readability and maintenance, and demonstrates their effectiveness through empirical evaluation and industry case studies.
Contribution
It presents three novel deterministic methods for naming REST API tests and compares them with LLM-based approaches, showing their practicality and effectiveness.
Findings
Rule-based approach achieves highest clarity ratings.
Deterministic methods perform on par with LLM-based models.
Descriptive names improve test suite readability in practice.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Engineering Research · Software System Performance and Reliability
