GatwAI

Blog

AI in quality assurance: designing and reviewing tests

Updated · 2026-11-14

AI can support test drafting and diagnosis. Meaningful testing needs independent expectations, reproducible workflows and human judgment.

GatwAI Editorial · Sources reviewed · Our methodology

Begin with a risk

A useful test starts with a specific question: what must not go wrong when someone signs in, places an order or edits data? Describe the required behavior from the user's perspective. You can then ask AI for additional cases or a test draft. The number of generated tests is not a reliable measure of how much meaningful assurance they provide. Decide what evidence would convince a reviewer.

Put documented features in context

TestMu AI describes KaneAI as a tool that plans, authors and runs tests from natural-language requirements. This is one example of agent-assisted test automation. When evaluating it, use a bounded application of your own and check whether expected results can be defined independently of execution. Vendor descriptions do not replace that trial or establish coverage of your particular risks.

Keep the test oracle independent

Avoid generating tests solely from the same mistaken assumptions used in the implementation. Have someone review requirements, boundary values and error messages. A test that merely reproduces an existing screen may confirm an existing defect. Introduce an intentionally incorrect condition: does the test fail reliably, and does the output explain the discrepancy? This is more informative than checking that a newly generated test passes once.

Protect reproducibility

Playwright recommends isolated tests and testing user-visible behavior, among other practices. For AI-assisted work, a practical interpretation is to use controlled test data, traceable steps and a documented environment. Retries should not simply conceal a failure. Investigate unstable cases instead of treating a green overall indicator as sufficient proof of quality. Preserve the evidence needed to understand what actually ran.

Choose a useful pilot

Start with a few important workflows and known defects. Compare drafting time, maintenance effort, discovered problems and false alarms. Document which checks still require manual work or other methods. Product approval involves more than automated interface tests. AI may support part of the work while the team remains responsible for agreed coverage and the risks left unresolved.

SUGGESTED EXAMPLE · NOT A PRODUCT TEST

Example: testing a contact form

This proposed test checks whether a form confirms valid enquiries and clearly rejects invalid input. It uses a test environment only.

  1. Describe the normal case, a missing required field and a simulated storage failure.
  2. Generate test steps and compare their expected outcomes with the requirements.
  3. Temporarily disable the error message and check that the relevant test fails.

Acceptance criterion: The check detects the introduced defect and sends no enquiry to the real inbox.

Checklist before using the result

  • Is expected behaviour specified independently of generated code?
  • Are test data and initial state reproducible?
  • Are failures explained rather than hidden by retries?

Frequently asked questions

Do many generated tests automatically improve coverage?

No. Similar tests may repeatedly check the same normal case. Map each test to a requirement or specific risk and identify missing cases.

Can AI approve its own tests?

It can assist review, but should not provide the only standard. Domain-defined expectations and independent checks help avoid shared faulty assumptions in code and tests.

Sources & review