Quality Testing

Quality is delighting customers

I have recorded one scenario and want to run that scenario for 15 minutes with 0 ramp up.Here the scenario will run for 15 min and it may go for multiple loops for the same functionality. I want to introduce a delay or pause between each loop.Is it possible?Can you please help me on this?

Views: 281

Reply to This

Replies to This Discussion

There are at least 2 options:

  1. Add Test Action Sampler as the last request in your Thread Group and specify desired delay duration
  2. Add Constant Timer as a child of the first sampler in your Thread Group and specify desired delay duration

You might also want to combine any of the above approaches with the Synchronizing Timer, this way you will be sure that no threads are active during "delay" duration. See A Comprehensive Guide to Using JMeter Timers for more information.

Thanks a lot Dmitri for your response.I used test action sampler and it is working as expected.

If you want a sleep after each 8 iterations, try this:

for (int i = 0; i < 64; i++)
{
//...
if (i % 8 == 7)
Thread.Sleep(1000); //ms
}

To know more about c sharp tutorial you can log in JanBask Training. 

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2018   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service