In short
AI is changing software testing by drafting tests, proposing fixes for broken ones and exploring apps to suggest test plans. Testers spend less time writing and repairing scripts and more time defining expected results, reviewing generated tests and judging failures. It helps most with unit tests, coverage gaps and locator repair, and least with release and risk decisions.
What actually changes in a tester’s day when AI tools arrive?
The job shifts from writing and repairing scripts towards deciding what to test, checking what a tool produced and judging whether a failure is real. The keyboard work shrinks. The judgment work grows.
In practice, four parts of the day change:
- Test drafting. Instead of writing a unit or end-to-end test from a blank file, a tester or developer prompts a tool for a first draft. GitHub’s documentation for Copilot describes generating unit and integration tests, including tests with mocks, and suggesting tests for coverage gaps.
- Exploration and planning. Microsoft’s Playwright added Playwright Test Agents in version 1.56: a planner that explores the app and writes a Markdown test plan, a generator that turns the plan into test files, and a healer that runs the suite and proposes patches for failing tests.
- Maintenance. Repairing a locator after a UI change used to be manual. Healing agents now propose the patch, and the tester reviews it.
- Triage. More generated tests means more failures to read. Deciding whether a red build is a defect, a flaky test or a bad generated assertion becomes a larger share of the work.
What does not change: someone still has to know what correct behavior looks like. A tool can produce a test that runs. It cannot know whether the assertion matches what the business wanted.
Where do AI test tools help, and where do they not?
Use this table to decide where to try an AI test tool first and where to keep human ownership. The verdicts come from what the vendors’ own documentation says their tools do, and from the caveats that documentation gives.
| Testing task | Does AI help today? | Why | Keep a human on |
|---|---|---|---|
| First-draft unit tests for existing code | Yes, with review | Copilot and similar assistants draft tests quickly from the code in front of them | Whether assertions encode the intended behavior, not just the current behavior |
| Extending coverage of a mature suite | Yes | Meta’s TestGen-LLM study shows filtered, automatically checked additions can be accepted at scale | Filtering: build, pass reliably, add coverage, then human review |
| Repairing broken UI locators | Yes, with review | Healing agents replay steps, inspect the current UI and propose a patch | Whether the UI change was intended or is itself the defect |
| Visual regression on dynamic pages | Yes | Applitools Eyes offers match levels designed for dynamic data instead of pixel-exact comparison | Approving baseline updates |
| Writing a test plan from requirements | Partly | A planner can explore the running app, but it only sees what is built, not what was promised | Acceptance criteria, edge cases from the business domain |
| Deciding release readiness | No | It is a risk decision that needs context no tool holds | The whole decision |
| Exploratory, usability and accessibility judgment | No, beyond prompts and checklists | These depend on human perception and domain knowledge | The whole activity |
| Security and compliance sign-off | No | Evidence must be traceable to a named person and method | The test design and the sign-off |
What does the evidence say about AI-generated tests?
The best public evidence comes from Meta. In Automated Unit Test Improvement using Large Language Models at Meta (Alshahwan and others, February 2024), the TestGen-LLM tool generated extra tests for existing Kotlin test classes and kept only those that passed a series of filters. In the evaluation on Instagram Reels and Stories:
- 75% of generated test cases built correctly.
- 57% passed reliably.
- 25% increased coverage.
Across Meta’s Instagram and Facebook test-a-thons, the tool improved 11.5% of the classes it was applied to, and engineers accepted 73% of its recommendations for production.
Two lessons follow. First, most raw output is not usable without automatic filters: a quarter did not even build. Second, the value came from the pipeline around the model (build, run repeatedly, measure coverage, then human review), not from the model alone. If you adopt AI test generation, build that pipeline first.
The vendors say the same thing in their own documentation. GitHub states that generated tests may not cover all scenarios and should always be reviewed. Playwright warns that generated tests may contain errors and that the healer can return a skipped test when it believes the functionality is broken, which means a failing feature can quietly turn into a skipped test unless someone checks.
How should your test strategy change?
The strategy questions change more than the tooling. Five adjustments matter.
- Make the oracle explicit. AI is good at producing steps and weak at knowing the right answer. Write acceptance criteria and expected results down before generation, and review generated assertions against them.
- Keep the test pyramid. Generated end-to-end tests take little effort to create but are still slow and brittle to run, the problem Martin Fowler’s Test Pyramid describes. Point generation at unit and API tests first.
- Treat healing as a change, not a fix. Every healed locator or skipped test should appear in a pull request someone approves. Otherwise the suite drifts away from the product without anyone noticing.
- Track trust, not volume. DORA’s test automation guidance says failures should indicate real defects and advises against tolerating flaky tests. Measure the share of failures that were real defects before and after adopting a tool.
- Set data rules. Decide which code, test data and screenshots may be sent to an external AI service, and keep production personal data out of prompts. Our AI governance work starts from that question.
What new risks do AI testing tools bring?
- Tests that confirm bugs. A test generated from existing code asserts what the code does today. If the code is wrong, the test locks the defect in.
- Silent coverage loss. Healing and skipping can make a suite go green while real checks disappear.
- Volume without value. Many near-duplicate tests lengthen build times and slow feedback, which DORA’s guidance warns against.
- Skills drift. If juniors only review generated tests, they may never learn test design. Pair review with deliberate practice.
How do you pilot an AI testing tool without losing control?
- Pick one bounded area, such as unit tests for one service or UI tests for one flow.
- Baseline it: run time, failures in the last month, share of failures that were real defects, and time spent repairing tests.
- Add the tool behind filters: generated tests must build, pass several runs in a row and add coverage before a person reviews them.
- Route every generated, healed or skipped test through code review.
- After four to six weeks, compare against the baseline and decide whether to widen, change or stop.
If you want help designing that pilot, our test automation services team can set up the pipeline and review gates. For the non-AI groundwork, see how automation improves QA efficiency.
What should a QA lead do this quarter?
- Write down which testing tasks you will let AI draft and which stay human-owned, using the table above.
- Agree data rules for what may go into an AI tool.
- Run one filtered pilot with a baseline and an end date.
- Add a review step for every healed or skipped test.
- Report the share of failures that were real defects, not the number of tests generated.
Questions
Will AI replace software testers?
The evidence points to a change in the work rather than its removal. Vendors such as GitHub and Microsoft’s Playwright team say generated tests must be reviewed, and deciding what correct behavior is and whether a release is ready still needs a person.
What is self-healing test automation?
It is a tool that notices a test failed because the UI changed, inspects the current page and proposes an updated locator or step. Playwright’s healer agent, for example, re-runs the test until it passes or guardrails stop it, and it can mark a test as skipped if it thinks the feature is broken.
How reliable are AI-generated unit tests?
In Meta’s published TestGen-LLM evaluation, 75% of generated tests built, 57% passed reliably and 25% increased coverage. That is why generated tests need automatic filters and human review before they join a suite.
Where should a team start with AI in testing?
Start with first-draft unit tests or coverage extension in one bounded area, with a baseline and filters. Keep exploratory testing, security sign-off and release decisions human-owned.


