In ATF can I pause the test step for 5 minutes then run the next available test steps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 01:42 AM
Hi,
In ATF can I pause the test step for 5 minutes then run the next available test steps.
I have created a ATF and it has 10 test steps at the step no.6 i want to pause about 5 minutes then run the test again from the step no. 7 any possibility in ATF how we can configure the same.
If it is possible please help me out with the test steps.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 01:51 AM
Hi @kranthi2
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
05-23-2024 02:00 AM
Thanks for your response, my requirement is :
I have created total 6 test steps in the ATF under that at the step no. 3 i want to wait for 5 minutes then again it will start from the step no. 4 is there any possible in the ATF.
I have gone through the article but i don't find anything related to my requirement.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 02:32 AM
Hi @kranthi2
I did not find any option or field in ATF test case , which can help here. Sorry, no OOTB way to do this.
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
05-23-2024 04:22 AM
You may try with below code using "Server side --> Run Server Side Script" test step.
var waitSeconds = 300; // wait for 5 minutes
for(var i = 0; i < waitSeconds; i++) {
sn_atf.AutomatedTestingFramework.waitOneSecond();
}