6

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)

3 Answers 3

9

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.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks @Jake... I am using Jmeter2.11, Leaving the variables name blank in CSV config and specifying column headers in CSV file solved the issue.
6
  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

Comments

0

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

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.