How to Execute Tests Using Zephyr

After you finish writing your test cases you will want to execute them. Since you will reuse your test cases you will need to put your test cases into a cycle.  In Zephyr, test cases belong to a particular version.  This version can have one or many cycles.  In this post, we will describe how to execute a test using Zephyr by first creating a cycle then executing it.

How to Execute Tests with Zephyr

Plan a Test Cycle

Go to the main menu in Zephyr and select Tests > Plan a Test Cycle.

Plan Test Cycle
Plan Test Cycle

Create New Cycle

Next, we click on the “create new cycle”. Here we will call it New Features.  Note how I selected version 1.0.

Click on create new cycle
Click on create new cycle

New Cycle Details

Note, how I created a cycle called New Features.  I also will be testing these test cases in Version 1.0.

Enter Cycle Details
Enter Cycle Details

Add Tests to a Cycle

Now we need to add tests to the New Features cycle.  Click on the arrow beside the wheel and click on the arrow.
Add Tests
Add Tests

Select Tests

Here you can select one or many tests. When finished simply press the add button.

Add Tests
Add Tests

Click Execute

The execute button will take you to the test steps. Here you can select the following statuses: Unexecuted, Pass, Fail, WIP (Work in Progress), and Blocked.

Execute Test
Execute Test

Execute Details

This is where you execute test steps individually.

Test Execution
Test Execution

Update the overall status

Zephyr will display a popup to show the overall status

Overall Status
Overall Status

Click on Return to Test Cycle

Return to Test Cycle
Return to Test Cycle

View Overall Status of Cycle

Return To Test Cycle
Return To Test Cycle

Regression

Over time you will build more and more test cases and you will want to put them in a Regression cycle. Zephyr allows you to clone previous test cycles so you don’t have to copy test cases every time. Suppose we have tested all the stories in version 1.0 and now Version 2.0 of the application has been released. The first thing we will do is take the New Features from version 1.0 and copy them to Regression cycle in Version 2.0.

Clone Cycle from previous version
Clone Cycle from the previous version
Clone Regression Cycle
Clone Regression Cycle
Regression
Regression

Finally, you will create a new cycle in Version 2.0 called new features. Here you will put the current test cases to cover the current sprint.

New Features & Regression
New Features & Regression

Note in Version 3 you will need to merge the New Features from Version 2 cycle into the Regression Suite. Now you know how to execute test cases in Zephyr. Happy testing 🙂