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 CSV Data Set Config for HTTP Request but couldn't find any help for JUnit Request.
My test method is:
public void test() throws IOException{
try {
CheckUser(UserId);//I want to get this UserId from CSV file mentioned in CSV Data Set Config of JMeter
}catch (Exception e) {
e.printStackTrace();
fail();
}
}
I am new to JUnit and JMeter. Any help on this would be greatly appreciated. Thanks.