arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.01495cs.SE
收藏

自主Web智能体是优秀的测试者吗?

Are Autonomous Web Agents Good Testers?

Antoine Chevrot, Alexandre Vernotte, Jean-Rémy Falleri, Xavier Blanc, Bruno Legeard

AI总结:

本文研究自主Web智能体作为自然语言测试用例执行者的可行性,提出包含3个应用和113个用例的基准,并开发SeeAct-ATA与PinATA两种开源实现,实验表明PinATA性能提升50%且正确判定率达60%,但仍存局限需改进以实现低维护测试自动化。

摘要:

尽管自动化测试取得了进展,但由于测试脚本脆弱性带来的高维护需求(脚本常因应用结构的微小变化而失效),手动测试仍然普遍。大型语言模型(LLMs)的最新进展提供了一种潜在的替代方案,通过驱动能够自主与应用程序交互的自主Web智能体(AWAs)来实现。这些智能体可作为自主测试智能体(ATAs),通过利用类似于人类测试人员使用的自然语言指令,潜在地减少对维护繁重的自动化脚本的需求。本文研究了将AWAs适配于自然语言测试用例执行的可行性以及如何评估它们。我们贡献了:(1) 一个包含三个离线Web应用程序的基准,以及一套113个手动测试用例,分为通过和失败用例,以评估和比较ATAs的性能;(2) SeeAct-ATA和pinATA,两个开源的ATA实现,能够执行测试步骤、验证断言并给出判定;(3) 使用我们的基准进行的比较实验,量化了我们的ATAs的有效性。最后,我们还进行了定性评估,以确定我们表现最佳的实现PinATA的局限性。我们的发现表明,在执行测试用例时,我们简单的实现SeeAct-ATA的表现不如我们更先进的PinATA实现(性能提升50%)。然而,尽管PinATA获得了约60%的正确判定率和高达有希望的94%的特异性,我们仍识别出几个需要解决的局限性,以开发更具弹性和可靠性的ATAs,为稳健、低维护的测试自动化铺平道路。CCS概念:$\ullet$ 软件及其工程 $\ ightarrow$ 软件测试与调试。

英文摘要:

Despite advances in automated testing, manual testing remains prevalent due to the high maintenance demands associated with test script fragility-scripts often break with minor changes in application structure. Recent developments in Large Language Models (LLMs) offer a potential alternative by powering Autonomous Web Agents (AWAs) that can autonomously interact with applications. These agents may serve as Autonomous Test Agents (ATAs), potentially reducing the need for maintenance-heavy automated scripts by utilising natural language instructions similar to those used by human testers. This paper investigates the feasibility of adapting AWAs for natural language test case execution and how to evaluate them. We contribute with (1) a benchmark of three offline web applications, and a suite of 113 manual test cases, split between passing and failing cases, to evaluate and compare ATAs performance, (2) SeeAct-ATA and pinATA, two open-source ATA implementations capable of executing test steps, verifying assertions and giving verdicts, and (3) comparative experiments using our benchmark that quantifies our ATAs effectiveness. Finally we also proceed to a qualitative evaluation to identify the limitations of PinATA, our best performing implementation. Our findings reveal that our simple implementation, SeeAct-ATA, does not perform well compared to our more advanced PinATA implementation when executing test cases (50% performance improvement). However, while PinATA obtains around 60% of correct verdict and up to a promising 94% specificity, we identify several limitations that need to be addressed to develop more resilient and reliable ATAs, paving the way for robust, low maintenance test automation. CCS Concepts: $\bullet$ Software and its engineering $\rightarrow$ Software testing and debugging.

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

↑