dimanche 4 novembre 2018

I'm trying to generate random values in jsr223 sampler in jmeter

def index = [];
def randoms = [];
def size = new File("C:/Users/320027671/Desktop/JmeterPerformanceSuit/CompleteSuit/STU3/Post/index.csv").readLines().size();
File file = new File("C:/Users/320027671/Desktop/JmeterPerformanceSuit/CompleteSuit/STU3/Post/index.csv");
file.each { line ->
        index << line
        randoms << __Random(0,size,)
}

But the script is giving error like the method does not exists the scirpt is working uptil index << line, the problem is with random function




Aucun commentaire:

Enregistrer un commentaire