Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Xray: how to reuse tests in a test plan/test execution without cloning them


I am evaluating Xray (I first tried on Jira Cloud and I will now try on Jira Server). 

I have tests linked to user stories (themselves linked to requirements). I would like to be able to reuse my tests several times in a same test plan/test execution. I didn't find a way to reuse them without cloning them as Xray doesn't allow to add 2 times the same test in a test plan/test execution. The test set doesn't help me on this as I can't add 2 times the same test set in a test plan/test execution. Cloning the tests is not a solution because of maintenance problems (if a test step changes, I have to update all the clones of this test).

I would like to know if I am the only one to have this need. In QMetry they allow to add several times the same test case in a test scenario. So I guess I'm not the only one to use this. Does anyone have a workaround for this in Xray?

Thank you in advance for your answer.


3 answers

Hi all,

This is an old subject but it still can be usefull.

I you want to reuse a test in several scenarios, you can use the "call test" functionnality.

You can find information about it:

Have a good day!



Anyone has figured out a solution?

It's so weird that a test case could be used for only single times.

If a new feature(story) should be tested by existing test case, previous test result will affect the new feature's "requirement status"

This is totally unacceptable!

Asking exactly the same question... I don't think you can create composition/aggregation of tests to create/compose your functionnal test. So the only way I see is to create only high level tests and copy/paste all common steps ? Cloning tests would help but it's not ideal....

Hi Yann. Thank you for your answer and your advise!

Your solution is for sure interesting but in my case it's more complicated.

I could have high level tests but I work in health domain and I need to prove that the application is deeply tested. I'm not fan of copy/paste steps because of maintenance reason (if one step changes you have to change it several times not knowing exactly all the places where it appears).

My tests are detailed enough to permit a new tester to execute the tests without knowledge of the application. I have automated tests that correspond to those manual tests and they execute all those steps with as much verifications as in the manual tests. The details also allow other persons of the company to know exactly what is tested without reading the code of the related automated tests. 

I have contacted the support of Xray (Xpand-IT). They are really responsive and they seem interested in this feature. Hopefully they could maybe decide to improve Xray with a solution for that (being able to reuse tests in test set/test plan/test execution).

Thanks again for your help and interest.


Hi Yann and Marjorie, 

Do you have a news for this feature?

I would like reuse  test execution  without cloning them...



Hi Dalyl,


Unfortunately I didn't get any good solution for that. I do clone the test when I have to execute it several time in a same test plan/test execution. If someone finds a real solution I'm still interested. Thanks for your interest.


Hi Marjorie,


for exactly which purpose you would reuse test cases. If one of below steps;

-in different environment

-in varios release

-long story short in different jira fields whatever you desired to test

I could advise you, changing proper field in Test Execution and/or Test Plan could be worked, without switching default fields value of test.


I hope, It would work or give you at least an idea.





Let me detail my case:

a- 5 Test Scenarios to execute: S1, S2, S3, S4 and S5

b- 3 Customers: C1, C2, C3

c- I should execute the 5 test scenarios for the 3 customers every month

So I create:

d- 1 Test Plan per month: Test Plan - April

e- 1 Test Set with the 5 Scenarios: Test Set - NRT Scenarios

f- 1 Test Execution per customers with the 5 Scenarios:

    f1 - TE1 - Customer 1 (S1, S2, S3, S4 and S5)

    f2 - TE2 - Customer 2 (S1, S2, S3, S4 and S5 )

    f3 - TE3 - Customer 3 (S1, S2, S3, S4 and S5 )

g- I have  included TE1, TE2 and TE3 in Test Plan - April

For the next months, should I create again  3 test executions or is there a way to clone or duplicate test execution ?

Thanks for your help

Hello Marjorie,

is it really required to run the test cases within the same test execution? You can clone the test execution, which will reset the execution status of the test cases in the cloned test execution and preserve the link of the tests to the test plan and the user stories.



Hi I am also struggling  with the same issue. I have many E2E tests which will have sequence of test A, B, C, A, D, A, E (some are same test I need call to fulfill E2E testing); not able to add. If clone the same test that worst solution. Please assist.

I tried creation of test executions and test set but in both got same issue.

If I clone the same test, customer will laugh at me for suggesting this kind of too.

I am clear, I am not going to suggest anyone to use JIra Xrey as test management solutions. I never saw such worst and immature test solution.    

Any suggestion to reuse the same tests in a test set or test execution other than cloning, it's not the right solution.

I see XRay is worst test management solution in many aspects. I will not recommend to any customer to use.

Like zhilin yang likes this

@Ahmet Kilic _catworkx , Michael Reimann, Sorry I only see your answers now.

The purpose of reusing a test in a test execution is because of the following.

We have a lot of test automation and those tests have them results imported automatically in Jira. In test automation, we write functions to do actions in an application. For example, if in the application you have to do several actions to get into a screen, we have a function to do it. This function is called in a lot of tests and sometimes several times in the same test. And a test is made of a lot of different functions calls.

The purpose would be to have the same functionality in Jira/Xray. If you can make a test scenario (not existing in Xray but well in QMetry), you could add in your test scenario the call of the different tests (equivalent of the functions in the test automation).And you could call a test (function) several times in the same test scenario. 

So if in test automation we have :

  • test 1:
    • function 1
    • function 2
    • function 1
    • function 3
  • test 2:
    • function 1
    • function 3
    • function 4

In Jira/Xray we could have something like:

  • test scenario 1:
    • test 1
    • test 2
    • test 1
    • test 3
  • test scenario 2:
    • test 1
    • test 3
    • test 4

And in one test execution we could execute test scenario 1 and test scenario 2. If one test (function) of a test scenario is in failed, the test scenario is in failed.

I don't think this is feasible right now with Xray.

If someone has suggestion, I would be grateful. I'm not going to answer with this user anymore because I'm leaving the company I'm working for in a few days. But I will continue to have a look at this question/answer since I will be interested for my next job too.

Thank you in advance.


Hello Marjorie,

Have you found a solution yet ? Here is my scenario similar to yours ?

Is it possible to execute the same test case with a different Test Environment X number of times and save the execution info independently.
For example:
I have TC-1, in the first execution I select Test Env as:  OS: Windows, Version:10
Next Execution of the same TC-1 I change the Test Env to: OS: Unix V: Debian

In the reports I want to see the executions of TC-1 with the different environments, meaning test execution report shows TC1 executed twice.
Is that possible?

Rogério Paiva - Xray Xporter
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.
Mar 26, 2021

Hi @endalkassa 

It is possible to execute the same Test inside the same Test Plan using another Test Execution with a different Test Environment.

If you need further help, please contact the Xray Support ( so that we can request additional information and investigate further.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events