Automated Test-Case Generation for REST APIs Using Model Inference Search Heuristic
Clinton Cao, Annibale Panichella, Sicco Verwer

TL;DR
This paper introduces MISH, a novel search heuristic for automated REST API test case generation that leverages automaton learning to better capture system-wide behaviors, improving testing effectiveness for microservices.
Contribution
The paper proposes MISH, a new automaton-based search heuristic that enhances EvoMaster by capturing system-level behaviors during REST API testing.
Findings
MISH outperforms existing heuristics in test coverage on real-world microservices.
Automaton learning improves the relevance of generated test cases.
MISH demonstrates promising results compared to state-of-the-art techniques.
Abstract
The rising popularity of the microservice architectural style has led to a growing demand for automated testing approaches tailored to these systems. EvoMaster is a state-of-the-art tool that uses Evolutionary Algorithms (EAs) to automatically generate test cases for microservices' REST APIs. One limitation of these EAs is the use of unit-level search heuristics, such as branch distances, which focus on fine-grained code coverage and may not effectively capture the complex, interconnected behaviors characteristic of system-level testing. To address this limitation, we propose a new search heuristic (MISH) that uses real-time automaton learning to guide the test case generation process. We capture the sequential call patterns exhibited by a test case by learning an automaton from the stream of log events outputted by different microservices within the same system. Therefore, MISH learns…
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 Techniques and Practices
Methods(TravEL!!Guide)How Do I File a Claim with Expedia? · Tanh Activation · + ( 1 ) ⟷ 888 ⟷ ( 829 ) ⟷ 0881 How do I file a claim with Expedia? · Focus
