Generating tests was never the hard part.
Any competent tester can write fifty test cases for a login screen before lunch. The hard part is knowing which five matter, being sure each one checks the right thing, and keeping all fifty true after the next three releases. AI has made the first part almost free. It hasn’t made the rest go away, and some of the louder claims about it make the rest harder.
Test case generation is the process of producing test cases automatically, or semi-automatically, from a source such as requirements, user stories, a model of the application, existing tests or a set of rules, instead of writing each one by hand. AI has expanded what those sources can be, and how quickly a first draft appears. It hasn’t changed what makes a test case good.
Where Generated Tests Come From
“Test case generation” gets talked about as if it were one thing. It’s really five different approaches, each starting from a different source. Each has a sweet spot, and each has a specific way of going wrong.
Source | How It Works | Good At | Watch Out For |
|---|---|---|---|
Requirements and stories | AI reads specs, user stories and acceptance criteria, and drafts tests for each requirement | Testing what the business actually asked for | Vague or contradictory requirements produce vague tests |
The application itself | AI explores or models the screens and flows, and drafts tests from what it finds | Coverage of apps nobody documented | Tests that check what the app does, not what it should do |
Existing tests | Manual test cases, Gherkin scenarios or old scripts are converted into automated tests | Keeping years of test knowledge | Carrying old gaps and bad habits across |
Rules and techniques | Boundary values, equivalence classes, pairwise combinations or state transitions generate cases systematically | Thorough, predictable coverage of inputs and states | Many cases with no sense of business priority |
Real usage | Tests are drafted from how real users move through the app | Covering the paths people actually take | Missing the rare paths where expensive bugs hide |
The fourth row is the one most guides skip, because it isn’t new. But boundary value analysis, equivalence partitioning, pairwise testing and state transition testing were generating test cases decades before large language models.
They’re still the most reliable way to decide which inputs to test. In my view, the best AI generation applies these techniques, rather than replacing them.

Six Claims About AI Test Generation, Tested
Most of what’s written about AI test generation, including some of what used to be on this page, makes the same handful of claims. Here’s how they hold up in practice.
“AI Writes Your Whole Test Suite for You”
Point AI at your application, and a complete, working suite appears.
What actually appears is a draft. Often a very good draft, produced in minutes rather than days. But drafts reference fields that have been renamed, assume flows that changed last sprint and miss the business rule that only exists in someone’s head.
The risk grows when generation leans entirely on a language model with nothing to check its work against.
Even vendors in this space acknowledge the problem. Keysight, for example, notes that tools relying purely on language models can produce tests that reference UI elements that don’t exist. The useful question isn’t whether AI can write tests. It’s what checks each draft before it joins your suite, and who signs it off.
“More Generated Tests Means Better Coverage”
AI can generate ten times as many tests, so you get ten times the coverage.
Ten near-identical tests for the same happy path are one test, run ten times, maintained ten times. Generation makes volume cheap, which makes it tempting to measure success by count. Measure it by requirements covered, risks covered and distinct behaviours checked instead.
A suite of 200 well-chosen tests beats 2,000 generated ones you can’t explain.
“AI Knows What Correct Looks Like”
AI understands your application, so it knows the expected results.
This is the one that worries me most. Take a simple rule, “orders of £50 or more get free delivery”. Now imagine the application has a bug, and only gives free delivery from £50.01.
A generator that learns from the application will see a £50.00 order charged £4.99 for delivery, and write a test that expects exactly that. The test passes. The bug is now locked in by your own test suite. A generator working from the requirement writes the opposite test, which fails, and the bug is found.
Testers call this the oracle problem. A test is only as good as its source of truth for “correct”. If that source is the code or the current behaviour, AI will faithfully confirm whatever the application already does, bugs included. The same risk applies when the same AI writes both the code and the tests.
Who should decide what “correct” means, when AI is writing both the code and its tests, is the question at the heart of our piece on testing AI-generated code in regulated industries.

“You Don’t Need Good Requirements Any More”
AI can work out what to test without detailed specs.
It can certainly work out something. But the less clear your requirements, the more the AI fills gaps with guesses, and guesses look exactly like facts in a generated test.
There’s a useful twist here, though. When an AI tries to turn a vague requirement into a testable one, the vagueness becomes visible. “The system should respond quickly” can’t become a test until someone decides what “quickly” means. Used well, generation works as a quality check on your specs, sending ambiguities back to the business analyst before they turn into defects.
Writing stories and acceptance criteria that are easy to test in the first place is covered in our guide to user stories in testing.
“Generation is Where the Savings Are”
Faster test creation is the big win.
Faster creation is nice. But in most enterprise teams, creation was never where the hours went. Maintenance was. Every test you generate today is a test someone has to keep true through every release, every UI change and every changed requirement.
So the better question to ask any generation tool is what happens on day 90. When a requirement changes, which tests know about it? When the source document is updated, does anything flag the tests that depended on the old version?
A tool that generates quickly but can’t tell you what its tests are out of date with has moved your bottleneck, not removed it.
“AI Replaces Test Design”
Testers no longer need to design tests, because AI does it.
AI changes where test design happens, not whether it’s needed. Instead of writing every case, the tester decides what the AI should focus on, sets the rules it must follow, reviews what it drafts and adds the cases only domain knowledge would produce. That’s still test design, arguably at a higher level. Teams that treat generation as a replacement for thinking tend to get suites that are large, fast and quietly wrong.
The principles behind choosing what to test, which matter more with AI rather than less, are set out in our guide to test case design.
How to Review an AI-Generated Test
If generation is cheap and review is where the value is, review deserves a method. These are the questions I’d ask of every generated test before it joins a suite. Most take seconds once they’re a habit.
Where did this test come from? You should be able to point to the requirement, story or document it’s based on. If you can’t, you can’t judge whether it’s right.
Is the expected result from the requirement, or from the app? This is the oracle check from claim three, and the most important question on the list.
Would it fail if the feature broke? A test that passes whatever happens isn’t a test. Imagine the bug, and ask whether this test would catch it.
Does it check the outcome, or just the clicks? “Click Pay” isn’t a test. “Click Pay, then the order exists with the right total” is.
Are the boundaries there? Look for the edges of every limit in the requirement, like exactly £50.00, exactly 10 items or the last day of the month.
Are the “no” paths there? Declined cards, expired sessions, missing permissions and duplicate submissions.
Is it a duplicate? Generated suites love repeating the happy path with slightly different wording.
Does it reuse what you already have? A new sign-in sequence in every test means fifty things to fix later. It should use your existing shared steps.
Does it follow your conventions? Naming, data, environments and the business rules your team always applies.
Who approved it? Someone should be able to answer this for every test in the suite, months from now.
Keeping a person meaningfully in charge of these approvals, rather than clicking “accept” on autopilot, is the design challenge behind human-in-the-loop AI testing.
Where Test Case Generation Fits Best
Generation earns its keep fastest in a few situations. Large regression scopes that have never been fully automated are the obvious one.
So are teams with plenty of domain knowledge and too few automation engineers, where business analysts and testers can review drafts they could never have scripted. Packaged business systems with documented processes, and migrations where old manual test packs need to become automated suites, also fit well.
It fits less well where there’s nothing reliable to generate from. That includes products with no written requirements and a fast-moving UI, or areas where the rules live only in one person’s head. There, the first job is getting the knowledge written down. Generation can help with that, by showing you exactly where the gaps are.
For the wider picture of how generation, execution and maintenance fit together when agents are involved, see our guide to autonomous test generation.
How Virtuoso QA Approaches Test Case Generation
Virtuoso QA’s agentic capability, Touchstone, is built around the problems in this guide rather than around speed alone. It starts from your sources of truth, keeps a person in charge at every step and treats maintenance as part of generation, not an afterthought.
It Starts From What You Already Know
Your specs, stories and process documents go into a knowledge base, at organisation or project level. Directives capture the rules your team always applies, such as naming conventions, business rules and output templates, so every generated asset follows them.
When generating, Touchstone retrieves the most relevant sources for the task, and you can pin specific documents when you want to control exactly what it uses.
Requirements Come First, With Their Sources
Rather than jumping straight to tests, Touchstone first drafts testable requirements, each traced back to the source it came from and given a risk level. You refine them, one at a time, in groups or all together. This is the step that answers the oracle problem, because every test that follows is anchored to a requirement, not to whatever the application happens to do today.
Journeys Reuse What You’ve Built
Requirements are then shaped into journey structures, with scaffolded steps and generated data scenarios. Existing goals, data tables and environments are reused rather than duplicated.
Autopilot then builds the steps in a real browser, with its reasoning visible as it works. A failed validation run during authoring is expected, because it shows where a journey needs adjusting before anyone relies on it.
People Approve, and AI Never Edits Published Tests on Its Own
Approving or rejecting a proposal is always a person’s action, never something the AI does for itself. Once published, journeys run on Virtuoso QA’s deterministic engine in CI, unchanged by the AI that helped write them.
Day 90 is Designed In
Sources are versioned, and each requirement records the version it was derived from. Touchstone’s change workflow, which is being rolled out, flags requirements and journeys affected when a source changes and proposes updates as reviewable changes, rather than updating anything silently.
Alongside Touchstone, testers writing journeys by hand get next-step suggestions from StepIQ, and existing Gherkin scenarios can be turned into journey skeletons to complete.
Related Reads
Test Case Generation FAQs
Can AI generate test cases accurately?
Can AI replace human testers?
What skills do QA teams need for AI test generation?
How does AI handle complex business logic?
What maintenance do AI generated tests require?
How quickly can teams adopt AI test generation?
Written by

Adwitiya Pandey
Senior Test Evangelist
Adwitiya works directly with QA teams adopting the platform and turns what he sees into practical guides on test design, regression strategy and keeping coverage honest.

















