QA AND TEST AUTOMATION · PART 3 · AUTOMATION FUNDAMENTALS · STRATEGY · 30 OF 112

What to Automate (and What Not To) in Testing

How to choose what to automate: tests that run often, check stable rules, need lots of data or precise timing, and protect high-risk features; and what to leave manual: one-off checks, fast-changing UI, usability and exploratory work. With a simple scoring model, a return-on-investment estimate, and a first automation backlog for ShopRung.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33
  34. 34
  35. 35
  36. 36
  37. 37
  38. 38
  39. 39
  40. 40
  41. 41
  42. 42
  43. 43
  44. 44
  45. 45
  46. 46
  47. 47
  48. 48
  49. 49
  50. 50
  51. 51
  52. 52
  53. 53
  54. 54
  55. 55
  56. 56
  57. 57
  58. 58
  59. 59
  60. 60
  61. 61
  62. 67
  63. 68
  64. 69
  65. 70
  66. 71
  67. 72
  68. 73
  69. 74
  70. 75
  71. 76
  72. 77
  73. 78
  74. 79
  75. 80
  76. 81
  77. 82
  78. 83
  79. 84
  80. 85
  81. 86
  82. 87
  83. 88
  84. 89
  85. 90
  86. 91
  87. 92
  88. 93
  89. 94
  90. 95
  91. 96
  92. 97
  93. 98
  94. 99
  95. 100
  96. 101
  97. 102
  98. 103
  99. 104
  100. 105
  101. 106
  102. 107
  103. 108
  104. 109
  105. 110
  106. 111
  107. 112
1 / 11

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Frequent, stable, high-risk, tedious → automate
  • explore and judge → people
  • score it
  • count upkeep
  • lowest layer

Notes

The idea

Good candidates share a few traits. They run often, like regression checks on every build. They check something stable, a rule that rarely changes. They protect high risk areas: money, login, data and security. They are tedious or error prone for a person, like checking a hundred rows of boundary values. Or they need precision a person cannot give, like exact timings, or the same flow on several browsers.

Good candidates
  • run often: every build, every release (regression)
  • stable: the rule rarely changes
  • high risk: money, login, data, security
  • tedious or error-prone by hand
  • needs data or precision: 100 boundary rows, timing, many browsers

Keep manual

Some testing should stay with people. Exploratory testing, which is about learning. Usability: is the page clear, pleasant or confusing? Visual judgement beyond pixel comparisons. One off checks, like a data migration that runs once. User interfaces that change every week, where tests would break constantly. Features about to be removed. And things that are very hard to automate but low risk. Automation checks; people investigate and judge.

Usually manual
  • exploratory testing
  • usability: is it clear, pleasant, confusing?
  • visual judgement beyond pixel diffs
  • one-off checks: a data migration run once
  • UI that changes every week
  • features about to be removed
  • hard to automate, low risk

A scoring model

To order the backlog, score each candidate from one to three on how often it runs, the risk it covers, and how stable it is, then subtract the cost to automate it. The save ten boundaries score high on everything and are cheap, as unit or API tests. The quantity limits and order states are similar. The checkout journey is valuable but costlier through the browser. The requirements page scores low. Automate from the top down.

Score 1 to 3 each
test         freq risk stable cost
SAVE10 edges  3    3    3     1
qty 0-11      3    3    3     1
order states  3    3    3     2
checkout UI   3    3    2     2
reqs page     1    1    1     2

value = freq + risk + stable
  - cost  → automate highest

Payback

Estimate whether it pays back. Say a manual regression pass takes six hours, twice a month: twelve hours a month. Automating it takes sixty hours once, plus about four hours a month of upkeep. That saves eight hours a month, so it pays back in about eight months. And the numbers undersell it, because automated tests also run on every commit, catching bugs days earlier. Always include upkeep in the cost; teams forget it.

Does it pay back?
manual regression: 6 h per
  release, 2 releases a month
  = 12 h a month
automate it: 60 h once
  + 4 h a month upkeep

saves 12 - 4 = 8 h a month
payback: 60 / 8 ≈ 8 months

plus: runs on every commit

Right layer

Deciding what to automate is half the job; choosing the layer is the other half. ShopRung's first backlog, in order. One: the money rules as unit tests. Two: cart and order rules as API tests, including invalid order moves. Three: authentication at the API: wrong passwords, expired and broken tokens. Four: one checkout journey in the browser with Playwright. Five: a search smoke test. Left manual for now: layout feel and the requirements page.

ShopRung backlog, layered
  • 1 money rules: unit, JUnit (PRICE-3, 4, 6, 9)
  • 2 cart and order API tests (CART-2, 3; ORD-1 to 7)
  • 3 auth API: login, 401s (ACC-5, 6, 7)
  • 4 one UI checkout journey (Playwright)
  • 5 search UI smoke
  • leave: reqs page, layout feel

Good automated tests

A test is ready to automate when its expected result is exact, its data can be reset, its environment is stable, its steps are deterministic, and the elements it uses can be found reliably, by role or test id. ShopRung was built with these in mind: a reset endpoint, test ids and accessible labels. If one is missing in your product, fix that first, often by asking developers for a test hook, or the test will flake forever.

Ready to automate when
  • the expected result is exact
  • the data can be reset (POST /api/test/reset)
  • the environment is stable
  • the steps are deterministic
  • there is a hook to find elements (roles, test ids)
  • missing one? fix that first, or the test will flake

Both together

A healthy team uses both. Automation takes the repeated checks: regression, business rules, smoke tests, API contracts and boundary data. People spend the time that frees up on new features, exploratory sessions, usability, risk analysis, and reviewing what the automation missed. And automation is never finished: every escaped bug becomes a new automated check, and every removed feature removes its tests.

A healthy split
  • automated: regression, rules, smoke, API contracts, boundary data
  • people: new features, exploratory sessions, usability, risk analysis, reviewing what automation missed
  • automation is never "done"

Common mistakes

Automation decisions that backfire. A goal of automating a hundred percent of test cases. Automating a feature that is still changing daily. Converting manual steps one to one into slow browser scripts, instead of choosing the right layer. Ignoring the cost of maintenance. Nobody owning failing tests, so red becomes normal. Automating before the manual case is even clear. And judging success by the number of tests instead of the bugs they catch.

Avoid these
  • "automate 100% of cases"
  • automating unstable features
  • converting manual steps 1:1 into slow UI scripts
  • ignoring maintenance cost
  • no owner for failing tests
  • automating before the manual case is clear
  • measuring success by count

Say it like this

In the interview, say: I automate what runs often, is stable and high risk, or is tedious or needs precision, like regression, business rules and smoke tests. I keep exploratory and usability testing manual. I score the backlog by frequency, risk, stability and cost, check the payback including maintenance, and automate each test at the lowest layer that catches the bug. Then give the ShopRung style example: money rules as unit tests, one UI journey.

In the interview
  • "I automate what runs often, is stable and high-risk, or is tedious or precise by hand, like regression, business rules and smoke.
  • I keep exploratory and usability manual. I score the backlog, check payback with upkeep included, and pick
  • the lowest layer for each."

Interview questions

Q1How do you decide which tests to automate?

Prioritise tests that run frequently, cover high-risk and stable functionality, are repetitive or data-heavy, or need precision; score by frequency, risk, stability and cost to automate.

Q2What should not be automated?

Exploratory and usability testing, one-off checks, features that change constantly or are being removed, and low-risk scenarios that are very costly to automate.

Q3How do you calculate automation ROI?

Compare the manual effort saved per period with the one-off build cost plus ongoing maintenance; payback time = build cost / (manual hours saved - upkeep hours) per period.

Q4Should you aim for 100% automation?

No. Some testing needs human judgement, and some automation costs more than it saves. Aim for automated coverage of the risky, repeated checks.

Q5What makes a test case ready for automation?

An exact expected result, resettable test data, a stable environment, deterministic steps and reliable element hooks (roles or test ids).

Q6What is the first thing you would automate for a new product?

A smoke suite of critical paths and the highest-risk business rules at unit or API level, running in CI on every change.

Q7Why not convert manual test cases one to one into UI scripts?

Many checks belong at lower layers where they are faster and more stable; one-to-one UI conversion produces a slow, flaky suite.

Q8What happens to manual testers when you automate?

They move to higher-value work: exploratory testing, risk analysis, usability and reviewing gaps, often while learning automation themselves.