Hi Team,
Can any one help to read and save data from an excel into @dataProvider.
Excel has multiple columns and rows with (int, String, float etc), each execution need data from each row.
Currently I was using below , but it is returning only String
public static String getCellData(int RowNum, int ColNum) throws Exception {
try{
Cell = ExcelWSheet.getRow(RowNum).getCell(ColNum);
int dataType = Cell.getCellType();
if (dataType == 3) {
return "";
}else{
String CellData = Cell.getStringCellValue();
return CellData;
}}catch (Exception e){
System.out.println(e.getMessage());
throw (e);
}