In Bean shell sampler I am getting the line count how to pass the line count to the Threadgroup
import org.apache.commons.io.FileUtils;
int lines = FileUtils.readLines(new File("path to data file")).size();
vars.put("lines", String.valueOf(lines));
this lines variable I want to use to thread group how I can achieve this please help me on this
Updating the output of Debugsampler
JMeterVariables:
JMeterThread.last_sample_ok=true
JMeterThread.pack=org.apache.jmeter.threads.SamplePackage@1e59359f
START.HMS=081505
START.MS=1449648905577
START.YMD=20151209
TESTSTART.MS=1449652524822
applicationname=test
buildinfo=../data/Test.csv
env=Test
lines=77
package=.zip