arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.13559cs.SE
收藏

WebMAC: 一种用于Web系统场景测试的多智能体协作框架

WebMAC: A Multi-Agent Collaborative Framework for Scenario Testing of Web Systems

Wuhan University(武汉大学);Jiangxi Normal University(江西师范大学)

Zhenyu Wan, Gong Chen, Qing Huang, Xiaoyuan Xie

AI总结:

本文提出WebMAC框架,通过多智能体协作完成测试场景描述和转换,提升测试脚本执行成功率和效率,减少token消耗,并有效发现更多Web系统错误。

摘要:

场景测试是检测Web系统错误的重要技术。测试人员起草测试场景并将其转换为测试脚本进行执行。早期方法依赖测试人员将测试场景转换为测试脚本。近期基于LLM的场景测试方法可以从自然语言描述的测试场景生成测试脚本。然而,这些方法不仅受限于描述的不完整性,还忽视了测试充分性标准,难以检测潜在错误。为解决这些限制,本文提出了WebMAC,一种用于Web系统场景测试的多智能体协作框架。WebMAC可通过交互澄清完成测试场景的自然语言描述,并通过等价类划分转换充分的实例测试场景。WebMAC包含三个多智能体模块,分别负责完成测试场景的自然语言描述、转换测试场景和转换测试脚本。我们在四个Web系统上评估了WebMAC。与SOTA方法相比,WebMAC将生成测试脚本的执行成功率提高了30%-60%,提高了29%的测试效率,并减少了47.6%的token消耗。此外,WebMAC能够有效发现更多Web系统中的错误。

英文摘要:

Scenario testing is an important technique for detecting errors in web systems. Testers draft test scenarios and convert them into test scripts for execution. Early methods relied on testers to convert test scenarios into test scripts. Recent LLM-based scenario testing methods can generate test scripts from natural language descriptions of test scenarios. However, these methods are not only limited by the incompleteness of descriptions but also overlook test adequacy criteria, making it difficult to detect potential errors. To address these limitations, this paper proposes WebMAC, a multi-agent collaborative framework for scenario testing of web systems. WebMAC can complete natural language descriptions of test scenarios through interactive clarification and transform adequate instantiated test scenarios via equivalence class partitioning. WebMAC consists of three multi-agent modules, responsible respectively for completing natural language descriptions of test scenarios, transforming test scenarios, and converting test scripts. We evaluated WebMAC on four web systems. Compared with the SOTA method, WebMAC improves the execution success rate of generated test scripts by 30%-60%, increases testing efficiency by 29%, and reduces token consumption by 47.6%. Furthermore, WebMAC can effectively detect more errors in web systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑