November 25, 2026
7 Minutes

Test Automation Has a Maintenance Problem.

We Tried Generating Our Way Out.

The Premise

How we generated the mechanical layer of testing, kept engineering judgement and review with engineers, and what the pilot showed about the economics.

  • AI Test Automation
  • Test Maintenance
  • Test Case Generation
  • Agentic Testing
  • Quality Engineering
  • Playwright
  • Selenium
  • Generative AI
Test Automation Has a Maintenance Problem — AI generated, human review gate

Overview

What it covers:

Engineering notes from an internal QA platform pilot: why more automation alone doesn't fix test maintenance, how we split the mechanical work (generated by an engine) from the judgemental work (kept with engineers), the architecture decisions behind it, the one rule we did not bend, and what the pilot has shown about the economics so far.

Engineering notesInternal QA platform pilot

Test automation has a maintenance problem. We tried generating our way out.

How we generated the mechanical layer of testing, kept engineering judgement and review with engineers, and what the pilot showed about the economics.

From requirement to executed test

Engine: generated workEngineers: judgement and sign-off
  1. 01 InputTeamRequirements & contextSpecs, Jira tickets, Figma frames
  2. 02 GenerateEngineTest casesGap analysis against the existing suite
  3. 03 ReviewEngineerEngineer reviewAccept, edit or reject
  4. 04 GenerateEngineAutomation codeFeasibility checked first
  5. 05 ReviewEngineerEngineer reviewCode accepted before use
  6. Live testEngineAgentic test runFrom a plain-English instruction, on web, mobile web or native apps
  7. ResultsEngineerEngineer reads the resultScreenshots and video as evidence
Steps 01 to 05 are one linked flow, with engineer review after each generated stepLive testing runs on its own and needs no test cases

Every QA organisation eventually hits the same wall, and skills have little to do with it.

Throughput in testing scales with engineer-hours. Someone reads a requirement, writes test cases, converts the ones worth automating into code, then maintains that code as the product moves underneath it. Each of those steps is real work, and most of it is mechanical. When scope grows, the only lever available is more people.

That is a capacity ceiling, and it is why QA is so often the constraint on release velocity rather than a contributor to it.

The obvious answer, automating more, turns out to make the problem worse before it makes it better. That part is worth talking about.

Chapter01

Why more automation doesn't fix it

Recorded scripts are brittle by construction. They encode a path through a specific rendering of the UI: this selector, that position, this sequence. When the interface changes (and interfaces change constantly), the script fails, and from the outside that failure looks exactly like a real defect until an engineer inspects it.

Anatomy of a false failure

  1. The script encodes one pathThis selector, that position, this sequence.click('#submit') → position 3 of 4
  2. The interface changesAnd interfaces change constantly.
  3. The script failsFrom the outside, the failure looks exactly like a real defect.
  4. An engineer inspects itOnly then is it clear the test, not the product, broke.

Maintenance vs confidence as coverage grows

Conceptual chart: maintenance rises with coverage while confidence per added test fallsNo measured values. The maintenance line rises in proportion to coverage. The confidence returned by each added test declines. Past the point where they cross, the marginal test costs more to keep alive than it returns, well short of full coverage.STALL ZONE0Full coverageCOVERAGE →EFFORT
Maintenance burdenConfidence per added testMarginal test costs more than it returns
Fig. 1Why automation stalls, drawn from the argument in this chapter.Conceptual, not measured

The result is a maintenance burden that grows in proportion to coverage. Every test you add is an asset that generates future liability. Teams discover this around the point their suite gets large enough to matter, and it is why so many automation initiatives quietly stall well short of full coverage: the marginal test costs more to keep alive than it returns in confidence.

The real question

So the useful question is less "how do we write more tests faster" and more this:

Which parts of the testing lifecycle are purely mechanical, and can those parts be generated rather than hand-written?

Chapter02

Separating the mechanical from the judgemental

Work through the software testing life cycle (STLC) step by step and it splits cleanly.

Generated

Mechanical

Pattern transformation over structured input

  1. M1Transcribing a requirement into structured test cases.
  2. M2Translating a case into framework-specific automation code.
  3. M3Working out which cases are even automatable.
  4. M4Identifying which requirements have no coverage.
Engineers

Judgemental

Engineering

  1. J1Deciding what risk matters.
  2. J2Knowing which edge case will actually bite in production.
  3. J3Reading an ambiguous requirement and asking the right question.
  4. J4Deciding whether a failure is a defect or a test problem.

The mechanical half is pattern transformation over structured input, which is precisely what language models are good at.

The judgemental half is engineering, and nothing about the current generation of models suggests handing it over.

An AI-first engine, not a chat wrapper.That split became the design premise for the platform we built internally. The distinction matters.

Not this

A chat wrapper

Answers questions about testing.

What we wanted

An engine

Produces testing artefacts and runs them. We wanted the second thing.

Chapter03

The pipeline

The flow runs from plain-English requirement to executed result.

  1. Input

    Requirements & context

    • Specs, Jira tickets, Figma frames
    • Existing test suite imported first
  2. Generate

    Test cases

    • Gap analysis against the existing suite
    • Each case flagged automatable or manual
  3. Checkpoint 1

    Engineer review

    Accept, edit or reject
  4. Generate

    Automation code

    • Feasibility check: refuses what can't run
    • Selenium / Playwright, 5 languages
    • Compiled or syntax-checked
  5. Checkpoint 2

    Engineer review

    Code accepted before use
  6. Live testing

    Agentic test run

    • Plain-English instruction and a URL; no test cases needed
    • Web, mobile web or native Android and iOS apps
    • Adapts to UI changes
    • Screenshot per step, video evidence
Fig. 2Requirements, test cases and automation code form one linked flow, with engineer review at each checkpoint. Live testing is a separate lane: it runs from a plain-English instruction and does not need the earlier steps.
AStage

Requirements to test cases

Cases are generated from requirements plus supporting material such as specifications, Jira tickets and Figma frames. Two design decisions did more work than expected here.

Decision 1

First, import the existing suite before generating anything. Generating cases into a vacuum produces enormous duplication. Generating them against a known suite turns the exercise into gap analysis, which is far more useful and far less noisy.

Decision 2

Second, classify each generated case as automatable or non-automatable based on dependency complexity. Not every test should be automated. A case that depends on a third-party sandbox, a physical device, or human visual judgement is a case an engineer should run. Being explicit about this up front stops teams burning weeks automating things that were never going to hold.

Test cases / Request record
Request record screen. A sign-in requirement at the top, marked completed with 6 test cases generated. Below it, test case 01 'Successful sign-in with valid credentials' and test case 02 'Sign-in fails with incorrect password', each tagged with priority, functional type and automatable, with preconditions and a table of actions and expected results.
  1. 1The input. A plain-English requirement for sign-in, lockout and password reset.
  2. 2Generated. Six test cases produced from that one requirement.
  3. 3Classified. Each case carries a priority, a type and an automatable flag.
  4. 4Reviewable. Preconditions, steps and expected results an engineer can accept, edit or reject.
Fig. 3Test cases generated from a plain-English requirement, each flagged as automatable or manual. Screenshot from the pilot platform.
BStage

Test cases to automation code

Cases convert into runnable Selenium or Playwright code in Java, Python, C#, JavaScript or TypeScript. The important piece is what happens before generation: the system validates feasibility and refuses. Steps requiring human intervention, such as manual verification or a captcha, are rejected rather than turned into code that compiles and can never pass.

That refusal matters more than it sounds. Generated code that cannot possibly work is worse than no code, because someone has to debug it to discover that.

A generator that declines is more useful than one that always produces output.

Automation / signin.spec.ts
Automation record screen for 'Successful sign-in with valid credentials': Playwright, TypeScript, Playwright Test, with Validate, Edit and Delete actions, a note that validation checks syntax only, the generated signin.spec.ts code using example.com test data, and the setup command to install and run it.
  1. 1Target chosen. Playwright, TypeScript, Playwright Test.
  2. 2Stated limits. Validation checks syntax only; imports aren't verified.
  3. 3Generated code. One test case as a runnable spec, using synthetic data.
  4. 4Ready to run. The setup command to install and execute it.
Fig. 4A test case converted into runnable Playwright code (TypeScript), using synthetic data. Screenshot from the pilot platform.
CStage

Execution

Rather than replaying a fixed script, the execution agent drives a real browser and interprets the page as it goes, with video recording for evidence. Because it reasons about what it is looking at instead of replaying recorded coordinates, it survives the UI changes that break conventional automation. That addresses the maintenance argument at its root.

  • Drives a real browser
  • Interprets the page as it goes
  • Video recording for evidence
Chapter04

Architecture decisions that bought optionality

Three choices are worth calling out because they were cheap to make early and would have been expensive to retrofit.

Containerised testing engine
4.1 · Model interface

Providers plug in behind one interface

API-based model interface
Claudeprovider
Geminisecond provider
1new class
0changes to calling code

Swapping one model for another is configuration, not re-architecture.

4.2 · Token accounting

Every call's usage is tracked

Example from the pilot

One step of a live browser test

~4,500tokens sent to the model
  • Cost attribution is a number, not a monthly surprise.
  • Answers what it costs per test.
4.3 · Scoped assistant

A boundary on scope and on data

In scopeSoftware development and testing
Synthetic or approved data goes to the model provider
Client data, never
Fig. 5Three decisions built around the engine: a swappable model interface, per-call token accounting, and a scoped assistant with a data rule.
4.1

Containerised, with an API-based model interface

Models sit behind an interface rather than being wired through the codebase, so swapping one for another is configuration rather than re-architecture. We tested that claim this month: adding Google's Gemini as a second provider alongside Claude took one new class and no changes to the code that calls it. Given how quickly model capability and pricing move, avoiding lock-in to a single provider is worth a great deal, and it costs almost nothing to design on day one.

4.2

Per-interaction token accounting

Every call's usage is tracked, so cost attribution is a number rather than a monthly surprise. One step of a live browser test, for example, sends about 4,500 tokens to the model. If you are going to run AI inside a delivery workflow, someone will eventually ask what it costs per test. Having that answer instrumented from the start is much easier than reconstructing it later.

4.3

Domain-constrained assistance

The assistant is bound to software development and testing. Constraining scope improves answer quality and keeps the tool to its purpose. We pair it with a data rule: only synthetic or approved data goes to the model provider, never client data.

Chapter05

The rule we did not bend

No generated artefact is accepted without engineer review.

  • Review covers

    Test cases

    AcceptEditReject
  • Review covers

    Automation code

    Accepted before use
  • Review covers

    Interpretation of results

    Defect or test problem?

No generated artefact is accepted without engineer review. That covers test cases, automation code and the interpretation of results.

It is tempting to relax this. Review is the slowest step in the pipeline, and removing it would multiply apparent throughput overnight. It would also make the platform unusable on client work, because the value of a test suite is entirely the trust placed in it.

A suite nobody trusts is a cost centre with extra steps.

Generation compresses the mechanical work and leaves the judgement with engineers. Holding that line is what makes the output usable at all.

Chapter06

What the pilot has shown so far

Actual
40to50
hours · about one working week

AI-assisted engineering, to the first working version.

Estimate
400to600
hours · three to four months

The same scope for a small team, if built conventionally.

The first working version took roughly 40 to 50 hours of AI-assisted engineering, about one working week. We estimated the same scope at 400 to 600 hours, or three to four months for a small team, if built conventionally.

Effort to the first working version, in hours

ActualEstimateUpper end of range
Linear scale from 0 to 600 hours. Each bar's solid section runs to the lower figure; the dashed section shows the rest of the range. The conventional figure is an internal estimate, not a measured build.
Chapter07

What we are still working out

This is a pilot, and the list of open problems is longer than the list of solved ones.

  1. Live

    UI testing

    Coverage today is mostly UI-focused.

  2. Partly done

    Multi-tenancy

    • Sign-in (live)
    • Roles (live)
    • Audit log (live)
    • Project-level separation (still to come)
Livein use todayPartly donesome parts liveNextplanned next

Coverage today is mostly UI-focused. API and database-layer testing are next, and they are where a lot of real defect risk lives. Multi-tenancy is partly done: sign-in, roles and an audit log are live, while project-level separation is still to come. And the more interesting strategic question is whether the value sits in generation at all, or in consolidation: bringing test management, automation and project tracking into one workflow rather than three tools that each need reconciling.

The strategic question: generation or consolidation?
Test managementreconcile
Automationreconcile
Project trackingreconcile
One workflow
Test managementAutomationProject tracking
Three tools todayWhere we think the value is

We think it is consolidation. Generation is becoming a commodity, while the friction between systems remains.

Chapter08

The takeaway

If your automation strategy is stalling, the problem may be less that you write tests too slowly and more that you hand-write the mechanical layer and pay maintenance on all of it.

Generating that layer changes the economics, but only if you:

  1. Keep the engineering judgement where it belongs.

    Risk, edge cases and what a failure means stay with engineers.
    Chapter 02
  2. Refuse to generate what cannot run.

    Feasibility is checked before any code is generated.
    Chapter 03
  3. Instrument what it costs you.

    Every call is tracked, so cost per test is a number.
    Chapter 04

Those three constraints are what separate a useful tool from an impressive demo.

Frequently Asked Questions (FAQs)