arXiv:2609.00081cs.SEAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.00081

Framework and Benchmark for Code-Driven Agentic Testing in Web Development

Bin Hong, Zhenchao Zhang, Jiyuan He, Kai Zhang, Zhenya Huang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

End-to-end GUI testing is essential for verifying web applications, yet existing evaluations rely on predefined checklists and are confined to the data and frameworks of web generation benchmarks, leaving the bug-discovery ability of vision-language models (VLMs) systematically untested. We introduce Code-driven Agentic Testing (CAT), a paradigm in which the agent writes Playwright code to drive the browser, gathers feedback, and autonomously explores web applications to uncover bugs. We instantiate CAT with CATJudge, an agentic framework that unifies Browser-Use and Computer-Use tools within a single environment and CATTest, a benchmark of 102 AI-generated web applications with carefully annotated bugs, built through close human-AI collaboration to feature complex interactions and subtle defects. Experiments with mainstream VLMs show that all evaluated models perform poorly, revealing a clear gap between current VLM capabilities and the demands of real-world testing in AI web development. We release our code and data.¹

1 Introduction

With the rapid advancement of large language models (LLMs) in code intelligence, LLM-powered coding agents have achieved remarkable progress on repository-level code generation tasks (Jimenez et al., 2024; Jiang et al., 2026). Collaborating with coding agents is increasingly becoming a programming paradigm that tangibly improves productivity (Ge et al., 2025; Jiang et al., 2024). While coding agents excel at conventional development, they still exhibit notable shortcomings in web application generation, which cannot be verified through textual unit tests or static analysis alone. Verifying web applications relies on visual and interactive

feedback, as many bugs manifest only when the code is rendered in a browser (Zhou et al., 2025; Visconti et al., 2022). This makes end-to-end (E2E) testing involving graphical user interface (GUI) operations an essential measure for both quality assurance of AI-generated web applications and filtering of training data (Ye et al., 2025; Pezze et al., 2018).

E2E GUI testing incurs substantial human labor costs (Alégroth et al., 2015; Pezze et al., 2018). Benchmarks on web code generation typically employ vision-based rule scoring or LLM-as-Judge scoring (Sun et al., 2025; Wang et al., 2025b; Awal et al., 2025). More recently, benchmarking efforts have focused on using GUI agents based on vision-language models (VLMs) to automatically execute encapsulated GUI operations such as clicks and type to verify web code correctness (Lu et al., 2026; Wu et al., 2025; Bian et al., 2025). However, current LLMs/VLMs have limited GUI capabilities, and their GUI interaction environments typically assume fully functional web pages (Xie et al., 2024; Miyai et al., 2025). For testing scenarios that require identifying bugs based on anomalous feedback and demand more intensive web development knowledge, there is a lack of systematic evaluation of their E2E GUI testing abilities.

This gap manifests in two aspects. First, the current web testing paradigm relies on predefined checklists (GUI test cases described in natural language) (Lu et al., 2026; Wu et al., 2025). Yet AI-generated web pages, even when constrained by prompts, often produce features beyond what the checklist anticipates. The testing pipeline can only reflect the model's ability to execute predefined GUI test cases. More importantly, as code intelligence continues to advance and AI-generated web pages grow in complexity, the volume of checklist items will inevitably expand, leading to higher costs, decreased testing efficiency, and reduced reliability. Second, current evaluations of GUI testing capabilities are merely validations of automated

†Corresponding author

¹https://github.com/SleepyWithoutCoffee/CATJudge evaluation methods within web generation benchmarks, constrained by the data and frameworks of those benchmarks themselves. The types and complexity of interactions required by the web pages are limited, and the subtlety of bugs is also limited.

To bridge this gap, we first model the pipeline from user-provided prompts to model-delivered code in AI web generation scenarios. Based on this, we define a different testing paradigm: the agent directly writes Playwright (Microsoft, 2025) code to interact with the browser, gather textual and visual feedback, and autonomously explore the web application to discover bugs. We term this paradigm as Code-driven Agentic Testing (CAT). Then, we build CATJudge, an agentic framework that unifies the two mainstream families of GUI agent tools, Browser-Use Agent (BUA) (He et al., 2024) and Computer-Use Agent (CUA) (Xie et al., 2024) tools, within a single environment, allowing both toolsets to be invoked for web exploration. To evaluate the CAT capabilities of VLMs under the CAT paradigm, we introduce CATTest, a benchmark of 102 AI-generated web applications and carefully annotated bugs constructed through iterative, close human-AI collaboration. Task instances in CATTest include complex interactions and subtle bugs, demanding strong Playwright coding ability and long-horizon abilities.

We evaluate various VLMs on the CATTest dataset using CATJudge. Experimental results show that current mainstream VLMs achieve poor performance on the CATTest dataset (R-score below 43), revealing a substantial gap between the capabilities of existing VLMs and the practical requirements of real-world web development testing.

Our contributions are summarized as follows:

  • We develop a theoretical workflow model for systematically analyzing the agentic web generation scenario, guiding the construction of related framework and benchmark.
  • We propose CATJudge, an agentic framework along with a unified environment for executing CAT tasks for web applications. CATJudge integrates both BUA and CUA tools, and executes actions in real browsers.
  • We construct CATTest, an agentic benchmark of 102 complex web applications for evaluating the CAT capabilities of VLMs in web development.
  • We conduct experiments on CATTest with multiple mainstream VLMs using CATJudge, providing insights into improving their CAT capabilities in web development.