JMeter: For Each controller: Reading data from csv files/response and passing it to request -


i have csv file following contents:

qty 1 2 3 4 5 6 

the qty passed parameter request "a". , qty response of request "a" passed "b".

i want read content of csv file using code. tried implement following code:

bufferedreader br = new bufferedreader(newfilereader("/path/to/your/file.csv")); string line; int counter = 1; while ((line = br.readline()) != null) { vars.put("var_" + counter, line); counter++; } br.close(); 

but gave me below error :

response message: org.apache.jorphan.util.jmeterexception: error invoking bsh method: eval. sourced file: inline evaluation of: ``bufferedreader br = new bufferedreader(new filereader("c:/jmeter test data/p_qty . . . '' : typed variable declaration : object constructor 

i want execute request "b" using each loop,where loop pick qty values.

or

how shall store response of "qty" field in array , access array elements through "foreach" controller?

kindly provide suggestion same.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -