Printing loop controller iteration number in beanshell scripting
<p>I have a scenario.
ThreadGroup <code>(loop value set to 1)</code>,
loop controller <code>(value set to 5)</code>,
 HTTP request,
 Beanshell preprocessor</p>

<p>In Beanshell preprocessor i need to print loop controller iteration value like 1,2,3,4,5.
I use <code>log.info(vars.getIteration());</code> but it prints <code>(Threadgroup loop iteration number)</code></p>

<p>Will anybody guide me how to do this.</p>