A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs
Myeongsoo Kim, Tyler Stennett, Saurabh Sinha, Alessandro Orso
摘要
As modern web services increasingly rely on REST APIs, their thorough testing has become crucial. Furthermore, the advent of REST API documentation languages, such as the OpenAPI Specification, has led to the emergence of many black-box REST API testing tools. However, these tools often focus on individual test elements in isolation (e.g., APIs, parameters, values), resulting in lower coverage and less effectiveness in fault detection. To address these limitations, we present AutoRestTest, the first black-box tool to adopt a dependency-embedded multi-agent approach for REST API testing that integrates multi-agent reinforcement learning (MARL) with a semantic property dependency graph (SPDG) and Large Language Models (LLMs). Our approach treats REST API testing as a separable problem, where four agents-API, dependency, parameter, and value agents-collaborate to optimize API exploration. LLMs handle domain-specific value generation, the SPDG model simplifies the search space for dependencies using a similarity score between API operations, and MARL dynamically optimizes the agents' behavior. Our evaluation of AutoRestTest on 12 real-world REST services shows that it outperforms the four leading black-box REST API testing tools, including those assisted by RESTGPT (which generates realistic test inputs using LLMs), in terms of code coverage, operation coverage, and fault detection. Notably, AutoRestTest is the only tool able to trigger an internal server error in the Spotify service. Our ablation study illustrates that each component of AutoRestTest-the SPDG, the LLM, and the agent-learning mechanism-contributes to its overall effectiveness.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SATORI: Static Test Oracle Generation for REST APIs 引用了 Morest: Model-based RESTful API Testing with Execution Feedback
- SATORI: Static Test Oracle Generation for REST APIs 引用了 Automated test generation for REST APIs: no time to rest yet
- SATORI: Static Test Oracle Generation for REST APIs 引用了 LlamaRestTest: Effective REST API Testing with Small Language Models
- Automatic Web Testing Using Curiosity-Driven Reinforcement Learning 引用了 Reinforcement learning based curiosity-driven testing of Android applications
- Morest: Model-based RESTful API Testing with Execution Feedback 引用了 Automatic Web Testing Using Curiosity-Driven Reinforcement Learning
- Automated test generation for REST APIs: no time to rest yet 引用了 Morest: Model-based RESTful API Testing with Execution Feedback
- SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based Agents 引用了 Morest: Model-based RESTful API Testing with Execution Feedback
- SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based Agents 引用了 LlamaRestTest: Effective REST API Testing with Small Language Models
- LlamaRestTest: Effective REST API Testing with Small Language Models 引用了 Morest: Model-based RESTful API Testing with Execution Feedback
- LlamaRestTest: Effective REST API Testing with Small Language Models 引用了 Automated test generation for REST APIs: no time to rest yet
- LlamaRestTest: Effective REST API Testing with Small Language Models 引用了 Language Models are Few-Shot Learners
- MioHint: LLM-Assisted Request Mutation for Whitebox REST API Testing 引用了 Morest: Model-based RESTful API Testing with Execution Feedback
引用它的顶会 Paper5
- LlamaRestTest: Effective REST API Testing with Small Language ModelsMyeongsoo Kim, Saurabh Sinha, Alessandro OrsoFSE 2025 · 9 次引用
- SATORI: Static Test Oracle Generation for REST APIsJuan C. Alonso, Alberto Martin-Lopez, Sergio Segura, Gabriele Bavota 等ASE 2025 · 2 次引用
- SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based AgentsRangeet Pan, Raju Pavuluri, Ruikai Huang, Tyler Stennett 等ICSE 2026 · 1 次引用
- PANGOLIN: Fuzzing Multilingual IoT Firmware with LLM-Driven Code AnalysisZhipeng Jia, Xiaokang Yin, Shuitao Gan, Chao Zhang 等USENIX Security 2026
- MioHint: LLM-Assisted Request Mutation for Whitebox REST API TestingJia Li, Jiacheng Shen, Yuxin Su, Michael R. LyuICSE 2026
它引用的 Paper13
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Reinforcement learning based curiosity-driven testing of Android applicationsMinxue Pan, An Huang, Guoxin Wang, Tian Zhang 等ISSTA 2020 · 166 次引用
- Automatic Web Testing Using Curiosity-Driven Reinforcement LearningYan Zheng, Yi Liu, Xiaofei Xie, Yepang Liu 等ICSE 2021 · 75 次引用
- Automated test generation for REST APIs: no time to rest yetMyeongsoo Kim, Qi Xin, Saurabh Sinha, Alessandro OrsoISSTA 2022 · 67 次引用
- Morest: Model-based RESTful API Testing with Execution FeedbackYi Liu, Yuekang Li, Gelei Deng, Yang Liu 等ICSE 2022 · 52 次引用
相关 Paper
- DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement LearningDavide Corradini, Zeno Montolli, Michele Pasqua, Mariano CeccatoASE 2024 · 13 次引用
- Adaptive REST API Testing with Reinforcement LearningMyeongsoo Kim, Saurabh Sinha, Alessandro OrsoASE 2023 · 29 次引用
- RESTOR: Automated Test Oracle Generation for RESTful APIs via Reinforcement LearningXun Zhou, Zhen Dong, Mingyu Ren, Qiang Li 等ISSTA 2026
- APIRL: Deep Reinforcement Learning for REST API FuzzingMyles Foley, Sergio MaffeisAAAI 2025 · 6 次引用
- Enhancing REST API Testing with NLP TechniquesMyeongsoo Kim, Davide Corradini, Saurabh Sinha, Alessandro Orso 等ISSTA 2023 · 34 次引用
