Wednesday, April 15, 2020

JMeter Only Once Controller true for Loop Count -------------- For all Threads to run only once the requests write If Controller (groovy Script)


Hi

JMeter run the Once Only Controller , one time for each thread. So, it will be applicable for Loop Count.





If you need to Once only for All Thread, we should use, if Controller and Groovy script

https://sqa.stackexchange.com/questions/35977/how-to-enforce-run-once-only-controller-in-jmeter


${__groovy(ctx.getThreadNum() == 0 &&  vars.getIteration() == 1,)}


















No comments:

Post a Comment

JMeter Simple Controller

  Simple Controller is just a  container  for user request.