Evaluating AI Test Generation / Sreekanth CField notes · December 2026
A hands-on quality engineering study

AI-assisted testing, in practice.

I explored how a natural-language browser automation tool authors tests, what its evidence actually verifies, and how those tests could become part of a maintained regression suite.

TestMu AI Kane CLI 0.10.14 · OpenCode · Local Chrome · Free trial

Define expected behaviour→Author and execute→Inspect evidence→Refine and approve

A small, hands-on exploration on a free trial. Kane authored and ran the tests; OpenCode ran the commands and organised the evidence.

01 / Selected findings

Three things I would carry into a QA practice

Functional automation

A failed check needs triage

The invalid-login test passed its logged-out check but failed to find the warning at final validation.

Decision: separate transient feedback from persistent state; distinguish automation failures from product defects.

AI evaluation

The evidence source matters

The expected value was found outside the answer under test.

Decision: constrain the extraction source and validate against an independent reference.

Test oracle

Check the checker

My own rule could accept an irrelevant reply because it contained no unsupported figure.

Decision: calibrate the evaluation rule against known good and bad responses before using it as a gate.

02 / Functional testing

From a plain-English objective to an assertion

Two objectives on the vendor’s e-commerce playground. The assertion records expose the checks behind the final verdict.

A1 · Cart

Product and quantity

Search for an iPhone, add the first result, and verify that product is in the cart with quantity 1.
CheckExpectedActual
Selected product presenttruetrue
Quantity11

The composite assertion passed. It is the check a reviewer would have written.

A2 · Invalid login

Warning and logged-out state

Attempt login with invalid credentials; verify the error and that the user is not logged in.
CheckExpectedActual
Warning showntruefalse
User logged infalsefalse

The warning did appear: a second run captured it in its analysis screenshot (“Warning: No match for E-Mail Address and/or Password”), but it had cleared by final validation. Kane’s own triage classed this as an automation state-transition issue. The fix: assert the warning immediately after submit, then the logged-out state separately.

View source assertion records and login evidence
Login page showing the warning: No match for E-Mail Address and/or Password
A2 second run, analysis screenshot: the warning was visible before final validation.
Final login screen with the warning no longer visible
A2 final screenshot: by the time the final check ran, the warning had cleared.
03 / Testing AI behaviour

Define the oracle before scoring the answer

I asked a property-search assistant on a public industrial real estate website two questions about one published listing. Without internal requirements, I used the listing itself as an independent reference for what a correct answer looks like.

Correct value, different source

An assertion passed with 30 ft, but the value did not come from the answer. The assertion record shows expected = actual = 30, captured on the property search page after Kane closed the chat.

Proposed oracle: evaluate only the captured assistant response for the requested entity and attribute. Validate the fact against an independent source. Treat a supported fallback separately.

Factual restraint and relevance

My Python rule passed two off-topic captures because no price appeared. One more explicit Kane objective combined absence of a price with relevant leasing guidance and passed. A single run, but it checks the behaviour that matters: no figure, and a useful next step.

Proposed oracle: no unsupported factual claim, relevant response or permitted fallback, correct entity and source where required.
4 of 10authored-run verdicts matched my criteria (3 false passes, 3 false failures)
1 of 4 → 2 of 3agreement with open vs precise objectives
Run ledger and exploratory criteria

Verdicts compared with my criteria for each question. The replay and the interrupted run are excluded.

RunObserved behaviourMy criterionKane
A1Cart identity and quantity verifiedPassPass
A2·1Warning reported; logged outPassFail
A2·2Warning shown, then cleared; logged outPassFail
B1·1List; requested fact absentFailFail
B1·2List; answer compared with itselfFailPass
B2·1Relevant refusal and helpPassFail
B2·2Unrelated list; answer presentFailPass
B1p·1Fact from listing, not chatFailPass
B1p·2Could not confirm factFailFail
B2p·1Relevant refusal and helpPassPass

Open objectives: 1 of 4 agreed; precise objectives: 2 of 3. In B1 the assistant’s reply was identical across both runs, yet Kane chose a different assertion each time and the verdicts differed; in B2 and B1p the replies also changed. Nine of eleven sessions began with the same property list; across five rent questions, the assistant never invented a price.

What I would do with authorized access: agree supported intents and fallback rules with product; version reference data, capture model/retrieval context when available, use deterministic checks for exact values and calibrated rubric-based evaluation for semantic quality. Include repeated sessions, guardrails and task completion where relevant.

04 / Execution and maintenance

Authoring is not the same as regression

Authoring · A1
59.6 credits155.8 s

Cost from the account balance before and after the run.

Saved-test replay
13.7 credits48.0 s

16 of 16 recorded actions replayed, none re-authored. Replay record

Operational question

Can an approved recording be run consistently after application changes, with understandable failures and predictable cost?

Next: compare repeated authoring and replay on an authorized, versioned build; verify CI and failure classification before committing to a platform-wide execution strategy.

Trial accounting and execution caveats

467.0 of 1,200 trial credits used, inside a 600-credit ceiling set before the first run, including 24.8 for an interrupted run. Authored runs averaged about 43 credits (21.7 to 81.8). The account balance dropped 3 to 15 credits more than the CLI’s own count on authored runs, and the replay showed 0 in the CLI while costing 13.7. One run lasted 318.2 s with a 240 s timeout. Questions I would raise with the vendor.

05 / From experiment to engineering practice

Start with a small quality foundation

A proposed operating model for a growing team. Use existing tools where they work; add targeted automation or evaluation only where a clear gap remains.

01 · Agree the contract

Product and engineering define risk, acceptance criteria, data and supported AI behaviour.

02 · Author and review

Use AI for first drafts; review traceability, assertions, data, duplication and allowed actions.

03 · Execute and triage

Run approved checks in controlled environments; separate application, test and infrastructure failures.

04 · Learn and maintain

Use evidence, risk and cost to prioritize maintenance, coverage and coaching.

Where each test belongs

LayerProposed approach
API / contractDeterministic schema, business rules and integration checks early in CI.
UIApproved AI-authored or scripted critical journeys; isolate test data and flaky waits.
AI agentsVersioned inputs, factual oracles, calibrated rubrics, task completion, fallback and guardrails.
Data / non-functionalSchema and data quality checks; targeted performance and resilience work as risks justify.

Proposed. This study exercised the UI and AI layers; the other layers draw on my project work.

How I would begin

First: inventory current tests, failure patterns, test environments and ownership. Choose a critical journey and one AI workflow for a small pilot.

Then: agree review standards and a risk-based approval model. PO owns expected behaviour; the delivery team owns routine checks and maintenance; QA guides high-risk assertions and evaluation calibration. Work with DevOps, security and data owners on execution and access.

After a baseline: establish CI gates only for sufficiently stable, actionable checks. Use failed-run examples to mentor engineers and refine reusable patterns.

Metrics and quality-gate criteria
MetricDefinition to agree during pilot
Risk-weighted coverageApproved checks linked to prioritized requirements / prioritized requirements, with risk weights disclosed.
Rework rateGenerated cases needing material changes / reviewed generated cases.
False pass / failDisagreement with independently reviewed reference outcomes; separate error directions.
Flaky executionInconsistent result on a fixed build/data/environment / repeated checks assessed.
Defect escape / MTTRAgree severity and observation window; track escaped defects and median time from detection to recovery.
Automation ROICompare authoring, review, maintenance and run costs with avoided manual effort; record assumptions.
AI evaluationTask success, factual correctness, relevant fallback, guardrail compliance; segment by intent and risk.

Proposed. Establish a baseline and owners before setting thresholds.

06 / Method and limits

What this study establishes

Hands-on Kane CLI authoring and browser execution on a free trial; inspection of assertion records; Test Manager upload reported in setup notes; a small independent test-design exploration. OpenCode assisted with the workflow. It did not replace independent QA review.

The chatbot was used manually and through Kane at normal-visitor volume, with no internal access or private API calls. The evidence folder holds run summaries, generated tests, assertion records, answers and key screenshots; raw logs and traces stay in a private repository. The operator, the assistant, the listing and account details are masked.

Not exercised: dedicated Agent Testing, HyperExecute, enterprise integration, production CI gates, cross-browser coverage, visual validation or standalone exported Playwright execution. Self-healing was not tested, and the replay was run once.

Product documentation and evidence sources

Documentation links from the supplied experiment records; current availability and pricing not reverified in this rewrite. Local evidence links are included in the package.