Your Training Partner
Techniques Toolbox
Diagram from left to right. The requirements and their acceptance criteria feed the test and inspection plan. The plan sets the method and level, the entry and exit criteria, the defect classification, the environment and data, the roles, the schedule and the budget. After the plan come the test cases and test scripts, the execution, then the test report. A return arrow leads from the test report back to the plan: new findings update it.

Test and Inspection Planning

Test and inspection planning decides during project planning how the team will verify each deliverable and against which criteria. For each deliverable, the team chooses a test or an inspection, the level of verification, the entry and exit criteria, the owners and the timing. The PMBOK Guide lists the technique among the data analysis tools of the Plan Scope Management process. It produces a plan. The ISTQB certification scheme for software testers calls it a test plan. The Swiss federal method HERMES calls it a test concept.

Goal

According to the PMBOK Guide, the project manager and the team determine during planning how to test or inspect the product, deliverable or service. Their decision must meet the needs and expectations of the stakeholders as well as the performance and reliability objectives of the product.

The technique answers a question that the acceptance criteria leave open. A criterion says what is acceptable. The plan says who verifies it, by which method, at what point and on what condition the verification is complete. Without this plan, each team improvises its verification at delivery. It finds out too late that it lacks an environment, data or a reviewer.

The deliverable is a test and inspection plan. In HERMES, the test concept is an outcome of the Tests module. The PMBOK Guide counts a test plan among the components of the project management plan. The quality management plan, which the Define Scope process develops, lists the deliverables subject to a quality review and the planned control activities. The quality test and evaluation documents describe the activities that compare the deliverables with the standards of this plan.

Usage

When to use

  • Concept phase of a HERMES project: design the test concept before implementation.
  • User acceptance testing (UAT) required by the contract: settle before implementation who tests, against which criteria and when.
  • Components delivered by several suppliers: set the entry criteria of each integration level.
  • Document deliverables: plan the inspection of requirements and models before development.
  • Structure or equipment accepted on test results: plan the strength tests or non-destructive tests before construction.
  • Agile release planning: set the test approach for all iterations and the Definition of Done.
  • High-risk deliverable: scale the depth of testing to the product risk analysis.
  • Test team spread over several sites: for lack of a meeting in one place, put the roles, the environment and the schedule in writing.

When not to use

  • Acceptance criteria missing or unverifiable: the plan has nothing to verify; first write the acceptance and evaluation criteria.
  • Need for the detail of each verification: the steps, input data and expected results belong in test cases and test scripts.
  • Recurring monitoring of a process in production: set the limits, the frequency and the response in a control plan.

Description

What the plan contains

The ISTQB and HERMES each give a list of the elements of the plan. The two lists overlap almost entirely.

ElementTest plan (ISTQB, §5.1.1)Test concept (HERMES)
Objectives and objectsContext: scope, objectives and test basis; assumptions and constraintsTest objectives, test objects
ApproachTest levels, types and techniques; independence of testing; metrics to be collectedTest strategy and test levels, test types, test coverage
Entry and exit criteriaEntry criteria and exit criteriaStarting conditions; abandonment conditions; criteria for evaluating the results
DefectsNo dedicated elementDefect classification
EnvironmentTest data and test environment requirementsTest environment; test infrastructure (system, data, tools)
PeopleStakeholders, roles, communicationTest organisation and responsibilities
RisksRegister of product and project risksNo dedicated element
ScheduleBudget and scheduleTest plan (test schedule)
Test casesOutside the planTest case descriptions
The table sets the elements of the ISTQB test plan against those of the HERMES test concept. HERMES adds defect classification and test case descriptions. The ISTQB adds the risk register.

HERMES places the test case descriptions inside the test concept. The plan stays upstream even then: the team settles the method, level and type of test before it writes the first case.

The team starts from the list of deliverables and the requirements documentation. According to the PMBOK Guide, the Define Scope process identifies the quality requirements and the standards of the deliverables. It also determines how the project will demonstrate that it meets them. The same guide requires a requirement to be measurable and testable before it enters the baseline.

The plan pairs each deliverable with the criterion it must meet. A deliverable without a verifiable criterion signals a defect in the requirement. The analyst returns the requirement to its author instead of inventing a threshold in the plan.

Scale verification to risk

The PMBOK Guide states that the type, amount and extent of testing depend on the nature of the project, on time, on budget and on the other constraints. According to the ISTQB, product risk analysis guides this scaling. The team estimates the likelihood and impact of each risk. From them it derives the test scope, the levels, the techniques, the target coverage and the effort. The team spends more testing on a calculation module that handles insured persons' money than on a help page.

Choose the method and the level

For each deliverable, the team chooses between a test and an inspection. The ISTQB distinguishes dynamic testing, which executes the software, from static testing, which examines a work product without executing it. A specification, a model or a manual cannot be executed. The team verifies them through a review. The ISTQB classes inspection as the most formal type of review. The team verifies a software component or a system through dynamic testing.

The level states the scale at which the test works. The ISTQB describes component testing, component integration testing, system testing, system integration testing and acceptance testing. The ISTQB distinguishes several forms of acceptance testing: user acceptance testing (UAT), operational acceptance testing, contractual and regulatory acceptance testing, alpha and beta testing. User acceptance testing (UAT) checks that the system meets the business needs of its users. The ISTQB recommends that the intended users perform it. The type states which characteristic the test verifies: a function, performance, usability.

Methods change from one industry to another. The PMBOK Guide cites alpha and beta tests in software, strength tests in construction, inspection in manufacturing, site tests and non-destructive testing in engineering. A plan taken over from another industry keeps its headings. The team replaces its methods with those of its own industry.

Set the entry and exit criteria

An entry criterion is a precondition for starting an activity. An exit criterion states what must be achieved to declare the activity complete. The ISTQB asks for both to be defined for each test level. Typical entry criteria cover resources, the availability of testware (test basis, testable requirements, test cases) and the initial quality of the test object. Exit criteria are measures or binary conditions. The coverage achieved and the number of open defects are examples of measures. A binary condition is answered yes or no: "all planned tests have been run".

In a sequential life cycle, the exit criteria of one level form part of the entry criteria of the next. User acceptance testing (UAT) starts when the previous level has met its exit criteria. HERMES calls the entry criteria starting conditions. Its abandonment conditions state when the team stops a test in progress. The team repeats the test until its results meet the criteria of the test concept.

An exit criterion can come down to time or budget running out. The ISTQB accepts this on one condition: the stakeholders have reviewed and accepted the risk of going live without further testing. The plan therefore names the person who accepts this risk. A team that stops for lack of time without this written acceptance has abandoned testing without a decision.

Classify the defects

HERMES places the defect classification in the test concept. The team then rates each result in the test report against these classes. The plan defines each class by its consequence for the user, for example "blocking: the business process stops". The plan then states the exit criteria as open defects per class. Without a written definition, the team negotiates the class of each defect at test time, when the deadline pushes it to downgrade the defect.

Provide the environment, data and roles

According to HERMES, the test infrastructure comprises the test system, the test data and the test tools. The plan states who provides each one and by when. An interface with an external register needs an environment connected to a test copy of that register. The provider of the register delivers that copy on its own schedule.

The plan also names the owner of each verification. According to HERMES, the user, the developer and the operator work closely together because each of the three brings to testing information that the basic documents lack.

Schedule, coordinate and keep the plan up to date

The team places each verification in the project schedule and estimates its effort. HERMES calls this part the test plan. It sets the logical and chronological sequence of the tests. The ISTQB gives this name to the whole document. The team then coordinates the test concept with the stakeholders, who accept it before it is put into practice.

According to HERMES, the team updates the test concept when new findings arise. When a test uncovers an unexpected family of defects, the team adds a level or a technique. When a supplier delivers late, the team moves the entry criterion.

In an adaptive approach

The PMBOK Guide notes that scope management is more iterative and collaborative in an adaptive approach. The ISTQB places the test approach in release planning, which sets it for all iterations. During release planning, testers help write testable user stories and their acceptance criteria. The Definition of Ready takes the place of the entry criterion of a user story. The Definition of Done takes the place of its exit criterion. In a HERMES project that follows the agile approach, the team designs the test concept in the Execution phase.

Pitfalls

Tests planned at the end. The PMBOK Guide points out that early testing reduces the cost of fixing nonconforming components. A requirements inspection planned in the Concept phase finds the ambiguity before a developer codes it. The same defect found in user acceptance testing (UAT) costs one more round of development, testing and delivery.

The plan mistaken for the test cases. A plan that details the steps of each test freezes before the team has settled the methods.

The exit criterion without a measure. "The system is stable" does not say when testing stops. "No open blocking defect, at most two major defects" does.

Non-executable deliverables forgotten. A plan limited to software leaves the specification, the models and the manual unverified. These are the first deliverables of the project. The ISTQB notes that static testing detects defects from the earliest phases of the development life cycle.

AI considerations

A language model reads the list of requirements and produces a first draft of the matrix: one row per deliverable, the associated criterion, a proposed method and level. It flags the requirements whose criterion contains neither a threshold nor a verifiable condition. The analyst reviews each proposed level because the model often proposes a system test for anything that looks like software and forgets the inspection of documents.

The language model drafts entry and exit criteria from a plan template such as the one HERMES publishes. The team sets the thresholds, for example the number of major defects tolerated or the target coverage. The stakeholders designate the person who accepts stopping for lack of time. A language model does not know the risk appetite of the client.

Test data raise the question of data protection. A production extract that contains AHV numbers or incomes does not go into an online service whose terms of use the organisation does not control. The model can generate fictitious data sets that respect the formats and the validation rules.

Examples

A cantonal compensation office replaces the paper form for the affiliation of self-employed persons with an online form. The plan has one row per deliverable.

DeliverableCriterion verifiedMethod and levelEntry criterionExit criterionOwnerWhen
Requirements specificationEach requirement carries a verifiable acceptance criterionInspectionSpecification complete; three reviewers appointedNo open blocking or major defectBusiness analystEnd of the Concept phase
Contribution calculation moduleThe statutory scale applies to the declared incomeComponent testingExit criteria of the inspection met; code reviewedAll brackets of the scale covered; no open defectDevelopersAt each delivery during Implementation
Interface with the register of insured personsThe AHV number is validated in under 2 secondsSystem integration testingExit criteria of component testing met; environment connected to the test copy of the register; fictitious data loadedAll planned tests run; no open blocking defectTest teamImplementation
Online formA self-employed person registers without help in under 15 minutesUser acceptance testing (UAT)Exit criteria of system integration testing met; ten self-employed persons recruitedEight participants out of ten succeed; no open blocking defectHead of affiliationsBefore go-live
Staff manualThe manual describes the affiliation process in forceReview by two case officersProcess approved; manual completeComments addressed or rejected in writingHead of affiliationsBefore staff training
Defect classesBlocking: the affiliation cannot be completed. Major: the affiliation is completed with incorrect data. Minor: the affiliation is completed with a presentation defect.
Stop for lack of timeThe head of the compensation office accepts the risk of going live with tests not run and puts that acceptance in writing.
Test and inspection plan for the online affiliation form. Each deliverable carries a criterion, a method, a level, an entry criterion, an exit criterion, an owner and a point in time.

The exit criteria count open defects by the defect classes that the plan defines. Each verification starts when the previous one has met its exit criteria.

  1. Inspection of the specification
    EntrySpecification complete; three reviewers appointed
    ExitNo open blocking or major defect
  2. Component testing
    EntryExit criteria of the inspection met; code reviewed
    ExitAll brackets of the scale covered; no open defect
  3. System integration testing
    EntryExit criteria of component testing met; environment connected to the test copy of the register; fictitious data loaded
    ExitAll planned tests run; no open blocking defect
  4. User acceptance testing (UAT)
    EntryExit criteria of system integration testing met; ten self-employed persons recruited
    ExitEight participants out of ten succeed; no open blocking defect
The verifications of the affiliation form run one level after the other. The exit criteria of each verification form part of the entry criteria of the next.

Visualisations

The plan sits between two techniques. Upstream, the acceptance criteria state what is acceptable. Downstream, test cases and test scripts describe each verification step by step. The test report feeds its findings back into the plan.

Requirements and acceptance criteria
Test and inspection plan
  • Method and level
  • Entry and exit criteria
  • Defect classification
  • Environment and data
  • Roles
  • Schedule and budget
Test cases and test scripts
Execution of tests and inspections
Test report
New findings: plan updated
The test and inspection plan sits between the acceptance criteria and the test cases. For each deliverable it sets the method, the level, the entry and exit criteria, the roles and the schedule. The findings in the test report update it.

Cost

PhaseLevelRationale
PreparationMediumA list of deliverables, requirements with verifiable criteria and a product risk analysis.
ExecutionMediumOne or two workshops with the user, the developer and the operator to settle methods, criteria and roles.
DocumentationMediumThe plan or the test concept. The team updates it whenever a finding changes a method, a criterion or a date.

Tooling

A spreadsheet is enough for the matrix of a small project: one row per deliverable, one column per decision. A team wiki suits the written plan when several suppliers consult it.

HERMES publishes a test concept template on the page of the outcome. A federal, cantonal or communal office that applies HERMES starts from this template.

Xray and Zephyr in Jira, Azure Test Plans and TestRail link the plan to the test cases and to the execution results. These test management tools pay off when the number of test cases exceeds what a spreadsheet tracks without error.

Sources

  • PMI, A Guide to the Project Management Body of Knowledge (PMBOK Guide), 8th edition, §2.2.2.1 and figure 2-14, §2.2.2.3, section 4 (entries Project management plan, Quality management plan, Quality test and evaluation documents, Requirements documentation), section 5 (entries Test and inspection planning, Testing/product evaluations): the definition of the technique, its place in scope planning, the methods by industry, the cost of late testing, the test plan and the quality management plan.
  • ISTQB, Certified Tester Foundation Level (CTFL) Syllabus, v4.0.1, 2024, §2.2, §2.2.1, §3.1, §3.2.4, §5.1.1 to §5.1.3, §5.2.3: the content of the test plan, the test levels, static and dynamic testing, the entry and exit criteria, the Definition of Ready and the Definition of Done, product risk analysis.
  • Swiss Confederation, Federal Chancellery, HERMES 2022, Project management, outcome Test concept, task Design test concept, task Conduct test, module Tests: the content of the test concept, the defect classification, the starting and abandonment conditions, the evaluation of results, the test infrastructure, the update of the concept.
Technical Visualizations
All techniques
Test Cases and Test Scripts