Automated test generation for REST APIs: no time to rest yet
Authors:
Top Cited Papers
Open Access
- 18 July 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 289-301
Abstract
Modern web services routinely provide REST APIs for clients to access their functionality. These APIs present unique challenges and opportunities for automated testing, driving the recent development of many techniques and tools that generate test cases for API endpoints using various strategies. Understanding how these techniques compare to one another is difficult, as they have been evaluated on different benchmarks and using different metrics. To fill this gap, we performed an empirical study aimed to understand the landscape in automated testing of REST APIs and guide future research in this area. We first identified, through a systematic selection process, a set of 10 state-of-the-art REST API testing tools that included tools developed by both researchers and practitioners. We then applied these tools to a benchmark of 20 real-world open-source RESTful services and analyzed their performance in terms of code coverage achieved and unique failures triggered. This analysis allowed us to identify strengths, weaknesses, and limitations of the tools considered and of their underlying strategies, as well as implications of our findings for future research in this area.Keywords
All Related Versions
This publication has 37 references indexed in Scilit:
- Machine learning: Trends, perspectives, and prospectsScience, 2015
- Model-driven Testing of RESTful APIs2015
- Testing and verification in service‐oriented architecture: a surveySoftware Testing, Verification and Reliability, 2012
- Introduction to Semi-Supervised LearningSynthesis Lectures on Artificial Intelligence and Machine Learning, 2009
- Dependency ParsingSynthesis Lectures on Human Language Technologies, 2009
- WSDLTest - A Tool for Testing Web Services2006
- Coyote: an XML-based framework for Web services testing2003
- Comparing operating systems using robustness benchmarks2002
- Tokenization as the initial phase in NLP1992
- Symbolic execution and program testingCommunications of the ACM, 1976