In ATF can I pause the test step for 5 minutes then run the next available test steps

kranthi2
Tera Expert

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, 

4 REPLIES 4

Hi @Dr Atul - LNG 

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

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. 

amaradiswamy
Mega Sage

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();
}