Bug 46790 - CSV Data Set Config should be able to parse CSV headers
CSV Data Set Config should be able to parse CSV headers
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.3.2
PC Windows XP
: P5 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2009-03-02 23:35 UTC by Jan Lagerpusch
Modified: 2010-02-08 15:14 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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