RESTest: Automated Black-Box Testing of RESTful Web APIs

被引:34
|
作者
Martin-Lopez, Alberto [1 ]
Segura, Sergio [1 ]
Ruiz-Cortes, Antonio [1 ]
机构
[1] Univ Seville, I3US Inst, SCORE Lab, Seville, Spain
来源
ISSTA '21: PROCEEDINGS OF THE 30TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS | 2021年
关键词
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 Maturity Model for Semantic RESTful Web APIs
    Salvadori, Ivan
    Siqueira, Frank
    2015 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES (ICWS), 2015, : 703 - 710
  • [32] Black-box model-based regression testing of fail-safe behavior in web applications
    Andrews, Anneliese
    Alhaddad, Ahmed
    Boukhris, Salah
    JOURNAL OF SYSTEMS AND SOFTWARE, 2019, 149 : 318 - 339
  • [33] Model-driven Testing of RESTful APIs
    Fertig, Tobias
    Braun, Peter
    WWW'15 COMPANION: PROCEEDINGS OF THE 24TH INTERNATIONAL CONFERENCE ON WORLD WIDE WEB, 2015, : 1497 - 1502
  • [34] BET: Black-Box Efficient Testing for Convolutional Neural Networks
    Wang, Jialai
    Qiu, Han
    Rong, Yi
    Ye, Hengkai
    Li, Qi
    Li, Zongpeng
    Zhang, Chao
    PROCEEDINGS OF THE 31ST ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2022, 2022, : 164 - 175
  • [35] Applying black-box testing to UML/OCL database models
    Harith Aljumaily
    Dolores Cuadra
    Paloma Martínez
    Software Quality Journal, 2014, 22 : 153 - 184
  • [36] A Comparative Study on Black-Box Testing with Open Source Applications
    Xu, Shaochun
    Chen, Lichao
    Wang, Chunning
    Rud, Oleksandr
    2016 17TH IEEE/ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING AND PARALLEL/DISTRIBUTED COMPUTING (SNPD), 2016, : 527 - 532
  • [37] Robotic Testing of Mobile Apps for Truly Black-Box Automation
    Mao, Ke
    Harman, Mark
    Jia, Yue
    IEEE SOFTWARE, 2017, 34 (02) : 11 - 16
  • [38] Applying black-box testing to UML/OCL database models
    Aljumaily, Harith
    Cuadra, Dolores
    Martinez, Paloma
    SOFTWARE QUALITY JOURNAL, 2014, 22 (02) : 153 - 184
  • [39] Application of black-box testing technologies to command and control subsystem software testing
    Zhang, Min
    Zhao, Ping
    Zhang, Rong
    Qiangjiguang Yu Lizishu/High Power Laser and Particle Beams, 2013, 25 (SUPPL.1): : 87 - 90
  • [40] An algorithm for detecting SQL injection vulnerability using black-box testing
    Aliero, Muhammad Saidu
    Ghani, Imran
    Qureshi, Kashif Naseer
    Rohani, Mohd Fo'ad
    JOURNAL OF AMBIENT INTELLIGENCE AND HUMANIZED COMPUTING, 2020, 11 (01) : 249 - 266