How to write a test plan: structure, contents and template
A test plan states what will be tested in a project, how, by whom and to what standard. A good one answers the questions that otherwise surface a week before release: which environment do we need, where does the test data come from, what counts as a pass and who signs off?
What is a test plan?
A test plan is the main planning document for testing a specific system or project. It covers scope, approach, resources and schedule. Larger programmes often have a master test plan that spans several test levels, with separate level test plans for system testing, acceptance testing and so on. In German-speaking markets the same document is usually called a Testkonzept.
The plan has several audiences. Project managers and sponsors use it to see which risks are covered. The test team works from it day to day. In regulated industries it is also evidence for auditors.
Test strategy, test plan and test schedule
These terms get used interchangeably, which leads to duplicated documents that drift apart. A clear split helps.
- Test strategy: usually set at organisation or product level. It defines the ground rules, such as mandatory test levels, the role of automation and how risk is assessed.
- Test plan: applies the strategy to one project or release. It names the test items, environments, dates and owners.
- Test schedule or cycle plan: the operational view of which test cases run when and by whom, often managed in a test management tool or the sprint backlog.
ISO/IEC/IEEE 29119-3 is the international standard for test documentation and defines the content of each of these documents. It replaced IEEE 829, whose structure still shapes many test plan templates in circulation. You do not need to follow the standard to the letter, but it makes a reliable checklist.
Test plan template: the sections
The outline below covers what ISO/IEC/IEEE 29119-3 expects in a test plan, in an order that works for most projects. Use it as your template and drop sections that do not apply.
1. Introduction and scope
Purpose of the document, project context and references to the test strategy and requirements. State explicitly what is out of scope and why. That one paragraph prevents a lot of arguments later.
2. Test items
The systems, components, interfaces and versions under test. For mobile apps, list target devices and operating system versions here.
3. Test levels and test types
Test levels are unit, integration, system and acceptance testing. Test types describe the quality characteristic being checked: functionality, performance, security, compatibility, usability, localization. Record which combination applies to which item and how much will be automated.
4. Entry and exit criteria
Entry criteria say when a test level can start, for example "build deployed, smoke test passed, test data loaded". Exit criteria say when it is done, for example "all high priority tests executed, no open critical defects". Write both so that anyone can check them.
5. Test environments
Hardware, servers, databases, third party systems, devices and licences. Note who provides each environment, how deployments work and where the environment differs from production.
6. Test data
Where data comes from, how it is generated, masked and reset. If personal data is involved, data protection requirements belong in this section.
7. Roles and responsibilities
Who plans, who writes tests, who executes, who triages defects and who signs off. A simple table is enough.
8. Schedule and milestones
Test phases mapped to development and release dates, with time set aside for fixes and retesting.
9. Risks and mitigation
Product risks, which drive test depth, and project risks such as late environments or unavailable subject matter experts. Each risk gets a mitigation.
10. Defect management
The tool, defect workflow, severity and priority definitions, triage ownership and retest rules.
11. Reporting
Which metrics are reported, how often and to whom. The plan ends in a test completion report that assesses the exit criteria and gives a release recommendation.
How to write a test plan step by step
- Collect inputs: requirements, architecture, the existing test strategy and the release plan.
- Assess risk with product owners and developers: which features carry the business, which are technically fragile?
- Derive scope: test items, levels and types follow from the risk assessment.
- Sort out logistics: environments, test data, roles and tools.
- Set criteria and schedule and align them with the project plan.
- Review and approve: walk through the plan with everyone involved and version every change.
Common test plan mistakes
- Filling in the template without making decisions. A plan that says "as required" in every section is no plan.
- Missing or unmeasurable exit criteria, which turn every release decision into a negotiation.
- Planning environments and test data too late. On many projects they are the real bottleneck.
- Writing the plan once and never updating it, so it soon describes a different project.
- Listing performance or security testing as a keyword with no targets and no owner.
Test plans in agile teams
Agile teams do not write a long document up front, yet the underlying questions remain. What works well is a lean test plan at product or release level covering test levels, automation approach, environments, definition of done and regression rules. Sprint level planning then lives in the backlog and in story acceptance criteria. Many teams keep the plan as a wiki page and review it briefly in retrospectives.
Where evidence is required, for example for medical device software or in financial services, agile teams still need a versioned, approved document. In that case it pays to follow the ISO/IEC/IEEE 29119-3 structure.
How QualityOne can help
Our ISTQB-certified test engineers write test strategies and test plans, or review existing ones, as part of our QA consultancy. If you want, we then carry out the testing, either as managed QA alongside your team or as Testing as a Service.
Frequently asked questions about test plans
How long should a test plan be?
Long enough that every section records a decision. For a mid-sized project a few pages are often enough. Regulated projects need more detail and traceability.
Who writes the test plan?
Usually the test manager or test lead, with input on architecture, environments and business rules from development, operations and the product side.
Is ISO/IEC/IEEE 29119-3 mandatory?
No. It is a voluntary standard, but in regulated industries it makes audits easier because assessors know the structure.
Where can I get a free test plan template?
You can use the outline in this article as a template. Adapt it to your project instead of filling every section for the sake of it.
If you would rather not build it yourself.
Request a quote
Experience from projects at global companies.
Our test experts bring knowledge from a wide range of disciplines to cover highly scalable industrial applications end to end.