All Products
Search
Document Center

Performance Testing:Why is __CSVRead unable to read a value?

Last Updated:Oct 30, 2024

Issue

The __CSVRead function is used in the JMeter script, but no value of a CSV file is found in the sampling log during actual stress testing.

image

Solution

  1. Make sure that all CSV files used by the script have been uploaded to Performance Testing Service (PTS).

  2. Specify a model and the resource path. You can specify a relative path. Change the value of each CSV file to a file name instead of a file path, for example, test.csv.

  3. If a data file contains Chinese characters, change the encoding format to UTF-8.

    Note

    Even if the preceding issue is resolved by using this method, we recommend that you set the encoding format by using CSV Data Set Config, which has better maintainability than the__CSVRead function.