I tried returning a single dimensional Object[]
from dataProvider and it worked for me. But the same code is not working in my office environment.What would be the issue?
I am using TestNG 6.13.1
@DataProvider(name = "Data")
public Object[] dataProvider() throws BiffException, IOException {
jxl.setExcel("UserDetails", "H:\\Data.xls");
int rowcount = jxl.getRowCount();
Object[] data = new Object[rowcount];
data = jxl.getColumn("Row");//Returns String array
return data;
}
@Test(dataProvider = "Data")
public void verify(String s) {
System.out.println(s);
}