AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Stennett, Tyler, Kim, Myeongsoo, Sinha, Saurabh, Orso, Alessandro
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909523573211136
author Stennett, Tyler
Kim, Myeongsoo
Sinha, Saurabh
Orso, Alessandro
author_facet Stennett, Tyler
Kim, Myeongsoo
Sinha, Saurabh
Orso, Alessandro
contents As REST APIs have become widespread in modern web services, comprehensive testing of these APIs is increasingly crucial. Because of the vast search space of operations, parameters, and parameter values, along with their dependencies and constraints, current testing tools often achieve low code coverage, resulting in suboptimal fault detection. To address this limitation, we present AutoRestTest, a novel tool that integrates the Semantic Property Dependency Graph (SPDG) with Multi-Agent Reinforcement Learning (MARL) and large language models (LLMs) for effective REST API testing. AutoRestTest determines operation-dependent parameters using the SPDG and employs five specialized agents (operation, parameter, value, dependency, and header) to identify dependencies of operations and generate operation sequences, parameter combinations, and values. Through an intuitive command-line interface, users can easily configure and monitor tests with successful operation count, unique server errors detected, and time elapsed. Upon completion, AutoRestTest generates a detailed report highlighting errors detected and operations exercised. In this paper, we introduce our tool and present preliminary findings, with a demonstration video available at https://www.youtube.com/watch?v=VVus2W8rap8.
format Preprint
id arxiv_https___arxiv_org_abs_2501_08600
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL
Stennett, Tyler
Kim, Myeongsoo
Sinha, Saurabh
Orso, Alessandro
Software Engineering
Artificial Intelligence
As REST APIs have become widespread in modern web services, comprehensive testing of these APIs is increasingly crucial. Because of the vast search space of operations, parameters, and parameter values, along with their dependencies and constraints, current testing tools often achieve low code coverage, resulting in suboptimal fault detection. To address this limitation, we present AutoRestTest, a novel tool that integrates the Semantic Property Dependency Graph (SPDG) with Multi-Agent Reinforcement Learning (MARL) and large language models (LLMs) for effective REST API testing. AutoRestTest determines operation-dependent parameters using the SPDG and employs five specialized agents (operation, parameter, value, dependency, and header) to identify dependencies of operations and generate operation sequences, parameter combinations, and values. Through an intuitive command-line interface, users can easily configure and monitor tests with successful operation count, unique server errors detected, and time elapsed. Upon completion, AutoRestTest generates a detailed report highlighting errors detected and operations exercised. In this paper, we introduce our tool and present preliminary findings, with a demonstration video available at https://www.youtube.com/watch?v=VVus2W8rap8.
title AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2501.08600