From 80,000 lines to 781: what building a QA harness for AI agents taught us

  • A QA harness lets an AI agent such as Claude Code or Codex test an app like a manual tester, with a person approving the plan and evidence behind every result.
  • Two Nomtek teams built one independently, and both first made it too heavy before coming back to a simple design with one agent running the whole test.
  • The simple versions work on real projects, from 58 runs and 16 defects found to a full ticket verified in 64 minutes.
  • Four lessons transfer to any team: ask reviewers what to remove, add rules only after real runs, let only a person narrow the scope and keep evidence easy to check.
TABLE OF CONTENTS
Loading the Elevenlabs Text to Speech AudioNative Player...

AI coding agents have changed how fast software gets written. On many of our projects, an agent now produces a working feature in hours. Testing has not kept up. Someone still has to open the app, click through every path, take screenshots and write the report, and that work does not get faster just because the code arrived sooner.

This is quickly becoming a central question for software teams. When agents write more code than people can review, verification becomes the bottleneck, and testing tools designed for code that humans wrote and checked will struggle to close that gap.

Over the past year, two teams at Nomtek built their own answer to this problem: a generic harness that any of our projects can install, and a harness built into one large global mobile app. The two teams ran different experiments, and both ended up with a simpler design than the one they had tried along the way. This article describes both paths and the lessons we would pass on to any team putting an agent to work on QA.

What a quality assurance (QA) harness does

Our QA team describes it as automating manual testing. The agent reads the ticket, works out what needs checking and drafts a short plan. Once a person approves it, the agent opens the app on a phone or in a browser, goes through every case and saves a screenshot, a recording or a log for each result. At the end it writes a report and prepares bug drafts ready to paste into Jira. A person reads the report and decides what gets filed.

The harness is everything around the agent that makes this repeatable: the rules it follows, what it needs to know about the project and the format of the evidence it leaves behind. Without a harness, every test session starts from scratch, and the quality of the result depends on how well someone wrote that day's prompt.

Where we started

The generic harness grew out of a single client project, a web application, where our QA engineer wanted to see whether an agent could check anything at all. At first every result was verified by hand, because the agent often reported bugs that did not exist and sometimes claimed to have checked things it had never checked. Every mistake became a new rule.

Over time, almost every task on the project went through the harness, until no task was signed off without the agent's tests. When the project ended, the team set out to turn what had worked there into one harness that any project at Nomtek could use.

The mobile app harness has a different origin. On an earlier client project, one of our QA engineers had already built a working QA harness, using the developers’ own harness as a starting point. When he moved on to QA for a large global mobile app, he set out to adapt that approach to it.

Two experiments that grew too heavy

For the generic harness, we started by studying three harnesses already in use at Nomtek, each built on a different client project, and tried to combine their best parts. We asked agents to plan the new harness and other agents to review the plan.

Every review found something missing, so the plan kept growing. Within a few days it went through 24 drafts and 14 review rounds, and not one review asked what could be removed. Every rule was meant to be enforced mechanically, with a hash-secured event log, approvals and permissions. Then the agent built it, largely on its own, in four days: 277 files, about 80,000 lines of code and 1,875 tests.

Those 1,875 tests checked the harness itself. The harness never tested a single real application.

The real problem appeared whenever we tried to change anything. One change shows it well. On the first real project the agent could not sign in, because the plan allowed only a human to type a password. We asked for one thing: let the agent use a test account. That single request went through round after round of review and grew into a whole subsystem for storing and guarding test credentials. The final review then found three serious blockers, all of them inside that subsystem. At that point we asked a simpler question: why not just give the agent the test account in the task or in the chat? The requirement disappeared, and the blockers went with it. Nothing had been fixed. The blockers were real, but they existed only because we had answered a simple need in such a heavy way. A harness this hard to change cannot be adapted to new projects, so we dropped the approach and started again.

On the mobile app harness, the experiment went in a different direction. For two and a half weeks, its author tried a more elaborate workflow with four roles, each working in a separate thread: a Knowledge Collector gathered the context, a Planner defined the tests, an Executor ran them and an independent Assessor reviewed the evidence. Isolating the roles looked safer on paper. The development history from that period contains 77 checkpoint commits referencing 20 distinct threads, and in his experience, coordinating the handoffs and recovering interrupted runs made the workflow too cumbersome to use.

In both cases, every added part had a good reason behind it, and the sum became harder to work with than the testing it was meant to support.

Back to a simpler design

The restart of the generic harness began with a different kind of planning. We asked an agent to grill us: challenge our assumptions with one plain question at a time and write nothing until the questioning was over. Twenty-one questions led to twenty-one decisions, such as who approves a test plan and whether the agent may ever skip a case on its own (it may not).

The brief for the restart opened with one sentence that became the test for every later change, and it was repeated so often that the team named it rule zero: the harness must be light, easy to adapt and working, and it must never block itself. In practice, rules are written in plain English for the agent, evidence exists for the person reading the report, and the facts of a project always take priority over the general method. A new rule enters the method only after a real test run has shown that it is needed.

Three days after the grill, the first version of the generic harness was ready. The whole method fitted in 781 lines across nine files. It has grown since, as the team keeps developing it.

The author of the mobile app harness went back to the proven QA harness from his earlier project and used it as the foundation for a new one. One agent owns the complete run. It plans the run around what could break in a given ticket, checks what it finds against the source code and works with helpers for the device and test data and with explicit evidence requirements. He then developed the evidence handoff and transferred the harness to the project’s QA team.

How the generic harness works for AI test automation

The generic harness has three parts. The method describes how a test run works and is the same in every project. The profile holds the facts about one project: environments, how to log in, which tools to use, where tasks live and who approves plans. The team edits the profile freely, and when it contradicts the method, the profile wins. The third part is the run folder, where each test session keeps its plan, report, evidence and bug drafts.

Installing it takes one sentence typed into Claude Code or Codex. The agent copies the method into the project, asks eight questions one at a time and fills in the profile from the answers and from what it can read in the repository. A smoke test with a single case completes the setup.

From then on, a tester works in plain language. They can ask the agent to test a ticket, to run a list of cases from a file or to retest a ticket after a fix. Each time, the agent posts a short plan in the chat, including what it will not check, and waits for a “go”. At the end it hands back one report in which every passed case has evidence and every failed case has a bug draft. If the agent simulated anything, for example by faking an API response to trigger an error state, the hand-back says so explicitly.

What both harnesses have delivered

In its first five days on real work, the generic harness ran 21 times on two projects: a web application and an Android app delivered as an installation file, with no access to the source code. It executed 283 test cases, saved more than 1,000 evidence files and wrote 44 bug drafts, which covered a dozen or so unique defects because the same defects came back in repeated runs. When Claude Code and Codex received the same list of 20 regression cases, both passed 19 cases and failed the same one on the same known defect. The first tester from outside the team used it on another project and reported that it works and checks quickly. Since then, it has been used on three more projects, where it completed 58 runs with 631 test case executions, counting retests as well as blocked and skipped cases. Those runs produced 5,148 pieces of evidence, 2,754 of them screen reads from a single run, and documented 16 distinct defects, 15 of which were reported to the development teams.

The mobile app harness runs on real tickets. In one Android acceptance run on 1 October, a tester typed a single sentence asking the agent to test a ticket on a connected Android phone. The harness reported all seven requirements in the ticket as verified across 15 scenarios, and prepared nine evidence attachments and a Jira comment draft. The recorded effort was 64 minutes, including requirements review, setup, testing, evidence review, cleanup and reporting, against a 75-minute estimate.

Two details from that run show how the harness handles trust. Some states of the app, such as an empty list, could not be produced on a live test account, so the agent fed the app prepared data and labelled every such result as checked on mocked data. Such results confirm how the app’s front end behaves with controlled data. It also checked the team’s test management tool for duplicates, drafted two new regression cases and proposed an update to an existing one, and left publishing them to a tester.

Every run of this harness ends with evidence that a person can check without repeating the test: an assessment of the whole user path, with screenshots and screen recordings. Before the handover, these reports grew into multi-page evidence pages and a handoff package ready for Jira, so that another tester could review every result on their own. When the team showed such reports to the client, the client asked why the project still needed its existing automated tests. For the team, it was an early sign that the business would soon start asking how agents and classic test automation fit together.

At the end of September, the harness was handed over to the QA team on the project, and several contributors have continued developing it since. Between 30 September and 2 November, its history records 30 branch merges into its main branch.

Seven lessons for any team testing with agents

Most of what we learned does not depend on a particular harness or tool.

1. Agent reviews keep adding rules, so ask them what to remove

When the team later asked Codex for an extremely thorough review of the generic harness, they added one instruction: removing things is welcome, and anything added must point to a real run that showed the need. The first round produced 46 accepted changes, all of them cuts and clarifications. The second round produced five and the third produced one, after which the reviewer itself recommended a real run instead of another review.

2. A paragraph of prose can do more than a checker script

Once, the agent marked two cases as passed without collecting all the evidence. The first reaction was a script that would confirm that every evidence file promised in the plan existed on disk. On the same run it raised only false alarms, because the agent names files after what they show, and it still missed the real gap. It was removed the same day. The method gained one paragraph instead, asking the agent to review every passed case clause by clause and to go back to the app if anything is missing. In the next retest, the agent closed both gaps on its own before writing the report.

3. New rules wait for a real run

Most rules added after the first version can be traced back to something that actually happened. The agent once waited endlessly for a permission dialog that never appeared, so every wait now has a time limit. It once mocked API responses, and although it noted this in the plan and the report, the operator only noticed the next day, so every hand-back now includes a line about what was simulated. Rules proposed without a run behind them stay hypotheses.

4. Only a person narrows the scope

Only a person can skip a test case, and only before the run starts. The agent can add cases, but it can never reduce the scope on its own. This rule has a price. In one retest, the agent noticed that the app was the exact same build as in the previous run and listed three options in its plan: wait for a new build, repeat all 30 cases or repeat only the 12 that had failed, a narrower scope that only the operator could approve. The operator answered “go”, which meant the full scope, and the agent spent 86 minutes confirming that nothing had changed: all 12 defects came back in the same places. We think that is a fair cost for knowing the agent never saves time by quietly testing less.

5. A second agent catches what the first one missed

People often approve a plan without reading it closely, so a project can let a fresh agent review the plan before the run. In one case, the ticket added two columns to 98 database tables. The reviewing agent read the database schema and the migration and found that one table on the list had been renamed by another migration three weeks earlier, which meant rolling the migration back would fail. The planning agent had missed it. A single review of the plan, used when a project chooses it, adds little weight. The chain of agents described earlier made every run pass through several handoffs, and that is what became too heavy.

6. Evidence has to stand on its own

A report is only useful if another tester can check it without reconstructing the agent’s conversation. In the mobile app harness, every result comes with the screenshots, recordings and notes that show what was checked and how, so a reviewer can confirm a pass or a failure from the report alone.

7. Adoption starts after the first successful run

A harness that works for its author is only halfway there. Other testers need to be able to use it, change it and maintain it, which is why the mobile app harness was handed over to the project’s QA team and has kept changing in their hands since.

What comes next

Both harnesses keep changing, and in the generic harness a change goes in only after a run gives a reason. The generic harness has also become a shared project. We regularly release new versions of it, the rules and instructions that work in any project, and the whole QA team contributes to it, whichever project each person is working on. We are now putting a review process and automation in place for this shared work on its repository.

Next on our list for the generic harness is generating test case lists from a ticket for a tester to approve, connecting the harness to the tools teams use to manage test cases, and letting the agent choose existing cases around a refactor, a new feature or a fix. We are also starting to test a reviewing agent from a different provider than the agent that did the work, for example an OpenAI model reviewing the work of an Anthropic model, because our experience so far suggests that this mix catches more.

If your team is working out how to test software that agents increasingly write, we would be glad to compare notes.

‍

Related articles

Supporting companies in becoming category leaders. We deliver full-cycle solutions for businesses of all sizes.

Set up a QA harness with us

Let's talk
Cookie Consent
‍
‍
By clicking “Accept All Cookies,” you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.