Requirements Traceability Matrix (RTM)
The Requirements Traceability Matrix (RTM) is the bridge between what was promised (requirements) and what was tested (test cases). A well-maintained RTM is one of the most valuable QA artifacts — it proves coverage, enables impact analysis, satisfies compliance auditors, and immediately surfaces gaps. Building the RTM is not a one-time activity — it evolves across the entire STLC.
RTM Structure and How to Build It
- Column 1 — Requirement ID: Reference from requirements document (REQ-001, US-042, etc.)
- Column 2 — Requirement Description: Brief summary of what the requirement specifies
- Column 3 — Test Case IDs: All test cases that cover this requirement. One requirement may have multiple test cases (happy path + negative + boundary)
- Column 4 — Test Case Description: What each test case validates
- Column 5 — Test Execution Result: Not Executed / Pass / Fail / Blocked
- Column 6 — Defect ID (if failed): JIRA ticket reference
- Column 7 — Requirement Coverage Status: Covered / Partially Covered / Not Covered
- Process: Start with the RTM skeleton in STLC Phase 1 (requirement IDs listed, no test cases yet). Populate test case IDs in Phase 3 (test case design). Update execution results in Phase 5. Finalize in Phase 6 closure. A complete RTM answers: 'Show me evidence that every requirement was tested' — the definitive audit response
Using the RTM for Impact Analysis
When a requirement changes mid-project, filter the RTM by that requirement ID to instantly see all affected test cases. Update or create test cases for the changed requirement, mark affected test cases as needing re-execution, and flag new test cases for the change in the RTM. Without an RTM, a changed requirement triggers a manual search through all test cases — missing affected tests is practically guaranteed. The RTM also reveals coverage gaps: any requirement row with no test case IDs is an untested business rule. These gaps should be explicitly acknowledged — either add test cases or formally document the decision to defer testing with risk acceptance from stakeholders.
Technical diagram.
Tip
Tip
Practice Requirements Traceability Matrix RTM in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.
Practice Task
Note
Practice Task — (1) Write a working example of Requirements Traceability Matrix RTM from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.
Quick Quiz
Common Mistake
Warning
A common mistake with Requirements Traceability Matrix RTM is skipping edge case testing — empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready qa engineering code.
Key Takeaways
- The Requirements Traceability Matrix (RTM) is the bridge between what was promised (requirements) and what was tested (test cases).
- Column 1 — Requirement ID: Reference from requirements document (REQ-001, US-042, etc.)
- Column 2 — Requirement Description: Brief summary of what the requirement specifies
- Column 3 — Test Case IDs: All test cases that cover this requirement. One requirement may have multiple test cases (happy path + negative + boundary)