Multi-agent Assisted Automatic Test Generation for Java JSON Libraries
Sinan Wang, Zhiyuan Zhong, Shaojin Wen, Yepang Liu

TL;DR
This paper introduces JsonATG, a multi-agent automatic test generation system tailored for Java JSON libraries, leveraging historical bug data and specialized mutation rules to improve bug detection and code coverage.
Contribution
The paper presents a novel multi-agent ATG system that enhances test generation for Java JSON libraries by incorporating domain-specific mutation rules and bug information.
Findings
JsonATG achieves higher coverage than state-of-the-art LLM-based methods.
Reported 59 bugs in fastjson with a $25 budget, 47 confirmed, 28 fixed.
Generated tests found critical functional bugs and improved quality assurance.
Abstract
JSON is a widely used format for data exchange between applications. In the Java ecosystem, JSON libraries serve as fundamental toolkits for processing JSON data, powering real-world applications such as web services, Android apps, or data management systems. However, without effective quality assurance methods such as automatic test generation (ATG), developers risk introducing subtle data inconsistency bugs, compatibility issues, and even security vulnerabilities. These flaws can affect billions of end users and potentially cause severe financial losses. Recently, large language models (LLMs) have shown strong potential in enhancing ATG. However, existing LLM-based methods like TitanFuzz and YanHui lack specialization in the JSON domain. For Java JSON libraries (JJLs), effective test cases should capture the constraints between formatted data and application programs, leaving critical…
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 Engineering Research · Advanced Malware Detection Techniques
