Skip to content
Zenocta Solutions

Technology24 Nov 2026 · 9 min read

Test Automation: What to Automate First and Measure Honestly

Where to start with automated tests, how to tame flaky ones, which QA numbers mislead, and what AI changes about manual testing.

ZEBy , Editorial Team

Dark Zenocta demos social card with the Zenocta Solutions logo

Every team that ships software has tests. The difference is whether those tests run in a few minutes before every release, or in someone's head and a spreadsheet the day before. Test automation is the practice of writing checks that run by themselves, so people can spend their time on the testing only humans do well. This guide covers what to automate first, why flaky tests quietly destroy trust, and how to measure QA honestly without gaming the numbers. It also addresses a change that is happening now: AI is automating much of the repetitive manual testing work. The sensible response is to sell and buy automation, not hours of headcount. You can see a sample test dashboard with pass rates, flaky tests and a coverage trend in the simulated engineering demo.

What test automation is, and what it is not

Test automation means code that exercises your software and checks the result, run repeatedly without a person clicking through screens. It is excellent at repetition: confirming that yesterday's features still work after today's change. It is poor at judgement: noticing that a screen feels confusing, that wording is unclear, or that a flow technically works but frustrates users.

So automation does not replace testers; it changes their job. Instead of re-running the same regression checklist, a tester explores new features, designs better test cases, investigates odd behaviour and improves the automated suite. Staffing research cited in this area, such as data from the Staffing Industry Analysts, describes falling demand for purely manual testing roles as AI augments them, which is directional rather than precise. The useful reading for a business is not "fewer testers" but "stop paying for repeated manual work that a machine can do in minutes".

A good rule: automate what is repetitive, stable and important. Keep humans for what is new, subjective or unclear.

The test pyramid, in plain words

The test pyramid is a picture of how many tests of each kind to have. At the base are many fast unit tests that check small pieces of code in isolation. In the middle are fewer integration and API tests that check how parts talk to each other. At the top are a small number of end-to-end tests that drive the real interface like a user. The higher you go, the slower, more fragile and more expensive tests become, so you want fewer of them.

Teams that ignore the shape often end up with an "ice cream cone": many slow, brittle browser tests and few unit tests. Their pipeline takes an hour, fails for unclear reasons and gets ignored. Building from the bottom up avoids that. The CI/CD pipeline guide shows where each kind of test runs.

What to automate first

You cannot automate everything on day one, and you should not try. Pick by risk and repetition.

  1. The critical user journeys. Log in, search, add to basket, pay, book, submit a form. If these break, the business notices. A handful of end-to-end tests for them is the best starting investment.
  2. Business rules in the code. Price calculations, tax, discounts, permissions, eligibility. These are logic-heavy and cheap to check at the unit level, and bugs here cost real money.
  3. API contracts. If a mobile app, website or partner depends on your API, test that responses keep their shape and rules. These tests are fast and stable.
  4. Anything you have broken before. Every serious bug that escaped to users deserves a test that would have caught it, so it cannot come back.
  5. The boring regression checklist. Any list that a person runs by hand every release is a strong candidate to automate, because the time saved repeats every time.
  6. Smoke tests for deployment. A few quick checks that run after each release against the live address confirm the application is up and the main pages work.

Leave for later: highly visual checks that change often, rarely used corners of the product, and tests for features about to be removed. Also leave alone anything where the expected result is a matter of opinion.

Choosing tools without overthinking it

For web applications, open-source browser automation tools such as Playwright and Cypress are widely used, and many teams use API testing tools and unit test frameworks native to their language. For load and performance testing, tools such as k6 or JMeter are common. Mobile testing adds device coverage: Zenocta builds for Android and the web, so Android emulators and real devices matter more than any other platform in our work. Pick tools your team can maintain, with good documentation and an active community. The best tool is the one that gets used every day.

AI-assisted tooling is growing. It can help draft test cases from requirements, suggest missing scenarios and repair tests when a button's label or position changes, which is often called self-healing. Treat these as accelerators, not oracles. Review generated tests as you would review code from a new colleague, because a test that asserts the wrong thing gives false comfort.

Flaky tests: the quiet trust killer

A flaky test is one that sometimes passes and sometimes fails with no change to the code. The first few are an annoyance. Left alone, they become a culture of "just re-run it", and the day a real failure appears, nobody believes it.

Common causes are predictable:

  • Timing: the test checks before the page or service is ready. Fix with proper waits on conditions, not fixed sleeps.
  • Shared state: tests depend on data left by other tests or run in an order that matters. Make each test set up and clean its own data.
  • External services: tests call real third-party systems that are slow or down. Use test doubles or recorded responses for most checks.
  • Environment differences: slow shared servers, different time zones, random data. Pin the environment and fix random seeds and clocks.
  • Brittle selectors: tests find elements by fragile paths. Use stable test identifiers.

Have a policy. When a test is flaky, quarantine it, meaning move it out of the blocking set so it cannot stop releases, record it on a visible list with an owner, and fix or delete it within a set time. Track the flake rate: the share of runs that fail and then pass on retry. A suite is trustworthy when a red build means a real problem almost every time.

Measuring QA honestly

Metrics shape behaviour, so choose them carefully. A single impressive number can be gamed, and a vanity metric can hide serious problems.

MetricWhat it tells youHow it misleads
Pass rateShare of tests passing in a runA high rate with few or weak tests means little; deleting failing tests raises it.
Code coverageShare of code executed by testsCovered is not the same as checked; tests with no assertions still add coverage.
Flake rateHow often failures are not realRarely tracked, so it hides growing distrust.
Escaped defectsBugs found by users after releaseDepends on how bugs are reported and classified.
Time to feedbackHow long from commit to test resultFast but shallow checks look good while missing problems.
Lead time and change failure rateHow quickly changes ship and how often they cause incidentsNeed agreed definitions to compare over time.

A honest dashboard shows several of these together, with trends rather than single points, and with notes about what each number cannot say. Be careful with coverage targets: a rule such as "80 per cent coverage or the build fails" often produces low-value tests written to hit the number. Use coverage to find untested risky areas, not to grade people. Never rank testers or developers by bug counts, because that rewards finding trivial bugs and punishes cooperation.

Pair numbers with questions. How many defects did users report last quarter, and did a test exist for each afterwards? How long does a developer wait for results? How many tests are quarantined, and for how long? These tell you more than any percentage. For release health in production, the observability guide explains the monitoring that completes the picture after tests pass.

AI and the future of manual testing

AI is changing testing work in three visible ways: it drafts test cases from stories and screens, it generates data and variations, and it helps maintain tests when interfaces change. That shrinks the value of repeated manual clicking. It does not remove the need to decide what to test, judge risk, understand users and investigate strange behaviour. Those human strengths become more important as the routine work is automated.

For a business buying QA, the practical consequence is to pay for outcomes you can inspect: a working suite in your repository, running in your pipeline, with a clear report, rather than for a number of testers' hours. For a tester or a small QA firm, the way forward is to move toward automation, tooling, exploratory testing and quality coaching. Zenocta positions its QA work around automation and release gating for exactly this reason, not around supplying testers by the hour.

For Irish and EU teams: do not test with real customer data unless you have a lawful basis and strong controls. Use synthetic or properly anonymised data in test environments, because production personal data copied to a test server is still personal data under GDPR. Keep test environments and any hosted test services in EU regions where they touch personal data, and review the data processing terms of AI testing tools, since test inputs may be sent to external models. If NIS2 applies to you or a customer, secure development and testing practices may be expected. The Irish bill had not yet been enacted at the time of writing, so check official sources such as the National Cyber Security Centre. Teams elsewhere should follow their own regional rules.

What to do this week

  • List the three user journeys that would hurt most if they broke, and automate one of them end to end.
  • Turn your manual pre-release checklist into a list and pick the first five items to automate.
  • Find your flakiest test, quarantine it and give it an owner and a date.
  • Add pass rate, flake rate and time to feedback to one shared dashboard, with a weekly trend.
  • Run the suite in your pipeline on every pull request, as described in the CI/CD guide.
  • Look at the simulated test dashboard, read how Zenocta approaches this on the cloud and DevOps page, or contact us to discuss automation for your own application.

Good test automation is not a project with an end date. It is a small, steady habit: add a test when you find a bug, fix or remove the ones you cannot trust, and measure what matters. Do that, and releases stop being an event.

Try it live

Open the real thing: demos run in a new tab with sample data, apps link to their own page.

Frequently asked questions

  • 01What should we automate first?

    Start with your critical user journeys such as login and checkout, business rules like pricing and permissions, API contracts, bugs you have had before, and any manual regression checklist run every release.

  • 02What is a flaky test?

    A flaky test passes and fails inconsistently without any code change. Causes include timing, shared data, external services and brittle selectors. Quarantine it, assign an owner and fix or delete it quickly.

  • 03Is code coverage a good measure of QA?

    It is a useful pointer to untested risky areas but a poor target. Tests with no assertions still add coverage, so pair it with flake rate, escaped defects and time to feedback.

  • 04Will AI replace manual testers?

    AI is automating repetitive manual testing and helping draft and repair tests, so demand for purely manual work is under pressure. People remain vital for judgement, exploration and deciding what to test.

  • 05Which tools are common for web test automation?

    Playwright and Cypress are widely used for browser tests, alongside API and unit test frameworks native to your language, and tools such as k6 for load testing. Pick what your team can maintain.

0% read ·

Get new guides in your inbox

Practical notes on billing, payroll, apps and AI for growing businesses, written from what we build. No spam.

We email occasional guides. Unsubscribe any time: reply to any email or write to contact@zenocta.com.

Ready to build something real?

Website and app development from ₹8,888. Book a free consultation and get a scoped, fixed-price proposal within 24 hours.