Forums

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

Xray - Outsource test steps and maintain them as separate test cases

Kenny Körner
Contributor
March 16, 2022

Hi,

As a test case creator, I have the same pre- or post-processing work for various test cases. In order not to have to adapt these individually in all test cases when changes are made, it would be desirable to outsource such test steps and maintain them as separate test cases.

Is this even possible?

2 answers

1 accepted

1 vote
Answer accepted
Stefan Salzl
Community Champion
March 16, 2022

Hi @Kenny Körner ,

This is possible. You can write short reusable test cases (eg. login) and reuse them in other test cases by clicking "Call test" in the "main" test case.

image.pngimage.png

 

See detailed information in xray docu:
https://docs.getxray.app/display/XRAYCLOUD/Modular+Tests

 

Hope this meets your requirement.

Best
Stefan

Kenny Körner
Contributor
March 18, 2022

Hi @Stefan Salzl,

thanks.

Best 
Kenny 

Like Stefan Salzl likes this
0 votes
Jyothi Krishnan
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!
September 22, 2022

When you use the "Call Test", it just shows that there is x # of steps in the calling test ticket.  Is there a way to see all the x # of steps within the calling test?

Anthi Katerina June 11, 2023

How to clone specific test steps from existing tests in Jira Xray:

 

- You navigate to Issues and Find your (new) test.

- At the steps section, next to 'Add step' you click on the dots and

select Import -> 'From test' (screenshot) .

- Then your existing tests will appear to select one.

- After selecting your test, you will be able to select which steps you would like to 'clone' to your (new) test.

- After that, you will be able to select also which fields will be cloned and mapped from (Action - Data - Expected Result) for each step.

:)

 

import.step.from.existing.test.Xray1.png

Like Stefan Salzl likes this
Jakub Slouk February 6, 2024

@Anthi Katerina  Importing the steps only duplicates work. We should be able to see what are the contents of the test that is being called without opening it in another tab or other workarounds. Competition was able to do this years ago... overall I find user interface of Xray extremely user unfriendly or in some cases straight up working against user.

Anthi Katerina February 14, 2024

@Jakub Slouk Thank you for your answer, kindly find my comments below.

- Regarding the point that you cannot see the content of the test that is being called, you refer to 'Call test'. My comment/procedure is regarding functionality 'Import From test' where you can see all the content of the test and select what you need to clone, before calling it, likewise:

visible.steps.PNG

- Regarding duplication of work.

It depends on what scale you use Xray. It is not considered duplication in System Testing, when there are multiple users and different test purposes. It is very common to test more than one time the same 'Test'. Either as one functionality or as a part of a more complicated User Story.

For example, on a website, you will need a test called 'Add to cart' which has plenty of steps (mini cart update, removal/add of products etc), it is not just clicking the button.

Additionally you will need two more tests called e.g. 'Web order Home Delivery' and 'Web order Click n Collect'. These two Tests include only part 'Add to cart' test, only the part where you click the button.

Sometimes you only need to test 'Add to cart' and all its functionalities, since you modified something there.

But, when you need to test your web order as a functionality, you will run 'Web order Click n Collect'.

 

Jakub Slouk February 22, 2024

I think you misunderstood me. When I use call test, it will add whole test as a step but then you can only see test ID and its summary, the steps of the test itself are not visible.

The test case is e.g. edit something that should already exist. So I call test case "create data" but all I can see in XRAY is a reference but not the steps needed. For steps I would have to go to another page/tab

When I used Zephyr in previous job, when you called test you could clearly see all steps required and you had option to either minimize to only test header if you didn't need to see them.

Anthi Katerina February 22, 2024

@Jakub Slouk Why don't you use the functionality "Import from test" that I have added in my post-reply above on Jun 11, 2023? I believe it has most of the features you have mentioned.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events