Package core.helpers.excelHelper
Class ExcelHelper
java.lang.Object
core.helpers.excelHelper.ExcelHelper
public class ExcelHelper extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringPath_TestData -
Constructor Summary
Constructors Constructor Description ExcelHelper() -
Method Summary
Modifier and Type Method Description static StringgetCellData(ExcelObject excel)This method is to read the test data from the Excel cell, in this we are passing parameters as Row num And Col numstatic List<String>getColumData(ExcelObject excel)returns all the column data as array list of stringstatic voidsetCellData(ExcelObject excel)This method is to write in the Excel cell, Row num And Col num are the parametersstatic voidsetCellData(List<ExcelObject> excelObjects)static ExcelObjectsetExcelFile(ExcelObject excel)gets the excel file And the work sheet
-
Field Details
-
Path_TestData
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ExcelHelper
public ExcelHelper()
-
-
Method Details
-
setExcelFile
gets the excel file And the work sheet- Parameters:
Path-SheetName-- Throws:
Exception
-
getColumData
returns all the column data as array list of string- Parameters:
colNum-- Returns:
- Throws:
Exception
-
getCellData
This method is to read the test data from the Excel cell, in this we are passing parameters as Row num And Col num- Parameters:
RowNum-ColNum-- Returns:
- Throws:
Exception
-
setCellData
This method is to write in the Excel cell, Row num And Col num are the parameters- Parameters:
excel- - required: excel.row, excel.column, excel.value, excel.file- Throws:
Exception
-
setCellData
- Parameters:
excelObjects- - contains data info- Throws:
Exception
-