[Paper Review] Testing RESTful APIs: A Survey
This survey analyzes 92 academic papers on testing RESTful APIs, categorizing techniques, tools, and challenges in automated testing. It identifies key trends, including rising research interest since 2017, the dominance of black-box testing, and open challenges in handling external services, databases, and underspecified schemas.
In industry, RESTful APIs are widely used to build modern Cloud Applications. Testing them is challenging, because not only they rely on network communications, but also they deal with external services like databases. Therefore, there has been a large amount of research sprout in recent years on how to automatically verify this kind of web services. In this paper, we review the current state-of-the-art on testing RESTful APIs, based on an analysis of 92 scientific articles. This review categories and summarizes the existing scientific work on this topic, and discusses the current challenges in the verification of RESTful APIs.
Motivation & Objective
- To provide a systematic overview of the current state-of-the-art in automated testing of RESTful APIs.
- To identify and categorize research techniques, tools, and evaluation practices used in the field.
- To highlight open challenges and research gaps in testing RESTful APIs, especially concerning external dependencies and schema limitations.
- To support future research by offering a structured analysis of 92 scientific articles on the topic.
Proposed method
- Conducted a systematic literature review of 92 peer-reviewed articles on RESTful API testing from major academic databases.
- Used forward and backward snowballing to minimize missing relevant studies and ensure comprehensive coverage.
- Applied a multi-author consensus process to reduce selection bias and improve reliability in paper inclusion and data extraction.
- Categorized studies based on publication trends, testing techniques (black-box vs. white-box), evaluation metrics, and tool features.
- Analyzed research challenges through thematic coding of open issues and limitations reported in the reviewed literature.
- Evaluated tool support, including open-source prototypes and commercial tools, focusing on features like test case generation and coverage metrics.
Experimental results
Research questions
- RQ1RQ1: How many papers on RESTful API testing have been published per year?
- RQ2RQ2: In which academic venues have these papers been published?
- RQ3RQ3: What are the most frequent contributions to RESTful API testing in the literature?
- RQ4RQ4: What metrics are used to evaluate the effectiveness of testing techniques?
- RQ5RQ5: What automated testing techniques are commonly used for RESTful APIs?
Key findings
- Research interest in testing RESTful APIs has grown exponentially since 2017, with a significant rise in publications across major software engineering venues.
- Black-box testing dominates the literature, with many approaches relying on fuzzer-based test generation and API specification analysis.
- Only one tool, EvoMaster, supports automated white-box testing of RESTful APIs, indicating a research gap in deep code-level testing.
- Handling external dependencies such as databases and third-party services remains a major challenge, especially in black-box testing where state dependencies are hard to infer.
- Underspecified schemas—where data constraints are not formally documented—pose significant challenges for test generation and coverage, with few tools addressing this issue.
- Despite the availability of open-source prototypes, most tools lack support for modern data stores like NoSQL databases (e.g., MongoDB), limiting their practical applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.