Just Enough Developed Infrastructure

CSVFile Parameters for Jmeter

Jmeter is a great load testing tool. Creating a parameter file is not very clearly described in the documentation.

When creating a test plan, just after the creation of the thread group you can insert a CSV configuration element. This allows you to specify a CSV file that you can reuse in you http parameters:

  • CSV configuration element:
    • filename (only filenames seem to work, not full paths. It's looking for the file in the same directory as the testscenario file.
    • the fieldnames f.i. USERNAME,PASSWORD
  • In your test element you can refer to them as {USERNAME} and {PASSWORD}