Utilizing API Response for Test Refinement
Devika Sondhi, Ananya Sharma, Diptikalyan Saha

TL;DR
This paper introduces a dynamic test refinement method that uses API responses to improve test case realism and coverage, reducing invalid responses and enhancing testing efficiency.
Contribution
It proposes a novel approach leveraging response messages for iterative test refinement, improving test quality without extensive learning requirements.
Findings
Reduced 4xx response rates in testing.
Achieved higher coverage with fewer API requests.
Outperformed existing search-based testing tools.
Abstract
Most of the web services are offered in the form of RESTful APIs. This has led to an active research interest in API testing to ensure the reliability of these services. While most of the testing techniques proposed in the past rely on the API specification to generate the test cases, a major limitation of such an approach is that in the case of an incomplete or inconsistent specification, the test cases may not be realistic in nature and would result in a lot of 4xx response due to invalid input. This is indicative of poor test quality. Learning-based approaches may learn about valid inputs but often require a large number of request-response pairs to learn the constraints, making it infeasible to be readily used in the industry. To address this limitation, this paper proposes a dynamic test refinement approach that leverages the response message. The response is used to infer the…
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 · Engineering and Test Systems
