Improving Test Case Generation for REST APIs Through Hierarchical Clustering
Dimitri Stallenberg, Mitchell Olsthoorn, Annibale Panichella

TL;DR
This paper introduces LT-MOSA, a hierarchical clustering-based method that improves REST API test case generation by preserving promising request patterns, leading to higher coverage and fault detection compared to existing techniques.
Contribution
It proposes a novel hierarchical clustering approach to enhance evolutionary API testing, outperforming state-of-the-art methods in coverage and fault detection.
Findings
LT-MOSA achieves higher branch coverage in most benchmarks.
LT-MOSA detects more real faults than existing methods.
Hierarchical clustering effectively preserves useful request patterns.
Abstract
With the ever-increasing use of web APIs in modern-day applications, it is becoming more important to test the system as a whole. In the last decade, tools and approaches have been proposed to automate the creation of system-level test cases for these APIs using evolutionary algorithms (EAs). One of the limiting factors of EAs is that the genetic operators (crossover and mutation) are fully randomized, potentially breaking promising patterns in the sequences of API requests discovered during the search. Breaking these patterns has a negative impact on the effectiveness of the test case generation process. To address this limitation, this paper proposes a new approach that uses agglomerative hierarchical clustering (AHC) to infer a linkage tree model, which captures, replicates, and preserves these patterns in new test cases. We evaluate our approach, called LT-MOSA, by performing an…
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 System Performance and Reliability · Software Engineering Research
