I need to pass more than 10 parameters to a TestNG Dataprovider, and the code look some what like this ...
@Test (dataProvider = "Dataprovider1")
public void testScenario1(String data1, String data2,
String data3, String data4,
String data5 //...
) throws Exception {
System.out.println(data1+"---------------- "+data2+" --------------- "+data3+" .. so on");
}
Can anyone tell me what approach we should follow in case we need to pass more than 10 parameters using @DataProvider
? Is there any other way to declare the parameters for the test method?