Forums

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

Xray - Reusing tests

LAL
Contributor
July 25, 2023

Whats the best way to reuse tests made with Xray?

I need to be able to quickly copy standard test sets and plans from project to project.

There is no global test repository and exporting/importing CSVs is a lot of work and test versioning is very difficult.

Is there a way to easily reuse tests between projects or am I stuck manually exporting/importing/copying tests one by one?

1 answer

0 votes
Marc - Devoteam
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.
July 25, 2023

Hi @LAL 

How come there is no repo, as you have made tests, test sets and test plans, they are in the test repo from Xray by default.

I would urge you to go over the Xray documentation

Why don't you create different test executions for the same test?

You can assign a test execution to different users or via a Test Plan and  execute the same Test inside the Test Plan using another Test Execution with a different Test Environment.

Or Clone the test execution

When cloning a Test Execution issue, all the Test issue associations will also be cloned.

However, a new Test Run is created for each Test so that the new Test Execution issue has no execution state.

Test Environment associations will be cloned as well.

LAL
Contributor
July 25, 2023

Please re-read my question before linking documentation.

My question is not about simple cloning, its cloning from project to project.

Documentation (https://docs.getxray.app/pages/viewpage.action?pageId=66061108) only refers to CSV/JSON exporting/importing which I already mentioned.

Marc - Devoteam
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.
July 25, 2023

@LAL 

"Is there a way to easily reuse tests between projects or am I stuck manually exporting/importing/copying tests one by one?"

In your case only export and import will do the trick, as there is no such function in Xray.

After the export, edit it and search and replace the project key, this is the simplest I can do for you

Or contact the vendor with the question, the might give more insight on how or they might see this as an opportunity

By the way, not such a nice reply by the way "Please re-read my question before linking documentation." 

People can misread something.

Regards,

Like Nic Brough -Adaptavist- likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events