Jmeter Write data into Csv and read the same in another thread group

63 Views Asked by At

My requirement is to Create users in one thread group and save the users in row format in csv.

Use another thread group to read the csv and run it in loop for all users in csv.

But ReadData2 thread group is not reading the data when ran sequentially. and is working when ran independently.

enter image description here

1

There are 1 best solutions below

0
Dmitri T On

The CSV file needs to be present when "ReadData2" Thread Group starts so make sure that the file is there and contains i.e. a header line or something like this.

The file can be created in i.e. setUp Thread Group or create it beforehand and append new entries programmatically as needed.

With regards to using Beanshell: it's a some form of a performance anti-pattern, since JMeter 3.1 you should be using JSR223 Test Elements and Groovy language for scripting so consider migrating.