RESTest: Automated Black-Box Testing of RESTful Web APIs

被引:33
|
作者
Martin-Lopez, Alberto [1 ]
Segura, Sergio [1 ]
Ruiz-Cortes, Antonio [1 ]
机构
[1] Univ Seville, I3US Inst, SCORE Lab, Seville, Spain
关键词
REST; black-box testing; web APIs;
D O I
10.1145/3460319.3469082
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Testing RESTful APIs thoroughly is critical due to their key role in software integration. Existing tools for the automated generation of test cases in this domain have shown great promise, but their applicability is limited as they mostly rely on random inputs, i.e., fuzzing. In this paper, we present RESTest, an open source blackbox testing framework for RESTful web APIs. Based on the API specification, RESTest supports the generation of test cases using different testing techniques such as fuzzing and constraint-based testing, among others. RESTest is developed as a framework and can be easily extended with new test case generators and test writers for different programming languages. We evaluate the tool in two scenarios: offline and online testing. In the former, we show how RESTest can efficiently generate realistic test cases (test inputs and test oracles) that uncover bugs in real-world APIs. In the latter, we show RESTest's capabilities as a continuous testing and monitoring framework. Demo video: https://youtu.be/1f_tjdkaCKo.
引用
收藏
页码:682 / 685
页数:4
相关论文
共 50 条
  • [31] A note on an anomaly in black-box testing
    Huima, Antti
    FORMAL APPROACHES TO SOFTWARE TESTING, 2006, 3997 : 47 - 61
  • [32] A framework for practical, automated black-box testing of component-based software
    Edwards, SH
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2001, 11 (02): : 97 - 111
  • [33] A Black-Box Approach to Detect Vulnerabilities in Web Services Using Penetration Testing
    Salas, M. I. P.
    Martins, E.
    IEEE LATIN AMERICA TRANSACTIONS, 2015, 13 (03) : 707 - 712
  • [34] Contract Based, Non-invasive, Black-Box Testing of Web Services
    Averstegge, Michael
    Kraemer, Bernd J.
    SERVICE-ORIENTED COMPUTING - ICSOC 2010, PROCEEDINGS, 2010, 6470 : 695 - +
  • [35] Black-box testing of grey-box behavior
    Tyler, B
    Soundarajan, N
    FORMAL APPROACHES TO SOFTWARE TESTING, 2004, 2931 : 1 - 14
  • [36] Automated black-box boundary value detection
    Dobslaw F.
    Feldt R.
    de Oliveira Neto F.G.
    PeerJ Computer Science, 2023, 9
  • [37] Automated black-box boundary value detection
    Dobslaw, Felix
    Feldt, Robert
    Neto, Francisco Gomes de Oliveira
    PEERJ COMPUTER SCIENCE, 2023, 9
  • [38] Combinatorial Testing of RESTful APIs
    Wu, Huayao
    Xu, Lixin
    Niu, Xintao
    Nie, Changhai
    2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2022), 2022, : 426 - 437
  • [39] Testing RESTful APIs: A Survey
    Golmohammadi, Amid
    Zhang, Man
    Arcuri, Andrea
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (01)
  • [40] Building Uncertainty Models on Top of Black-Box Predictive APIs
    Brando, Axel
    Torres-Latorre, Clara
    Rodriguez-Serrano, Jose A.
    Vitria, Jordi
    IEEE ACCESS, 2020, 8 : 121344 - 121356