MASTEST: A LLM-Based Multi-Agent System For RESTful API Tests
Xiaoke Han, Hong Zhu

TL;DR
MASTEST is a multi-agent system leveraging large language models to automate the entire RESTful API testing workflow, from scenario generation to bug detection, with human-in-the-loop review for quality assurance.
Contribution
This paper introduces MASTEST, a novel multi-agent framework combining LLMs and programmed agents for comprehensive API testing, including scenario creation, script generation, execution, and analysis.
Findings
DeepSeek achieves high data type correctness and status code detection.
GPT-4o excels in API operation coverage.
Generated test scripts are 100% syntactically correct with minimal manual edits.
Abstract
Testing RESTful API is increasingly important in quality assurance of cloud-native applications. Recent advances in machine learning (ML) techniques have demonstrated that various testing activities can be performed automatically by large language models (LLMs) with reasonable accuracy. This paper develops a multi-agent system called MASTEST that combines LLM-based and programmed agents to form a complete tool chain that covers the whole workflow of API test starting from generating unit and system test scenarios from API specification in the OpenAPI Swagger format, to generating of Pytest test scripts, executing test scripts to interact with web services, to analysing web service response messages to determine test correctness and calculate test coverage. The system also supports the incorporation of human testers in reviewing and correcting LLM generated test artefacts to ensure the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software System Performance and Reliability · Software Engineering Research
