Opinion
AI for QA engineers: where it helps and where it doesn't
Where it helps in test design, agent-written tests and self-healing, where it does not, and the testing skills worth building.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
This site started life as Test Automation Central, so this is a topic close to home. Testers are being told two contradictory things: that AI will write all the tests, and that AI-built software needs more testing than ever. Both contain some truth. This article sorts out where AI is genuinely useful in a tester’s day today, where it is not, and which skills are worth investing in.
The short answer: AI already helps testers generate test ideas, write test code, find locators, diagnose failures and produce test data. It is risky when it creates shallow tests at scale, heals tests by loosening assertions, or guesses expected results. Deciding which tests matter, and when a green build is lying, is still the tester’s job.
This version was updated on 25 November 2026 with the tutorials and workflows added to the site since, including evaluating coding agents on your own repository and guardrails for LLM features. Tool behaviour below was checked against each project’s documentation that day.
Where AI helps now
Generating test ideas. Give a model a requirement and ask for boundary values, invalid inputs, state transitions and rule combinations, and you get a broad list in seconds. It will not know your system’s history, and it will state some expected results wrongly, but as a brainstorming partner that never gets bored it is excellent. Our AI-assisted test design tutorial shows the method.
Writing test code. Coding agents are good at the mechanical parts of automation: scaffolding page objects, writing parametrised unit tests from a list of cases, converting manual test steps into code, filling in fixtures. They are fastest where your codebase already has good examples to copy.
Exploring a UI to find locators and flows. Browser-driving agents can click through an application, find stable locators and write a first draft of a test. Playwright now ships three agents: a planner that explores the app and writes a Markdown test plan, a generator that turns the plan into test files and checks selectors against the live app, and a healer that repairs failing tests; npx playwright init-agents --loop=claude (or vscode, codex, opencode) sets them up (Playwright docs). That removes much of the tedium of end-to-end test writing. Playwright test agents walks through all three, and exploratory testing with Playwright MCP uses an agent as an exploratory tester.
Characterisation tests for legacy code. An agent can read an untested module and write tests that pin down what it does today, which is the safety net you need before changing it. The catch is weak assertions, so prove the tests with mutation testing; unit tests for legacy code shows the routine.
Accessibility checks. An agent driving Playwright and axe-core finds the machine-detectable WCAG failures quickly and can draft fixes. Scanners still miss much of what matters to disabled users, so the manual checks stay with you; see run an accessibility audit with an agent.
Diagnosing failures. Pasting a failing test, its error and a trace into a capable model, or letting an agent run the test and inspect the page, often produces a correct diagnosis faster than reading the trace cold.
Test data. Generating realistic, varied data (names in many scripts, addresses in many formats, edge-case strings) is easy to ask for and tedious to do by hand.
Where to be careful
Shallow tests at scale. The risk with generated tests is not that they fail; it is that they pass without proving anything. Assertions that only check a page loaded, tests that mock the thing under test, coverage gained from code being executed rather than checked. Volume makes this worse: a thousand weak tests are slower and less useful than a hundred good ones.
Self-healing that hides bugs. Healing agents that fix broken locators are genuinely useful when the UI changed on purpose. But a healer that makes a test pass by loosening its assertion has converted a bug report into a green build. Every healed change needs review, and “the feature is broken” must remain a possible conclusion. Fix flaky tests with the healer agent, safely has a checklist of red flags to look for in a healed diff.
Expected results. Models will happily tell you the expected outcome of a business rule, and will sometimes be wrong. The oracle problem has not gone away; it has become easier to forget.
Context the model cannot have. Which flows earn the money, which bug from last quarter must never return, which customers use the weird browser. Prioritisation and risk judgement still come from people who know the product.
Testing the agents themselves
If your team uses coding agents, someone has to decide whether they are any good on your code, and testers are well suited to it. The method is the one you already use for any system under test: a fixed set of realistic tasks, an oracle, and repeated runs. Evaluate coding agents on your own repository takes ten closed issues, runs Claude Code and Codex headless against each one, and scores the result with the tests from the real fix plus a blind review rubric. It answers “should we use this agent, and for what?” with your evidence instead of a vendor’s benchmark.
Two related habits from the same mindset:
- Run agent-written code somewhere it cannot hurt you. Code a model wrote and nobody has read yet belongs in a throwaway container with no network and tight limits; run AI-generated code in a sandbox builds one, with a test suite of hostile code to prove the limits hold.
- Treat the agent’s report as a claim. “All tests pass” is checked by running the tests, not by reading the summary.
Testing AI features is a new specialism
The other half of the picture: more products now include LLM features, and those need testing too. That work looks different from classic automation:
- Outputs vary between runs, so tests check properties (valid JSON, mentions the right policy, stays under a length) and pass rates, not exact strings.
- Test sets come from real failures, gathered by reading outputs, not from a requirements document.
- Some qualities need a model to grade them, and the grading model itself needs checking against human labels.
- Security testing includes prompt injection: hostile text in documents, emails or web pages the feature reads.
- Input and output guardrails are code under test like any other, with false positives that cost real users. Add guardrails to an LLM app measures them on a labelled set.
Testers who already think in terms of risk, oracles and boundaries are well placed for this. The tools are new (promptfoo, Ragas, tracing platforms), but the mindset is the one testers already have. How to test LLM applications turns that mindset into a pytest suite with contract tests, a golden set and a regression gate. Our first LLM eval and LLM-as-a-judge tutorials are a practical starting point, and prompt injection basics covers the security side.
Skills worth building
If you work in QA and want to stay valuable as AI spreads, these are the areas we would invest in, roughly in order:
- Using a coding agent well for your own automation: scoping tasks, planning first, reviewing diffs. Start with Claude Code, Codex or Cursor, and set it up with permissions and sandboxing.
- Evaluating agents on your own codebase, so tool choices rest on evidence.
- Reviewing generated tests for whether they would catch a regression. This is the new core skill of test automation.
- Playwright’s agent workflow (planner, generator, healer) or the equivalent in your framework, with a habit of reviewing plans before code.
- Evals for LLM features: building test sets from real outputs, writing property checks, calibrating judges.
- Prompt injection and AI security testing for any feature that reads untrusted content.
None of this replaces knowing your product, understanding risk and asking awkward questions. AI makes producing tests cheap. Deciding which tests matter, and knowing when a green build is lying, is still the job.
Next steps
- The AI for test engineers learning path puts these steps in order.
- Build a layered QA harness for non-deterministic features in How to test LLM applications as a QA engineer.
- Playwright test agents walks through planner, generator and healer.
- Reviewing AI-written code has a review checklist that applies directly to generated tests.
- Test coding agents before your team commits to one with evaluate coding agents on your repository.
Covers
Related
- AI for test engineers
An AI course for testers: apply generative AI to everyday test automation, from AI-assisted test design to generating, healing and reviewing Playwright tests.
- Getting started with AI test case design
Use a language model to draft test cases for a feature, prompt it for coverage rather than happy paths, and review its ideas like a tester before you automate.
- Playwright test agents: planner, generator and healer
How Playwright's planner, generator and healer test agents work, how to set them up with Claude Code or VS Code, and how to review the tests they write for you.
- Write your first LLM eval
Turn real outputs into a small test set, add code-based checks in promptfoo and run them in CI to catch regressions on every change.
- Generate Playwright tests with AI agents, then review them
Approve a test plan before any code exists, generate tests from it and review them like production code.