A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 24 of its 73 references that are in the map. First posted on arXiv 11 Nov 2024.
Builds on
24 of 73 references.
References · 24
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019Multi-Agent Reinforcement Learning: A Selective Overview of Theories and Algorithmscited by 555
- 2017Value-Decomposition Networks For Cooperative Multi-Agent Learningcited by 490
- 2016Safe, Multi-Agent, Reinforcement Learning for Autonomous Drivingcited by 301
- 2018A Survey and Critique of Multiagent Deep Reinforcement Learningcited by 173
- 2023RestGPT: Connecting Large Language Models with Real-World RESTful APIscited by 129
- 2024NESTFUL: A Benchmark for Evaluating LLMs on Nested Sequences of API Callscited by 45
- 2023Leveraging Large Language Models to Improve REST API Testingcited by 20
- 2021Automatic Web Testing using Curiosity-Driven Reinforcement Learningcited by 19
- 2022Automated Test Generation for REST APIs: No Time to Rest Yetcited by 13
12 more
- 2022Testing RESTful APIs: A Surveycited by 11
- 2022Morest: Model-based RESTful API Testing with Execution Feedbackcited by 10
- 2024DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learningcited by 8
- 2023Adaptive REST API Testing with Reinforcement Learningcited by 7
- 2024KAT: Dependency-aware Automated API Testing with Large Language Modelscited by 6
- 2022Open Problems in Fuzzing RESTful APIs: A Comparison of Toolscited by 5
- 2019QuickREST: Property-based Test Generation of OpenAPI-Described RESTful APIscited by 4
- 2021Deriving Semantics-Aware Fuzzers from Web API Schemascited by 3
- 2020Automatic Property-based Testing of GraphQL APIscited by 2
- 2021Importance Sampling based Exploration in Q Learningcited by 1
- 2023Automated Black-box Testing of Mass Assignment Vulnerabilities in RESTful APIscited by 1
- 2024Improving Program Debloating with 1-DU Chain Minimalitycited by 1
Built on by
Citing papers per year: 2025: 7; 2026: 2.
9 papers.
- 2025From REST to MCP: An Empirical Study of API Wrapping and Automated Server Generation for LLM Agentscited by 14
- 2025LogiAgent: Automated Logical Testing for REST Systems with LLM-Based Multi-Agentscited by 5
- 2025LlamaRestTest: Effective REST API Testing with Small Language Modelscited by 4
- 2025CodeAssistBench (CAB): Dataset & Benchmarking for Multi-turn Chat-Based Code Assistancecited by 4
- 2025AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARLcited by 3
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generationcited by 2
- 2026Reproducible, Explainable, and Effective Evaluations of Agentic AI for Software Engineeringcited by 1
- 2026FlowScout: From Execution Feedback to Reliable Tool-Using Agent Workflowscited by 1
- 2025MASTEST: A LLM-Based Multi-Agent System For RESTful API Testscited by 0
- 2026FlowScout: From Execution Feedback to Reliable Tool-Using Agent Workflows10 Aug 2026
- 2026Reproducible, Explainable, and Effective Evaluations of Agentic AI for Software Engineering1 Apr 2026
- 2025MASTEST: A LLM-Based Multi-Agent System For RESTful API Tests22 Nov 2025
- 2025From REST to MCP: An Empirical Study of API Wrapping and Automated Server Generation for LLM Agents21 Jul 2025
- 2025CodeAssistBench (CAB): Dataset & Benchmarking for Multi-turn Chat-Based Code Assistance14 Jul 2025
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generation13 Jul 2025
- 2025LogiAgent: Automated Logical Testing for REST Systems with LLM-Based Multi-Agents19 Mar 2025
- 2025AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL15 Jan 2025
- 2025LlamaRestTest: Effective REST API Testing with Small Language Models15 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2025Test Amplification for REST APIs via Single and Multi-Agent LLM Systems
- 2025A Framework for Testing and Adapting REST APIs as LLM Tools
- 2026RESTOR: Automated Test Oracle Generation for RESTful APIs via Reinforcement Learning ↗
- 2026Multi-Agent LLM-based Metamorphic Testing for REST APIs
- 2025Combining TSL and LLM to Automate REST API Testing: A Comparative Study
- 2026REST API Testing with Verified LLM-Inferred Dependencies and Response-Driven Refinement ↗
- 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applications
- 2026Automated structural testing of LLM-based agents: methods, framework, and case studies