In short
AI changes software testing in four practical places: drafting test cases from requirements, repairing broken UI locators, generating and masking test data, and ranking which tests to run first. It does not remove the need for testers. Generated tests and self-healed scripts still need human review, and products that contain AI need their own test strategy.
What does AI actually change in software testing?
Traditional testing struggles with the same problems every release: too little time, too many scenarios to cover, scripts that break when the interface changes, and test data that is either unrealistic or too sensitive to use. AI helps with each of these, but as an assistant to testers, not a replacement for them.
The changes that hold up in practice fall into four areas:
- Test design. Models draft test plans and test cases from requirements, user stories or by exploring the application.
- Test maintenance. When a UI test fails because an element moved or was renamed, tooling proposes a repaired locator.
- Test data. Generators produce realistic synthetic records, and masking tools hide personal data in copies of production.
- Test selection and analysis. Models trained on change and defect history rank which tests to run first and group failures by likely cause.
What has not changed is accountability. Someone still decides what “correct” means, reviews what the tools produce and signs off the release.
Where does AI help, and where does a person still decide?
| Testing task | What AI does | What a person still checks |
|---|---|---|
| Test planning | Explores the application or reads requirements and drafts scenarios | Whether the plan covers the business risks, not just the visible screens |
| Test case and script generation | Turns scenarios into runnable test code | That assertions test the right outcome; a test that always passes is worse than none |
| Self-healing UI tests | Finds an equivalent element when a locator breaks and proposes a patch | That the change is a harmless UI change, not a real defect being hidden |
| Synthetic and masked test data | Generates realistic records and replaces personal data | That the data covers edge cases and that no personal data leaks into test environments |
| Test prioritization | Ranks tests by the risk of the code that changed | That critical paths still run on every release, whatever the ranking says |
| Failure triage | Groups similar failures and suggests a likely cause | The root cause and the fix |
How do AI test agents work in a real framework?
Playwright, an open-source browser testing framework, is a concrete example. Its documentation describes three Playwright Test Agents that can run alone or in a loop:
- Planner explores the application, starting from a seed test, and writes a Markdown test plan.
- Generator turns that plan into Playwright test files, checking selectors and assertions as it runs the scenarios.
- Healer runs the suite, replays failing steps, looks for equivalent elements in the current UI, suggests a patch and reruns until the test passes or its guardrails stop it.
The same documentation is clear about review. Generated tests can start with errors, the healer’s patches can change locators, waits or data, and the healer may mark a test as skipped if it believes the feature itself is broken. Each of those outcomes needs a person to look at it. Treat agent output like a pull request from a new team member: useful, fast and reviewed before it merges.
Does AI make testing teams faster?
It can, but only where the basics are already in place. The DORA research programme, in its State of AI-assisted Software Development 2025 report, describes AI’s primary role as an amplifier that magnifies an organization’s existing strengths and weaknesses, and finds that the greatest returns come from focusing on the underlying organizational system rather than the tools.
For testing, that means:
- A stable, automated pipeline benefits from generated tests; a pipeline with flaky tests and manual deployments gets more flaky tests, faster.
- Clear acceptance criteria give a model something to test against; vague stories give it room to guess.
- Good test data management makes synthetic data useful; without it, generated data becomes one more uncontrolled copy.
If your suite is not yet automated, start there. Test automation is the foundation that AI-assisted testing builds on.
How do you test AI-based systems themselves?
There is a second meaning of “AI in testing”: testing applications that contain AI, such as recommendation engines, chatbots or large language model features. These need techniques that classic functional testing does not cover, because the same input can produce different outputs and quality depends on training data.
ISTQB, the international software testing qualifications board, separates the two skills. Its Certified Tester AI Testing (CT-AI) v2.0 covers testing AI-based systems, including machine learning and generative AI systems such as large language models, with topics such as input data testing, model testing and AI-specific quality characteristics. Using generative AI to support testing is covered by a separate certification, Certified Tester Testing with Generative AI (CT-GenAI). If your product includes AI features, plan for both skills in the team.
How should a team adopt AI in its testing lifecycle?
- Pick one pain point. Brittle UI tests, slow test design or unusable test data. Do not start with all four.
- Measure the baseline. Record the current figure for that pain point, such as hours spent repairing broken tests per sprint or the share of failures that are flaky.
- Run a bounded pilot. One application, one tool, a fixed period, with every generated or healed test reviewed like code.
- Set review rules. Decide who approves generated tests, which healed changes need a second look, and which tests may never be auto-modified.
- Protect personal data. Keep production data out of prompts and test environments unless it has been masked or replaced with synthetic records.
- Compare and decide. Keep the tool only if the measured figure improved and defect escape did not get worse.
For the broader picture, how AI is changing software testing covers where the field is heading, and software testing services set out how a full test strategy fits together.
Questions
Will AI replace software testers?
No. AI drafts and maintains tests, but people still decide what correct behavior is, review generated and healed tests, and own the release decision. Testing AI-based products also needs specialist skills.
What is a self-healing test?
It is an automated UI test whose tooling finds an equivalent element when a locator breaks and proposes or applies a fix. Every healed change should be reviewed, because a heal can hide a real defect.
Can AI generate test cases?
Yes. Tools such as Playwright Test Agents can explore an application, write a test plan and generate runnable tests from it. The generated assertions need review before the tests are trusted.
How do you start using AI in testing?
Choose one pain point, measure it, run a short pilot on one application with every generated test reviewed, and keep the tool only if the measured figure improves.


