Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi Srikanth!
I think that I understand what you want to do. Here's how you could accomplish that:
Create a Properties step immediately after the DataSource:
Then later on in the TestCase, where you want to delay, create a Groovy Script TestStep with the following content:
Hope that it works and makes sense to you
/Henrik
eviware.com
I think that I understand what you want to do. Here's how you could accomplish that:
Create a Properties step immediately after the DataSource:
Name Value
startingTime ${=System.currentTimeMillis() }
Then later on in the TestCase, where you want to delay, create a Groovy Script TestStep with the following content:
def TOTAL_TIME_TO_DELAY = 1000 //in milliseconds
def startingTime = context.expand( '${Properties#startingTime}' )
def timeAlreadyDelayed = System.currentTimeMillis() - Long.parseLong( startingTime )
Thread.sleep( TOTAL_TIME_TO_DELAY - timeAlreadyDelayed )
Hope that it works and makes sense to you
/Henrik
eviware.com