A useful test tells you whether someone can still do what they came to your service to do: complete a form, navigate with a keyboard or access the information their role permits. Generating more tests only helps if they check the right behaviour.
At Doghouse, our work on AI-assisted testing connects the original request to the checks and the evidence used to review a change. AI has a defined job at each stage: investigate the issue, help specify the work, generate relevant tests, check for regressions and prepare the quality assurance (QA) handover.
Written instructions set out what information to use, what to check and what to produce. The team can then review the work against an agreed process. Here is how that works in practice.
Give AI the context to test the right thing.
A support request is rarely a complete testing brief. It may describe a symptom without explaining its cause or everything the affected feature does.
In our approach, AI uses the request and project context to distinguish a defect from a proposed change. For a defect, the job is to reproduce the problem and investigate the cause. For a new feature, it is to examine how the request fits the existing system and what it could affect.
Those findings inform acceptance criteria and testing scope: what the change must achieve, which behaviours need checking and which questions still need an answer. The criteria give the team something specific to review before implementation.
This matters because AI can produce convincing tests for a misunderstood requirement. If it assumes the wrong behaviour, the code and tests can agree with each other while missing what the user needs. Reviewing the requirement is part of reviewing the AI's work.
The same approach is useful when someone asks for something new. Imagine a request to let applicants return to an unfinished form. AI can examine the existing form and sign-in behaviour, identify what would need to change and help turn the request into testable criteria. Can the applicant recover their saved answers? Can another person see them? What happens when the session expires?
Those questions connect the feature to the people who will use it. The team can review the proposed behaviour before asking AI to generate checks for saving, returning and access permissions. The benefit for the applicant is a chance to finish a long form over more than one visit, with checks that their saved work remains available only to the right person.
From a request to reviewable evidence
Match the tests to the change.
AI needs guidance on both the type of test and how far the testing should go. A calculation, a permission and a complete user journey need different kinds of evidence. AI can draft relevant checks once it understands the changed behaviour and the expected result.
The changed part of the system helps determine the test type. Risk helps determine the depth. Our approach uses AI to assess how likely a change is to cause a problem and how much impact that problem would have, then propose proportionate coverage for review.
A small code change to a shared menu can affect every page. A permissions change can prevent a person from completing their work. Testing needs to reflect those consequences. The useful output from AI is a reasoned testing scope that a developer or QA reviewer can question and adjust.
Choose the check that answers the question.
These examples show how the changed behaviour guides the check. A change may need more than one type.
| Calculation logic: a fee is calculated | Unit test: compare inputs with expected amounts | Whether the tested inputs produce the right amount for the user. |
| Access permissions: someone reopens a saved draft | Integration check: exercise access with different roles | Whether the tested roles can access only the drafts they should. |
| User journey: an applicant saves, returns and submits | Browser test: follow the steps and check the result | Whether that tested journey reaches confirmation. |
| Visual layout: the form's appearance changes | Screenshot comparison: flag differences between versions | Which visual changes need review. Behaviour still needs its own checks. |
AI helps prepare the checks. People review whether they ask the right question. The test run supplies the observed result.
Follow one issue from failure to evidence.
Consider a hypothetical issue: keyboard users cannot reach an item in a website's menu. AI first helps reproduce the reported behaviour and investigate the relevant code. The team then confirms the expected behaviour: pressing Tab should move through the intended items in order, with a visible indication of which item has focus.
From those criteria, AI can generate a browser test that opens the page, sends keyboard input and checks which element receives focus. The team runs it against the version with the defect. It should fail at the relevant step, showing that the test can detect the reported problem. A failure caused by a page not loading would need investigation before it could serve as useful evidence.
After the developer makes the fix, the same test runs again. A passing result now supports the specific conclusion that the tested keyboard sequence works. Keeping that test gives later changes a way to detect the same failure returning.
For the user, this check addresses something practical: being able to reach the menu item without using a mouse. It also shows why the test must examine behaviour. A screenshot alone cannot establish where keyboard focus moves.
Keep an evidence record someone else can repeat
For the keyboard example, keep the failing run from before the fix and the passing run afterwards. Record enough detail for another reviewer to repeat the check. This is a suggested handover format, not a claim about a particular client test.
| Expected behaviour | The agreed keyboard sequence, focus order and visible focus indication. |
| Test conditions | Build or commit, browser, environment and relevant test data or account role. |
| Observed result | What happened at each relevant step, with the failing and passing runs linked. |
| Regression coverage | Menu open, close and selection checks, alongside the repaired keyboard sequence. |
| Remaining gaps | Checks not run, unexplained results and anything needing manual QA. |
| Review decision | Who reviewed the evidence, their decision and any further checks required. |
Compare what worked before with what works now.
Fixing the reported defect is one part of the job. The change may also disturb existing behaviour. Our approach includes AI-assisted regression checks that compare a baseline version with the changed version. Browser checks and screenshots provide different evidence: the checks exercise selected interactions, while image comparisons highlight visual differences for review.
In the menu example, that could mean checking the keyboard sequence alongside opening, closing and selecting menu items. On another change, it might mean rerunning a form submission journey. These checks help identify breakage before a person encounters it while trying to use the service.
Suppose the save-and-return feature is now being added to the form. The new checks need to cover saving a draft, but the existing submission journey still matters. Running that journey against both versions can expose a change that lets someone save their answers but stops them submitting the finished form. AI can help run and compare the checks, then bring that difference into the review.
The comparison also helps reviewers distinguish a new problem from one already present in the baseline. A visual difference needs interpretation: it may be the intended change, an unexpected shift or something unrelated. AI can assist with the comparison, but the result still needs to be checked against the requirements.
A regression comparison in practice
Turn the results into a useful handover.
AI can use the actual changes and test results to prepare testing steps and a QA handover. That gives the reviewer a record of what changed, what ran, what passed or failed and what remains to be checked.
AI-written tests still need review. They can share assumptions with the code they are testing, so they do not provide independent assurance on their own. Human QA brings further checks on usability, accessibility and unexpected paths through the service. Release approval remains a human decision based on the evidence and remaining risk.
For an organisation adopting this approach, one existing service journey is a useful place to start. Give AI a clear task, review the tests it produces and inspect the results. Judge the work by whether it provides useful evidence that people can still complete that journey after the change.