简体   繁体   中英

.csv file is not read by Jmeter

I have CSV DataSet Config where I have location of my .csv file

Tried both by writing the absolute path and putting my file in the same directory. Below is the screenshot CSV file gets stored but the next line says it must exist

Below is mine HTTP Request HTTP REquest

By running this in command Line nothing is getting stored in the my output file I have tried that too.

Check following things:

Name of the file is correct. In case of Unix file names are case sensitive so check the name of the file and name you have mentioned in CSV data set configuration.

Keep the CSV file in the same folder where your JMX resides, and just mention file name in CSV dataset config. This avoids confusion in future even if you move the script to any other box.

Also make sure in the file there is no new line character at the end of the file. That will result in error.

Try a fully qualified path. ~/... was not working for me either - /temp/file.csv did the trick

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM