What is traceability?
A chain of links across the life cycleIn software testing, traceability means keeping explicit links between the items of the product life cycle:
- Requirements (or user stories, specifications) describe what the product must do
- Tests verify each requirement
- Results record what happened when the tests were run, on which version
- Bugs (defects) are found by failed tests and linked back to them
- and, upstream, the product or system under test (SUT) the requirements belong to
With these links in place, you can start from any item and follow the chain in either direction.
Forward, backward and bidirectional traceability
Three ways to read the same links- Forward traceability goes from requirements to tests: is every requirement covered by at least one test? It reveals untested requirements.
- Backward traceability goes from tests (or bugs) to requirements: why does this test exist? Which requirement is affected by this bug? It reveals useless tests and gold plating.
- Bidirectional traceability combines both. It is what standards and auditors ask for, and what impact analysis needs.
The requirements traceability matrix (RTM)
The classic way to show itThe traditional deliverable is a table with one row per requirement and the tests, results and bugs linked to it:
| Requirement | Tests | Last result | Open bugs | Status |
|---|---|---|---|---|
| REQ-12 User can reset password | T-40, T-41 | Passed | - | Covered, OK |
| REQ-13 Password expires after 90 days | T-42 | Failed | BUG-7 | Covered, KO |
| REQ-14 Account locked after 5 failures | - | - | - | Not covered |
Even this small example answers three questions at once: REQ-12 is fine, REQ-13 is blocked by a bug, and REQ-14 has no test at all. On a real project with thousands of rows, a spreadsheet matrix quickly becomes impossible to read and to keep up to date.
Why traceability matters
More than an audit checkbox- Coverage: know which requirements are tested, passed, failed or not tested at all, before the release, not after
- Impact analysis: when a requirement changes, find the tests to update and re-run; when a bug is found, find the requirements at risk
- Release decisions: decide to ship on facts (requirements covered and passed) rather than on test counts
- Compliance: regulated industries require it, e.g. DO-178C (aeronautics), ISO 26262 (automotive), IEC 62304 and FDA guidance (medical devices), and many banking and public-sector processes
- Less waste: tests not linked to any requirement are either missing a requirement or not needed
How to keep traceability alive
The hard part is not creating the links, it is maintaining them- Create the links when the test is written, not at the end of the project
- Use a tool where links are part of the data, not a separate spreadsheet that someone updates by hand
- Keep requirements versioned, so a change visibly impacts the linked tests
- Link bugs to the test and the run that found them, even when bugs live in another tool such as Jira
- Review the uncovered requirements and unlinked tests at every sprint or milestone
Traceability in a job interview
A classic question"What is traceability and why does it matter?" is one of the most common QA interview questions. A good answer defines the chain (requirements, tests, results, bugs), mentions forward and backward traceability, and gives one concrete use: coverage before a release, or impact analysis after a change. More questions like this one in the QA interview questions, with answers.
From a matrix to a living diagram
In XQual, requirements, tests, results and bugs are linked natively, and the traceability is shown as an interactive diagram: SUTs, requirements, tests and bugs in four columns. Hover any link to highlight the full chain it belongs to, and open it from any folder to scope the view. Requirements and bugs can even come from Jira, GitLab or Redmine.
DISCOVER VISUAL TRACEABILITY