I used following option
* def sleep =
"""
function(seconds){
for(i = 0; i <= seconds; i++)
{
java.lang.Thread.sleep(1*1000);
karate.log(i);
}
}
"""
* call sleep 10
But I want to understand if there is a better in-built way to do the same. Also want to know if static wait can be added
- In between scenario
- In between steps of a scenario
- In between feature files
- etc.