Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Xray test cases mass import - how we can do it?

Damian Sochacki
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 24, 2024

Hi,

I need to export my whole Xray test cases repository from one project into the next one (across one JIRA cloud instance).

Based on my investigation it's not possible to directly export one repository and import it to another one but more likely exporting specific set of test cases and push it (import) to another project. How can it be done in most effective way?

Already tried two add-ons:
- Xporter - I'm able to export specific JIRA artefact (eg. "Test" type) but it seems that test steps are not being exported to the Excel file. Also I'm unable to use Xporter while being on: "Issues" section with filtered JIRA task.
- Better Excel Exporter - the same story as with Xporter. Export only per JIRA task, missing Xray templates (only Zephyr onces) and none test steps exporter as well.

While being on Issues view and opening the: "Export issues" option I'm receiving such list:
 2024-07-24_12h01_16.png
List is not being updated neither with Better Excel Export not Xporter options.

Have someone already tried doing that one and have any hints & ideas how can it be done?

3 answers

Suggest an answer

Log in or Sign up to answer
1 vote
Manuel
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.
October 19, 2024

Xray doesn't provide a specific feature for that. However, that can be achieved in two steps:

  1. export to CSV using document generator feature along with a specific template for it; reach out Xray support team and they should be able to help you out getting a tailored template; if you have the Xporter app, it's similar to document generator so you can use a similar approach
  2. import the CSV with all those test cases using the test case importer feature of Xray cloud

 

A more complex solution would be to use GraphQL API to extract and import.

Note: this solution won't migrate the attachments in case you have them on your test steps

 

0 votes
Stefan Salzl
Community Champion
July 28, 2024

Hi @Damian Sochacki 

as far as i got the docu wright this should be possible wirh document generator (which should be part of xray natively) and with xray specific test import.

Tests from a filter/jql can be exported to csv via document generator:

https://docs.getxray.app/display/XRAYCLOUD/Exporting+Tests+using+Document+Generator

 

the csv file might be worked on maybe (or a seperate document generator template could maybe be written to consist of fields/information necessary for the import). see details in the link:

https://docs.getxray.app/display/XRAYCLOUD/Importing+Tests+using+Test+Case+Importer

 

Best
Stefan

Stefan Salzl
Community Champion
August 30, 2024

Hi @Damian Sochacki 

Please let the community know if your question was answered.

Please consider to hit the accept button next to the answer that could solve your problem.

Best
Stefan

Stefan Salzl
Community Champion
January 20, 2025

Hi @Damian Sochacki 

Did any of the answers solve your problem?

If so please consider to hit the "Accept Answer" button in order to mark this post as solved.

Thanks in advance.

 

Best
Stefan

0 votes
theCode4_company
Atlassian Partner
July 24, 2024

Hi @Damian Sochacki ,

Unfortunately, we don't know if direct export to another Xray project is possible. However, if you've already tried a few marketplace plugins for export, you can also try using our Xray extension for Exporter for Jira (with the Free version preinstalled). We have Test Cases, Test Steps, and many other specific Xray fields available for export into CSV or JSON.
xray_fields.png
However, we have not tested importing these fields into another Xray project and cannot confirm if some connections might be lost during the import.

If you decide to try this method and succeed, we would be happy to collaborate on creating a mutual use case out of this issue.

If you have any questions about using our plugin, we will be happy to assist.

Best regards,
theCode4 Team

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events