Manual Testing · Planning & Defects

Requirement Traceability Matrix

An RTM proves that every requirement is tested — and shows instantly what is affected when a requirement changes.

Intermediate 5 min Lesson 14 of 24
0/24 in Manual Testing
On this page · 5 min · Intermediate

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#

TextRTM for a login feature Illustrative
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
Expected output
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#

  1. List every requirement with an ID.
  2. Link each to its test cases.
  3. Add execution status and defects.
  4. 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#

Letting the RTM go stale

Update it as requirements and tests change, or it misleads.

Tests without requirements

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
Text Illustrative
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#

Requirement Traceability Matrix quizMultiple choice Question 1 of 1

What does forward traceability check?

Score so far: 0/0

Want more? Practise all Manual Testing MCQs · Manual Testing interview questions

My notes#

Saved in this browser.

Progress is saved in this browser. Sign in to sync.