I have csv file with 10,000 entries. for each iteration, i want to use few 100's of entries. i have loaded into a java list in JSR223 sampler under only once controller. so that, i can load once and use this master list to retrieve chunk of records every time in other JSR223 samplers. i am not able to access variables "totalrows", "lines" defined in one JSR223 sampler from another JSR223 sampler in different thread group. Any other way apart from using vars.get() to get global scope for variables defined to JSR223 sampler
import org.apache.commons.io.FileUtils;
List lines = FileUtils.readLines(new File("skuinfo.csv"));
int totalrows = lines.size();