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.
- 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.
- 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.
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.
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.
- 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.
- 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.
- 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.
- "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.
- "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."