XRAY using dataset in a called test from the original test

Michał Myk
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!
December 7, 2022

Hello,

I am trying to make my manual tests more modular. I have set up one test with a dataset and one parameter and 4 iterations for that parameter. One of the steps for this test is a called test for which I want to transfer the used iterations that are defined for the original test. Defining the dataset for the called test as I use the dataset with the original test does not work. And with the executions, the parameter name is not replaced. What is the proper way to use the dataset from the original test case in the called test case?

Screenshots: 1. Test execution, 2. Called test case, 3. Original test case, 4. Dataset for the original test case, 5. Dataset for the called test case. TCEx.png

CTC_dataset.pngOTC.pngOTC_dataset.pngOTC_dataset_for_CTC.png

2 answers

0 votes
Hugo Martins
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!
June 18, 2024

If I understood correctly, if you want to use the dataset on a test that calls one that contains the parameters you can't have the variable set on the call test. Just use the call test and then create your Dataset on the test that you want with the 4 iterations.

The variable on the call test will override any other variables that you set. 

It works for me. Hope this makes sense. 

Hugo Martins
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!
June 18, 2024

Yet another way would be to override the execution and add the variables that you need. But it will depend on the use case of course

0 votes
Marcus Rose February 27, 2024

Hi @Michał Myk

were you able to solve this issue?

We're currently having the exact same issue. It would be nice if you could give us a hint, as it is currently creating a lot of headaches in our company.

 

thanks in advance :)

 

aurora7795
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!
May 7, 2024

I’m also having this problem - anyone had any luck?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events