ATF - Issue with calling reusable test twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-08-2025 02:27 AM
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:
- creating a 3 digit random string
- write the random string into an output variable.
The test consist of 4 steps:
- Execute the reusable test
- Log the value that the reusable step 1 produced
- Execute the reusable test again
- Log both values that the reusable step 1 and 3 produced
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-08-2025 03:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-29-2025 11:20 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-08-2025 04:04 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-11-2025 01:02 AM
I created a support case and will keep you updated