Requirement Traceability Matrix
An RTM proves that every requirement is tested — and shows instantly what is affected when a requirement changes.
On this page · 5 min · Intermediate
On this page
- Learning objectives
- Explanation
- Code example
- Step by step
- Real-world use
- Common mistakes
- Best practices
- Remember this
- Practice exercise
- Mini quiz
- Related topics
- My notes
- Reading time
- 5 min
- Difficulty
- Intermediate
- Updated
- Oct 29, 2026
Related tutorials
Learning objectives#
- Build an RTM
- Use it to find coverage gaps
- Trace defects back to requirements
- Explain forward and backward traceability
Explanation#
Rows are requirements (or user stories); columns list linked test cases, execution status and defects.
Forward traceability: requirement → tests (is everything covered?). Backward: test → requirement (does each test have a purpose?).
Tools like Jira with Xray/Zephyr, Azure Test Plans or a simple spreadsheet can hold the RTM.
Code example: RTM for a login feature#
Req ID Requirement Test cases Status Defects
REQ-01 Login with email and password TC-01, TC-02, TC-03 Passed —
REQ-02 Lock account after 5 failures TC-04 Failed BUG-207
REQ-03 "Remember me" keeps session 30 days (none) NOT COVERED —
REQ-04 Show/hide password toggle TC-05 Passed —
Coverage: 3 of 4 requirements tested → write cases for REQ-03 before release
The matrix exposes an untested requirement and links a failure to its bug.
This example is illustrative. Copy or download it and run it in your own environment; the expected output is shown above.
Step-by-step explanation#
- List every requirement with an ID.
- Link each to its test cases.
- Add execution status and defects.
- Act on gaps and failures.
Real-world use case#
Regulated industries (banking, healthcare) require an RTM as evidence that all requirements were verified.
Common mistakes#
Update it as requirements and tests change, or it misleads.
Backward traceability reveals tests that no longer matter.
Best practices#
- Give every requirement an ID
- Link tests and defects in your tool
- Review coverage before release
- Use it for impact analysis
Remember this#
RTM = requirement ↔ tests ↔ defects.
Forward: covered? Backward: needed?
Gaps = untested risk.
Practice exercise#
Your task: REQ-02 changes from 5 to 3 failed attempts. How does the RTM help?
Show solution
It shows TC-04 (and BUG-207) are linked to REQ-02, so you know exactly which tests to update and re-run.
Mini quiz#
What does forward traceability check?
Want more? Practise all Manual Testing MCQs · Manual Testing interview questions
My notes#
Saved in this browser.