Most of the following reports are made using the "Filter Results" Jira gadget, which returns issues in a table layout.
The Pie Chart and the Two-Dimensional Filter Statistics are also two interesting gadgets that may be used for building reports.
Regardless of the gadget you use, the important aspect is to filter the relevant issues. This may be obtained using JQL (see Enhanced querying with JQL).
There is a special note regarding custom fields (e.g., "TestRunStatus", "Test Set Status") that depend on the Xray's configuration and not the JQL query.
You can also generate reports using the Xporter app detailed in Reports with Xporter. |
Lists requirements with current coverage status based on the most recently executed Test.
Gadget: Filter Results
Sample JQL: List requirements of project "CALC" for version "v3.0".
project = CALC AND issuetype = Story and fixVersion = "v3.0" |
Sample JQL: List requirements of project "CALC" of a previous version "v3.0", which are NOK in the newer version "V4.0"
project = CALC AND issuetype = Story and fixVersion = "v3.0" and issue in requirements('NOK', 'CALC', 'V4.0') |
Lists tests for a given project version.
Gadget: Filter Results
Sample JQL: List Tests for project "CALC", version "v1.0".
issuetype = 'Test' and issue in testsWithReqVersion('CALC', 'v1.0') |
Sample JQL: List Tests for Test Sets, of project "CALC", that have fixVersion "v1.0".
issuetype = 'Test' and issue in testsWithTestSetVersion('CALC', 'v1.0') |
If you want to include the Test status, then you just need to add the TestRunStatus column in the gadget's configuration.
Lists test sets for a given project version.
Gadget: Filter Results
Sample JQL: All Test Sets of project "CALC"
project = 'CALC' and issuetype = 'Test Set' |
Sample JQL: All Test Sets of project "CALC" explicitly marked with fixVersion "1.0"
project = 'CALC' and issuetype = 'Test Set' and fixVersion = 'v1.0' |
If you want to include the Test status, then you just need to add the Test Set Status column in the gadget's configuration.
Lists Test Executions for a given project version.
Gadget: Filter Results
Sample JQL: All Test Executions of project "CALC" that ran in version "v3.0", build (i.e., Revision) 100.
project = 'CALC' and issuetype = 'Test Execution' and fixVersion = 'v3.0' and Revision ~ 100 |
Sample JQL: All Test Executions of project "CALC", latest ones executed first.
project = 'CALC' and issuetype = 'Test Execution' ORDER BY created DESC |
Additional columns can be appended to this gadget:
Lists Test Plans, optionally for a given project version.
Gadget: Filter Results
Sample JQL: All Test Executions of project "CALC" that ran in version "v3.0", build (i.e., Revision) 100.
project = 'XRAYF' and issuetype = 'Test Plan' |
Lists tests to be executed by a specific user.
Gadget used: Filter Results
Sample JQL: List Tests that are yet to be executed (i.e., in TODO status) by user "admin"
issuetype = 'Test' and issue in testExecutionTests('Calculator Test Executions', 'TODO', 'admin') |
If you want to include the Test status, then you just need to add the TestRunStatus column in the gadget's configuration.
Tests distribution by status (percentage and absolute values).
Gadget: Pie Chart
Statistic Type: "TestRunStatus"
Tests distribution by status (percentage and absolute values).
Gadget: Pie Chart
Statistic Type: "Test Type"
Display percentage and absolute number of tests per component.
Gadget: Pie Chart
Statistic Type: Component
Sample JQL: Test distribution based on the component assigned to the Test itself.
project = 'CALC' and issuetype = 'Test' |
Number of Tests per Test status, based on latest run and grouped by assignee.
Gadget: Two-Dimensional Filter Statistics
Number of Tests per Test status, based on the latest run and grouped by component
Gadget: Two-Dimensional Filter Statistics