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
- 01 InputTeamRequirements & contextSpecs, Jira tickets, Figma frames
- 02 GenerateEngineTest casesGap analysis against the existing suite
- 03 ReviewEngineerEngineer reviewAccept, edit or reject
- 04 GenerateEngineAutomation codeFeasibility checked first
- 05 ReviewEngineerEngineer reviewCode accepted before use
- Live testEngineAgentic test runFrom a plain-English instruction, on web, mobile web or native apps
- ResultsEngineerEngineer reads the resultScreenshots and video as evidence
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.
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
- The script encodes one pathThis selector, that position, this sequence.
click('#submit') → position 3 of 4 - The interface changesAnd interfaces change constantly.
- The script failsFrom the outside, the failure looks exactly like a real defect.
- An engineer inspects itOnly then is it clear the test, not the product, broke.
Maintenance vs confidence as coverage grows
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.
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?
Separating the mechanical from the judgemental
Work through the software testing life cycle (STLC) step by step and it splits cleanly.
Mechanical
Pattern transformation over structured input
- M1Transcribing a requirement into structured test cases.
- M2Translating a case into framework-specific automation code.
- M3Working out which cases are even automatable.
- M4Identifying which requirements have no coverage.
Judgemental
Engineering
- J1Deciding what risk matters.
- J2Knowing which edge case will actually bite in production.
- J3Reading an ambiguous requirement and asking the right question.
- 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.
A chat wrapper
Answers questions about testing.
An engine
Produces testing artefacts and runs them. We wanted the second thing.
The pipeline
The flow runs from plain-English requirement to executed result.
- Input
Requirements & context
- Specs, Jira tickets, Figma frames
- Existing test suite imported first
- Generate
Test cases
- Gap analysis against the existing suite
- Each case flagged automatable or manual
- Checkpoint 1
Engineer review
Accept, edit or reject - Generate
Automation code
- Feasibility check: refuses what can't run
- Selenium / Playwright, 5 languages
- Compiled or syntax-checked
- Checkpoint 2
Engineer review
Code accepted before use - 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
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.
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.
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.

- 1The input. A plain-English requirement for sign-in, lockout and password reset.
- 2Generated. Six test cases produced from that one requirement.
- 3Classified. Each case carries a priority, a type and an automatable flag.
- 4Reviewable. Preconditions, steps and expected results an engineer can accept, edit or reject.
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.

- 1Target chosen. Playwright, TypeScript, Playwright Test.
- 2Stated limits. Validation checks syntax only; imports aren't verified.
- 3Generated code. One test case as a runnable spec, using synthetic data.
- 4Ready to run. The setup command to install and execute it.
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
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.
Providers plug in behind one interface
Swapping one model for another is configuration, not re-architecture.
Every call's usage is tracked
One step of a live browser test
- Cost attribution is a number, not a monthly surprise.
- Answers what it costs per test.
A boundary on scope and on data
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.
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.
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.
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.
What the pilot has shown so far
AI-assisted engineering, to the first working version.
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
What we are still working out
This is a pilot, and the list of open problems is longer than the list of solved ones.
- Live
UI testing
Coverage today is mostly UI-focused.
- Partly done
Multi-tenancy
- Sign-in (live)
- Roles (live)
- Audit log (live)
- Project-level separation (still to come)
- Next
API and database-layer testing
Where a lot of real defect risk lives.
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.
We think it is consolidation. Generation is becoming a commodity, while the friction between systems remains.
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:
Keep the engineering judgement where it belongs.
Risk, edge cases and what a failure means stay with engineers.
Chapter 02Refuse to generate what cannot run.
Feasibility is checked before any code is generated.
Chapter 03Instrument 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.
.png)







.webp)

