indyman0406
indyman0406

Reputation: 11

JMETER nested while loop is stopping at first line of the CSV data file

I have to make a GET call on IDs stored in a CSV while and I have to retry on GET call till it returns 200 response code. This is what my current structure looks like ..

GET thread group

Now I am not getting error or anything .. but I was expecting first while controller to loop through CSV file for each id, then make a GET request for each id and then second while loop would wait for success code but for some reason, GET call is only executing for the first entry in the csv and then exit out of it. What am I missing here?

Upvotes: 0

Views: 304

Answers (1)

Dmitri T
Dmitri T

Reputation: 168162

CSV data config file (Each file is unique for each thread)

this is not how it works, the CSV Data Set Config is being initialized once with the filename resolved at the time of its execution, it doesn't load the new CSV file for each virtual user.

If you're looking for an option of supplying the CSV file name(s) dynamically in the runtime - consider switching to __CSVRead() function. See How to Pick Different CSV Files at JMeter Runtime article for more details.

Upvotes: 1

Related Questions