Blog
Test plan: what goes in one, with a template and an example
A test plan sets out what a release is tested for, how, by whom and when testing stops. Its sections, a template, an example, and plan vs strategy.
A test plan is the document that says how a piece of software will be tested before it ships: what is in scope and what is not, which risks get the most attention, what kind of testing happens at each stage, who does it, what it needs, how long it should take and what has to be true before anyone calls testing finished. It is written before the testing starts and changed as the project learns. It is not a list of test cases. The cases come later and follow from the plan.
ISTQB’s Certified Tester Foundation Level syllabus, release 4.0.1, defines it in one line: a test plan “describes the test objectives, resources and processes for a test project”. This guide takes that definition apart section by section, shows how a plan differs from a test strategy, gives you a template to copy and then fills the template in for one release.
The worked example is invented throughout: a tutoring center’s parent portal, where families already book sessions and read tutors’ progress notes, and release 2.0 adds three things. Parents will pay invoices by card, move a session to another slot themselves, and get a text reminder the day before. The center, the portal, its risks and all its numbers were made up to show the method.
What is a test plan?
The syllabus gives a test plan four jobs. It records how and by when the test objectives will be met. It helps make sure the testing that actually happens meets the criteria agreed for it. It is how the testers communicate with the rest of the team and with the people paying for the work. And it shows that the testing follows the organization’s test policy and test strategy, or says plainly where and why it departs from them.
There is a fifth job the syllabus mentions almost in passing, and on small projects it is the most valuable one. Writing the plan makes people face the awkward questions early: what could go wrong, who is available, which tools and environments are needed, and what all of it will cost. A team that cannot fill in the risk section of a plan has not yet thought about where the software is likely to break.
A plan is also the place where scope is agreed out loud. Most arguments at the end of a release (“Was anyone testing the reminders on Android?”) come from something nobody wrote down at the start.
What goes in a test plan
The syllabus lists the typical content and points to the ISO/IEC/IEEE 29119-3 standard for more detail. That standard, first published in 2013, superseded IEEE 829, the older test documentation standard whose outline still turns up in free templates. The headings below follow the syllabus list.
| Section | What it settles |
|---|---|
| Context | The scope, the test objectives, and the test basis: the requirements, user stories, designs or rules the tests will be checked against |
| Assumptions and constraints | What the plan takes for granted (a test environment will exist by a date) and the limits it works inside (a fixed launch day, one tester) |
| Stakeholders | Who is involved, what each person is responsible for, and whether anyone needs hiring or training |
| Communication | How results are reported, how often, to whom, and on which templates |
| Risk register | Product risks (ways the software could fail its users) and project risks (ways the testing itself could slip) |
| Test approach | The test levels and types, the techniques, what the testing will produce, entry and exit criteria, how independent the testers are, the metrics collected, the test data and environments needed, and any departure from the test strategy |
| Budget and schedule | The estimated effort, the dates and the milestones |
The syllabus also names the other things test planning produces: a test schedule, a risk register, and entry and exit criteria. It adds that these are often part of the plan itself rather than separate files. On a small project, keep them in one document so nobody has to hunt for the exit criteria.
Two headings from the old IEEE 829 outline are worth keeping even though the syllabus list does not name them. “Features not to be tested” makes the exclusions visible, and an exclusion nobody objected to at the start is much easier to defend later. “Suspension criteria and resumption requirements” says when testing should pause (the build is too broken to test) and what must be fixed before it starts again, which saves testers from logging fifty defects that all have one cause.
Test plan vs test strategy
People often treat the two names as one document, and in a small team one document often does both jobs. They answer different questions, though, at different heights.
| Aspect | Test strategy | Test plan |
|---|---|---|
| Covers | An organization, a product line or a long program | One project, one release, or one test level within it |
| Answers | How do we test here, in general? | What will we test this time, how, by whom and by when? |
| Typical content | Which levels and types are expected, the standard tools, how much automation, how defects are handled, what reports look like | The scope and exclusions, this release's risks, the environments, the people, the estimate and the dates |
| Changes | Rarely | Whenever the project learns something that changes the testing |
The syllabus draws the same line from the plan’s side: a plan should show that testing will follow the existing test policy and test strategy, and its test approach lists any deviations from them. So the strategy is the standing rule and the plan applies it to one piece of work, noting where this project has to break it. A strategy might say every release gets an automated regression run. The tutoring portal’s plan would then name which suite, on which build, on which day, and add that payment tests run against the card processor’s test mode because the real one cannot be charged.
If your organization has no written test strategy, the plan has to carry those general choices itself. That is normal for a first product, and the first plan often becomes the strategy for the next one.
How to write a test plan, step by step
No standard fixes a number of steps. This order works because each step needs the one before it.
- Read the test basis and settle the scope. List what the release changes, then write down what will be tested and, just as clearly, what will not. For the portal, “the card payment flow” is in scope and “the card processor’s own systems” are not: the team tests its integration, and the processor answers for the rest.
- Write the test objectives. One or two sentences each, such as “show that a parent cannot be charged twice for one invoice”. An objective you could not check at the end is too vague.
- List and rank the risks. Brainstorm what could go wrong with the product and with the project, then score each one (see below). The ranking decides where most of the effort goes.
- Choose the approach. For each high risk, decide the level (unit, integration, system, acceptance), the type of testing (functional, performance, security) and the technique. The four levels of testing have a post of their own, and the design techniques are in our guide to test cases.
- Set entry and exit criteria. What has to be in place before testing starts, and what has to be true before it stops.
- List the environments, data and tools. Name each environment, where its test data comes from, and which devices and browsers count.
- Assign people and estimate. Who does what, how long each part should take, and the schedule that results.
- Agree how progress is reported, and get sign-off. The people who will act on the results should read the plan before testing starts, not after.
Scoring the risks
The syllabus describes risk level as the combination of two things: the likelihood that the risk happens and the impact if it does. Multiply the two when you have numbers, or place each risk on a grid when you do not. Product risks are about the software (a wrong calculation, a security hole, a slow page). Project risks are about the work (a late delivery, a missing skill, a supplier that fails).
Here is the portal’s register, scored from 1 (low) to 3 (high) on each axis. All of it is invented.
| ID | Risk | Kind | Likelihood | Impact | Level | Response in the plan |
|---|---|---|---|---|---|---|
| R1 | A parent who taps Pay twice is charged twice | Product | 2 | 3 | 6 | Integration tests against the processor's test mode, including a slow network; repeated in acceptance |
| R2 | Moving a session books a tutor who is already taken | Product | 3 | 3 | 9 | Decision table on the slot rules; two parents moving into one slot at the same moment |
| R3 | A parent sees another family's invoice | Product | 1 | 3 | 3 | Access checks with two test families on every invoice page; a security review of the invoice queries |
| R4 | Reminders go out an hour off in the week the clocks change | Product | 2 | 1 | 2 | One system test with the server clock set to that weekend |
| R5 | The processor's test account is not ready when testing starts | Project | 2 | 2 | 4 | Request it in week one; test rescheduling first if it is late |
| R6 | The only tester is away during the test window | Project | 1 | 3 | 3 | A developer who did not write the payment code reruns the payment cases |

Two things in that table are easy to miss. R3 scores only 3, yet it gets a security review as well as tests, because a score is a guide and a privacy leak is the kind of harm a center cannot apologize its way out of. And R5 and R6 change no test case at all. They change the schedule and the people, which is why project risks belong in a test plan even though no test checks them.
Entry and exit criteria
Entry criteria are what must be in place before a stage of testing begins. Exit criteria are what must be true before that stage can be called finished. The syllabus advises setting both for each test level. Without entry criteria, testing starts on a build that is not ready and the time goes on reporting problems that were already known. Without exit criteria, testing ends when someone runs out of patience.
The portal’s system test level, invented:
- Entry: the release build installs on the staging server and passes the smoke tests; the processor’s test account works, or rescheduling is tested first while it is awaited (R5); the staging database holds the invented test families (forty of them, including two with siblings at different grades and one with an overdue invoice); every user story in scope has acceptance criteria.
- Exit: every case for R1, R2 and R3 has passed on the final build; no open defect is rated critical or major in payments or rescheduling; every story in scope has at least one passed case; the full regression run has passed on the final build; the remaining known defects are listed with a decision on each.
The syllabus also accepts that running out of time or money can be a valid reason to stop, as long as the people responsible have looked at the remaining risk and agreed to go live with it. Write that down when it happens. In agile teams the same ideas usually go by other names: exit criteria for an item become the Definition of Done, and the conditions a story must meet before work starts become the Definition of Ready.
Estimating the testing effort
Estimates are assumptions with numbers attached, so a plan should say what each one rests on. The syllabus describes four techniques. Ratio-based estimation takes figures from your own past projects (if testing took two days for every three of development last time, assume the same). Extrapolation measures the current project early and projects forward, which suits iterative work. Wideband Delphi asks experts to estimate alone, compares, discusses the outliers and repeats; Planning Poker is its agile form. Three-point estimation asks for an optimistic figure (a), a most likely one (m) and a pessimistic one (b), then weights them: E = (a + 4m + b) / 6, with a spread of (b − a) / 6.
For the portal’s payment testing, an invented three-point estimate: a = 4 person-days, m = 6, b = 11. That gives E = (4 + 24 + 11) / 6 = 6.5 person-days, and a spread of 7 / 6, a little over one day. The plan would record “about six and a half days, likely somewhere between five and eight”, and the assumptions behind it: the test account arrives on time and the processor’s test mode behaves like the real one. Three-point figures for a whole build, rather than its testing, are worked through in the post on software development cost estimation, which runs them through a simulation where this section uses a formula.
A test plan template
Copy the headings and answer the question under each one. A short answer is fine; a heading with no answer is a decision nobody made.
| Heading | Answer this |
|---|---|
| 1. Plan details | Name of the plan, version, date, owner, and the release or project it covers |
| 2. Scope | What changes in this release, and which of those changes will be tested? |
| 3. Not tested | What will deliberately not be tested, and why? |
| 4. Test basis and objectives | Which documents define correct behavior, and what must the testing show? |
| 5. Assumptions and constraints | What are we counting on, and what limits are fixed? |
| 6. Risk register | Each risk with its kind, likelihood, impact, level and response |
| 7. Approach | Levels, types and techniques for each area, and what will be automated |
| 8. Entry, exit, suspension | When can testing start, when is it finished, and when should it pause? |
| 9. Environments, data, tools | Where does testing run, with what data, on which devices and browsers? |
| 10. People | Who plans, designs, runs, fixes and signs off, and who stands in? |
| 11. Estimate and schedule | How much effort, on what assumptions, and which dates? |
| 12. Deliverables and reporting | What will the testing produce, and how will progress and results be reported? |
| 13. Approval | Who has read and agreed this plan, and on what date? |
A test plan example
Here is the template filled in for the tutoring portal’s release 2.0. Everything in it is invented. A real plan would link each line to the documents it names.
1. Plan details. Parent portal release 2.0 test plan, version 3, dated the Monday of week one, owned by the test lead, covering the release planned for the first week of March.
2. Scope. Card payment of invoices; parents moving a booked session to another open slot; text reminders the day before a session; the regression of booking and progress notes, which the release touches.
3. Not tested. The tutors’ timesheet screen (unchanged in this release); the center’s marketing website (separate code); the card processor’s systems beyond the portal’s calls to them; email reminders (unchanged).
4. Test basis and objectives. The release’s user stories and their acceptance criteria, the slot rules written by the center’s office manager, and the processor’s integration guide. Objectives: show that no invoice can be paid twice, that no tutor can be double booked, that a family sees only its own invoices and children, and that reminders arrive the day before at the right local time.
5. Assumptions and constraints. The processor’s test account is live by the end of week one. The center will not move the launch date. One tester, plus developer time for automation.
6. Risk register. R1 to R6, as in the table above.
7. Approach. Unit tests for the slot rules and the invoice total. Integration tests for payment, including a slow network and a repeated tap. System tests of the three new features on phones and desktop, using decision tables for the slot rules and boundary values for amounts. A security review of the invoice queries and access checks with two test families (R3), and one run with the server clock set to the weekend the clocks change (R4). An acceptance run by the office manager and two volunteer parents on the staging site. The regression suite for booking and progress notes is automated and runs on every build.
8. Entry, exit, suspension. As listed under “Entry and exit criteria” above. Suspend system testing if the smoke tests fail on a new build, or if the processor’s test mode is down for more than half a day; resume when a build passes the smoke tests again or the test mode is back.
9. Environments, data, tools. A staging copy of the portal with the forty invented families; the processor’s test mode with its published test card numbers; the current and previous major versions of Safari on iPhone and Chrome on Android, and current Chrome and Edge on desktop.
10. People. The test lead plans, designs and runs the system tests. Two developers write the unit and integration tests, fix defects, and review each other’s invoice queries for the security check. The office manager runs and signs off acceptance. The developer who did not write the payment code stands in for the tester on payment cases (R6).
11. Estimate and schedule. About 15 person-days of testing across three weeks, including the six and a half days for payments estimated above. Week one: test design and automation. Week two: system testing. Week three: acceptance, fixes and the final regression run.
12. Deliverables and reporting. Test cases in the team’s test management tool, a short progress note every Friday to the center’s director and the developers, defect reports in the tracker, and a completion report at the end listing what was tested, what failed, what remains open and the decision on each open defect.
13. Approval. The center’s director, the office manager and the lead developer, before week two starts.
The acceptance part of this plan could grow into a plan of its own. Our guide to user acceptance testing has a template built for that level.
Types of test plan
There is no single official list, but three forms come up again and again.
- A master or project test plan. Covers all the testing for a project or release, as in the example above. On a small project this is the only plan.
- A test level plan. Covers one level, such as system testing or acceptance testing, when that level is big enough or run by different people. Each has its own entry and exit criteria, which the syllabus recommends setting level by level anyway.
- A test type plan. Covers one kind of testing that needs its own environment, tools or specialists, such as performance testing or a security assessment.
Large programs add a fourth layer above all of them: the test strategy, described earlier, which every plan follows or departs from on the record.
Test plans in agile teams
Agile teams still plan their testing. The syllabus describes it happening at two points. In release planning, testers help write testable user stories and acceptance criteria, take part in the risk analysis, estimate the testing for the stories and set the test approach for the release. In iteration planning, they look at the risk of each story in detail, check that each one can be tested, split stories into tasks (testing tasks among them) and estimate those.
What changes is the size and life of the document. An agile test plan is usually a page or two kept next to the backlog, written once per release and updated whenever a sprint review shows a new risk. The parts that cost the most when they are missing are the same as in any plan: the exclusions, the risk ranking, the exit criteria and the environments.
Mistakes that make a test plan useless
| Weak | Better |
|---|---|
| "All features will be tested thoroughly." | A scope list, a "not tested" list, and a risk ranking that shows where "thoroughly" applies |
| "Testing is complete when all tests pass." | Exit criteria that allow for known defects with a decision on each, and that name the build the final run uses |
| A schedule with no assumptions | An estimate given as a range, with the conditions it depends on written beside it |
| "Test environment: staging" | Which staging, with which data, which outside services in test mode, and which devices count |
| A template copied whole, every heading kept | The headings that matter for this release, each answered; the rest removed |
| Written once, filed, never opened | A version number and a date, updated when scope, risks or dates change |
Questions people ask
What are the 5 steps to create a test plan?
No standard sets five. A workable five is: settle the scope and objectives, rank the risks, choose the approach for each risk, set entry and exit criteria, then estimate, schedule and get sign-off. The eight-step version above splits those further so that environments, data and people are not forgotten.
Who writes a test plan?
Whoever holds the test management role. The syllabus describes that role as responsible for the test process and its planning, monitoring, control and completion, and notes that a team leader, a test manager or a development manager can take it on, and in agile teams the team may share some of those tasks. The people who will use the results should still review the plan before testing starts.
Test plan or test procedure: which is which?
A test plan covers the whole testing effort for a project or level: scope, risks, approach, people and schedule. A test procedure is far smaller. It strings a handful of test cases into the sequence a tester follows, with whatever preparation each one needs, such as “create an invoice, pay it, then try to pay it again”. A plan may refer to many procedures; a procedure never contains a plan.
How is a test plan different from a test case?
The plan decides what will be tested and why; a test case is a single check that names what to do, which values to use and what should happen. The plan’s risks and approach tell you which cases to write. Our guide to writing test cases covers that next step.
How long should a test plan be?
As long as it takes to answer the template’s questions for this release and no longer. For a small web release that can be two pages. A plan for regulated software, or for a program with several teams, runs longer because more people need to agree to it and more has to be on the record.
Before testing starts on your project
When someone else is building and testing the software for you, the plan is not yours to write, but it is worth reading. Ask to see the “not tested” list, the top three risks and the exit criteria, and check that the person who will sign off acceptance on your side is named. For the field as a whole, start with what software testing is.
Planning a web platform of your own? Our custom web development page explains what that service includes. If you have a question about testing on your own build, the contact page reaches the team, and we reply to each message within one business day.
The full service behind this post: Custom Web Development Services.
Ready to scope your project?
Send us two sentences about what you need. We reply within one business day with the next step and any questions we need answered first.