A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs
Myeongsoo Kim, Tyler Stennett, Saurabh Sinha, Alessandro Orso
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SATORI: Static Test Oracle Generation for REST APIs cites Morest: Model-based RESTful API Testing with Execution Feedback
- SATORI: Static Test Oracle Generation for REST APIs cites Automated test generation for REST APIs: no time to rest yet
- SATORI: Static Test Oracle Generation for REST APIs cites LlamaRestTest: Effective REST API Testing with Small Language Models
- Automatic Web Testing Using Curiosity-Driven Reinforcement Learning cites Reinforcement learning based curiosity-driven testing of Android applications
- Morest: Model-based RESTful API Testing with Execution Feedback cites Automatic Web Testing Using Curiosity-Driven Reinforcement Learning
- Automated test generation for REST APIs: no time to rest yet cites Morest: Model-based RESTful API Testing with Execution Feedback
- SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based Agents cites Morest: Model-based RESTful API Testing with Execution Feedback
- SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based Agents cites LlamaRestTest: Effective REST API Testing with Small Language Models
- LlamaRestTest: Effective REST API Testing with Small Language Models cites Morest: Model-based RESTful API Testing with Execution Feedback
- LlamaRestTest: Effective REST API Testing with Small Language Models cites Automated test generation for REST APIs: no time to rest yet
- LlamaRestTest: Effective REST API Testing with Small Language Models cites Language Models are Few-Shot Learners
- MioHint: LLM-Assisted Request Mutation for Whitebox REST API Testing cites Morest: Model-based RESTful API Testing with Execution Feedback
Cited by top-tier papers5
- LlamaRestTest: Effective REST API Testing with Small Language ModelsMyeongsoo Kim, Saurabh Sinha, Alessandro OrsoFSE 2025 · 9 citations
- SATORI: Static Test Oracle Generation for REST APIsJuan C. Alonso, Alberto Martin-Lopez, Sergio Segura, Gabriele Bavota et al.ASE 2025 · 2 citations
- SAINT: Service-level Integration Test Generation with Program Analysis and LLM-based AgentsRangeet Pan, Raju Pavuluri, Ruikai Huang, Tyler Stennett et al.ICSE 2026 · 1 citation
- PANGOLIN: Fuzzing Multilingual IoT Firmware with LLM-Driven Code AnalysisZhipeng Jia, Xiaokang Yin, Shuitao Gan, Chao Zhang et al.USENIX Security 2026
- MioHint: LLM-Assisted Request Mutation for Whitebox REST API TestingJia Li, Jiacheng Shen, Yuxin Su, Michael R. LyuICSE 2026
Builds on13
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Reinforcement learning based curiosity-driven testing of Android applicationsMinxue Pan, An Huang, Guoxin Wang, Tian Zhang et al.ISSTA 2020 · 166 citations
- Automatic Web Testing Using Curiosity-Driven Reinforcement LearningYan Zheng, Yi Liu, Xiaofei Xie, Yepang Liu et al.ICSE 2021 · 75 citations
- Automated test generation for REST APIs: no time to rest yetMyeongsoo Kim, Qi Xin, Saurabh Sinha, Alessandro OrsoISSTA 2022 · 67 citations
- Morest: Model-based RESTful API Testing with Execution FeedbackYi Liu, Yuekang Li, Gelei Deng, Yang Liu et al.ICSE 2022 · 52 citations
Related papers
- DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement LearningDavide Corradini, Zeno Montolli, Michele Pasqua, Mariano CeccatoASE 2024 · 13 citations
- Adaptive REST API Testing with Reinforcement LearningMyeongsoo Kim, Saurabh Sinha, Alessandro OrsoASE 2023 · 29 citations
- RESTOR: Automated Test Oracle Generation for RESTful APIs via Reinforcement LearningXun Zhou, Zhen Dong, Mingyu Ren, Qiang Li et al.ISSTA 2026
- APIRL: Deep Reinforcement Learning for REST API FuzzingMyles Foley, Sergio MaffeisAAAI 2025 · 6 citations
- Enhancing REST API Testing with NLP TechniquesMyeongsoo Kim, Davide Corradini, Saurabh Sinha, Alessandro Orso et al.ISSTA 2023 · 34 citations
