Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User defined variable as a filename in a CSV Data Set Config element

Tags:

jmeter

I have a user defined variable that I put the location to a csv file.

csv_path = mydrive/thisfolder/thecsv.csv

When I put ${csv_path} as my filename argument in the CSV Data Set Config element I get an error and it shows up that the path is only the name of the csv file. If I manually put the filename in there it works. Any ideas? I am trying to create a relative path to it rather than hardcoding an absolute path.

like image 892
Brian Rieck Avatar asked Feb 27 '26 16:02

Brian Rieck


1 Answers

When you define the user defined variables, assign the path of the csv file (relative paths work) using a property like shown below:

enter image description here

And then, in your CSV Data Set Config, refer that file using the property name like this:

enter image description here

like image 53
Kranthi Paidi Avatar answered Mar 02 '26 09:03

Kranthi Paidi