Lune

FSE2022顶会

Online testing of RESTful APIs: promises and challenges

Alberto Martin-Lopez, Sergio Segura, Antonio Ruiz-Cortés

摘要

Online testing of web APIs—testing APIs in production—is gaining traction in industry. Platforms such as RapidAPI and Sauce Labs provide online testing and monitoring services of web APIs 24/7, typically by re-executing manually designed test cases on the target APIs on a regular basis. In parallel, research on the automated generation of test cases for RESTful APIs has seen significant advances in recent years. However, despite their promising results in the lab, it is unclear whether research tools would scale to industrial-size settings and, more importantly, how they would perform in an online testing setup, increasingly common in practice. In this paper, we report the results of an empirical study on the use of automated test case generation methods for online testing of RESTful APIs. Specifically, we used the RESTest framework to automatically generate and execute test cases in 13 industrial APIs for 15 days non-stop, resulting in over one million test cases. To scale at this level, we had to transition from a monolithic tool approach to a multi-bot architecture with over 200 bots working cooperatively in tasks like test generation and reporting. As a result, we uncovered about 390K failures, which we conservatively triaged into 254 bugs, 65 of which have been acknowledged or fixed by developers to date. Among others, we identified confirmed faults in the APIs of Amadeus, Foursquare, Yelp, and YouTube, accessed by millions of applications worldwide. More importantly, our reports have guided developers on improving their APIs, including bug fixes and documentation updates in the APIs of Amadeus and YouTube. Our results show the potential of online testing of RESTful APIs as the next must-have feature in industry, but also some of the key challenges to overcome for its full adoption in practice.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • SATORI: Static Test Oracle Generation for REST APIs 引用了 Improving Test Case Generation for REST APIs Through Hierarchical Clustering
  • SATORI: Static Test Oracle Generation for REST APIs 引用了 Combinatorial Testing of RESTful APIs
  • SATORI: Static Test Oracle Generation for REST APIs 引用了 Enhancing REST API Testing with NLP Techniques
  • SATORI: Static Test Oracle Generation for REST APIs 引用了 Generating REST API Specifications through Static Analysis
  • SATORI: Static Test Oracle Generation for REST APIs 引用了 Intelligent REST API data fuzzing
  • SATORI: Static Test Oracle Generation for REST APIs 引用了 AGORA: Automated Generation of Test Oracles for REST APIs
  • Enhancing REST API Testing with NLP Techniques 引用了 Combinatorial Testing of RESTful APIs
  • SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based Agents 引用了 Enhancing REST API Testing with NLP Techniques
  • SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based Agents 引用了 Generating REST API Specifications through Static Analysis
  • AGORA: Automated Generation of Test Oracles for REST APIs 引用了 Improving Test Case Generation for REST APIs Through Hierarchical Clustering
  • AGORA: Automated Generation of Test Oracles for REST APIs 引用了 Combinatorial Testing of RESTful APIs
  • AGORA: Automated Generation of Test Oracles for REST APIs 引用了 Intelligent REST API data fuzzing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Enhancing REST API Testing with NLP TechniquesMyeongsoo Kim, Davide Corradini, Saurabh Sinha, Alessandro Orso 等ISSTA 2023 · 34 次引用
  2. AGORA: Automated Generation of Test Oracles for REST APIsJuan C. Alonso, Sergio Segura, Antonio Ruiz-CortésISSTA 2023 · 15 次引用
  3. Generating REST API Specifications through Static AnalysisRuikai Huang, Manish Motwani, Idel Martinez, Alessandro OrsoICSE 2024 · 11 次引用
  4. SATORI: Static Test Oracle Generation for REST APIsJuan C. Alonso, Alberto Martin-Lopez, Sergio Segura, Gabriele Bavota 等ASE 2025 · 2 次引用
  5. SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based AgentsRangeet Pan, Raju Pavuluri, Ruikai Huang, Tyler Stennett 等ICSE 2026 · 1 次引用

它引用的 Paper3

  1. Intelligent REST API data fuzzingPatrice Godefroid, Bo-Yuan Huang, Marina PolishchukFSE 2020 · 57 次引用
  2. Combinatorial Testing of RESTful APIsHuayao Wu, Lixin Xu, Xintao Niu, Changhai NieICSE 2022 · 47 次引用
  3. Improving Test Case Generation for REST APIs Through Hierarchical ClusteringDimitri Michel Stallenberg, Mitchell Olsthoorn, Annibale PanichellaASE 2021 · 32 次引用

相关 Paper

  1. Automated test generation for REST APIs: no time to rest yetMyeongsoo Kim, Qi Xin, Saurabh Sinha, Alessandro OrsoISSTA 2022 · 67 次引用
  2. Defects4REST: A Benchmark of Real-World Defects to Enable Controlled Testing and Debugging Studies for REST APIsRahil Mehta, Pushpak Katkhede, Manish MotwaniICSE 2026 · 1 次引用
  3. Morest: Model-based RESTful API Testing with Execution FeedbackYi Liu, Yuekang Li, Gelei Deng, Yang Liu 等ICSE 2022 · 52 次引用
  4. Effective REST APIs Testing with Error Message AnalysisLixin Xu, Huayao Wu, Zhenyu Pan, Tongtong Xu 等ISSTA 2025 · 1 次引用
  5. A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven InputsMyeongsoo Kim, Tyler Stennett, Saurabh Sinha, Alessandro OrsoICSE 2025 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖