Test automation
Automating functional, API and end-to-end checks so every change gets tested.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
Overview
Test automation is writing code that checks software behaves as expected, from unit tests to end-to-end tests that drive the user interface. Good automated tests are fast, independent, deterministic and readable, and they fail for one clear reason.
Core practices include choosing the right level for each check, using stable locators (roles and labels rather than CSS paths), waiting on conditions instead of fixed sleeps, isolating test data, and running suites in CI on every change. These fundamentals matter more, not less, when AI tools are generating the tests.
What you will practise
- Choose the right test level for each check
- Use stable, user-facing locators instead of brittle selectors
- Wait on conditions rather than fixed sleeps
- Run the suite in CI on every change
Learning paths
- 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.
- AI-assisted software engineering
Learn AI-assisted software engineering on real repositories: set up coding agents, give them good instructions, review their diffs and run several in parallel.
Tutorials
- How to test LLM applications as a QA engineer
Contract tests on a scripted model, a golden set with pass-rate floors, a calibrated LLM judge and a regression gate.
- Run LLM evals in CI with promptfoo
Write a promptfoo config with deterministic and model-graded assertions, run it in GitHub Actions, fail the build on regressions and keep the bill small.
- Exploratory testing with Playwright MCP
Give a coding agent a browser through Playwright MCP, run a time-boxed exploratory charter, record findings, and turn the confirmed ones into Playwright specs.
- 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.
- 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.
- 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.
Workflow recipes
- 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.
- Test-driven development with a coding agent
Agree the seams, write one failing test, lock the tests with a hook while the agent makes it pass, then prove the test can fail.
- Debug a bug with an AI agent: reproduce it, then fix it
Write the bug report, have the agent reproduce it as a failing test, find the root cause, apply a small fix and prove it.
- Run an accessibility audit with an agent
Run an AI accessibility audit against WCAG 2.2 AA with Playwright, axe-core and an agent, add the manual checks scanners miss, and rank fixes by user impact.
- Fix a failing CI run with a coding agent
It reads the GitHub Actions logs, explains the cause and fixes it, with stop rules so it never loops or weakens tests.
- Fix flaky E2E tests with the Playwright healer, safely
Prove the flake, run Playwright's healer agent on a branch, check each change for red flags, keep a heal log and merge by hand.
- Spec-driven feature build: plan, approve, implement, verify
Written spec, approved plan, small tested tasks and a final check against the spec, not vibes.
- Write unit tests for legacy code with a coding agent
An agent writes characterisation tests, you check for weak assertions and prove them with mutation testing.
Articles
- 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.
- Reviewing AI-written code: what to look for
The ways agent-written diffs fail, a practical review checklist, and how to set up the work so review stays manageable.
Tools for this skill
Applitools
Testing platform built on visual AI comparison, with no-code and SDK authoring.
Playwright
End-to-end testing framework for web apps, with built-in test agents.
Key terms
Words you will meet while learning this, defined in the glossary.
- Flaky test
A test that sometimes passes and sometimes fails on the same code, usually because of timing, shared state, test order or external services.