Step-Aligned Script Generation with Verification and Recovery for Web Automation Testing
Hridya Dhulipala, Xiaokai Rong, Aashish Yadavally, Tien N. Nguyen
Key points
From the paper's conclusion- We evaluate TESSARA on three public web benchmarks, measuring script executability, oracle satisfaction, replay stability, and repair efficiency, and show substantial improvements over baselines and underlying VLMs used directly as script generators.
Abstract
Automated generation of end-to-end web tests remains costly: developers must identify stable selectors, encode multi-step workflows, attach assertions, and maintain scripts as interfaces evolve. Recent LLM-based web agents can complete natural-language tasks in a live browser session, but task completion is not the same as producing a test-ware artifact - code that is executable, replay-able from a reset state, inspectable by developers, and tied to an oracle. We present TESSARA, an adaptive test-script generation framework that converts natural-language test intent into Playwright scripts consisting of executable interaction code, goal-state assertions, and step-level provenance linking each step to its generated code fragment, selector evidence, execution outcome, and repair history. TESSARA grounds each planned step via Step-Aligned Scripting (SAS), enabling fine-grained failure localization, selective regeneration of failing suffixes, and reversibility-aware backtracking that avoids undoing likely commit points (e.g., form submissions). A three-level verification pipeline (syntactic, execution, and semantic/oracle), detects and repairs malformed code, interaction failures, and incorrect landing states. We evaluate TESSARA on three public web benchmarks, measuring script executability, oracle satisfaction, replay stability, and repair efficiency, and show substantial improvements over baselines and underlying VLMs used directly as script generators.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- InterWebCoder: Learning Interactive Webpage Generation from Executable Tests via Reinforcement LearningarXiv · 2026
- Framework and Benchmark for Code-Driven Agentic Testing in Web DevelopmentarXiv · 2026
- Catching Developers in the Flow: Low-Latency Agentic Program Repair at Google ScalearXiv · 2026
- WebUniverse: Scaling Verified Training Data for Agentic Web DevelopmentarXiv · 2026
- WebUIProof: Benchmarking WebUI Code Generators with UI-Agent Execution HarnessarXiv · 2026
- Enhancing Bug-Exposing Test Generation via Step-Level Credit Assignment and Self-Distillation from Valuable FailuresarXiv · 2026