cancel
Showing results for 
Search instead for 
Did you mean: 

setting delay programatically before teststeps get executed in a load test

Highlighted
Occasional Contributor

setting delay programatically before teststeps get executed in a load test

Hi

How to set the delay progrogrmatically before teststeps get executed ina load test

it would be great if you can provide some sample code

Thanks & Regards
Karthik M
1 REPLY 1
Highlighted

Re: setting delay programatically before teststeps get executed in a load test

Hi!

if you have a Delay TestStep in your TestCase, you can set the delay with a groovy script:

testRunner.testCase.testSteps["Delay Step"].delay = 12345

or you can set the delay itself with a script-property-expansion;

${=(int)Math.random()*1000}

(which will delay randomly 0-999 ms)

regards!

/Ole
eviware.com


Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors