Paper published in a book (Scientific congresses, symposiums and conference proceedings)
RESTful API Automated Test Case Generation
Arcuri, Andrea
2017In IEEE International Conference on Software Quality, Reliability & Security (QRS)
Peer reviewed
 

Files


Full Text
paper_rest.pdf
Author preprint (203.3 kB)
Request a copy

All documents in ORBilu are protected by a user license.

Send to



Details



Abstract :
[en] Nowadays, web services play a major role in the development of enterprise applications. Many such applications are now developed using a service-oriented architecture (SOA), where microservices is one of its most popular kind. A RESTful web service will provide data via an API over the network using HTTP, possibly interacting with databases and other web services. Testing a RESTful API poses challenges, as inputs/outputs are sequences of HTTP requests/responses to a remote server. Many approaches in the literature do black-box testing, as the tested API is a remote service whose code is not available. In this paper, we consider testing from the point of view of the developers, which do have full access to the code that they are writing. Therefore, we propose a fully automated white-box testing approach, where test cases are automatically generated using an evolutionary algorithm. Tests are rewarded based on code coverage and fault finding metrics. We implemented our technique in a tool called EVOMASTER, which is open-source. Experiments on two open-source, yet non-trivial RESTful services and an industrial one, do show that our novel technique did automatically find 38 real bugs in those applications. However, obtained code coverage is lower than the one achieved by the manually written test suites already existing in those services. Research directions on how to further improve such approach are therefore discussed.
Disciplines :
Computer science
Author, co-author :
Arcuri, Andrea;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT)
External co-authors :
yes
Language :
English
Title :
RESTful API Automated Test Case Generation
Publication date :
2017
Event name :
IEEE International Conference on Software Quality, Reliability & Security (QRS)
Event date :
2017
Main work title :
IEEE International Conference on Software Quality, Reliability & Security (QRS)
Peer reviewed :
Peer reviewed
FnR Project :
FNR3949772 - Validation And Verification Laboratory, 2010 (01/01/2012-31/07/2018) - Lionel Briand
Available on ORBilu :
since 29 May 2017

Statistics


Number of views
143 (11 by Unilu)
Number of downloads
3 (3 by Unilu)

Scopus citations®
 
35
Scopus citations®
without self-citations
26
WoS citations
 
31

Bibliography


Similar publications



Contact ORBilu