- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
Hi,
In Servicenow ATF there are 4 Catalog tasks are generating in RITM but 4th task is generated after 4 hours.
Once the 4th task is closed then RITM is also going to close
Do we have any ATF test step to perform this type of validation where i want to close that 4th task ?
Please help me out if it is available.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi @kranthi2
You need to disable the wait condition for 4th task. Ask your development team, they can easily disable for testing purpose.
Other than this, it is not possible through ATF.
Regards
ShaQeel
***********************************************************************************************************************
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
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
you can't make ATF wait for 4 hours.
Sorry this is not possible.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunday
Hi @kranthi2 ,
ATF doesn’t offer an out-of-the-box step to, Wait for a specified period, or Wait for a record (like a delayed catalog task) to appear...
However, If you want some custom solution...
Use gs.sleep() in a Server-Side Script Step
You can insert a Run Server Side Script step in your ATF test:
(function(outputs, steps, stepResult, assert) {
// Wait for 4 hours = 4 * 3600 * 1000 milliseconds
gs.sleep(4 * 60 * 60 * 1000);
})(outputs, steps, stepResult, assert);
This pauses test execution so the delayed task has time to generate.
>> Then you can add steps to..
Record Query for the new task (e.g., state=Open, parent RITM matching).
____________________________________________________________________________________________________
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi @kranthi2
You need to disable the wait condition for 4th task. Ask your development team, they can easily disable for testing purpose.
Other than this, it is not possible through ATF.
Regards
ShaQeel
***********************************************************************************************************************
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
Shaqeel