Autonomous QA Agent: A Retrieval-Augmented Framework for Reliable Selenium Script Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Author: Vali, Dudekula Kasim
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918478764572672
author Vali, Dudekula Kasim
author_facet Vali, Dudekula Kasim
contents Software testing is critical in the software development lifecycle, yet translating requirements into executable test scripts remains manual and error-prone. While Large Language Models (LLMs) can generate code, they often hallucinate non-existent UI elements. We present the Autonomous QA Agent, a Retrieval-Augmented Generation (RAG) system that grounds Selenium script generation in project-specific documentation and HTML structure. By ingesting diverse formats (Markdown, PDF, HTML) into a vector database, our system retrieves relevant context before generation. Evaluation on 20 e-commerce test scenarios shows our RAG approach achieves 100% (20/20) syntax validity and 90% (18/20, 95% CI: [85%, 95%], p < 0.001) execution success, compared to 30% for standard LLM generation. While our evaluation is limited to a single domain, our method significantly reduces hallucinations by grounding generation in actual DOM structure, demonstrating RAG's potential for automated UI testing.
format Preprint
id arxiv_https___arxiv_org_abs_2601_06034
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Autonomous QA Agent: A Retrieval-Augmented Framework for Reliable Selenium Script Generation
Vali, Dudekula Kasim
Software Engineering
Artificial Intelligence
Machine Learning
68N99
D.2.5
Software testing is critical in the software development lifecycle, yet translating requirements into executable test scripts remains manual and error-prone. While Large Language Models (LLMs) can generate code, they often hallucinate non-existent UI elements. We present the Autonomous QA Agent, a Retrieval-Augmented Generation (RAG) system that grounds Selenium script generation in project-specific documentation and HTML structure. By ingesting diverse formats (Markdown, PDF, HTML) into a vector database, our system retrieves relevant context before generation. Evaluation on 20 e-commerce test scenarios shows our RAG approach achieves 100% (20/20) syntax validity and 90% (18/20, 95% CI: [85%, 95%], p < 0.001) execution success, compared to 30% for standard LLM generation. While our evaluation is limited to a single domain, our method significantly reduces hallucinations by grounding generation in actual DOM structure, demonstrating RAG's potential for automated UI testing.
title Autonomous QA Agent: A Retrieval-Augmented Framework for Reliable Selenium Script Generation
topic Software Engineering
Artificial Intelligence
Machine Learning
68N99
D.2.5
url https://arxiv.org/abs/2601.06034