International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 13 Issue: 04 | Apr 2026
www.irjet.net
p-ISSN: 2395-0072
Agentic AI-Based Automated Test Case Generation and Execution Srushti Haware1, Sakshi Hiremath2, Sharayu Sanap3, Janhavi Inamdar4, Prof. Shweta Shah5 Dept. of Computer Engineering, Pune Institute of Computer Technology, Pune, India ---------------------------------------------------------------------***--------------------------------------------------------------------Abstract - Software systems today are growing faster and generation has also seen promising results from LLM-based getting more complex than traditional testing workflows can approaches [7]. handle. Converting requirement documents and UI designs The problem is that using an LLM as a standalone step does into executable test cases still demands heavy manual effort, not actually solve testing automation—it just moves the and the resulting coverage is often incomplete. While LLMs bottleneck. Without any coordination between stages, have opened new possibilities for automating parts of this generated outputs pile up redundancies, contradict each work, most systems built on them treat test generation as a other, and often cannot run without manual cleanup. one-shot problem—fire a prompt, get scenarios, done. There Combining a requirements PDF with UI screenshots in the is no coordination across stages, no real handling of same analysis pass is rarely supported. And if a test fails multimodal inputs, and no mechanism for the system to during execution, there is nothing to close that loop: the respond when a generated test actually fails. This paper failure sits in a report and a human has to diagnose it. describes an agentic AI framework built to address these Agentic AI addresses these gaps by structuring the work gaps. The system chains four specialized agents into a across multiple coordinated agents, each with a wellpipeline: one handles multimodal input processing, one defined role [8], [9]. Rather than one LLM doing everything, generates Gherkin-format test scenarios, one converts those the agents divide responsibilities—one parses inputs, scenarios into runnable Playwright/Pytest scripts, and a another reasons about what scenarios are needed, a third human-in-the-loop validation layer sits between generation writes the scripts. This decomposition makes it much easier and execution to catch problems early. When tests fail or to introduce feedback at each handoff [10]–[12], and in the reviewers reject scenarios, the system regenerates rather testing domain specifically, it allows the pipeline to than moving on. Implemented using a hybrid local-cloud validate, execute, and refine generated tests rather than inference setup and evaluated on an employee shift just producing them. management application, results showed meaningful gains The contributions of this work are as follows: in test coverage and a high proportion of directly executable • A multi-agent pipeline for automated software testing, scripts, with low manual effort overall. covering input processing, scenario reasoning, script Key Words: Agentic AI, Automated Software Testing, Test generation, and execution within a single coordinated Case Generation, Large Language Models, Multimodal workflow. Learning, Gherkin, Test Automation, Playwright, Human• A multimodal input processing approach that jointly in-the-Loop, Software Testing Framework handles requirement documents and UI screenshots rather than treating them separately. 1. INTRODUCTION • A traceable transformation path from natural language Testing is one of those phases in software development that requirements through Gherkin scenarios to executable everyone agrees is critical, yet it consistently receives less Python scripts, with identifiers linking each artifact attention than it deserves—partly because it is tedious, and back to its origin. partly because automating it well is genuinely hard. As • A human-in-the-loop validation layer with a feedback systems grow larger and release cycles compress, manual mechanism that triggers regeneration of rejected or testing becomes a bottleneck. Rule-based automation failed test cases. helps, but it requires significant upfront effort and tends to • An evaluation on a real application comparing results break when requirements change. The result is incomplete against manual testing and single-step LLM generation coverage, late-stage bugs, and expensive rework. baselines. Early AI approaches to this problem applied machine learning to generate test cases or predict defect-prone code 2. LITERATURE SURVEY [1]–[4]. These methods worked reasonably well on structured inputs but struggled with unstructured Research on AI-assisted software testing has a reasonably requirements or dynamic interfaces. The arrival of Large long history at this point. Early work applied supervised Language Models changed what was possible—LLMs can learning to fault prediction and test case prioritization. read natural language specifications and generate plausible Results were promising, but these methods depended test scenarios without task-specific training [5]. Liu et al., heavily on structured and labeled input data [1]–[4]— for instance, showed that GPT-based models could perform which meant they struggled the moment requirements zero-shot GUI testing on mobile apps, handling interactions were expressed informally or UIs changed without that previously required human intuition [6]. Unit test warning. © 2026, IRJET
|
Impact Factor value: 8.315
|
ISO 9001:2008 Certified Journal
|
Page 3813