Test Case Traceability with Zephyr

Every story or requirement should have a matching test case to demonstrate test coverage.  Zephyr will allow you to create and view coverage using a traceability report. In this post, we will discuss how to create a traceability report with Zephyr.

Zephyr Traceability Report

Step 1: View Stories in Current Sprint

In this sample sprint, we have 3 stories that all need test cases. So what we will need to do is create three test cases for each story. Note I have already created my test cases but you may want to review how to create test cases in Zephyr.

First find all the stories that need testing
First find all the stories that need testing

Step 2: Search for Tests

Next, find the test case that you want to link to the appropriate story. In this example, I am going to link Book a Car test case to Book a Car story. View Test Cases Created and note the Test Case IDs

Searching for test Cases to Link to Stories

Step 3: Open Test Case

After we open Book a Car test case, click on the top right corner and click on edit.
Note you need to edit a test case to link it to a story
Editing a test case

Step 4: Link Test Case to the Story

Next, we will open the test case and link it to a story. Here we are going to link, “Book a Car” test to “Book a Car” story.

Linking A Test Case to a Story
Linking A Test Case to a Story

Once you have linked your first test case to a story try to link the rest of your test cases to the remaining stories in the current sprint.

Step 5: View Traceability Report

To view the report click on Tests and select Traceability.

Click Traceability
Click Traceability

Step 6: Enter Report Parameters

Now we will search for all the test cases in Version 2 which is the current sprint. Note I needed to make sure all the stories are linked to Version 2.0.

Search Issues
Search Issues

Step 7: Generate Report

Select the stories and click on the Generate button to create the report.

Generate Report
Generate Report

Step 8: View Results

Zephyr Traceability Report
Zephyr Traceability Report

Finally, note that you can also link test cases to defects which will be generated in the traceability report.