Blog
AI Agents for Software Testing: Use Cases and Limits

Rishabh Kumar
Published on

Table of contents
AI agents for software testing take a testing goal, work out the steps, act on the application or the test suite and report what happened. They are useful across most of the QA cycle. They can turn documents into requirements, design and build tests, sort failed runs and propose repairs when the application changes.
They are poor judges of their own work, though. An agent that writes a test and then decides whether that test is right has checked nothing. So before you adopt one, I think the most useful thing to settle is which decisions the agent may take alone, which ones need a person, and what record each decision should leave behind.
What is an AI Agent for Software Testing?
An AI agent for software testing is a system that receives a testing goal, gathers the context it needs, plans a sequence of actions, carries them out against the application or the test assets, and checks the outcome, without a person scripting each step.
The word "agent" now appears on almost every testing tool, so it helps to draw a line. Smart locators, step suggestions and a chat box that writes a test on request are AI assistance. They act when asked, on one step at a time, and a person makes every decision. An agent plans across several steps and picks its next action based on what it just observed. A tool that suggests the next line of your test is assisting you. A tool that reads a specification, decides which journeys need to exist and then builds them is acting as an agent.
💡See how AI QA agents and test automation differ when it comes to who decides each step.
The line matters because it moves the risk. With assistance, the AI speeds up the typing and you still own every choice. With an agent, the AI owns some of the choices. Which ones it owns is the real design question, and it gets far less attention than it deserves.
💡For a wider view of where AI sits in QA, from test generation to failure analysis, read our overview of AI testing.
How AI Testing Agents Work
Strip away the product names and most testing agents run the same loop. They take in context, plan, act, check what happened and hand something back. Each stage has its own weak point.

Context
An agent is only as specific as the material it works from. That means requirements, user stories, tickets, process documents, the application itself and your existing test library. Give it nothing about your business and you get generic tests that check a page loads.
Many agents use retrieval. They pull the most relevant passages from a document store for each task instead of reading everything every time. This keeps cost and response time sensible.
It also means a 400-page specification is not being read end to end, so very large documents are often better split before you load them.
Planning
A language model decides what to do. Which requirement needs coverage? Which journey proves it? Which data values matter? Planning is where an agent saves the most human time, and also where a confident mistake is easiest to miss.
Action
The agent drives a browser, writes or edits test steps, calls an API or updates a test asset. Some agents act directly on your suite. Others produce a draft that waits for review.
Checking and Handing Back
The agent runs what it built and compares the outcome with what it expected. Then it returns something. That might be a new test, a repair, a failure classification or a list of affected tests. Whether that output lands as a proposal or as a live change is the single biggest difference between agent tools.
There is one architectural question that separates these tools more than any feature list. Is the model still reasoning when the test runs? If it is, the same test against the same build can behave differently from one run to the next, because the model may choose differently each time.
If the agent builds the test and a deterministic engine runs it, the verdict is repeatable. The agent's judgement stays in authoring and analysis, where a person can review it.
For anything that gates a release, I'd pick the second design every time. A test you can't repeat makes weak evidence.
💡Read about AI test execution agents for when an agent should decide steps during a run and when a repeatable engine should.
AI Agents for Software Testing Use Cases
The use cases below follow the order they tend to appear in a release cycle. For each one, it helps to separate the work an agent does well from the judgement that still belongs to a person.
Turning Documents Into Testable Requirements
An agent reads specifications, user stories, process notes and policy documents, then pulls out statements a test can prove. The gain is speed, plus coverage of documents nobody had time to read properly.
The risk is ambiguity. A sentence like "large orders need extra approval" can be filled in with an assumption that looks reasonable and is wrong. Good agents cite the source passage behind each requirement and flag what they could not resolve. The citation is what makes review quick. Without it, the reviewer has to go back and reread the source.
The person decides whether each requirement says what the business meant.
Designing Journeys From Approved Requirements
Next, the agent proposes how to test each approved requirement. It sets out the steps, the checkpoints, the data scenarios and the existing reusable components it plans to call. A login flow or a navigation sequence should come from your library, not be written again.
This is where a weak agent quietly creates a maintenance problem. If it writes fresh steps for things that already exist, your suite grows in duplicates and every UI change has to be fixed in several places. The person decides whether the proposed journey really proves the requirement, and whether reuse was taken where it should have been.
💡Find out more about reusable test cases and how shared steps keep one UI change from breaking dozens of tests.
Building Tests in a Real Browser
Here the agent drives a browser, writes the steps, adds assertions and runs a validation pass. This removes most of the hand-scripting. A failed first validation run is normal. It shows where the generated test needs a manual adjustment.
Agents still struggle with some interfaces. Iframes, shadow DOM and heavily dynamic components cause more trouble than standard, accessible markup. The failure mode worth watching for is a weak assertion. A test that checks a confirmation page appeared will pass even when the order total on that page is wrong. The person reviews the assertions, because that is where a test either proves a business outcome or only proves the page loaded.
💡Take a look at AI browser agents for testing, including how they read a page and where they fit in a release.
Triage of Failed Runs
After a run, an agent can sort failures into causes. Was it an application defect, a brittle test, an environment problem, bad test data or a configuration change? This saves hours of reading logs. It also stops a team from treating every red result as a bug, or worse, getting used to red results and ignoring them.
The dangerous error here is a real defect classified as test brittleness. If that classification triggers an automatic repair, the bug becomes a passing test. The person confirms any defect before it is logged and reviews anything marked brittle that touches a business rule.
💡Explore how AI root cause analysis narrows a failed run down to its most likely cause.
Repairing Tests When the Application Changes
Repairs come in two kinds, and they deserve different treatment. A locator repair fixes how a test finds an element that moved or was renamed. The test still checks the same thing. A logic repair changes what the test does, perhaps because a new field was added or a flow gained a step. That changes what is being tested.
Locator healing is the more mature of the two. Well-built tools heal only when they are confident and fail the test when they are not. Logic repairs should arrive as a proposal with a visible diff and a link to the step that failed. A repair that applies itself without review can turn a genuine regression into a green run, and nobody finds out until production.
💡Read how self-healing regression tests handle UI changes without hiding real failures.
Keeping Tests in Step With Changing Requirements
When a specification is revised, an agent can work out which requirements changed and which tests were built on them. It then flags those tests and proposes updates. Stale tests are a quiet risk. They keep passing against a rule the business has already replaced, and the suite looks healthy while it checks the wrong thing.
The person accepts or rejects each update, ideally with the changed clause shown beside the proposed change.
💡Take a look at how a requirements traceability matrix links each requirement to the tests that cover it.
Generating Test Data Scenarios
Given a rule, an agent can propose the data variations worth testing. These include boundary values, invalid inputs and combinations of user roles. It is fast and usually thorough.
The catch is data that looks realistic but breaks a constraint the agent never saw, such as a tax code that does not exist or an account type your system rejects. Generated data should also never be seeded from production personal data, which keeps you clear of a whole category of UK GDPR and GDPR questions. The person checks that the scenarios respect business constraints.
💡Explore the main test data generation approaches, from synthetic records to rule-based variations, before you choose one for agents.
Exploratory Testing and Coverage Discovery
Some agents explore an application on their own, clicking through screens and noting paths no existing test covers. This is good for finding coverage gaps on new features. It is weak at deciding what is correct, because an agent exploring without requirements has no reference for expected behaviour. Treat its findings as leads for a person to assess, not as defects.
Choosing Which Tests to Run
Selecting tests based on what changed in a build is one of the more promising uses, and one of the less mature. It needs reliable data about what each change touched and how areas of the application have failed before. Without that history, risk-based selection is a guess with a confident label on it.
💡Browse what AI agents in regression testing can take on, from choosing what runs to keeping regression packs current.
A Worked Example: One Approval Rule Through the Loop
This scenario is illustrative

It follows one rule through an agentic workflow to show where the agent acts and where a person decides. The application is a procurement portal, and the rule in the specification reads "Purchase orders above £10,000 require a second approver."
The agent extracts a requirement from the specification and cites the section it came from. It also flags a question. Does an order of exactly £10,000 need a second approver? The specification says "above", but the finance team may mean "at or above". A business analyst confirms it means above. That answer is now recorded against the requirement.
The agent proposes a journey. It reuses the existing login and create-order components from the library and suggests four data scenarios. These are £9,999.99, £10,000.00, £10,000.01 and an order of £15,000 raised by a user with no approver assigned. The QA lead accepts the structure.
💡For a step-by-step look at choosing values on either side of a limit, read our guide to boundary value analysis.
The agent builds the journey in a browser and runs a validation pass. One step fails because the submit button sits inside an iframe. A tester adjusts that step and the validation run passes. The journey is approved and joins the regression run in CI, where a deterministic engine executes it.
Two releases later, the run fails. The agent classifies the failure as test brittleness, because the button label changed from "Submit" to "Send for approval". It proposes a repair linked to the exact step. The reviewer can see the label change in the before-and-after screenshots and accepts it.
In the same release, the £10,000.01 order goes through with a single approver. The agent classifies this as an application defect. The reviewer confirms it and logs the bug. This is the moment where a silent repair would have done real damage, because "fixing" the test would have hidden a broken control.
Months later, finance raises the limit to £25,000 and the specification is updated. The agent flags the requirement and the journey built on it, then proposes new boundary values around £25,000. The QA lead reviews the diff against the changed clause and approves it.
Look at what exists at the end. There is a requirement with a version history and a link to the clause behind it. There is a journey that records which version of that requirement it tests. There is a run history, plus a record of who accepted each repair and who confirmed the defect. If an auditor or a release manager asks what proved the approval control before a release, the answer already exists. Most of this example is mechanical work an agent can do. The judgement calls, in steps 1, 2, 4, 5 and 6, stayed with people.
Where AI Agents Fall Short in Testing
Agents produce plausible output from ambiguous input. If the specification is vague, the requirement will be vague in a convincing way. Citations make this easier to catch in review. They do not fix the source document.
Then there is the oracle problem. A test needs an independent reference for what correct looks like. When the same system writes the test, runs it and judges the result, nothing independent has checked anything. Requirements approved by a person, and assertions a person has reviewed, are what break that circle.
Researchers have started to name the human side of this. A 2026 paper on overreliance on test agents treats it as a supervisory control problem. As agents generate tests, explain them and summarise results, the tester becomes a supervisor, and leaning on the agent too heavily can wear away the evidence that confidence should rest on. A systematic review of AI-powered testing tools reached a related conclusion. These tools lack deep domain understanding and can produce tests with little business relevance, so their output needs human review.
There are practical limits too. Complex interfaces still trip agents up. Every agent task consumes model calls, so usage needs budgets and caps. Model availability also varies by cloud region, which matters if your test data cannot leave a particular jurisdiction. And if the model sits in the execution path, the run itself stops being fully repeatable.
How Much Autonomy Should a Testing Agent Have?
I find it easier to answer this per decision than per tool. Three questions do most of the work. Can the decision be reversed cleanly? Does it change what is being tested? Can it be checked against something the agent did not produce?
If the answers are yes, no and yes, the decision is a reasonable candidate to run without approval, as long as it is logged. If a decision changes what is tested, a person should approve it.
Agent decision | Changes what is tested? | Sensible default |
|---|---|---|
Heal a locator when confidence is high | No | Automatic, logged, test fails when confidence is low |
Retry a run after an environment timeout | No | Automatic, logged |
Classify a failure as test brittleness | Possibly, if it triggers a repair | Review before any repair is applied |
Change an assertion or expected value | Yes | Approval by a named person |
Add, update or retire a journey | Yes | Approval by a named person |
Update tests after a specification change | Yes | Approval, with the changed source shown beside the diff |
Declare a release ready | Not a test change, but the highest-impact call | A person decides, using the agent's evidence |
Regulated firms are already drawing this line. In the Bank of England and FCA's 2026 survey of AI in UK financial services, only around 2% of respondents reported deploying AI agents with broad autonomy. Approval alone is not enough, though. The person approving needs evidence they can actually read, or the approval becomes a rubber stamp. That is why review load matters as much as review rules. If an agent produces more proposals than your team can genuinely assess, the gate stops working.
💡For a checklist of guardrails and audit trails to set before agents touch your suite, read our guide to agentic testing governance.
💡Check out our guide to human-in-the-loop AI testing for a way to size approvals to what your reviewers can realistically handle.
In financial services, the question of who answers for a failure is also personal. A senior manager can't point to an agent.
Dig deeper into SM&CR and AI-written code to see where accountability lands when AI writes part of a system.
How to Evaluate AI Testing Agents
Demos are built on curated applications, so ask questions that expose how the agent behaves on yours. These are the ones I'd bring to any evaluation.
Where does each generated test come from? You should be able to trace it back to a requirement and the source passage behind that requirement.
What needs approval, and can approval be switched off? A gate that is a setting tends to get switched off under deadline pressure.
Is the model involved when the test runs? Ask whether the same test against the same build always returns the same result.
What happens when a requirement changes? Find out whether the tool flags the affected tests or simply regenerates everything for you to review again.
What does a failed run tell you? Look for a classified cause, the evidence behind it and a link to the exact step.
What record does each decision leave? Someone outside the QA team should be able to reconstruct what was tested, why, and who approved it.
How is usage measured and capped? Agentic work consumes model calls, so budgets and limits need to exist before you scale.
Does it work on your hardest screen? Run the trial on the part of your application that breaks your current automation most often.
💡Compare how current options answer these questions in our roundup of the best agentic AI testing tools.
How to Start Using AI Agents in Your Testing
Start with one business process that is well documented and already causes testing pain. An order-to-invoice flow or a claims workflow works better than a login page, because it has rules worth proving and enough steps to show whether the agent saves real effort.
Work through a rollout plan, from pilot scope to scaling, with our walkthrough of how to implement agentic testing.
Agree the approval rules before the pilot begins, using the questions above. Then measure what the agent produces. Track how many proposals are accepted unchanged, how many are rewritten and how long each review takes. Track the time from an approved requirement to a first passing run. Count the defects the agent's tests caught, and look hard at any it missed. A high acceptance rate with long review times usually means reviewers are being careful. A high acceptance rate with very short reviews can mean the opposite.
💡Head to our breakdown of agentic testing metrics for measures built for suites that agents help write.
Expand to the next process once the numbers hold up and your reviewers trust what they are approving. The order matters. Trust that comes from a well-run pilot holds up much longer than trust that comes from a demo.
How Virtuoso QA Approaches AI Agents for Testing
Virtuoso QA built its agentic capability, Touchstone, around release evidence. Every run is tied to the requirement it proves, the result and the person who approved it. Virtuoso QA defines release evidence as "the standard of proof for software releases, showing what was tested, why, and who decided."
Requirements With a Source Behind Them
Touchstone works from your own specifications, tickets and process documents, across more than thirty file formats. Each requirement it drafts cites the passage it came from, and revisions are routed as new, updated or unchanged so a document update produces targeted work.
Agents That Propose and People Who Approve
Requirements, journey structures and repairs all arrive as proposals. Your team accepts, edits or rejects each one, and approval is built into the system, not offered as an option. Journey proposals reference your existing library checkpoints, data tables and environments before anything new is created.
AI Builds, a Deterministic Engine Runs
Autopilot builds approved journeys in a real browser and shows its reasoning as it works. Approved journeys are written in plain English and run on Virtuoso QA's deterministic engine, so the agents are not in the execution path. Self-healing proposes element repairs for review and fails the step when it cannot heal with confidence.
Change Arrives as a Proposal
When a source document is revised, the requirements and journeys built on it are flagged, with updates proposed as diffs. Every accepted change is versioned, and a rollback goes through review like any other change.
This works on any browser-based application. That includes Dynamics 365, Salesforce, ServiceNow, SAP, Oracle, Workday and Guidewire, as well as custom web applications and ISV products.
💡See how Touchstone turns your specifications into approved, source-cited tests with agentic AI software testing from Virtuoso QA.
Related Reads
Frequently Asked Questions
What is the difference between an AI testing agent and AI-assisted testing?
Can AI agents replace QA engineers?
Are AI testing agents safe to use in regulated industries?
How do AI agents handle tests that break after a UI change?
What should I measure when piloting an AI testing agent?
How does Virtuoso QA use AI agents in software testing?
Written by
Rishabh Kumar
AI Testing & Quality Engineering Contributor
Rishabh leads business development and marketing at Virtuoso QA. He writes about AI-powered test automation, end-to-end testing, self-healing tests, and quality engineering, exploring how these capabilities can improve test coverage, reduce test maintenance, and support reliable software releases.









