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?
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.
See detailed information in xray docu:
https://docs.getxray.app/display/XRAYCLOUD/Modular+Tests
Hope this meets your requirement.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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:
- 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'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.