计算机科学 > 软件工程
[提交于 2025年5月31日 (v1),最后修订于 2026年9月23日 (此版本, v2)]
标题:ResTest: Targeted Coverage of Residual Not-Covered Code Using Large Language Models for Web GUI Testing
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Automated web GUI testing (AWGT) approaches explore web applications through GUI actions to achieve code coverage. However, existing approaches, whether random-based, model-based, or reinforcement-learning-based, often struggle to generate continuous and semantically meaningful action sequences for testing complex functionalities, limiting their achievable code coverage. Recent LLM-based approaches partially alleviate this problem but still fall short due to limited capability in inferring testable functionalities and low success rates in executing tasks on complex web applications. In this paper, we propose ResTest, a complementary approach that uses coverage-report-guided LLMs to target residual not-covered code left by existing AWGT approaches. ResTest first runs an existing AWGT approach to broadly explore the application while constructing a state transition graph with summarized information. Once coverage plateaus, ResTest employs an LLM to infer not-covered functionalities based on the state transition graph and coverage report, and then utilizes a specialized LLM-driven GUI agent to execute these functionalities in a targeted manner. Our evaluation on ten open-source web applications shows that ResTest improves three categories of AWGT approaches by 17.52\% to 24.36\% in average code coverage. Ablation studies further confirm the sustained coverage improvement capability and the contribution of each component.
提交历史
来自:Chenxu Liu[v1] 2025年5月31日 星期六 11:43:37 UTC (605 KB)
[v2] 2026年9月23日 星期三 11:25:31 UTC (369 KB)