Skip to content
News

Requirements traceability matrix template: What needs retesting after a change?

A returns policy changes and the tests still pass. Use a requirements traceability matrix to connect the new rule to the right tests, current results and the checks you still need to run.

Bands of vivid blue and rust orange meet across a layered mineral surface.

The returns team has a new rule: customers get 30 days from delivery to request a return. Until now, they had 30 days from purchase. Engineering makes the change and the test suite goes green. The QA lead opens the passing test and sees that its example order was purchased and delivered on the same day. That test would have passed under either policy.

A requirements traceability matrix links each requirement to the tests that check it and to the results for a specific build. When a requirement changes, the matrix shows which evidence still applies, which tests need to change and what the team has yet to verify. You can keep one in a spreadsheet, a project document or a test management tool.

Copy the matrix

Start with the requirements whose failure would change the release decision. Give each one a stable ID, link to its current wording and add the tests that cover it. A requirement can need several tests. A single test can also cover several requirements. Use one row per requirement and test pair when you need to record separate results or filter by test.

Requirement and revisionExpected behavior and sourceTest ID and caseBuild and resultEvidenceOwner and next step
ID and revisionLink to the agreed ruleLink to the test and fixtureBuild ID and observed statusRun, recording or logWho will close any gap

If a requirement has no test, keep a row for it and mark the gap. An empty result should never be the only sign that a check is missing. Link to the full test procedure so the matrix stays short enough to scan. Microsoft's requirements traceability guide shows how test results, bugs and code changes can all point back to the corresponding requirement.

A slab of iridescent crystal lies on a metal worktable.

Choose a test that can tell the two rules apart

The old test uses an order placed and delivered on April 6. Both rules make that order eligible on May 4, so the QA lead keeps it as a basic check and adds an order placed on April 1 and delivered on April 6. On May 4, that order is 33 calendar days past purchase and 28 past delivery. It should be eligible under the new rule. This fixture catches an implementation that still reads the purchase date.

The team confirms that day 30 is included and uses the same delivery date to check May 6 and May 7. It adds a final sale order as a separate case, since the change applies to standard orders only. When the QA lead asks what happens if delivery has no recorded date, product and support find that the approved wording doesn't say. They agree to show an option to contact support without automatically approving or denying the return, then give that behavior its own requirement.

Here is the matrix during review of the fictional release. The team has tested the first two cases on build 482. The exception has an older result and the newly agreed support path has no result yet.

Requirement and revisionExpected behavior and sourceTest ID and caseBuild and resultEvidenceOwner and next step
RET-17 v2Standard orders qualify through day 30 after deliveryT-14: Purchase Apr 1, delivery Apr 6, request May 4482: PassedRun records eligibilityQA: Reviewed
RET-17 v2Standard orders qualify through day 30 after deliveryT-15: Requests on May 6 and May 7482: PassedRun records eligible on day 30, expired on day 31QA: Reviewed
RET-22 v1Final sale orders stay ineligibleT-22: Final sale order delivered yesterday479: Passed; rerun on 482Release 479 resultQA: Rerun because both rules use the eligibility function
RET-23 v1Offer support when delivery date is missingT-23: Standard order with no carrier delivery date482: Not runNo resultQA: Run with a missing date fixture
An angular airframe is supported on a mechanical stand inside a bright hangar.

Reopen evidence when its basis changes

Keep the old passing result attached to the old requirement and build. It still tells you what happened. For the new revision, walk the links in both directions: start at the changed requirement to find tests that need revising, then start at the changed code or a failed test to see which other requirements it might affect. A shared function can pull an unchanged rule back into the retest.

Decide what qualifies as current evidence with the people who sign off. In the example, the team reruns the final sale case because it goes through the modified function. It leaves the unchanged label printing tests to its normal regression process. The matrix gives that choice a visible reason and makes clear what verification remains. Use a software test plan for the wider test scope, environments and release criteria. If the rule itself needs a clearer statement, the guide to writing acceptance criteria shows how to make it testable.

Thin bands of ice meet rippled ocher sand at sunset.

Bring one change into Swarm

Save the old and new requirements, matrix and relevant test results in a private Space. Keep the issue tracker and CI as the records for their own work. Ask the agent you already use to compare the supplied revisions, trace the affected rows and draft a brief with a link to each result and its build. Ask it to flag missing evidence and leave any ambiguous coverage for QA to check.

Start with a change that someone on the team can verify by hand. At release review, pick any row marked passed and follow it to the actual result. If the evidence still answers the question in the current requirement, the matrix has earned its place in the project.

Swarm | Requirements Traceability Matrix Template and Example