Most teams come to test automation the same way: every release needs a bigger manual regression run, releases slow down, and bugs still slip through. Automation looks like the answer, and it can be. But automating the wrong things creates a second problem: a suite of slow, flaky tests that nobody trusts and everybody has to maintain.
This guide covers where test automation pays off first, what to leave manual, how to structure a suite that stays healthy, and an 8-week plan to get started.
Start with the test pyramid
A healthy automated suite has many fast, cheap tests at the bottom and few slow, fragile ones at the top. The idea is widely known as the test pyramid.
| Layer | What it tests | Speed and cost | How many |
|---|---|---|---|
| Unit tests | Individual functions and classes | Milliseconds. Cheap to maintain | Many (usually written by developers) |
| API and service tests | Business logic through the API, without the screen | Fast. Stable | A good number: the best value for QA teams |
| UI / end-to-end tests | Real user journeys through the screen | Slow. Breaks when screens change | Few, for critical journeys only |
The most common mistake is an upside-down pyramid: hundreds of UI tests and almost no API tests. It's slow, fragile and expensive to maintain.
What to automate first
| Automate | Why |
|---|---|
| Smoke tests for every build ("does it start, can I log in, does the main flow work?") | Catch broken builds in minutes |
| Regression tests for critical, stable journeys (checkout, payments, order creation, approvals) | Highest business risk, run on every release |
| API tests for business rules (calculations, permissions, validations) | Fast, stable, catch most logic bugs |
| Data-heavy checks (many input combinations, boundary values) | Tedious and error-prone by hand |
| Cross-browser and device checks for key pages | Too many combinations to do manually |
| Performance baselines for key APIs | Catch slowdowns before users do |
What not to automate (yet)
| Leave manual | Why |
|---|---|
| Features still changing every sprint | Tests break as fast as you write them |
| One-off checks | Automation never pays back |
| Exploratory testing | Finding unexpected problems needs human curiosity |
| Usability and visual judgement | "Is this confusing?" isn't a pass/fail check |
| Complex hardware interactions, without a test rig | Needs a rig or a simulator first (see IoT device testing) |
Keep the suite healthy
- Fix or remove flaky tests quickly. A test that fails randomly teaches everyone to ignore failures.
- Independent tests: each test sets up its own data and doesn't depend on another test running first.
- Test data you control: seeded data or generated data, not "whatever is in staging today".
- Stable selectors: agree test IDs with developers, so UI tests don't break on every design change.
- Run in the pipeline: smoke tests on every commit, regression before every release. (See our CI/CD pipeline workflow.)
- Report clearly: which tests failed, with screenshots and logs, visible to developers.
Measuring whether it's working
| Measure | Good direction |
|---|---|
| Regression time per release | Down |
| Defects found after release | Down |
| Flaky test rate | Near zero |
| Time from commit to test result | Down |
| Share of critical journeys covered | Up |
Measure "before" numbers first: how long manual regression takes today, and how many bugs reach production.
An 8-week starting plan
| Weeks | Step |
|---|---|
| 1 | List critical user journeys and business rules. Measure today's regression effort and escaped defects |
| 2 | Choose tools that fit your stack and team. Set up the project structure, test data approach and reporting |
| 3–4 | Automate smoke tests and the top API tests. Run them in the pipeline on every build |
| 5–6 | Automate the 10–20 most important regression journeys (API first, UI only where needed) |
| 7 | Add a performance baseline for key APIs. Fix flaky tests |
| 8 | Review: time saved, defects caught, maintenance effort. Plan the next quarter |
Build it in-house or with a partner?
| Option | Good when |
|---|---|
| Your developers write the tests | Strong engineering culture, time in each sprint for testing |
| A dedicated in-house QA engineer | Steady product work, budget for a full-time role |
| A managed QA team from a partner | You need to start fast, cover several products, or scale up and down, without hiring |
Whichever you choose, the tests should live in your repository and run in your pipeline, so you keep them if people or partners change.
Frequently asked questions
What should be automated first in testing?
Smoke tests for every build, API tests for core business rules, and regression tests for the most critical, stable user journeys.
What should not be automated?
Features that are still changing, one-off checks, exploratory testing and usability judgements.
What is the test pyramid?
A model for a healthy test suite: many fast unit tests, a good layer of API tests, and a small number of slow end-to-end UI tests.
How long does test automation take to pay back?
It depends on how often you release and how much manual regression you do today. Teams that release often see the benefit soonest. Measure your current regression effort to estimate it.
Can test automation work for IoT products?
Yes, with device simulators and hardware-in-the-loop rigs for the device side, alongside normal API and UI automation for the apps and cloud.
Regression testing slowing your releases? Our QA team can set up automation in your pipeline, or run it as a managed service. See our testing services → · Talk to our QA team →