This widget could not be displayed.
This widget could not be displayed.

ATF - Issue with calling reusable test twice

BeateN
Giga Guru

Hello,

I am so grateful for the new feature of reusable tests šŸ˜

Unfortunately I am running into an issue while invoking a reusable test twice within a test.

I created a very simple example that illustratest my issue:
The reusable test constist of to steps:

  1. creating a 3 digit random string
  2. write the random string into an output variable. 

BeateN_0-1751965456145.png

 

The test consist of 4 steps:

  1. Execute the reusable test
  2. Log the value that the reusable step 1 produced
  3. Execute the reusable test again
  4. Log both values that the reusable step 1 and 3 produced

BeateN_1-1751965622703.png


So, while running the test I expect an output like this:

  • Random String 1: xyz
  • Log:
    • Step 1: xyz
  • Random String 2: abc
  • Log
    • Step 1: xyz
    • Step 2: abc

Instead I get only the value for the second call of the reusable test.

BeateN_2-1751966752959.png


Am I doing something wrong? Can I somehow influence the Execution Order to get the results I'm expecting?
I appreciate your thoughts and insights about this. Thanks!

Beate

 

4 REPLIES 4

Janet729Shi
Kilo Contributor

Hello!

I am having the same issue as yours. 

Hi Janet, 
I got an answer from support. 

It's a known issue (PRB1832439) that they intend to fix in Zurich. 

 

They proposed the following workaround until the fix is available:

 

  • As a workaround, we recommend avoiding the reuse of the same reusable test multiple times in a single test.
  • If this is necessary for your use case, you can create a duplicate of the reusable test and use both the original and the duplicate—this will work as they are technically treated as different tests, even if their steps are identical.

Hope this helps.

best regards,

Beate

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @BeateN 

 

Log a now support case.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

BeateN
Giga Guru

I created a support case and will keep you updated