Bug 46790

Summary: CSV Data Set Config should be able to parse CSV headers
Product: JMeter - Now in Github Reporter: Jan Lagerpusch <jan.lagerpusch>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P5    
Version: 2.3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Jan Lagerpusch 2009-03-02 23:35:51 UTC
Currently, the CSV Data Set Config does not allow CSV files containing header information. Instead, column names have to be taken out of the CSV file and have to be entered comma-separated as Variable Names in the CSV Data Set Config Panel. 

It may be helpful to have the option whether to use the CSV header or skip it and use internal variable names instead (i. e. "Use CSV header" checkbox - disabling/enabling the "Variable Names" option when checked/unchecked).
Comment 1 Sebb 2010-02-08 15:14:51 UTC
Fixed in SVN.

Did not add a new checkbox - if the "Variable Names" field is empty, then the code assumes that the names are defined in the file header.

URL: http://svn.apache.org/viewvc?rev=907839&view=rev
Log:
Bug 46790 - CSV Data Set Config should be able to parse CSV headers

Added:
   jakarta/jmeter/trunk/bin/testfiles/testheader.csv
Modified:
   jakarta/jmeter/trunk/src/components/org/apache/jmeter/config/CSVDataSet.java
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/services/FileServer.java
   jakarta/jmeter/trunk/test/src/org/apache/jmeter/config/TestCVSDataSet.java
   jakarta/jmeter/trunk/xdocs/changes.xml
   jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:43 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2204