Is it possible to put timer in ATF

Community Alums
Not applicable

Hi Team

I am running an ATF test on Service portal where I enter user's unique number and click a button, lets assumer "Data gather", this does a rest call to a third party and retrieves data about the user. The issue is that this is an async call and the information takes few seconds to be displayed on the screen. The ATF however does not wait and gives me the results. I tried putting a gs.sleep in sever script in ATF but it does not seem to work.

The portal is highly customized and I am using Custom UI steps in ATF to get it done. Is there any way to put a timer or some sort of wait time in ATF so that it waits till the data gather completes and then proceed.

Another question, is it possible to click on "New" button in related links of a form in ATF.

Any leads will be appreciated.

Thanks

2 REPLIES 2

Rajanmehta
Mega Guru

Hello Vishnu,

You may add Scripting step in between and put sleep function for your desired wait time. 

 gs.sleep(5000);// 5 seconds

 If this doesn't work you may also try adding Timeout seconds for that step.

 

find_real_file.png

Hope this helps.

Regards.

Rajan Mehta

 

 

Ankush Agrawal
ServiceNow Employee
ServiceNow Employee

Hi Vishnu

The feature to work on related list on a form is coming in Orlando. Orlando RTP/EA starts in January.

--
Best Regards
Ankush

P.S. Please mark helpful/correct as appropriate to help the fellow community member in identifying the relevant answers.