If you need to call it once per thread (virtual user), i.e. only at first iteration of each virtual user - put this code under the Once Only Controller <https://jmeter.apache.org/usermanual/component_reference.html#Once_Only_Controller>
If you need to call it once per thread group (i.e. first iteration of first thread) - put it under the If Controller <https://www.blazemeter.com/blog/six-tips-for-jmeter-if-controller-usage> and use the following __groovy() function <https://jmeter.apache.org/usermanual/functions.html#__groovy> as the condition: > ${__groovy((vars.getIteration() == 1 && ctx.getThreadNum() == 0),)} -- Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
