Requirements, test plans and coverage
Link each requirement to the test that verifies it, approve the tests an AI assistant proposes, and see what passes, what fails and what no test verifies.
On this page8
Link each requirement to the test that verifies it, and read where it stands: passing, failing, not run, to confirm or with no test. Each result leads to its evidence, the Confidence Report of the run, for a web app and for a desktop app alike.
List
What the product must do
Plan
A person approves each test
Run
The engine checks the app
Read
Where each one stands
You do not need every step. Linking one requirement to one test is already useful, and a plan can come later.
Link a requirement to a test
A requirement is named by its ID: a Jira key such as SHOP-12, or any ID your team uses. Link it to the whole test, or only to the Scenario that verifies it.
- 1
Open the test in GUI Test Studio
For the whole test, click an empty part of the timeline: the Properties panel shows the test itself, with a Requirements section.For one part of the test, click its Scenario's chip above the timeline instead.
- 2
Type the ID and press Enter
Each ID becomes a chip. You can paste several at once, separated by commas.
- 3
Save the test
The links travel inside the test file, and into a runner test too.
| Linked to | The requirement passes when |
|---|---|
| The whole test | Everything the test checks ran, and nothing in the test failed. |
| A Scenario | Everything checked in the Scenario, and in the ones inside it, ran, and nothing there failed. |
Confirm the links an assistant made
An AI assistant can link requirements too, but its links do not count yet. They read "to confirm" until a person says that the checks really verify the requirement. No assistant can confirm a link.
- 1
Select the requirement
Open Test Plan & Coverage and select a requirement on the Coverage tab.Under What verifies it, you see each linked test with what it checks.
- 2
Read the checks, then confirm
Click Confirm.The window lists the checks and asks whether they verify the requirement: Yes, They Verify It makes the link count.If they do not, use Remove Link... or add the missing check.
You can also confirm a link on its chip in GUI Test Studio, with its Confirm button.
Make a test plan
A test plan lists what your product must do. It is one file, ending in .gtsplan, kept in the folder of your tests: your whole team can use it, and you can keep it with your code. It covers every test in its folder and its sub-folders.
| Where | How to open Test Plan & Coverage |
|---|---|
| GUI Test Studio | File, Test Plan & Coverage..., or Ctrl+Shift+T |
| GUI Test Runner-Recorder | Test, Test Plan & Coverage..., or its icon at the top of a test's page |
Click New Test Plan..., give the plan a name and choose the folder that holds your tests.Each test is saved in a folder of its own, so choose the folder above them.
Import requirements from Jira or a CSV file
On the Coverage tab, the Import Requirements... button opens a menu: choose From Jira... or From a CSV File... in it.Add Requirement... writes one by hand.
From a CSV file
Use one row per requirement. Jira, Azure DevOps and most requirement tools export such a file, and Excel saves one with Save As. The window guesses which column holds the ID, the title, the description, the address, the type and the status: correct it if needed, and read the preview.
From Jira
Connect to your Jira site once, choose a project and its issue types, then click Preview.For a sprint, a label or several projects, tick Advanced: use my own search (JQL).Nothing is changed in Jira, and the connection is the one the bug reports use.
Plan with AI, approve, then create
A planned test says what the user does and what must be true at the end. You write it by hand, or an AI assistant reads your specification and proposes it: Claude, ChatGPT with Codex, VS Code's Copilot Chat, or a local AI model we provide or you bring. A person decides on each one before anything is created.
- 1
Ask for a plan
On the Planned Tests tab, click Plan With AI...: the request is written for you.Say in it where the specification is, then send it to your assistant.You can paste the text, or name a file.An assistant with its own Jira or Confluence connector can read it there.
- 2
Read what it proposes
The assistant saves the requirements with their own IDs, and planned tests marked Proposed. It also tells you what is missing or unclear in the specification. No test is created yet.
- 3
Approve or reject each one
Approve lets an assistant create the test.Reject... keeps it in the plan, with your note on why or what to change.Edit... changes its words, its checks or its requirements.A planned test with no check cannot be approved.
- 4
Create the approved ones
Click Create With AI... and tick the ones to create.The assistant records each test, adds its checks and links it to its requirements.You then confirm those links, as above.
Requests you can use:
- With GUI Test Studio, read the specification C:\Specs\Checkout.md and propose the tests that verify it.
- Show me the proposed tests of the Shop plan with their checks, and ask me which ones to approve.
- Create the approved tests of the Shop plan that have no test yet.
- Which requirements of the Shop plan are failing, and on which browsers?
If a planned test already has its test, click Choose Its Test... instead of creating it.How to connect an assistant is in Create a test from a prompt.
Read the coverage
The Coverage tab gives each requirement one state.Click a state at the top to see only its requirements.
| State | What it means |
|---|---|
| Failing | Something confirmed for it failed in its last run, on at least one browser or device. |
| Not run | It is linked and confirmed, but there is no up-to-date result. |
| To confirm | It is linked, but a person still has to confirm that the linked checks verify it. |
| No test | No test or Scenario that checks something is linked to it. |
| Passing | Everything confirmed for it passed in its last run, and nothing failed on a browser or device. |
"Not in the list" is for an ID that a test names and the plan does not have. It may be a typing error: correct the link, or add the ID to the list. These IDs are in no other count.
Browsers and devices
When a web test was generated for several browsers and devices, each one has its own result.One failure makes the requirement Failing.A browser or device that has not run does not change the state: the list says how many ran, such as 2 of 5 run.Show the Report opens the Confidence Report of that very run.See Every browser and device from one recording.
Which run counts
The newest run that finished counts, even when it stopped at a failure. A run that was aborted, could not start or started in the middle does not. A result is out of date when the checks changed after it, or when a browser or device has to be generated again: run the test again.
A test opens the invoice page, clicks Print and ends. It passes every day. It checks nothing, so the requirement linked to it reads No test. Add a check that the invoice shows its total, and run it again.
Export saves what you see as a CSV, Markdown or JSON file.Why this matters, with examples, is in Requirements traceability and test coverage.
In the report and in bug reports
When a test is linked to requirements, the Confidence Report has a Requirements bar under its banner, with the result of each one in that run.Click one, then Show Its Steps, to see the steps that verify it.
| In one run | What it means |
|---|---|
| passed | Every check there ran, and nothing failed. |
| failed | Something failed there. |
| not reached | The run ended before all of its checks. |
| nothing checks it | No check stands there, so a run says nothing about it. |
A bug report names the requirements the failure affects, and so does the Jira issue made from it.
In your pipeline
Run the tests with gtr-cli run, then read the coverage on the same machine.gtr-cli coverage runs nothing: it reads the plan, the tests and the results already there.
gtr-cli run tests --countdown 0 --junit results\junit.xml
gtr-cli coverage tests --summary results\coverage.md --fail-on failing,not-run| Option | What it does |
|---|---|
| --fail-on | Ends with 1 when a requirement of the list is in a state you name: failing, not-run, to-confirm or no-test, separated by commas. |
| --summary | Writes the list as a Markdown file, for a merge request or a build page. |
| --csv | Writes one row per requirement, for a spreadsheet. |
| --json | Writes everything, for your own scripts and dashboards. |
| --verbose | Also prints the result on every browser and device. |
| Exit code | Meaning |
|---|---|
| 0 | The list was made, and no requirement is in a state you named. |
| 1 | A requirement is in a state named by --fail-on. |
| 2 | The command was wrong: an unknown state, a folder that does not exist or a folder that holds several plans. |
| 3 | The plan cannot be read, a file cannot be written, or --fail-on has no requirement to check. |
Give a folder or a plan. A folder uses the plan in it. Without a plan, the command lists only the requirements its tests name, and --fail-on has nothing to check. Requirements that are not in the plan's list never decide the exit code.
Requirements in the results of a run
The console, the Markdown summary and the JSON file of gtr-cli run give each requirement's result.The JUnit file names the confirmed ones in a requirements property of the test case, in the form Xray's JUnit import reads:
<testcase classname="GUI tests" name="Checkout.GTS" time="12.400">
<properties>
<property name="requirements" value="SHOP-12,SHOP-14"/>
</properties>
</testcase>A link still to confirm is left out of that property, and so is one with nothing to check.With --junit-steps, when a test has one test case per step, the property stands in a test case of its own.
Next: Run tests in your pipeline, or Add GUI Test Studio to your testing stack.
Still stuck?Tell us what you were trying to do, and we answer within one working day.
Ask our team