RESTTESTGEN: Automated Black-Box Testing of RESTful APIs

121Citations
Citations of this article
156Readers
Mendeley users who have this article in their library.
Get full text

Abstract

RESTful APIs (or REST APIs for short) represent a mainstream approach to design and develop Web APIs using the REpresentational State Transfer architectural style. When their source code is not (or just partially) available or the analysis across many dynamically allocated distributed components (typical of a micro-services architecture) poses obstacles to white-box testing, black-box testing becomes a viable option. Black-box testing, in fact, only assumes access to the system under test with a specific interface. This paper presents RESTTESTGEN, a novel approach to automatically generate test cases for REST APIs, based on their interface definition (in Swagger). Input values and requests are generated for each operation of the API under test, with the twofold objective of testing nominal execution scenarios and of testing error scenarios. Two distinct oracles are deployed to detect when test cases reveal implementation defects. Our empirical investigation shows that this approach is effective in revealing actual faults on 87 real-world REST APIs.

Cite

CITATION STYLE

APA

Viglianisi, E., Dallago, M., & Ceccato, M. (2020). RESTTESTGEN: Automated Black-Box Testing of RESTful APIs. In Proceedings - 2020 IEEE 13th International Conference on Software Testing, Verification and Validation, ICST 2020 (pp. 142–152). Institute of Electrical and Electronics Engineers Inc. https://doi.org/10.1109/ICST46399.2020.00024

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free