WebTestPilot: 通过符号化GUI元素推断或acles实现基于自然语言规范的端到端Web测试
WebTestPilot: Agentic End-to-End Web Testing against Natural Language Specification by Inferring Oracles with Symbolized GUI Elements
AI总结:
WebTestPilot通过符号化GUI元素推断隐式或acles,解决自然语言规范下的端到端Web测试中的隐式或acles推断和概率推理挑战,实现99%的任务完成率和高精度召回率。
摘要:
视觉语言模型(VLM)代理在自动化端到端(E2E)Web测试方面展现出巨大潜力,但语言模型的概率性质可能导致内在幻觉。因此,当检测到需求与Web应用之间存在不一致时,难以区分是幻觉还是真实应用错误。解决这一问题面临两个核心技术挑战:隐式或acles推断挑战,即代理必须作为自身或acles隐式决定应用行为是否正确;概率推理挑战,即LLM的不一致推理会削弱其作为或acles的可信度。现有基于LLM的方法未能捕捉此类隐式或acles,要么将不崩溃的页面导航视为成功,要么孤立检查每个状态,从而遗漏依赖于先前步骤上下文的错误。我们引入WebTestPilot,一种基于LLM的代理,旨在解决这些挑战。WebTestPilot使用(1)符号化层,将Web应用中的关键GUI元素检测并符号化为符号(即变量),以及(2)将自然语言规范翻译为一系列步骤,每个步骤均配备推断的前置和后置条件,以作为或acles。该或acles捕捉数据、时间依赖性和因果依赖,使隐式要求的验证成为可能。为了推动该领域研究,我们构建了一个包含注入错误Web应用的基准,用于评估自然语言到端到端测试的性能。结果表明,WebTestPilot实现了99%的任务完成率,96%的精度和96%的召回率,优于最佳基线(+70精度,+27召回率)。该代理在多样化的自然语言输入和模型规模上具有泛化能力。
英文摘要:
Visual language model (VLM) agents show great promise in automating end-to-end (E2E) web testing against requirements in natural language. However, the probabilistic nature of language models can have inherent hallucinations. Therefore, given a detected inconsistency between the requirement and the web application, it is hard to distinguish whether it stems from the hallucination or a real application bug. Addressing this issue presents two core technical challenges: the implicit oracle inference challenge, where the agent must act as its own oracle to implicitly decide if the application's behavior is correct without guidance, and the probabilistic inference challenge, where an LLM's inconsistent reasoning undermines its trustworthiness as an oracle. Existing LLM-based approaches fail to capture such implicit oracles, either by treating any page navigation that doesn't crash as a success, or by checking each state in isolation, thus missing bugs dependent on context from prior steps. We introduce WebTestPilot, an LLM-based agent designed to address these challenges. WebTestPilot uses (1) a symbolization layer which detects and symbolizes critical GUI elements on the web application into symbols (i.e., variables) and (2) translates natural language specification into a sequence of steps, each of which is equipped with inferred pre- and post-conditions over the symbols as an oracle. This oracle captures data, temporal, and causal dependencies, enabling the validation of implicit requirements. To advance research in this area, we build a benchmark of bug-injected web apps for evaluating NL-to-E2E testing. The results show that WebTestPilot achieves a task completion rate of 99%, with 96% precision and 96% recall in bug detection, outperforming the best baseline (+70 precision, +27 recall). The agent generalizes across diverse natural language inputs and model scales.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。