QA AND TEST AUTOMATION · PART 1 · MANUAL TESTING, PROPERLY · PLANNING · 18 OF 112

Test Plan vs Test Strategy, Traceability and Metrics

What a test strategy and a test plan are, how they differ, and what goes in each: scope, approach, environments, data, risks, entry and exit criteria, schedule and roles. Then traceability and the few test metrics that help decisions, on a one-page plan for a ShopRung release, plus how agile teams keep plans light.

  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 / 14

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

Key takeaways

  • Strategy: how we test
  • plan: this release
  • scope and risk
  • entry and exit criteria
  • traceability
  • useful metrics

Notes

The idea

A test strategy describes how a team or company tests, in general: which levels and types, which tools, how much automation, which environments. It lives for a long time. A test plan applies the strategy to one release or project: what is in scope, the schedule, who does what, the risks, and when testing starts and stops. Think of the strategy as the rules of the game, and the plan as the plan for this match.

Strategy vs plan
  • test strategy long-lived, for a product or the whole company levels, types, tools, automation, environments
  • test plan for one release or project scope, schedule, people, risks, entry and exit criteria

The strategy

A strategy for ShopRung might say: developers write unit tests for every money rule. API tests run in the pipeline on every pull request. Browser tests cover only the main flows, with Playwright. Every new feature gets exploratory sessions. There are two environments, development and staging, and every automated run resets the data first. Short, specific, and agreed by the team. Part twelve of this track covers writing strategies at senior and staff level.

ShopRung test strategy
  • unit tests by developers for every money rule
  • API tests in CI on every pull request
  • UI end-to-end: main flows only, Playwright
  • manual: exploratory sessions on every new feature
  • environments: dev, staging
  • data: reset before each run

The plan

Most test plans have the same sections. Scope: what is in and what is out. Approach: which techniques and types of testing. Environment and test data. Risks and how each is covered. Entry criteria and exit criteria. Schedule and people. And deliverables, like the test cases and the final report. Standards such as IEEE eight two nine and ISO two nine one one nine give long templates. In practice, the best plans are short and actually read.

A test plan has
  • scope: in and out approach: techniques, types
  • environment and test data
  • risks and how we cover them
  • entry criteria
  • exit criteria
  • schedule and people
  • deliverables: cases, report
  • IEEE 829 / ISO 29119 give
  • templates; keep it short

Scope and risk

Scope and risk go together. Say release one point four adds the flat five coupon and fixes rounding. In scope: both changes, plus regression of the cart and orders, because money flows through them. Out of scope: search, which did not change and only gets a smoke check, and the admin pages. The top risks: wrong totals, which cost money, and coupons interacting with free shipping. Saying what is out of scope is as important as what is in.

Release 1.4: what changed
  • in scope new FLAT5 coupon (PRICE-4) rounding fix (PRICE-6) regression: cart, orders
  • out of scope search (unchanged, smoke) admin pages
  • top risks wrong totals → money coupon + shipping clash

Entry criteria

Entry criteria say when testing can usefully start. The build is on staging, the smoke test passes, the unit tests are green, the requirements for the new coupon are agreed, and test data and accounts are ready. They protect the testers' time. If a build arrives and smoke fails, the criteria give you a clear reason to send it back instead of quietly losing two days.

Entry criteria
  • build deployed to staging
  • smoke test passes
  • unit tests green in CI
  • requirements for FLAT5 agreed and frozen
  • test data and accounts ready
  • not met? say so early, do not test a broken build

Exit criteria

Exit criteria say when testing is done, agreed before testing starts so done is not a feeling. For example: every high priority case has run, at least ninety five percent of planned cases passed, there are no open critical or major bugs and the minor ones were reviewed, every in scope requirement has at least one passing case, the regression suite is green, and the summary report is sent. Meeting them does not mean zero bugs. It means the agreed risk level was reached.

Exit criteria
  • all high-priority cases run
  • 95% of planned cases passed
  • no open critical or major bugs; minors reviewed
  • every in-scope requirement has at least one passing case (traceability)
  • regression suite green
  • test summary report sent

Traceability

Traceability links requirements to test cases, results and bugs, in both directions. Forward, it answers: is every requirement tested, and how did it go? Backward, it answers: why does this case exist? Here, order two has one case and an open bug, B seven. In a test plan, traceability is how you prove the exit criterion that every in scope requirement has a passing case. Tools like Jira with a test plugin build this table for you.

Traceability matrix
req      cases       run   bugs
PRICE-4  TC-10,11     2/2   -
PRICE-6  TC-08,17     2/2   -
PRICE-9  TC-12..14    3/3   -
CART-2   TC-01..05    5/5   -
ORD-2    TC-20        1/1   B-7

forward: is every req tested?
backward: why does TC-17
  exist?

Metrics

Metrics should help decisions, not decorate slides. Progress: cases run out of planned. Pass rate. Open bugs by severity. Requirement coverage from the traceability table. Defects found per area, which shows where to look harder. And after the release, escaped defects, the bugs customers found. Avoid vanity numbers like the number of test cases written. A thousand weak cases are worse than a hundred good ones.

Useful test metrics
  • progress: cases run / planned
  • pass rate: passed / run
  • open bugs by severity
  • requirement coverage
  • defects found per area (where to look harder)
  • escaped defects after release
  • avoid: "number of test cases" as a goal

The report

At the end, a short test summary report supports the go or no go decision. Fifty eight of sixty cases run, fifty five passed. One major bug open, B seven, stock not reduced, plus two minor ones. What was not tested and why. The main risk in business words: we would oversell stock. And a recommendation: no go until B seven is fixed and re tested. The tester recommends. The product owner decides, with the facts in front of them.

Test summary, release 1.4
  • run 58/60, passed 55
  • open: 1 major (B-7 stock), 2 minor
  • not tested: admin pages (out of scope)
  • risk: B-7 oversells stock
  • recommendation: no-go until B-7 is fixed and re-tested
  • (decision: product owner)

Agile plans

Agile teams rarely write long documents, but the thinking is the same. A one page plan per sprint on the team wiki: the stories in scope and their risks, the approach for each, a definition of done that includes tests and automation, and the environments, data and owners. Many agile teams use the testing quadrants to choose test types: tests that face the business or the technology, and tests that support the team or critique the product.

A one-page agile plan
  • per sprint, on the wiki: stories in scope + risks test approach per story definition of done includes tests and automation environments, data, owners
  • test quadrants help choose types: business vs tech, support team vs critique

Common mistakes

Plans that nobody uses share the same mistakes. Forty pages nobody reads. No out of scope section, so everyone assumes everything was tested. Exit criteria invented after testing ends. Risks listed but not linked to any test. Last release's plan copied with a new date. Metrics nobody acts on. And claims like a hundred percent tested, which no honest tester makes.

Avoid these
  • a 40-page plan nobody reads
  • no out-of-scope section
  • exit criteria decided after testing ends
  • risks listed but not covered
  • copying last release's plan
  • metrics nobody acts on
  • "100% tested" claims

Say it like this

In the interview, say: a test strategy is the long lived approach, the levels, types, tools and automation a team uses. A test plan applies it to one release: scope in and out, approach, environments and data, risks, entry and exit criteria, schedule and owners. I keep plans short and risk based, track coverage with traceability, and finish with a summary report that supports a go or no go decision.

In the interview
  • "A strategy is the long-lived
  • approach: levels, types, tools, automation. A plan applies it
  • to one release: scope in and out, approach, environments, data, risks, entry and exit
  • criteria, schedule, owners.
  • I keep it short, risk-based, with traceability and a summary report at the end."

Interview questions

Q1What is the difference between a test plan and a test strategy?

A test strategy is the long-lived, high-level approach (levels, types, tools, automation, environments) for a product or organisation. A test plan applies it to a specific release or project with scope, schedule, people, risks and criteria.

Q2What goes into a test plan?

Scope (in and out), approach, environments and test data, risks, entry and exit criteria, schedule, roles and deliverables.

Q3What are entry and exit criteria?

Entry criteria define when testing can start (stable build, smoke passing, requirements and data ready). Exit criteria define when it can stop (agreed coverage, pass rates, no open critical bugs, report delivered).

Q4What is a requirements traceability matrix?

A table linking requirements to test cases, their results and related defects, used to show coverage (forward) and the reason each test exists (backward).

Q5Which test metrics do you find useful?

Execution progress, pass rate, open defects by severity, requirement coverage, defects per area, and escaped defects after release; not raw counts of test cases.

Q6What is in a test summary report?

What was tested and not tested, results, open defects and their risk, deviations from the plan, and a recommendation for the release decision.

Q7How do you plan testing in an agile team?

A lightweight plan per sprint or feature: stories and risks, approach per story, definition of done including tests, environments and owners, with automation in CI.

Q8Can exit criteria be met while bugs are still open?

Yes. Exit criteria define acceptable risk, for example no open critical or major bugs; minor known issues can ship if reviewed and accepted by the business.