We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Glossary

Requirements traceability matrix

Published . Last updated . Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Also called
RTM
Published
Updated
Definition

A requirements traceability matrix is a table that links each requirement to the design, tests and results that show it was met. It answers two questions: which requirement does this test cover, and which tests cover this requirement. In our view, teams facing audits or contracts keep one as evidence; others read the answer from their tracker.

What does a requirements traceability matrix contain?

One row per requirement, and a link from each to what proves it. NASA’s software handbook, in its bidirectional traceability requirement, describes the artifact as “a structured table or database providing links between requirements, designs, implementations, and test cases”. The ISTQB Foundation Level syllabus asks for traceability between the test basis, the testware, the test results and the defects.

The matrix below is built for a checkout feature. The rows are invented to show the shape; they are not from a client or a real project.

Requirement Acceptance criterion Test Type Last result Gap
R1: Pay by card Valid card is charged once T-101 Automated, API Pass None
R2: Decline invalid cards Expired card is declined with a message T-102 Manual Pass None
R3: Apply a voucher Voucher cannot be used twice T-140 Automated, UI Fail Open defect
R4: Refund an order Refund returns to the original card none none Not run No test
R5: Email a receipt Receipt arrives within one minute T-160 Automated, API Pass Timing not checked

The last two rows are the point. A matrix is useful when it shows what has no test (R4) and where a test is weaker than the requirement (R5), not when it shows green rows.

Which kinds of traceability are there?

Our naming, which tools and teams vary: the three forms differ by the question they answer.

Form Direction Question it answers
Forward Requirement to tests and results Is this requirement tested, and did it pass?
Backward Test to requirement Why does this test exist, and what does a failure put at risk?
Bidirectional Both Which requirements have no test, and which tests serve no requirement?

The NASA page defines bidirectional traceability by quoting ISO vocabulary: an “association among two or more logical entities that are discernible in either direction”. The syllabus lists what the links buy you: coverage evaluation, impact analysis of changes, audits and IT governance. For how a single check is written, see test case; for the criteria a row points to, see acceptance criteria.

Requirements traceability matrix: each row links a requirement to its acceptance criterion, its test and the last result; forward traceability finds a requirement with no test, backward traceability finds a test with no requirement

Do you need a traceability matrix, or does your test management tool already give you one?

Our rule of thumb, which is judgment: decide by who asks for the evidence.

  • Someone outside the team asks. A regulator, a customer contract or an auditor wants the links on paper. NASA’s requirement SWE-052, as its handbook records it, has project managers maintain bidirectional traceability between listed software elements, with the required links depending on software classification. Keep a matrix, and generate it from your tool when you can.
  • Only your own team asks. Links in the tracker are enough. Microsoft documents how Azure DevOps links work items, commits, pull requests, builds and releases, and how Azure Test Plans ties test cases and suites to stories, features and requirements. GitHub can link a pull request to an issue with a keyword.
  • You do not know which applies. Pick one release and try to answer, for each requirement, “which test covers it, and what was the last result?” If answering takes more than an hour, you have a gap whether or not you need paper.

If you cannot answer that question for a release today, our QA audit and assessment is the matching service: a one-week QA audit of one product area (its tests, pipeline and release process).

What breaks a traceability matrix?

Five failures, from our reading of how these documents decay:

  1. Stale links. A requirement changes and its tests do not. The matrix still shows a pass, for a requirement that no longer exists in that form.
  2. One-to-many gaps. One requirement needs several tests, or one test serves several requirements. A single link per row hides the uncovered half.
  3. Hand-kept spreadsheets. The sheet is accurate on the day it is built, and then each release makes it older.
  4. Tests with no requirement. Backward traceability finds them. They may be useful, or they may be debris that costs run time.
  5. AI-generated tests that cite nothing. A generated suite can be large and still trace to no requirement. Ask for the link at the time of generation, not afterwards.

A quality gate can make some of this automatic: block a release when a requirement tagged for it has no passing test. More on the planning side is in our post on automation test plans, and on how requirements, frameworks and suites fit in putting the framework puzzle together. If your criteria are written as examples first, acceptance test-driven development produces the links as a side effect.

What does AI change, and what does it not solve?

AI can read a requirements document and a list of test names and propose which belongs to which. That saves the first pass on an old project. What it does not solve is the judgment the matrix exists for. A proposed link says a test sounds related, not that it checks the requirement. Our view: a model proposes links from what exists, so it is a weak finder of the row that counts, the requirement with no test. Let AI draft the links, then have a person review the gaps first and the links second. Do not hand an auditor a matrix that no person has checked.

What does Zapple.Tech do about it?

If nobody can say which tests stand behind a requirement, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the QA audit and assessment page. Tell us about your product in the form below.

  • Test case

    A test case is one specified check of the software: the conditions it starts from, the inputs and steps, and the result expected. It can be run by a person or by a tool. A good one is traceable to a requirement and states its expected result, so you and a colleague running it reach the same verdict.

  • Quality gate

    Quality gates are conditions a code change must meet before it moves to the next stage, such as a merge or a release. Passing tests, no new serious findings and an approving review are typical. A gate turns "ready" from an opinion into a rule your pipeline can enforce, and an agreed override stops your team switching it off.

  • QA audit

    A QA audit is a structured review of how a team tests: its tests, pipeline and release process. It ends in findings that show where quality is at risk and what to change first. Our QA audit services take about one week for one product area and end in a written report and a pilot plan.

  • Acceptance criteria

    Acceptance criteria are the conditions that an implementation of a user story must meet to be accepted by stakeholders. The ISTQB syllabus says they may be viewed as the test conditions the tests should exercise. Written well, each one states an outcome a check can observe, and each one becomes at least one test.

All terms in the glossary

QA audit

QA audit and assessment

QA audit services: a one-week review of your tests, pipeline and release process, with a written report on what is at risk and what to fix first.

See the service

Questions about requirements traceability matrix

What is a requirements traceability matrix?

A requirements traceability matrix, or RTM, is a structured table or database that links requirements to designs, implementations and test cases, as NASA's software handbook describes it. In testing it answers whether each requirement has a test, what the latest result was, and what a change to one requirement touches.

What are the types of traceability?

In our wording there are three. Forward traceability follows a requirement to its tests and results. Backward traceability follows a test back to the requirement it serves. Bidirectional traceability keeps both, which NASA's handbook defines through ISO vocabulary as an association discernible in either direction.

Who creates the traceability matrix?

In our view the tester or QA lead owns it, and the analyst or product owner owns the requirement side. The people who write the tests are best placed to link them, and the people who own the requirements are best placed to say when a requirement changed. If a tool keeps the links, nobody maintains the matrix by hand.

Is a traceability matrix needed in agile?

In our view, only if someone needs the evidence. The ISTQB syllabus says good traceability facilitates audits and helps meet IT governance criteria. A team with no auditor or contract that asks can link stories, tests and defects in its tracker and skip a separate document. A team that ships into a regulated field should check what its regulator asks for.

Can AI build a traceability matrix?

AI can propose links between requirement text and test names, which saves the first pass. Someone then has to confirm that every proposed link holds, meaning the test really checks the requirement, and has to look for requirements that have no test at all, because a model proposes links from what exists, and in our view that makes it a weak finder of what is missing.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote