Skip to main content
QUICK REVIEW

[论文解读] WebTestPilot: Agentic End-to-End Web Testing against Natural Language Specification by Inferring Oracles with Symbolized GUI Elements

Xiwen Teoh, Yun Lin|arXiv (Cornell University)|Feb 12, 2026
Software Testing and Debugging TechniquesComputer Science被引用 0
一句话总结

WebTestPilot 使用基于大语言模型的代理和符号化层,从自然语言需求中推断隐式预言,并实现端到端的鲁棒网页测试与跨多样化 NL 输入的缺陷检测。它在任务完成和缺陷检测指标上表现出色,并在模型和真实世界无代码部署中具备泛化能力。

ABSTRACT

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.

研究动机与目标

  • 将自然语言需求转译为可执行的端到端测试步骤并具备可验证的预言。
  • 推断隐式状态依赖(因果、时序、数据),以验证跨状态的正确性。
  • 将神经推理与符号化 DSL 相结合,产生可落地、可重复使用的断言。
  • 在新的 NL-to-E2E 缺陷检测基准和真实世界的无代码部署中进行评估。

提出的方法

  • 将自然语言需求解析为按顺序的步骤序列(条件、动作、期望)。
  • 使用符号化层提取并实例化领域特定符号(例如 Cart、Product)作为模式。
  • 通过对符号的 Python 扩展 DSL 定义前置和后置条件,以编码显性与隐性需求。
  • 利用 GUI 定位模型进行粗粒度元素定位,并采用集合标记提示生成精确的可执行操作。
  • 执行重试与可选多数投票以缓解断言中的 LLM 籬幻现象。
  • 构建带有缺陷注入的网页应用基准,并与 LLM 基线(NaviQAte、LaVague、PinATA)进行评估。

实验结果

研究问题

  • RQ1RQ1: 与基线 GUI 测试代理相比,WebTestPilot 在生成测试轨迹方面有多高效?
  • RQ2RQ2: 相对于现有的基于代理的基线,WebTestPilot 在检测视觉与功能缺陷方面有多有效?
  • RQ3RQ3: 在没有固定输入格式的情况下,WebTestPilot 对多样化、非结构化的自然语言需求的鲁棒性如何?
  • RQ4RQ4: 模型规模和精炼如何影响 WebTestPilot 在轻量级 LLM 下的性能?

主要发现

  • 在 NL-to-E2E 测试基准上实现 99% 的任务完成率。
  • 在缺陷检测中达到 96% 的精确率和 96% 的召回率。
  • 在基准测试上相较最强基线提升大约 +70 的精确度和 +27 的召回率。
  • 能够在从 3B 到 72B 参数的多样化自然语言输入和模型规模中泛化。
  • 在一个真实世界无代码平台部署中发现 8 个缺陷,涵盖数据绑定、UI 和导航问题。
  • 构建一个公开有用的基准,涵盖四个网页应用中的 110 个注入缺陷。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。