tests migration from Xray to Zephyr

Imran Ali February 28, 2018

Our company recently switched from Xray to Zephyr. I am looking to see if I can programatically migrate the test cases from Xray to Zephyr.

I have exported tests from Xray into JSON format using the Xray REST API.  My question is if ZAPI(Zephyrs REST API) would allow me to import these tests as is? Since ZAPI is an additional cost I like to know if this can indeed be achieved first before making any purchase.

Thanks for your help

3 answers

1 accepted

2 votes
Answer accepted
Arun_Thundyill_Saseendran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2018

That's cool @Imran Ali

If you're are going to buy ZAPI, then yes, the migration could be done using ReST.

The steps would be as follows for each issue.

  1. Do a ReST call to pull the Test Case from X-Ray
  2. Do a ReST call to create a zephyr Test Case issue (IssueType = Test). The catch here is that you cannot import test steps. You can refer the tutorial here to create a JIRA issue using the JIRA ReST API
  3. Now, you can make use of the ZAPI API to add Test Steps to the create Test Issue. The API documentation for the create test step can be found here.
  4. Steps 1,2 and 3 should be repeated for each Test Case you have in X-Ray

Once you have all the test cases imported, you can now make use of the other ZAPI resources to create Test Cycles, folders etc. The complete documentation of ZAPI ReST calls can be found here.

I believe this helps. Let me know if you have any queries and I will try my best to answer it. If you think these are feasible, please mark the answer as accepted so that it will be easy for others to refer.

5 votes
Sarah Salim January 30, 2019

Hi @Imran Ali

I am currently looking into JIRA add-on for test management. I am inclined towards XRay over Zephyr because of the cost differences. I wanted to ask  how was your experience with Xray and why did your organisation moved from Xray to Zephyr?

Thanks,  

Sarah 

Ashwini Subhash Jadhav July 3, 2019

I have the same question .. Do you got answer?  Thanks.

0 votes
Mahesh S
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2018

You can also try export the issues in CSV and try to export using a desktop tool provided by Zephyr to import the issues in CSV.

Imran Ali March 1, 2018

Thanks for the reply. I am not sure how I can export the issues from Xray into CSV format programmatically. I am using the REST API calls on Xray which returns a response in JSON format. 

Mahesh S
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2018

@Arun_Thundyill_Saseendran hey.. can you help him out?

Arun_Thundyill_Saseendran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2018

Thanks @Mahesh S

@Imran Ali Yes. There is no direct way to convert JSON to CSV. However, it is quite simple to extract the fields that are required into a CSV format file. And then on, importing it to Zephyr can be done using the Zephyr Import Utility.

You can get started with the Zephyr Import Utility here.

The Utility can be downloaded from here.

In this way, if you do not plan to use ZAPI for integrating with your Automation framework, you need not purchase just for the sake of migration.

Let me know if you face any issues. I can try helping you.

Imran Ali March 1, 2018

Thanks Arun. I am familiar with this utility already. There is a chance the team would adopt ZAPI already for CI so I like to know if what I am trying to do can be done with ZAPI without using this utility. If so I can postponed the migration till we get ZAPI

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events