I want to use data from CSV file mentioned in CSV Data Set Config of JMeter into my JUnit testcase program and pass that data to test method.
I know how to get data from
Finally I found solution using:
JUnitSampler junitSampler=new JUnitSampler();
String UserId=junitSampler.getThreadContext().getVariables().get("userId");
Now my JUnit testcase program is accepting UserId from CSV file mentioned in CSV Data Set Config.
Thanks PMD UBIK-INGENIERIE and Dmitri T for your help.