add_csv_data_set
Adds a CSV Data Set Config to a JMeter test plan under a Thread Group or sampler, letting each thread read one row per iteration and exposing each column as a JMeter variable.
Instructions
Add a CSV Data Set Config under the given parent (a Thread Group to feed every sampler in it, or a single sampler to scope it there). Each thread reads one row per iteration, exposing each column as a JMeter variable. The filename must be an absolute path readable on the machine that will run the test (execute_test_plan runs JMeter from a fresh per-execution directory, so relative paths won't resolve).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | CSV Data Set Config | |
| planId | Yes | ||
| recycle | No | Start over from the first line once the last row is used | |
| filename | Yes | Absolute path to the CSV file | |
| parentId | Yes | ||
| delimiter | No | , | |
| stopThread | No | Stop the thread once the file is exhausted (instead of recycling) | |
| variableNames | No | Comma-separated column names, e.g. 'username,password'. Omit if the CSV has a header row. | |
| ignoreFirstLine | No | Set true if the CSV's first line is a header row |