mlsanityData to 7 Oct 2026

A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs

arXiv 2411.07098 ↗First posted 11 Nov 2024cs.SE cs.AIcited by 9

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2019Multi-Agent Reinforcement Learning: A Selective Overview of Theories and Algorithmscited by 555
  5. 2017Value-Decomposition Networks For Cooperative Multi-Agent Learningcited by 490
  6. 2016Safe, Multi-Agent, Reinforcement Learning for Autonomous Drivingcited by 301
  7. 2018A Survey and Critique of Multiagent Deep Reinforcement Learningcited by 173
  8. 2023RestGPT: Connecting Large Language Models with Real-World RESTful APIscited by 129
  9. 2024NESTFUL: A Benchmark for Evaluating LLMs on Nested Sequences of API Callscited by 45
  10. 2023Leveraging Large Language Models to Improve REST API Testingcited by 20
  11. 2021Automatic Web Testing using Curiosity-Driven Reinforcement Learningcited by 19
  12. 2022Automated Test Generation for REST APIs: No Time to Rest Yetcited by 13
12 more
  1. 2022Testing RESTful APIs: A Surveycited by 11
  2. 2022Morest: Model-based RESTful API Testing with Execution Feedbackcited by 10
  3. 2024DeepREST: Automated Test Case Generation for REST APIs Exploiting Deep Reinforcement Learningcited by 8
  4. 2023Adaptive REST API Testing with Reinforcement Learningcited by 7
  5. 2024KAT: Dependency-aware Automated API Testing with Large Language Modelscited by 6
  6. 2022Open Problems in Fuzzing RESTful APIs: A Comparison of Toolscited by 5
  7. 2019QuickREST: Property-based Test Generation of OpenAPI-Described RESTful APIscited by 4
  8. 2021Deriving Semantics-Aware Fuzzers from Web API Schemascited by 3
  9. 2020Automatic Property-based Testing of GraphQL APIscited by 2
  10. 2021Importance Sampling based Exploration in Q Learningcited by 1
  11. 2023Automated Black-box Testing of Mass Assignment Vulnerabilities in RESTful APIscited by 1
  12. 2024Improving Program Debloating with 1-DU Chain Minimalitycited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 2.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Test Amplification for REST APIs via Single and Multi-Agent LLM Systems
  2. 2025A Framework for Testing and Adapting REST APIs as LLM Tools
  3. 2026RESTOR: Automated Test Oracle Generation for RESTful APIs via Reinforcement Learning ↗
  4. 2026Multi-Agent LLM-based Metamorphic Testing for REST APIs
  5. 2025Combining TSL and LLM to Automate REST API Testing: A Comparative Study
  6. 2026REST API Testing with Verified LLM-Inferred Dependencies and Response-Driven Refinement ↗
  7. 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applications
  8. 2026Automated structural testing of LLM-based agents: methods, framework, and case studies