Large Language Models for Automated Web-Form-Test Generation: An Empirical Study
Tao Li, Chenhui Cui, Rubing Huang, Dave Towey, Lei Ma

TL;DR
This study evaluates 11 large language models for automated web-form test generation, demonstrating that prompt design and HTML structure extraction significantly influence testing effectiveness, with GPT-4 outperforming others.
Contribution
It provides a comprehensive empirical comparison of LLMs for web-form testing and introduces HTML-structure-pruning methods to enhance test quality.
Findings
Different LLMs show varying effectiveness in web-form test generation.
Including complete contextual information in prompts improves test success rates.
Parser-processed HTML prompts yield higher success rates than raw or LLM-processed HTML.
Abstract
Testing web forms is an essential activity for ensuring the quality of web applications. It typically involves evaluating the interactions between users and forms. Automated test-case generation remains a challenge for web-form testing: Due to the complex, multi-level structure of web pages, it can be difficult to automatically capture their inherent contextual information for inclusion in the tests. Large Language Models (LLMs) have shown great potential for contextual text generation. This motivated us to explore how they could generate automated tests for web forms, making use of the contextual information within form elements. To the best of our knowledge, no comparative study examining different LLMs has yet been reported for web-form-test generation. To address this gap in the literature, we conducted a comprehensive empirical study investigating the effectiveness of 11 LLMs on…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software Engineering Research
