Requirements Traceability Matrix in Testing: What Covered Means
What a requirements traceability matrix is, with an example, what test coverage can prove, and how to link each requirement to a visual test.
A requirements traceability matrix (RTM) links each requirement to the tests that verify it and to their results. Trust it when the tests check the right result, people have confirmed the links, and the results are up to date.
Just before a release, someone asks which requirements are tested. The spreadsheet says all of them. Some of those tests have not run since the last release, and nobody in the room can say what they check.
What is a requirements traceability matrix?
The ISTQB glossary defines a traceability matrix as "a matrix which correlates work products or items within work products to determine the coverage achieved."
In software testing, those items are usually requirements on one side, and tests with their results on the other.
The idea goes beyond testing.NIST's glossary describes a matrix that records the relationship between products of the development process, such as the requirements and the design of a component.This article stays with the part testers own.
Many teams keep their matrix in a spreadsheet. It is easy to start, but every cell is typed by hand. A cell that says passed will still say it next month, whatever happens to the application.
Requirements traceability matrix example
Here is a short matrix for an online shop. The requirements and the results are invented, and the pictures further down show the same shop. Each row gives a reader something to do, or a reason to move on.
| Requirement | Verified by | What the test checks | State |
|---|---|---|---|
| SHOP-12: pay an order by card | Checkout, in its Pay by card Scenario | The order total, the card number and the Place order button | Failing, in the recorded test and on an iPhone 15 (emulated) |
| SHOP-2: sign in with an email | Checkout, in its Sign in Scenario | The customer's name once signed in | Passing |
| SHOP-5: filter the catalogue by size | Filters | The number of results, and the first product | Not run: the checks changed after the last run |
| SHOP-9: see the order in My orders | Checkout, in its See the order Scenario, linked by an AI assistant | The status of the order | To confirm |
| SHOP-10: cancel an order within one hour | No test yet | Nothing | No test |
The third column is often missing from a spreadsheet, and it matters most. Without it, you know that a test exists, and not what it proves.
What is an RTM used for in software testing?
The ISTQB Foundation Level syllabus names one use: "Traceability of test cases to requirements can verify that the requirements are covered by test cases."
It adds that good traceability "makes it possible to determine the impact of changes, facilitates audits, and helps meet IT governance criteria."
Bidirectional traceability means that you can follow each link both ways. Each way answers a different question:
| You start from | You find | So you can |
|---|---|---|
| A requirement | The tests that verify it | See which requirements no test verifies. |
| A test | The requirement it exists for | Decide whether the test is still needed. |
| A changed requirement | The tests to review | Update them before they pass on the old rule. |
| A failure | The requirement it affects | Tell the product owner what is at risk. |
Some industries ask for this.For software in medical devices, the FDA's guidance on software validation lists tracing "System Tests to Software Requirements" among the typical testing tasks.If a rule like this applies to you, ask your quality team what your matrix must contain.No tool makes you compliant.
When is a requirement really covered?
Many matrices stop at the first question, whether a test is linked. Four more questions come before you can rely on the answer:
Is a test linked to it?
No:No test
Yes
Does that test check something?
No:No test
Yes
Did a person make or confirm the link?
No:To confirm
Yes
Is there an up-to-date result?
No:Not run
Yes
Did it pass, with no failure on any browser or device?
No:Failing
Yes
Passing
A test that checks nothing proves nothing
In Assertion Free Testing, Martin Fowler retells a story he heard.A project had JUnit tests for every public method, and the team proudly showed its client the green bar.The tests did not contain a single assertion.
A test opens the checkout, pays by card, and ends. It passes every day, even when the customer pays the wrong amount, because nothing reads the total. In the matrix, SHOP-12 looks covered.
Add one check that the order total reads 94.00, and the test can fail when the total is wrong. That is when it starts to verify SHOP-12.
A link says where to look. Only a check can say whether the requirement is met.
Why a coverage percentage misleads
The ISTQB glossary defines coverage as "the degree to which specified coverage items are exercised by a test suite, expressed as a percentage."
This works for a list that you know is complete, such as the branches in a piece of code. Your requirements are different, because nobody can prove that the list is complete.
| What the percentage hides | Why it matters |
|---|---|
| The requirements nobody wrote down | A short list looks complete. When you add the missing requirements, the figure goes down. |
| What the tests check | A test that checks nothing can count as much as a good one. |
| How old the results are | A pass from three months ago can look the same as one from this morning. |
| Which requirement fails | The payment rule and a tooltip can have the same weight. |
Use counts instead: how many requirements are failing, not run, to confirm, without a test, and passing.
- Each count opens a list, and each list tells someone what to do next.
- The question of whether the list is complete stays with the people who know the product.
Test coverage vs code coverage
Code coverage is one kind of test coverage. It answers a developer's question, while requirements coverage answers the question of the whole team. Most teams need both.
| Kind of coverage | The question it answers | What it does not say |
|---|---|---|
| Code coverage | Which code ran during the tests? | Whether the result was right, or whether a rule was never written. |
| Requirements coverage | Which requirements do the tests verify? | Whether the list of requirements is complete. |
| Browser and device coverage | Where did the tests run? | Whether the tests check the right things. |
These are some of many measures.How to improve your testing process explains how each one can mislead you.
How to go from a specification to linked tests
GUI Test Studio is a testing solution where QA teams and AI agents build, execute, and manage tests visually, without code scripts. Its window Test Plan & Coverage brings together the requirements, the planned tests and the results.
Requirements
From Jira, a CSV file or by hand
Planned tests
A person approves each one
Linked tests
A person confirms each link
Coverage
One state per requirement
- 1
Start a plan next to your tests
In GUI Test Studio, choose Test Plan & Coverage... in the File menu.Give the plan a name, and choose the folder that holds your tests.The plan is one file, and your whole team can use it.It covers the tests in that folder and in its sub-folders.
- 2
Bring in the requirements
Import them from Jira or from a CSV file, or add them by hand.You see what will change in the plan before you import anything.When the requirements change, import them again.The import changes nothing in Jira.
Check which column holds what. The window then shows what will change in the plan. - 3
Ask an AI assistant for planned tests
The assistant reads the specification and proposes tests.It creates none of them at this stage.Each planned test says what the user does, what must be true at the end, and which requirements it is for.Paste the text, or name a file.You can also write the planned tests yourself.
For a page in Confluence, the assistant can use its own connection.Atlassian's page says its connector can search and summarize Jira and Confluence, and that it respects each user's permissions.
- With GUI Test Studio, read the specification C:\Specs\Checkout.md and propose the tests that verify it. Keep its requirement IDs. Tell me what is missing or unclear. Do not create any test yet.
- 4
Approve or reject each planned test
Read it with the person who knows the rule, then click Reject... or Approve.You can add a note when you reject one.The assistant can create only the tests you approve.If the words of a planned test change later, it needs a new approval.
This planned test is only proposed. Its test can be created with AI after someone approves it. - 5
Create the approved tests
Create With AI... prepares the request for your assistant.It records the tests in your real application, adds their checks, and links each test to its requirements.You can also record them yourself, and link them by typing the requirement's ID.
- 6
Confirm the links, then run the tests
Look at what each test checks.Confirm the links that are right, then run the tests to get their results.
The assistant can be Claude, ChatGPT with Codex, or a local AI model, one we provide or one you bring.Create a test from a prompt shows how to connect it.AI is optional: every step also works without it.
Who says that a test verifies a requirement?
A person does. An assistant can compare words, but the person who knows the payment rule can see that a check reads the price of one product and not the order total. So when an assistant makes a link, it stays to confirm until a person looks at the checks and agrees.
AI assistant
Creates the test and links it to SHOP-9
To confirm: it does not count yet
You
Read the checks, and confirm the link
Confirmed: its results count
AI assistant
Changes one of these checks later
To confirm again: you look at the new check
You can link a requirement to a whole test, or only to the Scenario that verifies it.When a long test covers three rules, link each rule to its own Scenario.A failure in one of them does not make the other two fail.If the run stops there, the ones it did not reach have no new result.
Other decisions that belong to a person are in human-in-the-loop testing.
Read the coverage: five states, on each browser and device
The Coverage tab reads the tests and the results of their last runs. It works out the states from them, so nobody has to keep a spreadsheet up to date.
| State | What it tells you | What to do next |
|---|---|---|
| Failing | A confirmed test failed on at least one browser or device. | Open the report of that run. |
| Not run | The test is confirmed, but it has no up-to-date result. | Run it. The window says why the last result does not count. |
| To confirm | A person has not confirmed the link yet. | Read the checks, then confirm the link, or remove it if it is wrong. |
| No test | No linked test or Scenario checks anything. | Plan a test, or add a check to the one that is linked. |
| Passing | The confirmed tests passed, and nothing failed on a browser or device. | Nothing for this build. |
A web test can be recorded once, then generated for other browsers and devices.One failure on any of them is enough to make the requirement Failing.One that has not run does not change the state, and its row says so.Read that list before you sign off a release.
From a failing requirement to its evidence
A red cell is the start of a question, because people want to know what broke. In the Coverage tab, Show the Report opens the Confidence Report of the run behind a result.
Click a requirement there, then Show Its Steps, to list the steps that verify it.For each failed check, the report shows what was expected beside what was found.The video of the run shows how it got there.
Requirement
SHOP-12 is failing
Check
94.00 expected, 49.00 found
Report
The pictures and the video
Bug report
It names SHOP-12
When you report the bug as a PDF, an Excel file or a Jira issue, the description names the requirements that failed.If a link is still to confirm, it says so.To know what else an auditor looks for, read test evidence for audits.
Does it work for desktop applications?
Yes.GUI Test Studio tests what a user sees, so it can verify a requirement in a web application, a desktop application, a game or an Android phone.The links, the states and the reports are the same for all of them.
A single requirement often crosses several applications. For example, a customer pays in the web shop, and the back office prints the invoice from a desktop application. If SHOP-12 covers both, link both tests to it. It fails as soon as one of them fails.
Stop a release when a requirement fails
In your pipeline, run the tests first. Then ask for the coverage on the same machine, because that command reads the results already there and runs nothing itself:
gtr-cli run tests --countdown 0 --junit results\junit.xml
gtr-cli coverage tests --summary results\coverage.md --fail-on failing,not-runThe folder tests holds the plan and the tests.Make sure the second step also runs after a failed test: many pipelines stop at the first error, and then nobody gets the list.Choose which states should fail the build:
| --fail-on | The build fails when a requirement in the plan |
|---|---|
| failing | Failed in its last run, on any browser or device. |
| failing, | Failed, or has no up-to-date result. |
| failing, | Is in any state except passing. Choose this when every requirement in the plan must be verified. |
The pipeline section of the guide explains the exit codes and the Markdown, CSV and JSON files.For examples in your CI tool, see run tests in your pipeline.
Requirement keys in the JUnit file
The JUnit file also names the confirmed requirements of each test, in a property called requirements.Xray's documentation describes that property, with several keys separated by commas.If Xray reads your results, import one file first and look at the result before you rely on it.
What a traceability matrix cannot tell you
| The matrix cannot say | Who or what can |
|---|---|
| That your list of requirements is complete, or right | The people who know your users and your rules. |
| That a check is strong enough | The person who reads it before confirming the link. |
| That someone read what they approved | Your team's own review habits. The plan keeps the decision, not the attention behind it. |
| That a rule is met when nothing on the screen shows it | A Call API step, a unit test, or a performance or security test. |
| What nobody thought of | Exploratory testing by people. |
GUI Test Studio does not assign work to testers or schedule manual test rounds.It links each requirement to a visual test and its evidence.For the rules behind your screens, see API testing without code.
A matrix people trust
- Each link was made or confirmed by a person who read the checks.
- The results come from the latest runs.
- Each red state leads to a report.
A matrix nobody opens
- The links were added in bulk, the night before an audit.
- The results are typed by hand.
- One percentage stands at the top, and no list stands below it.
Key takeaways
- 1A matrix links each requirement to its tests and their results. Add what each test checks, because that is the proof.
- 2No check, no proof. A test that checks nothing covers no requirement, even when it passes every day.
- 3Count states, not a percentage. The counts show what to do next.
- 4AI can propose and create the tests. A person approves each planned test and confirms each link.
- 5One failure is enough. If a requirement fails on one browser or device, it is Failing, and its report shows why.
- 6Let the pipeline ask the question. It can stop a build when a requirement fails or has no up-to-date result.
Questions
What is a requirements traceability matrix?
A requirements traceability matrix (RTM) is a table that links each requirement to the tests that verify it and to their results. Teams use it to find requirements without a test, and to see what a change or a failure affects.
What is an RTM used for in software testing?
An RTM shows what is tested, what is not, and what a change or a failure affects. It also helps in audits, because each requirement leads to its test and its result. It is only useful when the links were checked and the results are up to date.
What is bidirectional traceability?
Bidirectional traceability means that you can follow a link both ways. From a requirement, you find the tests that verify it. From a test, you find the requirement that explains why the test exists.
What is the difference between test coverage and code coverage?
Code coverage says which code ran during the tests. Test coverage is a wider term: it can be about requirements, risks or code, for example. Code can run in a test that checks nothing, so code coverage does not say whether a requirement is met.
What is a good requirements coverage percentage?
No single figure is good, because a percentage hides what matters. It does not say whether the list is complete, whether the tests check the right result, or which requirement fails. Count the requirements in each state, and look at the ones that are not passing.
Can AI generate test cases from requirements?
Yes, an AI assistant can read a specification and propose the tests that verify it. In GUI Test Studio, a person approves or rejects each proposed test, and the assistant creates only the approved ones. A person also confirms each link the assistant makes before it counts.
How do I link a test to a Jira requirement?
In GUI Test Studio, type the Jira key on the test, or on the Scenario that verifies the requirement. You can also import the requirements of a Jira project into a test plan, with their keys and titles. The import changes nothing in Jira.
Can I trace requirements to tests of a desktop application?
Yes. A GUI Test Studio test works on what the screen shows, so a desktop application, a web application and an Android phone use the same links. Each result opens the Confidence Report of its run, with the pictures and the video.
Jira, Confluence, Atlassian, Xray, ISTQB, JUnit, Excel, Android, Pixel, iPhone, Claude, ChatGPT and Codex are trademarks of their respective owners.


