I want to parameterize the filename textfield of CSV dataset config. I am writing into different files for every user that I'm using in JMeter, hence I need to parameterize the filename option in the CSV dataset config to read the files I create for every user. How can i do that?
I'm using a user-defined variable called csvFilename which I'm referring to as ${csvFilename}
in the filename option of CSV dataset config element. I'm writing into this variable the path of the filename from a BSF post-processor:
vars.put("csvFilename","/home/abhijeet/load_test_plans/users//"+username+".csv");
(BFS post-process enables reading variables from JMeter). In the above line of code, a username is another variable that will change according to the username I fetch from a CSV file.
So my problem is that the variable ${csvFilename}
is not replacing the file's path into the Filename textfield of CSV dataset config. Am I missing something?