LLM-Assisted Model-Based GUI Testing for Vue.js Web Applications DOI: XXXXXXX.XXXXXXX Journal: JACM Volume: 37 4 111 8 CCS: Software and its engineering Software testing and debugging CCS: Computing methodologies Natural language processing

Tao Li, Chenhui Cui, Rubing Huang, Dave Towey, Shikai Guo, Lei Ma · 2026

Read LLM-Assisted Model-Based GUI Testing for Vue.js Web Applications DOI: XXXXXXX.XXXXXXX Journal: JACM Volume: 37 4 111 8 CCS: Software and its engineering Software testing and debugging CCS: Computing methodologies Natural language processing by Tao Li, Chenhui Cui, Rubing Huang, Dave Towey, Shikai Guo, Lei Ma (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2606-27665.txt.

Introduction

Vue is a popular framework for building web applications. Testing its interfaces automatically is becoming important as the tools grow. Model-based testing needs a page transition graph to guide exploration. Building that graph for Vue is hard. Transition clues are scattered across router files and single-file components. Tao Li and five colleagues propose LLMVue in 2026 to build the graph with a large language model.

LLMVue infers component hierarchies and route transitions from source code. It merges them into one unified graph across components. Ten open-source Vue projects from GitHub served as the test set. GPT-4o was the language-model backbone. The built graphs showed high precision and recall. Their graph edit distance to reference graphs was low. Guided testing improved coverage and exploration efficiency against random exploration under the same time limits. The authors present the work as the first of its kind for Vue.

Catalog record

CREATORTao Li, Chenhui Cui, Rubing Huang, Dave Towey, Shikai Guo, Lei Ma
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE70 KB
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2606.27665

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

LLM-Assisted Model-Based GUI Testing for Vue.js Web Applications DOI: XXXXXXX.XXXXXXX Journal: JACM Volume: 37 4 111 8 CCS: Software and its engineering Software testing and debugging CCS: Computing methodologies Natural language processing Tao Li, Chenhui Cui, Rubing Huang, Dave Towey, Shikai Guo, Lei Ma Abstract . Vue.js is a popular framework for building modern web applications. As Vue.js functionality and tooling support grow, ensuring its reliability (through automated testing) is becoming increasingly important. Although model-based testing has been successfully used to automate graphical user interface (GUI) testing on other platforms, its application to Vue.js remains challenging: Transition candidates, which are spread across router configurations and single-file components (SFCs), must be concretized and normalized into an executable page transition graph (PTG) for testing. To address this, we propose the LLMVue framework, which uses a large language model (LLM) to generate a PTG from Vue.js source code. LLMVue infers component hierarchies and route transitions, merging them into a unified PTG across multiple SFCs. We evaluated LLMVue on a collection of ten open-source Vue.js projects from GitHub, using GPT-4o as the LLM backbone. The constructed graphs demonstrate high precision and recall, with low graph edit distance. LLMVue -guided testing also significantly improves the coverage and exploration efficiency, compared to a random exploration baseline (with the same time constraints). To the best of our knowledge, this is the first use of LLMs for model-based GUI testing of Vue.js applications using source-level PTG extraction. 1. Introduction As modern web technologies become more widely adopted, ensuring the reliability of large-scale web applications has become an important issue in software development ( 51 ; 1 ; 2 ; 5 ) . Vue.js ( 42 ) has become one of the most popular frameworks for modern web development ( 37 ) , noted for its lightweight and reactive component architecture ( 34 ; 49 ) . In Vue.js applications, user interface (UI) pages are organized around client-side routing: A router maintains a routing table that maps uniform resource locator (URL) paths to view components, updating the rendered view when the active route changes. A consequence is that the reliability of Vue.js applications is closely tied to the correctness of client-side navigation and page transitions. As the scale of Vue.js applications grows, automated testing has become an essential process for ensuring reliability. Role-dependent menu (simplified) (a) Role-dependent menu snippet. Desired PTG edges (illustrative) (b) Desired edge representation. Figure 1 . Role-dependent navigation in Vue.js. Model-based testing (MBT) ( 26 ; 50 ; 10 ; 13 ; 41 ) has proven its effectiveness for graphical user interface (GUI) testing. It uses an explicit navigation model, typically a page transition graph (PTG), to capture transitions among UI pages and to guide action selection and test-case generation. Despite substantial progress in PTG construction and PTG-based GUI testing ( 10 ) , systematic transition modeling for Vue.js applications remains limited ( 43 ) . Vue.js introduces framework-specific features that complicate cross-component PTG construction: (1) The navigation logic is spread across router configurations and single-file components (SFCs) 1 1 1 The official definition of a Vue single-file component (SFC), a “ .vue ” file, is available here: https://vue-loader.vuejs.org/spec.html . . It can also be intertwined with layout components and nested routing. (2) Many navigation actions are encapsulated within UI-library components (e.g., Element UI/Plus), which can hide the underlying clickable elements and routing APIs. (3) Menus and navigation actions are often protected against certain actions by mutually exclusive runtime conditions (e.g., authentication state or permission checks), causing different transitions to be exposed only under specific states. Unlike traditional multi-page web applications, Vue.js SPAs often encode navigation intent across router definitions, SFC templates/scripts, shared layouts, and UI-library abstractions. As a result, recovering an executable cross-component navigation model is not a direct extension of conventional web crawling or URL-based modeling. To support model-based GUI testing on Vue.js, we construct an executable cross-component PTG from Vue.js source code by extracting transition candidates and using them to drive PTG-guided testing. However, this approach introduces two challenges: (1) Candidate extraction for PTG construction, from cross-component Vue.js source code, prioritizing high recall. The navigation intent is distributed across router configurations, SFC templates/scripts, and shared layout components, and is often wrapped by UI library components. We therefore need a conservative static extraction that emphasizes high recall and collects plausible route-to-route transition candidates from these distributed sources. (2) Refining and normalizing static candidates into an executable PTG to guide testing. Static candidates are often incomplete or ambiguous (e.g., generic selectors, layout-to-child misattribution, or actions visible only under certain runtime conditions), as illustrated in Fig. 1 . Each candidate must therefore be refined into a locator usable by the testing engine. Lightweight normalization can then be applied to create a PTG ready for testing. As shown in Figure 1 , a Vue.js application can implement role-dependent navigation where two sidebar menu items share the same route target (“ /book ”), but appear under mutually exclusive “ v-if ” conditions. In this example, the menu is rendered in a shared layout component under “ /user ”, which provides the sidebar for its child views. If PTG transitions are only abstracted using the route targets (i.e., collapsing actions with the same “ from ”/“ to ”), then these two actions would be conflated into a single transition (“ /user ” \rightarrow “ /book ”): This could lead to infeasible or non-executable actions during testing (e.g., attempting to click a hidden menu item for the current role). A more appropriate PTG for Vue.js should keep these as distinct edges, because they represent different executable entry points to the same target. In testing, conflating such actions may lead to repeated action failures (e.g., the target element not being visible under the current role), wasting time and resources, and reducing coverage. Figure 1 shows each edge annotated with an executable selector (e.g., visible menu text) and condition/guard annotations that are treated as metadata. To address these challenges to PTG-guided testing, we propose LLMVue , an LLM-assisted framework that generates a source-level cross-component PTG from Vue.js source code for MBT. LLMVue follows a three-stage pipeline. Stage I statically extracts candidate edges from router configurations and SFC resources, prioritizing the avoidance of missed true transitions (high recall, i.e., retaining plausible transitions and deferring filtering to later stages). Stage II uses an LLM (GPT-4o ( 35 ) ) to refine and enrich these candidates with executable locators and condition annotations, while preserving recall. Stage III applies deterministic normalization and filtering that remove structural artifacts, filter edges that mix mutually exclusive menu branches (when branch labels are available), and deduplicate redundant selectors. The final PTG is directly used for MBT for GUIs: The testing engine repeatedly selects an outgoing PTG edge from the current route node and executes it using Playwright ( 31 ) , generating test actions. This continues until the action budget is exhausted. Conditions are treated as annotations, for disambiguation and debugging, and actual executability is determined at runtime, using locator visibility and interactability. The current study focuses on systematic navigation and coverage measurement; domain-specific functional assertions are out of scope. We used ten open-source Vue.js projects from GitHub to evaluate LLMVue . The LLMVue testing effectiveness was compared with

Read the complete text