Adaptive REST API Testing with Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Modern web services increasingly rely on REST APIs. Effectively testing these APIs is challenging due to the vast search space to be explored, which involves selecting API operations for sequence creation, choosing parameters for each operation from a potentially large set of parameters, and sampling values from the virtually infinite parameter input space. Current testing tools lack efficient exploration mechanisms, treating all operations and parameters equally (i.e., not considering their importance or complexity) and lacking prioritization strategies. Furthermore, these tools struggle when response schemas are absent in the specification or exhibit variants. To address these limitations, we present an adaptive REST API testing technique that incorporates reinforcement learning to prioritize operations and parameters during exploration. Our approach dynamically analyzes request and response data to inform dependent parameters and adopts a sampling-based strategy for efficient processing of dynamic API feedback. We evaluated our technique on ten RESTful services, comparing it against state-of-the-art REST testing tools with respect to code coverage achieved, requests generated, operations covered, and service failures triggered. Additionally, we performed an ablation study on prioritization, dynamic feedback analysis, and sampling to assess their individual effects. Our findings demonstrate that our approach outperforms existing REST API testing tools in terms of effectiveness, efficiency, and fault-finding ability.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 5.
7 papers.
- 2024A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputscited by 9
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detectioncited by 7
- 2025LogiAgent: Automated Logical Testing for REST Systems with LLM-Based Multi-Agentscited by 5
- 2024APIRL: Deep Reinforcement Learning for REST API Fuzzingcited by 4
- 2025LlamaRestTest: Effective REST API Testing with Small Language Modelscited 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
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generation13 Jul 2025
- 2025Smart-LLaMA-DPO: Reinforced Large Language Model for Explainable Smart Contract Vulnerability Detection23 Jun 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
- 2024APIRL: Deep Reinforcement Learning for REST API Fuzzing20 Dec 2024
- 2024A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs11 Nov 2024