| || |
CSV Data Set Config - file determined at run time
I have seen this type of question asked before but not a good solution - I'm new to jmeter, so my toolbox is as limited as my knowledge, so that's why I'm here.
Here is the scenario
CSV contains lists of: user,pass,inputfile-n.txt (This CSV contains hundreds of users, EACH one with their own unique inputfile.txt, one per user)
each user gets a row of data, which includes a file to open (ie inputfile-1.txt)
Each user opens their exclusive data file and iterates over the lines of data (read into a var etc) until they reach the end of the file.
That's basically it. i was hoping to user a CSV Data Set Config to manage each users iteration over the INNER LOOP but from what I have found, it's not possible to use that to open file on the fly, determined only at run-time?
So what are my options? The threads on the inner loop must have exclusive access to their own file and be able to iterate over the rows, independently of the other threads. I'm looking for any suggestions on how best to do this.
CSV Data Set Config filenames are initiated during script startup so unfortunately it is not possible to use JMeter Variables there.
Maybe __CSVRead() and/or __StringFromFile() functions will help you in setting your scenario up.
See How to Use JMeter Functions posts series for more information on above and other JMeter functions.