1
votes

I have a JMeter setup which reads data from a CSV file configured in CSV Data Set Config element. It works fine, the CSV file is specified in CSV Data Set Config -> Filename.

Now I want to envoke JMeter from command line instead of GUI, and I want to specify a different filename for the above element. How to go about it?

I tried "-JCSVNAME=" but it does not seem to work.

Ideas?

1
If you pass a JMeter variable via the command line and use that variable in the CSV filename value it should work. - rsp
Thank you rsp, this helped. I used: "${__property(my_dataset)}" in the CSV Data Set Config "Filename" field, and then -Jmy_dataset=/path/to/file. - dust

1 Answers

0
votes

Just use __P function in the Filename field of Listener

CSV Filename as property

Then on command line , add this:

-Jdatadir=full path to folder that contains CSV