Got this resolved !

Thanks Flavio Cysne for your help.

The code you suggested also threw the same conversion error. 

Found it out by actually comparing the .jmx file generated through the GUI
and one from the java code.


JMX  file created from UI had <CSVDataSet guiclass="TestBeanGUI"
testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">


So , in the java code, added property for CSVDataSet like,
          CSVDataSet csvDataSet=new CSVDataSet();
  *      
csvDataSet.setProperty(TestElement.GUI_CLASS,TestBeanGUI.class.getName());
*
for the GUI class, and then it worked :)







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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to