Reinforcement Learning-Based REST API Testing with Multi-Coverage
Tien-Quang Nguyen, Nghia-Hieu Cong, Ngoc-Minh Quach, Hieu Dinh Vo, and, Son Nguyen

TL;DR
This paper presents MUCOREST, an RL-based API testing method that improves bug detection and code coverage efficiency for REST APIs, outperforming existing approaches significantly.
Contribution
Introduces MUCOREST, a reinforcement learning approach using Q-learning to enhance REST API testing by maximizing coverage and bug discovery.
Findings
MUCOREST outperforms state-of-the-art methods by 11.6-261.1% in bug detection.
MUCOREST requires fewer API calls to find the same bugs.
A significant portion (12.17%-64.09%) of bugs from other methods are also found by MUCOREST.
Abstract
REST (Representational State Transfer) APIs have become integral for data communication and exchange due to their simplicity, scalability, and compatibility with web standards. However, ensuring REST APIs' reliability through rigorous testing poses significant challenges, given the complexities of operations, parameters, inputs, dependencies, and call sequences. In this paper, we introduce MUCOREST, a novel Reinforcement Learning (RL)-based API testing approach that leverages Q-learning to maximize code coverage and output coverage, thereby improving bug discovery. By focusing on these proximate objectives rather than the abstract goal of maximizing failures, MUCOREST effectively discovers critical code areas and diverse API behaviors. The experimental results on a benchmark of 10 services show that MUCOREST significantly outperforms state-of-the-art API testing approaches by…
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 Reliability and Analysis Research
