PRACTITIONERCHAPTER 04

Test strategy and test plans

A test strategy is an argument about where the risk is and how you will spend limited time finding it: risks, levels, environments, data, and the conditions under which you will say ship

40 MINQA AND QUALITY ENGINEERINGUPDATED 2026-11-05
PREDICT

You are handed a two-week window to test a feature. What do you write first?

A test strategy is the written answer to one question: given the time we have, where should testing effort go, and what evidence will be enough to ship? It names the product risks, chooses the test levels and techniques that address each, says which environments and data the tests need, and states the exit criteria in advance. A test plan turns that into logistics: who does what, in which order, against which builds.

Most organisations blur the two, and most templates make the blur worse. The useful distinction is between the reasoning and the schedule. The reasoning can be challenged by a developer, a PM or a manager; the schedule can only be followed. If your document is all schedule, nobody can tell whether you are testing the right things.

Strategy, plan, and the words people use

You will meet three vocabularies, and it pays to know all of them.

Term ISTQB usage Context-driven usage What you should mean
Test strategy An organisation-level description of the test approach, often a standing document The set of ideas that guide test design for this product, now The risk-driven reasoning for one feature or release
Test approach The implementation of the strategy for a specific project Mostly not used Fold into the strategy
Test plan A document describing scope, approach, resources and schedule (formerly IEEE 829, now ISO/IEC/IEEE 29119-3) The strategy plus logistics, as light as the context allows The logistics: owners, order, dates, builds
Exit criteria Conditions for formally completing a test level Stopping heuristics, judged by the tester Checkable conditions agreed before testing starts

The ISTQB Foundation syllabus, version 4.0, describes a test plan as covering context, assumptions and constraints, stakeholders, a risk register, the test approach (levels, types, techniques, data, environments, entry and exit criteria), and budget and schedule. That is a reasonable checklist. The danger is in treating it as the product: a 25-page document with every heading filled in and no ranking anywhere in it.

For a single feature, the strategy fits on two pages. It is written by the QA engineer on the team, reviewed by the engineering lead and the PM, and lives beside the PRD. The PRD says what must be true; the strategy says how you will find out whether it is, and where it is most likely not to be.

Start from risk

Risk-based testing is not a school; it is the one idea every school agrees on. You cannot test everything, so you test in proportion to the cost of being wrong.

Write each risk as a failure someone would notice, not as a component name. “The refund service” is not a risk. “A partial refund is issued twice when the merchant double-clicks, and the cardholder is credited twice” is. The second can be tested, sized and argued with.

Score each on two axes. Likelihood: how new is the code, how complex, how many integrations, how often has this area broken before, does the team understand it? Impact: who is hurt, how much money, is it reversible, does a regulator or a card scheme care, how many users? A three-point scale on each is enough. Multiply, sort, and the top third gets most of your time. This is a rule of thumb, not a calculation; the point of the numbers is to force a conversation about the ordering, and the ordering is what you defend in review.

Where do the risks come from? Four sources, in roughly this order of yield:

  1. The change itself. Read the diff or the design doc. What state does it touch, what does it call over a network, what does it assume about ordering? Network calls and shared state are where idempotency and retry bugs live, and in payments those are the bugs that cost money.
  2. History. The bug tracker and the incident log for this area. Defects cluster; the module that broke last quarter is likely to break again.
  3. The people. Thirty minutes with the developer who wrote it: what are you least sure about? Developers usually know where the bodies are and will tell you if asked directly.
  4. A heuristic checklist. James Bach’s Heuristic Test Strategy Model, described below, exists so you do not forget whole categories: data, platform, time, operations.

Then write what you will not test, with a reason. “Card-present transactions: unchanged code path, covered by the existing regression suite” is a decision a reviewer can challenge. Silence is not.

Choosing levels and techniques

Each risk gets a level: the place in the stack where a test can catch it most cheaply and reliably. The usual names are unit, component or service, integration (including contract), end-to-end through the UI, and acceptance. ISTQB adds component integration and system integration; the distinction matters less than the habit of asking, for each risk, what is the lowest level that can detect this?

Risk shape Cheapest reliable level Why
A calculation is wrong (fee, rounding, currency) Unit, table-driven Thousands of cases in seconds
Two services disagree about a field or status Contract test Catches drift without running both
A retry produces a duplicate side effect Integration with fault injection Needs a real network boundary and a controlled failure
A ledger does not balance after a sequence of events Integration plus a reconciliation check The invariant is across records, not inside one call
The user cannot complete the flow A few end-to-end tests, plus exploratory Slow and brittle, so keep them to the critical paths
Behaviour under load or slow dependencies Performance test against a target Functional tests do not see it

The test pyramid, in Ham Vocke’s practical version, argues for many fast low-level tests and few slow high-level ones. Kent C. Dodds’s testing trophy shifts weight to integration tests. Both are heuristics for a default shape; your strategy should follow the risks, and a payments change with a retry risk will be integration-heavy whatever the shape on the wall says. The track’s chapter on testing philosophies covers the argument in full.

Techniques sit inside levels. Equivalence partitioning and boundary values for inputs. Decision tables for rules with several conditions (refund allowed if captured, not settled, amount within remaining balance). State-transition testing for anything with a lifecycle, which in payments is everything: authorised, captured, partially refunded, refunded, charged back. Exploratory sessions with charters for the risks you cannot enumerate in advance. Name the technique beside the risk; it tells the reviewer you have a method, not a hope.

Lisa Crispin and Janet Gregory’s Agile Testing Quadrants, adapted from Brian Marick, are a useful cross-check here: business-facing versus technology-facing, supporting the team versus critiquing the product. If every test in your strategy is in one quadrant, usually the automated technology-facing one, you have a gap.

Environments and data

Most strategies fail here, quietly. The risk list says “duplicate capture on processor timeout” and then nobody can make the processor time out on demand in the shared staging environment.

For each risk, ask what the test needs to be able to do. Inject a timeout between two services? That needs a stub or a fault-injection proxy you control. Run a settlement batch? That needs an environment where the batch can run on demand rather than at 02:00. Test with three currencies and a card from a scheme you do not usually see? That needs test cards from the processor’s sandbox, and they have limits.

Write down, per environment: what it is for, what is real and what is stubbed, who else uses it, and how you reset it. A shared staging environment with five teams deploying to it is fine for smoke tests and poor for anything that depends on state.

Test data needs the same care. Production data copied into test is a privacy and, in payments, a PCI DSS problem: card numbers do not belong in a test database. Synthetic data generated to cover your partitions is safer and usually better, because production data rarely contains the edge cases you need. Write down which data sets you need, who creates them, and how long they take. In most teams, data and environments are the longest lead-time items in the plan, so they go to the top of week one.

Entry and exit criteria

Entry criteria say when testing can start meaningfully: the build is deployed, the feature flag exists, the stub can produce the failure, the migration has run. Without them you spend the first three days testing a half-deployed system and logging bugs that are not bugs.

Exit criteria say when you will recommend shipping. They must be agreed before testing starts, because criteria written on release day are written to fit the result. Good ones are checkable:

  • No open severity-1 or severity-2 defects in money movement; severity-3 defects have an owner and a date.
  • Every risk scored high has at least one passing test at the level the strategy assigned, and its exploratory charter has been run.
  • Reconciliation of a replayed day of synthetic transactions balances to zero.
  • The automated suite for the area has passed three consecutive runs without a retry.

Bad ones are “testing complete”, “all test cases executed” (which says nothing about whether they were the right cases), and “95% pass rate” (which permits the one failure that matters).

Exit criteria are inputs to a decision, not the decision. If the release date arrives and a criterion is unmet, someone with authority decides whether to ship with the known risk. Your job is to make that risk legible: what is unmet, what could happen, what would detect it in production, and what would roll it back. The release sign-off chapter later in this module covers that conversation.

Where practitioners disagree

For a strategy document, two of the schools set out in why quality engineering exists matter most, and you will work with people from both.

The standards tradition, represented by ISTQB and the ISO/IEC/IEEE 29119 series, offers a shared vocabulary, a process model with defined documents, and a certification that many hiring managers ask for. Its strength is that a test plan written in Prague and one written in Pune use the same words, and an auditor can read either. Regulated industries lean on it for that reason.

The context-driven school, founded by Cem Kaner, James Bach and Bret Pettichord, whose Lessons Learned in Software Testing is the founding text, holds that there are no best practices, only good practices in context; that testing is a skilled investigation rather than the execution of scripts; and that documents should be as light as the situation permits. Bach and Michael Bolton’s distinction between testing (learning about the product through exploration and experiment) and checking (verifying stated propositions mechanically) comes from this school. Its members have criticised ISTQB certification as testing memorisation of vocabulary, and in 2014 the International Society for Software Testing ran a public petition against ISO 29119.

You do not have to pick a side. Use the ISTQB vocabulary when it helps you be understood, especially with auditors and in enterprises. Use the context-driven discipline when you write the strategy: rank the risks, justify each choice, and do not fill in a heading because the template has one.

The Heuristic Test Strategy Model

Bach’s Heuristic Test Strategy Model is the most useful single page for drafting a strategy. It has four parts. Project environment: customers, information, developer relations, the test team, equipment and tools, schedule, test items, deliverables. Product elements, often remembered as SFDIPOT: structure, function, data, interfaces, platform, operations, time. Quality criteria: capability, reliability, usability, security, scalability, compatibility, performance and more. Test techniques: function, domain, stress, flow, scenario, claims, user, risk, automatic checking.

Use it as a prompt list. Walk the product elements against your feature and ask, for each, what could go wrong here. Time alone finds most payments bugs: cut-off times, settlement windows, daylight-saving transitions, timeouts, retries, and the order in which events arrive.

Day to day

A feature strategy has a rhythm tied to the team’s delivery cycle.

At refinement or kick-off, week zero. You read the PRD and the design doc as they are drafted and ask the questions that change the design: how will we know a capture went through, can this be retried safely, what happens if the webhook arrives before the API response? This is the cheapest testing you will do. You start a risk list in the strategy document the same day.

Drafting, one to two days for a sprint-sized feature. You write the risk list, score it with the developer in a thirty-minute session, assign levels and techniques, list environment and data needs, and draft exit criteria. You file the environment and data requests immediately, because they have the longest lead time.

Review, one meeting of thirty minutes. The engineering lead, the PM and the developers. The question on the table is the ordering: do they agree the top five risks are the top five? Developers will add risks you missed and move some down. The PM will tell you which failures customers will notice. Agree the exit criteria in this meeting and write them down.

During the build, daily. You test as pieces land, behind the flag, rather than waiting for a complete build. Developers write unit and most integration tests; you pair on the integration tests for the high risks and run exploratory charters. At stand-up you report against the risk list, not test-case counts: three of five high risks covered, one blocked on the timeout stub.

Release week. You check the exit criteria, write a short readout (risks covered, risks accepted, known defects, what to watch in production) and take it to the go/no-go meeting. Afterwards you note any production defect against the strategy: was the risk on the list? If not, why not? That retrospective question is how your next strategy gets better.

In a typical sprint the strategy costs a few hours to write and an hour a week to keep current. If it costs days, it is too long; if it costs nothing, it probably does not exist.

BY ORG SIZE
STARTUPunder 30 people

There is no QA function and probably no QA engineer; if there is, it is you, across every team. Nobody asks for a strategy document. Write one anyway, as half a page in the pull request or the ticket: the top five risks, where each is tested, what you are not testing and why, and one exit criterion. The founders will skim it, which is fine. Its value is that a developer reads your risk list before writing the code, and that after an incident you can see whether the failure was on it. Environments are thin, so lean on stubs and feature flags.

SCALE-UP30 to 300

The QA function is being built, often one embedded QA engineer per two or three teams, and the strategy is how you scale yourself. A shared template appears, and your job is to keep it short and risk-ranked. Developers own most automated tests; the strategy says which ones the high risks need. Environments are now contested, so booking a staging slot or a fault-injection proxy becomes part of the plan. Expect a review with an engineering manager who will ask why a risk is scored medium, and a PM who wants dates.

ENTERPRISE300 and up

The test strategy probably exists at three levels: an organisational policy, a programme strategy, and the one you write for the feature, and they use ISTQB or ISO 29119 vocabulary because auditors read them. Regulated work needs traceability from requirement to test to result, and a change-advisory board may want your exit report. The skill is to satisfy that while keeping the risk-ranked two pages the team works from. Environments belong to another team with a booking queue, and test data needs a privacy sign-off, so start both in week zero.

ARTEFACT Write a feature test strategy ~60 MIN
YOU PRODUCETest strategy for one feature

Template

# Test strategy: <feature>
Author · Date · Status: draft | reviewed | in test | closed
PRD: <link> · Design doc: <link> · Release target: <date>

## Scope
What changes: <one paragraph, from the PRD and the diff>
In scope: <components, flows, platforms>
Out of scope:
- <thing> — <why: unchanged, covered elsewhere, accepted risk>

## Risks (ranked)
| # | Failure (who notices, what happens) | Likelihood 1-3 | Impact 1-3 | Score | Level | Technique |
|---|---|---|---|---|---|---|
| R1 | | | | | | |

## Levels and ownership
- Unit: <who writes, what they must cover>
- Integration / contract: <...>
- End-to-end: <the few critical paths only>
- Exploratory: <charters, mapped to risks>
- Non-functional: <performance, security, accessibility, if relevant>

## Environments
| Environment | Purpose | Real vs stubbed | Shared with | Reset by |
|---|---|---|---|---|

## Test data
| Data set | Covers risks | Source (synthetic / sandbox) | Owner | Ready by |
|---|---|---|---|---|

## Entry criteria
- <build deployed, flag present, stubs able to produce failures>

## Exit criteria (agreed <date> with <names>)
- <checkable condition>

## Schedule and owners
<the plan: who, when, which builds>

## Readout (after release)
<risks covered, risks accepted, defects found and escaped, what to change next time>
WORKED EXAMPLE

Wicket is a fictional push-notification platform: 90 people, 1,200 business customers, about 40 million notifications a day across iOS, Android and web push. The feature is local-time scheduling: a customer schedules a campaign for 09:00 in each recipient’s own time zone, instead of one UTC time.

Scope. New scheduler service, changes to the campaign API and dashboard. Out of scope: delivery through Apple and Google gateways (unchanged path, covered by existing integration suite); in-app messages (not supported by this feature, per PRD non-goals).

Risks, top four of eleven. R1, recipients in a time zone crossing a daylight-saving change that night receive the message twice or not at all: likelihood 3, impact 3, score 9; unit tests with a table of zone transitions, plus an integration test with a fake clock. R2, recipients with no stored time zone are silently dropped: 3 × 2 = 6; unit and an exploratory charter on profile data. R3, a campaign of 2 million recipients schedules so many jobs that the scheduler falls behind and 09:00 becomes 09:40: 2 × 3 = 6; load test against the PRD target of 95% delivered within five minutes of the scheduled time. R4, cancelling a campaign after the first zones have sent leaves later zones still sending: 2 × 3 = 6; state-transition tests through the API.

Environments. Staging with a fake-clock flag on the scheduler, owned by the team, reset nightly. Load environment booked for two days in week two.

Data. 50,000 synthetic recipients spread across 40 time zones, including the 15 with a daylight-saving change in the test window and 3% with no zone. Generated by script, owner: QA, ready day two.

Exit criteria, agreed with the engineering lead and PM on day one. No open severity-1 or 2 defects. R1 to R4 each have a passing test at the assigned level. The load test meets the five-minute target at 2 million recipients. Cancellation stops all unsent zones within 60 seconds in three runs.

Now you

You are the QA engineer on the refunds team at Ostrava Pay, a fictional merchant acquirer serving 9,000 merchants in Central Europe. The team is adding partial refunds for transactions that were captured in several parts, which some hotel and travel merchants use. Today a refund can only reverse a whole capture. The PRD sets a release in four weeks. About 6% of Ostrava Pay’s 30 million monthly transactions are multi-capture. The refund service calls the card scheme gateway over a network that times out a few times a day, and the ledger team, a separate team, must post every refund as balanced entries. Two complications: the shared staging environment’s gateway simulator cannot produce timeouts, and the ledger team’s release that adds the new entry type lands one week before yours. Write the test strategy. It must rank the risks, deal with the timeout and the ledger dependency explicitly, and state exit criteria the engineering lead could check on release day.

Self-check

DECIDE

You are the only QA engineer on the capture team at Ostrava Pay. The team is changing how captures are retried after a processor timeout: each capture will carry an idempotency key, and the retry worker moves from three fixed retries to exponential backoff with jitter. You have two weeks before the release train, roughly 60 hours of testing time after meetings. The existing regression suite is 1,400 UI tests that take five hours to run and fail on about 4% of runs for reasons unrelated to the code. Where do the hours go?

READING
  1. BOOK
    Lessons Learned in Software Testing: A Context-Driven Approach Cem Kaner, James Bach, Bret Pettichord, 2001

    Short numbered lessons from three practitioners who founded the context-driven school. The strategy chapter argues for risk-led, lightweight strategies and against template-filling. Read: Chapter 11, Planning the Testing Strategy, then chapter 6, Documenting Testing.

  2. DOC
    Heuristic Test Strategy Model James Bach

    The checklist to walk against any feature before you write the risk list: project environment, product elements, quality criteria and techniques. Print it and use it at kick-off.

  3. DOC
    Certified Tester Foundation Level (CTFL) v4.0 ISTQB

    The syllabus most hiring managers and auditors know, with its definitions of test levels, test plans and entry and exit criteria. Read it for the shared vocabulary; read the critics alongside it.

  4. POST
    Testing and Checking Refined James Bach and Michael Bolton

    The distinction between testing as investigation and checking as mechanical verification, and the core of the context-driven critique of script-and-certify approaches.

  5. POST
    The Practical Test Pyramid Ham Vocke, 2018

    A concrete walk through test levels with code, and the clearest argument for pushing each check to the lowest level that can catch it.

  6. POST
    Using the Agile Testing Quadrants Lisa Crispin, 2011

    A taxonomy for checking that your strategy covers business-facing and technology-facing testing, and a reminder that the quadrants are not a sequence.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Exploratory testing and charters →