jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sharmadha <ssain...@hortonworks.com>
Subject Adding CSVDataconfig to test Planthrough Java API
Date Mon, 11 Apr 2016 12:29:53 GMT
I am able to add CSVDataconfig in Jmeter UI and it is working perfectly. When
I try to code in java, using API's, like

CSVDataSet dataset=new CSVDataSet();
 dataset.setFilename("tables.txt");
 dataset.setDelimiter("\t");
dataset.setVariableNames("table");

and add the dataset to one sampler or to the hashtree or threadgroup like , 

sampler.addTestElement(dataset);
or
hashtree.add(dataset);

and run the jmx file, Jmeter throws some conversion error. 


What is the correct way to add a csvdataconfig to thread group or sampler
programmatically ?






--
View this message in context: http://jmeter.512774.n5.nabble.com/Adding-CSVDataconfig-to-test-Planthrough-Java-API-tp5724066.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message