Automated Test Generation for REST APIs: No Time to Rest Yet

被引:30
|
作者
Kim, Myeongsoo [1 ]
Xin, Qi [2 ]
Sinha, Saurabh [3 ]
Orso, Alessandro [1 ]
机构
[1] Georgia Inst Technol, Atlanta, GA 30332 USA
[2] Wuhan Univ, Wuhan, Peoples R China
[3] IBM TJ Watson Res Ctr, Yorktown Hts, NY USA
关键词
Automated software testing; RESTful APIs;
D O I
10.1145/3533767.3534401
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:289 / 301
页数:13
相关论文
共 50 条
  • [1] AGORA: Automated Generation of Test Oracles for REST APIs
    Alonso, Juan C.
    Segura, Sergio
    Ruiz-Cortes, Antonio
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 1018 - 1030
  • [2] On the Faults Found in REST APIs by Automated Test Generation
    Marculescu, Bogdan
    Zhang, Man
    Arcuri, Andrea
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (03)
  • [3] Improving Test Case Generation for REST APIs Through Hierarchical Clustering
    Stallenberg, Dimitri
    Olsthoorn, Mitchell
    Panichella, Annibale
    2021 36TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING ASE 2021, 2021, : 117 - 128
  • [4] MockRest-A Generic Approach for Automated Mock Framework for REST APIs Generation
    Soni, Anshu
    Ranga, Virender
    Jadhav, Sandeep
    INVENTIVE COMMUNICATION AND COMPUTATIONAL TECHNOLOGIES, ICICCT 2019, 2020, 89 : 237 - 255
  • [5] Automatic Generation of Test Cases for REST APIs: a Specification-Based Approach
    Ed-douibi, Hamza
    Canovas Izquierdo, Javier Luis
    Cabot, Jordi
    2018 IEEE 22ND INTERNATIONAL ENTERPRISE DISTRIBUTED OBJECT COMPUTING CONFERENCE (EDOC 2018), 2018, : 181 - 190
  • [6] Automated Specification-Based Testing of REST APIs
    Banias, Ovidiu
    Florea, Diana
    Gyalai, Robert
    Curiac, Daniel-Ioan
    SENSORS, 2021, 21 (16)
  • [7] Adaptive Hypermutation for Search-Based System Test Generation: A Study on REST APIs with EvoMaster
    Zhang, Man
    Arcuri, Andrea
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (01)
  • [8] Linked REST APIs: A Middleware for Semantic REST API Integration
    Serrano, Diego
    Stroulia, Eleni
    Lau, Diana
    Ng, Tinny
    2017 IEEE 24TH INTERNATIONAL CONFERENCE ON WEB SERVICES (ICWS 2017), 2017, : 138 - 145
  • [9] Designing Large Scale REST APIs Based on REST Chart
    Li, Li
    Chou, Wu
    2015 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES (ICWS), 2015, : 631 - 638
  • [10] Open APIs for the Rest of Us
    Mayer, Simon
    EIGHTH INTERNATIONAL WORKSHOP ON THE WEB OF THINGS (WOT), 2017, : 8 - 10