0
votes

I want to HTTP request with dynamic parameters, so I created a CSV Data Set Config. This is a CSV Data Set Config example:

CSV DATA SET CONFIG

"lat";"lng"
40.9912941561618;28.7894749639963
41.0824834;28.9850201
41.0611814136864;28.030526752118
41.0001116337;29.1471918672
40.9840449469281;28.868293762207
41.0062257041343;28.6599397659302
40.9870953373281;28.8735637664795
40.9842483906616;28.8679887067701

HTTP REQUEST

Server name is example.com. Delimeter is ;.

Dynamic parameter path is v1/ej/log/geojson?lat=${lat}&lng=${lat};

CSV Data Set Config enter image description here

HTTP REQUEST

When I sent request it doesn't set the parameters. How I can do ?

1
What's your jmeter version?user7294900

1 Answers

1
votes

CSV Data Set Config is by default a Comma Separated Values. In your file it's ; Separated, so you need to define Delimiter as ;.

Also remove quotes for first line with variable names:

 lat;lng

And make sure you set the flag

Use first line as Variable Names

Ignore first line of CSV file, it will only be used used if Variable Names is not empty, if Variable Names is empty the first line must contain the headers.

Values are stored as JMeter variables and used as: ${lat} so your path should be

 v1/ej/log/geojson?lat=${lat}&lng=${lng}