Package core.helpers.excelHelper
Class ExcelHelper
java.lang.Object
core.helpers.excelHelper.ExcelHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 numgetColumData(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:
-
-
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
-