How can I copy Xray Tests to a new Project, retaining all the Test Steps?

Peter Saunders
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 26, 2019

I have 600+ tests defined in an old Xray/Jira project. I want to re-use these in a new project.

If I CLONE the tests, I do not get the Test Steps copied across.

If I MOVE the tests, I lose them from the old project and therefore lose the integrity of the Test Runs and Results.

There are too many to copy them all across individually with the current process which seems to be:

1. Clone all Xray Tests required in the new project

2. Add the Test Steps into the Clones, imported from each original Xray Test

3. Move the new Xray Tests to new project

 

1 answer

1 vote
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 4, 2021

Hi Peter,

I would export all the tests into csv with all the relevant fields that you need (especially the test steps fields). Do not move them, because you will lose the old projects information.  

Then import the test cases via the bulk import functionality. You will have to review how to input the test step details fields. 

Regards,

Fabian

Chris Kemp May 30, 2022

Wouldn't exporting to CSV lose all text formatting?

>>>sorry, I should have tried first!  It is good to see that the export includes formatting, and so the import is successful. 

NB I am searching for a way to copy test steps which I want to 'import' into multiple tests, retaining formatting.

>>>I have found that I can do this using an export to csv and the multi-step process of importing (in ALM, I could simply copy and paste straight from clipboard, so this is very cumbersome)

Gary Spross
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.
May 9, 2024

Did you create a template to export to (via the Document Generator)? If so, how did you create the template (or would you mind sharing it)?

Chris Kemp May 20, 2024

Unfortunately, this forum has a very poor structure, bearing in mind that the Cloud and Server have such fundamental differences, that they could be considered entirely different products. The organisation I currently work for (unfortunately) uses Cloud, which appears to have limited exporting. It is also noted that, as a large organisation, users do not have Jira Administration permissions.

TBH I don't remember how I exported to CSV, but I am fairly sure I was initially playing with Export from within a single Test (Test details), just to see what was exported and how it was imported.
My recollection is that I simply gave up trying to export multiple tests. As ever, I kept googling and reading articles without realising they referred to the Server product. These direct you to look at tests in Issue view, and adding the Manual Test Steps column, which is not available in Cloud. Also, the JQL is pretty useless when trying to select tests, as it has absolutely no way of identifying location (folders) within an xRay repository (I think the only JQL Property is testType = Manual).

Looking at Xray Cloud documentation, I can only see Exporting Test under Document Generator, which I have not used. However, whilst googling again ... does the following help?

Templates for migrating Tests from Cloud to Server/Server to Cloud

Gary Spross
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.
May 20, 2024

I came across these templates, but they require modification to be able to actually export the necessary data to keep the folder structure. I've been trying to update the template to include this data, but no luck so far. I reached out to Xray support, but was told I needed to open a ticket with a different department. I haven't had time to do that yet, so I've made no progress on this effort...

Like Roksana Lomanska likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events