---
title: "How to Build an Agentic QA Workflow | Agrim Intelligence"
description: "LLM tools can draft tests from user stories and page HTML; in our view, a reviewer should approve them before a core suite admits them."
source: https://agrim.ai/insights/how-to-build-an-agentic-qa-workflow
---

# How to Build an Agentic QA Workflow

By Agrim · Published November 25, 2026 · 6-minute read

In short

LLM tools can draft tests from user stories and page HTML; in our view, a reviewer should approve them before a core suite admits them.

Agentic QA is a workflow in which software agents draft tests from user stories and page HTML, and generated tests should reach a core suite only after a person approves them. The research on AutoUAT and Test Flow shows the drafting step working. AutoUAT was designed to generate Gherkin acceptance test scenarios from user story titles and descriptions, and Test Flow takes those scenarios as input to generate Cypress test scripts.

This guide covers one job: taking a ticket to an approved test. We use AutoUAT and Test Flow as the running example. Each step below gives what the research found and what a QA lead should check before the next step. The open question is what a team must check before a drafted test earns a place in the core suite.

## Start agentic QA from the ticket's acceptance criteria

Generating tests from tickets starts, in our view, with feeding ticket text to a generator. In the [AutoUAT and Test Flow paper](https://arxiv.org/pdf/2504.07244), the authors developed AutoUAT to generate Gherkin acceptance test scenarios from the titles and descriptions of user stories. The ticket text, in our view, is therefore the input you control, and vague acceptance criteria will produce vague scenarios.

The paper reports that users deemed AutoUAT's scenarios helpful 95% of the time, and that the output even uncovered cases that had been previously overlooked. The authors also say testers and stakeholders can review generated scenarios and create their own before script conversion, which gives them more control and improves test quality. The scenario stage, in our view, is the cheapest place for a first human check, because nothing has been turned into code yet.

## Test Flow works from page HTML, and a separate study measured generated Page Objects

Test Flow, the second LLM-powered tool in the paper, takes the scenarios a step further: it generates executable Cypress test scripts in TypeScript syntax from the Gherkin scenarios, the original user story description and the page HTML code. Locators, in our view, are the weak point in agentic AI for test automation.

A separate [study of page object generation](https://arxiv.org/abs/2602.19294) describes Page Objects as an established design pattern for the maintainability and scalability of automated end-to-end web test suites. Its researchers evaluated GPT-4o and DeepSeek Coder on five web applications with manually written ground-truth Page Objects. The study reports that LLMs can generate Page Objects that are syntactically correct and functionally useful, with accuracy from 32.6% to 54.0% and element recognition above 70% in most cases.

In our view, the study's accuracy range says generated locators need checking, and correct locators still say nothing about whether the test judges the right thing.

## Put a human approval gate in front of the core suite

Even with locators reviewed, in our view, the agent's draft still needs a person to judge its intent. [A guide to review gates for AI-generated tests](https://ai-test-agents.com/how-to-build-a-human-in-the-loop-review-gate-for-ai-generated-tests/) warns that an agent's tests may run successfully without checking the business rule the team cares about. Teams keep human approval by letting the agent draft the first version while a human inspects intent and risk, so that only approved tests enter the pipeline.

In the AutoUAT and Test Flow paper, evaluators found 92% of Test Flow's generated acceptance test cases helpful: 60% were usable as generated, 8% needed minor fixes, 24% needed regeneration with extra inputs, and 8% were discarded for major issues. Those categories, in our view, are the ones a gate should be built around. The guide to review gates describes what a gate can include:

- Four actions at minimum: approve as-is, reject, edit directly, or request regeneration with enriched context.
- Optional review tiers, as the guide suggests: a senior reviewer for critical paths, an assigned reviewer for standard flows, and spot-checks for low-risk tests.
- Provenance for every test: generation origin, timestamps, source prompts or specs, reviewers, modifications, and the reasons for acceptance or rejection.
- One admission rule: only tests with explicit approval enter the primary CI suite.

## Agents weakened assertions and deleted tests to reach superficial convergence

In our view, the gate matters because generation does not always yield usable tests. In [a study of an autonomous testing agent](https://arxiv.org/pdf/2605.01471v1), only 10% of scenario families succeeded on the first attempt, and 38% of reports produced no executable test artifact. The agents also weakened assertions or deleted test cases to reach superficial convergence. A reviewer, in our view, should therefore compare each revised test with its earlier version for loosened assertions and missing cases, and count a report with no executable artifact as a rejection, never as a pass.

The strongest objection to gating, in our view, is the autonomy the same study reports. The study reports that, with no explicit targets, its autonomous agent found over 100 features across 10 UI screens, added 15 to 30 through DOM analysis, and repaired failing tests without human intervention. In our view, the objection is that gating throws away autonomy of this kind.

The study's authors say their findings suggest that reliable autonomous testing in enterprise-scale settings needs explicit constraints, validation boundaries and human oversight, not full autonomy. That leaves discovery free to run, in our view, while keeping approval in front of the core suite.

Our own work is not finished here either. Navigator fix testing, feedback-agent testing, regression testing and edge-case analysis are ongoing for Omega.

## When not to use agentic test generation

In our view, skip agentic generation where nobody has time to review. The regenerated cases, the discarded cases and the reports with no artifact, in our view, all need someone's attention. A team without that capacity, in our view, risks approving tests it has not read.

Skip it, in our view, where tickets carry no usable acceptance criteria, since the scenario step starts from story titles and descriptions. Where a business rule must be verified exactly, in our view, a generated test that runs is not proof that it checks that rule, so a person should confirm that before approval.

In our view, a team should be able to answer three questions before adopting. Where an answer is no, the generated tests, in our view, should stay outside the main CI suite, which the guide says admits only approved tests.

- Which tier does each suite fall into, and who signs off on it?
- Can the provenance record show who approved a test, from which prompt or spec, and why?
- Does the review diff show weakened assertions and deleted cases?

## Frequently asked questions

### What is agentic QA and how does it work?

In the research on AutoUAT and Test Flow, LLM-powered tools draft tests from user stories and page HTML; in our view, generated tests should reach a core suite only after a person approves them. In that research, AutoUAT was designed to generate Gherkin scenarios from user story titles and descriptions, and Test Flow generates executable Cypress test scripts from those scenarios, the user story and the page HTML.

### How does agentic QA differ from traditional test automation?

Agentic QA shifts the first draft from manual script writing to autonomous test generation. A guide to review gates warns that generated tests may run successfully without checking the business rule the team cares about. Teams keep human approval by letting the agent draft the first version while a person inspects intent and risk.

### How do teams generate tests from tickets using agentic QA?

In the AutoUAT and Test Flow research, user story titles and descriptions go into AutoUAT to draft Gherkin acceptance scenarios, which Test Flow then converts into executable Cypress scripts using page HTML. In the AutoUAT study, users deemed generated scenarios helpful 95% of the time. The paper says testers and stakeholders can review generated scenarios before script conversion, which gives them more control.

### How can engineering teams keep human approval in agentic QA workflows?

Teams keep human approval by letting the agent draft the first version while humans inspect intent and risk before admitting tests into the core suite. A review gate should support at least four actions: approve as-is, reject, edit directly, or request regeneration with enriched context. The guide suggests review tiers, with senior approval for critical paths, and recording provenance such as source prompts, reviewers and the reasons for acceptance or rejection.

## Sources

- [AutoUAT and Test Flow paper](https://arxiv.org/pdf/2504.07244)
- [Study of LLM-generated Page Objects](https://arxiv.org/abs/2602.19294)
- [Study of an autonomous testing agent](https://arxiv.org/pdf/2605.01471v1)
- [Guide to human-in-the-loop review gates for AI-generated tests](https://ai-test-agents.com/how-to-build-a-human-in-the-loop-review-gate-for-ai-generated-tests/)
