Brief summary of this article:
Sometimes it is required to get regression tests coverage report, acceptance criteria report or requirements traceability matrix report for your user stories and other backlog items. Targetprocess allows you to do that.
It is possible to build and export the following reports:
- Test Cases count per User Story
- Test Cases list per User Story
Test Cases connection to User Stories
Test Cases are linked to a User Story within intermediate test plan. A 'user story test plan' contains hierarchical list of test cases and child test plans. All the content is displayed in Tests tab of User Story details view.
Test Cases count per User Story
The counters, metrics, and reports calculate and display total number of test cases for a user story. Full total count includes the test cases directly related to a linked test plan of the user story and the ones in child test plans with unlimited depth.
More information: Test Cases Count Metrics.
Test Cases list per User Story
It is possible to create and export such report with the help of Targetprocess Custom Reports.
We’ll extract the tests coverage structure only. The report will contain a list of Test Cases and Test Plans for each of your stories. It won’t contain Test Steps and Success actions for Test Cases in the meantime. See how to Export Test Steps in dedicated article.
The report works with test cases assigned to user story's test plans directly. Nested test plans are not supported.
Click Reports -> Tabular Reports to open list of available reports.
We recommend to build two reports actually. First of them - the list of Test Cases - will serve as an inner list. The second one - the list of Test Plans - will become the outer container.
Report #1. Test Cases list
Press Reports -> Tabular Reports -> Create new tabular report.
Entity tab
Choose a process: All Processes
Choose the top level entity for the report: Test Case
Columns tab - Main Entity (Test Case)
Mark checkboxes for ID, Name, Description and any other ones in which you’re interested in.
On Columns tab there are several collapsed panes. Feel free to expand them one by one and mark required checkboxes as well.
Settings tab
Give a unique name to your report
In the bottom of this wizard page, press Save & Run Report button.
Now let’s create an outer report for this one. We'll embed Report #1 (Test Cases list) as Inner List to Report #2 (Test Plans list).
Report #2. Test Plans list
This report will contain list of Test Plans. It shows reference to linked User Story as a column. We’ll embed Test Cases list inside as an Inner list as well. And we can embed here another inner list with Parent Test Plans for each test plan.
Press Reports -> Tabular Reports -> Create new tabular report.
Entity tab
Choose a process: All Processes
Choose the top level entity for the report: Test Plan
Columns tab - Main Entity (Test Plan)
Mark checkboxes for ID, Name, Description and any other ones in which you’re interested in.
Columns tab - scroll down, find Linked User Story panel in the bottom and expand it.
Mark checkboxes for ID, Name and any other ones in which you’re interested in.
There are many other collapsed panes. Feel free to expand them one by one and mark required checkboxes as well.
We'll add filtering by 'User Story' test plans. And also, if needed, we'll filter test plans related to user stories in particular project only.
Learn more details about Filters in Tabular Reports in our guide if needed.
Filters tab - press Add Criteria button to add filters.
Filter | Result |
Linked User Story : ID / not empty | Test Plans linked to User Stories |
Linked User Story : ProjectId / equal to / 1234 | Test Plans linked to User Stories in projects with specified numeric ID. |
We’ll add the Report #1 with Test Cases as an Inner list. It should be created in advance. Its creation is described in this article above.
Learn more details about Inner Lists in Tabular Reports in our guide if needed.
Inner lists tab - press Add Inner List
Select Collection -> Test Cases
Select Report -> Test Cases Report
Inner list for Parent Test Plans can be added exactly same way. You have to create such list report in advance. It should be based on "Test Plan" entity.
Settings tab
Give a unique name to your report
In the bottom of this wizard page, press Save & Run Report button.
You’ll get a report in the form of grid. It is possible to Print it, Export to Excel or save it and re-open later. Applied Filters and Settings are saved and can be modified further as well.
Each row here represents a Test Plan. There is a ‘green plus’ icon in the left side of a row. Click it to expand it and to see an inner list of Test Cases in this Test Plan.
A Test plan can have only single Linked User Story. Test Plans report can be sorted ascending and descending by its linked story.
You’re welcome to print this report or export it into a CSV file.
Export direct legacy links between Test Cases and User Stories
Some legacy User Stories may be related to the Test Case directly, without any Test Plan in between. It was possible to link stories to test cases directly in older versions of Targetprocess (before 3.6.0). You may be still interested to export them.
More information: Tests Coverage for User Stories Reports (Legacy).
See also
Still have a question?
We're here to help! Just contact our friendly support team.