How to start reading from second row using CSV data config element in jmeter

StackOverflow https://stackoverflow.com/questions/23531370

  •  17-07-2023
  •  | 
  •  

Question

CSV data config always reads from first row. I want to add column headers in the CSV file. Hence I want the CSV config to start reading from second row.

Below is the setting in Thread Group. No.of threads = 1 Loop Count= 10 (depends on no.of rows in CSV file)

Was it helpful?

Solution

What version of JMeter are you using? It seems like leaving the Variable Names field empty will do the trick. More info here:

Versions of JMeter after 2.3.4 support CSV files which have a header line defining the column names. To enable this, leave the "Variable Names" field empty. The correct delimiter must be provided.

OTHER TIPS

  1. Leave the variable names empty like on an attached snapshot.

enter image description here

  1. In csv file add header. Header values will act as variable names which could be used as parameters in requests. ~sample facility.csv file facility1,name GG1LMD,test1

  2. Request

enter image description here

There is a field called "Ignore first line (only used if Variable Names is not empty)", set this to true.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top