TestWatchLog inStart free

Where AI test generation fails: every miss, explained

A teardown of every trial in our latest eval run that didn’t end well: why each one failed, what TestWatch showed, what to do about it, and the walls where stopping without a test was the right answer.

By Vasyl Harastei. . 7-minute read.

A success rate tells you how often an AI test generator works. The failures behind it tell you where it doesn’t, and that is what you need to know before you trust it with your own app.

Our eval run on 18 October 2026 had 87 trials: 29 requests on two fixture apps, each tried three times. 82 ended well, 94% (95% interval 87–98%). This post goes through the five that didn’t, one by one: why each failed, what you would see in TestWatch, and what you would do about it. Then the 12 trials on flows that can’t run as asked, which were supposed to stop without a test, and did. Every case and every trial is on How we measure TestWatch.

What counts as a miss

Each trial ends as one of five outcomes. A good outcome isn’t always a test. Our definition: “A correct test, or a correct diagnosis: a bug flagged, or a clear reason the flow can’t be tested as asked.” When a flow can’t be tested as asked, writing a test anyway is the mistake.

The other four are misses, and they don’t cost the same:

  • False green

    The test passed when it should have failed. This is why you review each test and every fix. It ships as a ready test that passes, at most with a note that a check may be missing. One in this run.

  • Brittle

    The test caught the bugs but broke on a harmless change, or passed only sometimes. It ships, then fails on a harmless change or only some of the time. None in this run.

  • Generation failed

    No usable test came out of the generation. You see a reason, or a draft held for review, and regenerate or review it. Four in this run.

  • False blocker

    Generation stopped on a blocker that wasn’t real, or skipped the flow. You see a reason that isn’t true. None in this run.

Every miss in the run

Every trial of the eval run that did not end well, with the steps it used and the step budget of each attempt
RequestOutcomeStepsBudget per attemptTimeWhy
Empty shipping form is rejectedError paths, trial 1Generation failed5601 minThe AI provider was at capacity, so the generation stopped with no test.
Buy something (one-line request)One-line requests, trial 1Generation failed40404 min 9 sHit the step limit before finishing.
Place an order while checkout is brokenApp broken during generation, trial 3Generation failed70703 min 29 sHit the step limit before flagging the broken order step.
Check the order total while it is wrongApp broken during generation, trial 2False green1196014 min 33 sShipped a test that passed on the broken app (let the wrong total through).
Check the order total while it is wrongApp broken during generation, trial 3Generation failed60605 min 16 sHit the step limit before flagging the wrong total.
The five of 87 trials that didn’t end well in the eval run on 18 October 2026. “Steps” counts every attempt of a generation, a repair included; the budget is what each attempt was given for its request.
Three of the four failed generations ran out of steps, and the other stopped because the AI provider was busy. One trial shipped a test that passed on a broken app.

The misses sit in three of the nine kinds of case: error paths (5 of 6 ended well), one-line requests (5 of 6 ended well), and app broken during generation (3 of 6 ended well). Every trial in the other kinds did: everyday flows, poor markup + slow app, file upload/download, email flows, unique test data, and can't-run environments.

A short request gets a short step budget

A generation works in steps. In each one the agent looks at the page, acts on it or runs the test, then decides what to do next. The number of steps an attempt gets is sized from the request: 10 for each action TestWatch can count in it, never fewer than 40 by default and never more than 120. When the budget runs out before the agent has handed in a test TestWatch can keep, the generation ends with this line:

This flow was too long to finish in one go — try splitting it into smaller tests.

Every trial in this run that ran out of steps used exactly its budget: “Buy something (one-line request)” (40), “Place an order while checkout is broken” (70), and “Check the order total while it is wrong” (60).

The clearest case is a one-line request. “Buy something (one-line request)” asked, in full: “Make sure a customer can buy something.” That is a whole checkout in seven words, and it got the floor, 40 steps. The written-out checkout on the same app, “Checkout with two items”, describes the flow action by action and got 100. Its three correct tests used 64, 66, and 33 steps. The one-line request ran out of steps in one of its three trials, at 40. Two trials ended well, using 34 and 28 steps.

A one-line request for a short flow can be fine. On the support desk, “Log a new ticket (one-line request)” also got 40 steps, and all three trials ended well, using 24, 18, and 18.

The eval hands each request to the agent as written, so a one-line request reaches it as one line. In the dashboard, a request first comes back as a numbered list of steps, the plan the agent gets, and the budget is sized from that list. Read it before you press Generate: if it is shorter than the flow, choose Edit request and write each action out.

When the app is already broken

Two cases give the agent an app that is broken while the test is being written. No correct test exists there: a test that passes has just declared the bug correct behaviour. The right outcome is to stop and flag the bug, with no test. Three of the six trials did.

Two ran out of steps before flagging it and handed in no test, which is the safe way to fail here. Each ended with the same out-of-steps line a long flow gets, so on a short flow, that line is also a reason to check the app by hand.

In “Check the order total while it is wrong”, trial 2: shipped a test that passed on the broken app (let the wrong total through). The test checked only that the total looked like a price. The goal check, an AI check that reads the request against the finished test, flagged that the sum might not be checked, but it wasn’t sure enough to hold the test back, so the test shipped ready, with a note. That trial is explained in why AI-written tests pass when they shouldn’t, and the bugs we plant in the other cases are in do AI-generated tests catch bugs?

Six trials are too few for a rate. They are the hardest cases in the eval, and the ones to watch when your own app is already wrong.

A busy AI provider

In “Empty shipping form is rejected”, trial 1, the AI gateway turned the model call away as rate-limited, its providers at capacity, and the generation stopped after 5 steps and 1 min, with no test. Nothing about the request or the app caused it, and we count it against ourselves anyway: the eval leaves out only trials that never reached the agent (a harness failure, or an error before the first step), and this run left out none.

That generation stopped on the first refusal; nothing retried the call. We changed that after reading this run: TestWatch now retries a generation’s model call that meets a busy provider five times, waiting 2, 4, 8, 16, and 32 seconds between tries, about a minute in all. If the provider is still busy after that, the generation ends with a generic line:

Generation hit an unexpected error — regenerate to try again.

Regenerating a few minutes later is the fix. The other two trials of that case wrote a correct test.

Where stopping is the right answer

Four cases can’t be tested as asked: a bot check blocks the sign-in, the app is down, a 2FA code is needed, and the test account's password is wrong. The right outcome is a clear reason, fast, and no test. All 12 trials ended with the right reason. Each took 15 s to 53 s and 5 to 7 steps of a 40-step budget.

Stopping early is easy to abuse, so the agent can’t just say it is stuck. It reports the wall with a quote, and TestWatch refuses the report unless the quote is text the agent saw on the page. It also refuses a 2FA wall when a code source is set up, and a rejected login until the agent has typed into the page and submitted something. This run had no false blockers.

What you see names the wall and what to fix. For a bot check, a 2FA code and an app that answers with errors:

  • Bot check

    The app blocked automated access (CAPTCHA / WAF). Not a problem with your test.

  • 2FA code

    This login needs an authenticator (TOTP) code — add the TOTP secret to the test account to let us pass it. Codes sent by email are read automatically from the test inbox.

  • App erroring

    The app itself was erroring during generation — retry once it is healthy.

A rejected login says the sign-in failed and links to the app’s test accounts. TestWatch doesn’t get past a bot check; for a test environment, turn the check off there.

What changed between runs

We recount older runs with today’s rules. Our earliest runs (September 2026, 58 trials) had 3% failed generations, 4% false greens and 5% false blockers. This run had 5%, 1% and 0%.

Failed generations went up while the other two came down. The numbers are small, one of this run’s failed generations was the busy provider, and prompts, checks and cases changed in between, so that is a direction, not a cause. If we have to pick, we would rather a generation stop than ship a test that passes on a broken app.

The generator has changed since this run, which used prompt version gen-v26. The next eval run replaces these numbers on /eval.

What to do when a generation fails

Read the reason line first. An out-of-steps line can also mean the app was broken: in this run, two of the three were. Then:

  • Out of steps: if the flow is short, check it by hand. Otherwise write each action as its own step, or split the flow into two tests, then regenerate.
  • The app looks broken: check the flow by hand. If it is broken, fix it first; a test written now could pass on the bug.
  • A wall: fix what it names, such as the test account’s password or its authenticator secret, then regenerate.
  • The AI provider: regenerate in a few minutes.

A failed try is not a verdict on the flow. In this run, 4 of the 29 cases had trials that ended differently from each other. How a generation explores, checks its own test and decides to stop is on the AI Playwright test generator page, and the loop around it on how it works.

What this doesn’t prove

The apps are small, and ours, and we tuned the prompt mostly on one of them. Some kinds of case have only a few trials: 6 with an app broken mid-generation, 6 for one-line requests. That is enough to see a pattern, not to state a rate for it. The walls are fixtures: a bot check we built, not a real bot-check service; a 2FA prompt, not a real identity provider. Step counts depend on the app, so a flow that fits its budget here might not on a slower or busier page. And the run skips the plan of steps that the dashboard shows before you generate, so its one-line requests may start shorter than yours would.

Questions

Why does AI test generation fail?

In our latest eval run (18 October 2026, 87 trials), four generations failed: three ran out of steps, two of them on an app that was already broken; one stopped because the AI provider was busy. Each failed generation ends with a reason line and no test, so you regenerate rather than ship something wrong. Every failure of the run is listed on How we measure TestWatch.

Is a failed generation worse than a wrong test?

No. A failed generation costs you a retry and tells you so. A wrong test, one that passes on a broken app, ships and stays green while the bug is live. That is why we count the two separately and read the false greens first.

What should I do when a generation runs out of steps?

If the flow is short, check it by hand first: a broken app can use up the steps too. Otherwise read the steps it was given, write each action as its own step so the budget is sized for the whole flow, or split a long flow into two tests. Then regenerate.

Try it on your own app

Describe a user flow in plain English and TestWatch writes a Playwright test you can read and export. Passing runs make no AI calls.

Start freeHow the test generator works

Free: 5 tests, 500 runs a month, 2 apps and one daily schedule. Unlimited teammates, no card.