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
All Methods Static Methods Concrete Methods 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 Detail
-
Path_TestData
public static final String Path_TestData
- See Also:
- Constant Field Values
-
-
Method Detail
-
setExcelFile
public static ExcelObject setExcelFile(ExcelObject excel) throws Exception
gets the excel file And the work sheet- Parameters:
Path-SheetName-- Throws:
Exception
-
getColumData
public static List<String> getColumData(ExcelObject excel) throws Exception
returns all the column data as array list of string- Parameters:
colNum-- Returns:
- Throws:
Exception
-
getCellData
public static String getCellData(ExcelObject excel) throws Exception
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
public static void setCellData(ExcelObject excel) throws Exception
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
public static void setCellData(List<ExcelObject> excelObjects) throws Exception
- Parameters:
excelObjects- - contains data info- Throws:
Exception
-
-