[Paper Review] WebTestPilot: Agentic End-to-End Web Testing against Natural Language Specification by Inferring Oracles with Symbolized GUI Elements
WebTestPilot uses an LLM-based agent with a symbolization layer to infer implicit oracles from natural language requirements, enabling robust end-to-end web testing and bug detection across diverse NL inputs. It achieves high task completion and bug-detection metrics and generalizes across models and real-world no-code deployments.
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.
Motivation & Objective
- Translate natural language requirements into executable end-to-end test steps with verifiable oracles.
- Infer implicit state dependencies (causal, temporal, data) to validate cross-state correctness.
- Combine neural reasoning with a symbolic DSL to produce ground, reusable assertions.
- Evaluate on a new NL-to-E2E bug-detection benchmark and in real-world no-code deployments.
Proposed method
- Parse natural language requirements into an ordered sequence of steps (condition, action, expectation).
- Use a symbolization layer to extract and instantiate domain-specific symbols (e.g., Cart, Product) as schemas.
- Define pre- and post-conditions via a Python-extended DSL over symbols to encode explicit and implicit requirements.
- Utilize a GUI grounding model for coarse element localization plus Set-of-Mark prompting to generate precise executable actions.
- Perform retries and optional majority voting to mitigate LLM hallucinations in assertions.
- Construct a benchmark with bug-injected web apps and evaluate against LLM baselines (NaviQAte, LaVague, PinATA).
Experimental results
Research questions
- RQ1RQ1: How effectively does WebTestPilot generate test trajectories compared with baseline GUI testing agents?
- RQ2RQ2: How effective is WebTestPilot at detecting visual and functional faults versus existing agent-based baselines?
- RQ3RQ3: How robust is WebTestPilot to varied, unstructured natural language requirements without fixed input formats?
- RQ4RQ4: How does model size and refinement affect WebTestPilot’s performance with lightweight LLMs?
Key findings
- Achieves 99% task completion on the NL-to-E2E testing benchmark.
- Attains 96% precision and 96% recall in bug detection.
- Outperforms the strongest baseline by approximately +70 precision and +27 recall on the benchmark.
- Generalizes across diverse NL inputs and model scales from 3B to 72B parameters.
- Discovered 8 bugs in a real-world no-code platform deployment, covering data binding, UI, and navigation issues.
- Constructs a publicly useful benchmark with 110 injected bugs across four web applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.