Test Amplification for REST APIs via Single and Multi-Agent LLM Systems

📅 2025-04-10
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Low test coverage and difficulty in detecting boundary defects hinder REST API testing. Method: This paper proposes an automated test augmentation framework leveraging both single-agent and multi-agent large language models (LLMs), integrating API contract analysis, collaborative reasoning, and test generation-execution to systematically extend existing test suites and deeply explore boundary scenarios—including HTTP methods, paths, status codes, and anomalous inputs. Contribution/Results: We present the first comparative evaluation of these two LLM agent paradigms: multi-agent LLMs significantly outperform single-agent ones in path and status-code coverage (+28.6% on average) and real-world defect detection (uncovering seven previously unreported bugs); conversely, single-agent LLMs achieve higher computational efficiency and lower energy consumption (−39.2%). The study quantitatively characterizes the trade-offs among coverage, defect detection, and energy efficiency, establishing a reproducible methodology and empirical benchmark for LLM-driven API testing.

Technology Category

Application Category

📝 Abstract
REST APIs (Representational State Transfer Application Programming Interfaces) are essential to modern cloud-native applications. Strong and automated test cases are crucial to expose lurking bugs in the API. However, creating automated tests for REST APIs is difficult, and it requires test cases that explore the protocol's boundary conditions. In this paper, we investigate how single-agent and multi-agent LLM (Large Language Model) systems can amplify a REST API test suite. Our evaluation demonstrates increased API coverage, identification of numerous bugs in the API under test, and insights into the computational cost and energy consumption of both approaches.
Problem

Research questions and friction points this paper is trying to address.

Amplifying REST API test suites using LLM systems
Improving API coverage and bug detection via agents
Comparing computational costs of single vs multi-agent approaches
Innovation

Methods, ideas, or system contributions that make the work stand out.

Single-agent LLM for REST API test amplification
Multi-agent LLM system to enhance API coverage
Analyzing computational cost and energy consumption
🔎 Similar Papers
No similar papers found.
R
Robbe Nooyens
Universiteit Antwerpen, Belgium
T
Tolgahan Bardakci
Universiteit Antwerpen, Belgium – Flanders Make, Belgium
M
Mutlu Beyazit
Universiteit Antwerpen, Belgium – Flanders Make, Belgium
Serge Demeyer
Serge Demeyer
University of Antwerp
Software EngineeringSoftware EvolutionTest Automation