TestGPT-Server: Automatically Testing Microservices with Large Language Models at ByteDance
Despite the advantages of the microservice architecture, there is an urgent need for automated testing microservice APIs, ensuring that each API functions correctly and reliably without exhaustive manual effort. This paper introduces TestGPT-Server, a novel, fully automated testing system for microservice APIs developed and deployed at ByteDance, leveraging the capabilities of large language models (LLMs) to enhance test request generation and bug detection. TestGPT-Server utilizes an LLM-enhanced interface analyzer and a code analyzer to extract syntactic and semantic information of the API under test. Based on the extracted information, it employs a targeted request generator and a guided stochastic fuzzer to produce comprehensive test requests. After sending generated test requests to the API, an LLM-assisted response analyzer identifies potential service crashes, and an assertion miner automatically mines functional assertions to detect functional bugs. Deployed at ByteDance, the evaluation results demonstrate that TestGPT-Server is effective, achieving a 40.52% improvement over existing test requests and identifying 50 crash bugs and 2 functional bugs across 14,366 microservice APIs, with minimal manual effort.
Mon 23 JunDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
14:00 - 15:20 | Testing 1Journal First / Industry Papers / Research Papers at Aurora B Chair(s): Jialun Cao Hong Kong University of Science and Technology | ||
14:00 20mTalk | Automated Soap Opera Testing Directed by LLMs and Scenario Knowledge: Feasibility, Challenges, and Road Ahead Research Papers Yanqi Su Australian National University, Zhenchang Xing CSIRO's Data61, Chong Wang Nanyang Technological University, Chunyang Chen TU Munich, Xiwei (Sherry) Xu Data61, CSIRO, Qinghua Lu Data61, CSIRO, Liming Zhu CSIRO’s Data61 DOI | ||
14:20 20mTalk | Automated Test Case Repair Using Language Models Journal First Ahmadreza Saboor Yaraghi University of Ottawa, Darren Holden Carleton University, Nafiseh Kahani Carleton University, Lionel Briand University of Ottawa, Canada; Lero centre, University of Limerick, Ireland | ||
14:40 20mTalk | TestGPT-Server: Automatically Testing Microservices with Large Language Models at ByteDance Industry Papers Jue Wang ByteDance, Shuxiang Chen ByteDance, Yu Liu ByteDance, Yuan Deng ByteDance, Lei Zhang ByteDance, Yuanchang Fu ByteDance, Bo Liu ByteDance | ||
15:00 20mTalk | LTM: Scalable and Black-Box Similarity-Based Test Suite Minimization Based on Language Models Journal First RONGQI PAN University of Ottawa, Taher A. Ghaleb Trent University, Lionel Briand University of Ottawa, Canada; Lero centre, University of Limerick, Ireland |
Aurora B is the second room in the Aurora wing.
When facing the main Cosmos Hall, access to the Aurora wing is on the right, close to the side entrance of the hotel.