
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2018 12:53 PM
Is there any way to write a script using server side step in ATF to make step case to wait for 10 seconds?
Solved! Go to Solution.
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2020 02:01 AM
Hi Jace,
Perhaps you'd like to consider using gs.sleep() instead of do nothing loop.
Performance 🙂
Have a good day!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2019 06:16 AM
I ended up setting the input variable u_seconds to Integer, but my mistake was that I forgot to go back to the test step itself where I now had a new Seconds field. Then the step waited for the number of seconds I specified in that particular test step (so not in the Step Configuration).
The next challenge is why my test does not proceed from there...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2019 11:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2019 12:39 AM
Thank you, this has been super useful so far, but I am afraid I still cannot make it work properly since the Client Test Runner seems to be "waiting" indefinitely after this step was run. For example, if I use this step with a 5-second wait ahead of a Set Field Values step, it will first wait for 5 seconds and the results will also say "Waited 5 seconds.", but then it will not set any field values because the screen simply becomes blank while seemingly indefinitely waiting for the Set Field Values step to even start... until I get bored and cancel out of the rest of the test. I assume the script works for you just fine, but I have also tried adding "return;", "return true;"... after your line 82 (stepResult.setSuccess();), so far without any success. Do you have any idea why it is not proceeding? I have no Output defined in the Step Configuration, if that means anything.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2020 02:01 AM
Hi Jace,
Perhaps you'd like to consider using gs.sleep() instead of do nothing loop.
Performance 🙂
Have a good day!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2020 10:04 AM
Not allowed in scope.