public class ExcelHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
Path_TestData |
| Constructor and Description |
|---|
ExcelHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCellData(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 num
|
static List<String> |
getColumData(ExcelObject excel)
returns all the column data as array list of string
|
static void |
setCellData(ExcelObject excel)
This method is to write in the Excel cell, Row num And Col num are the
parameters
|
static void |
setCellData(List<ExcelObject> excelObjects) |
static ExcelObject |
setExcelFile(ExcelObject excel)
gets the excel file And the work sheet
|
public static final String Path_TestData
public static ExcelObject setExcelFile(ExcelObject excel) throws Exception
Path - SheetName - Exceptionpublic static List<String> getColumData(ExcelObject excel) throws Exception
colNum - Exceptionpublic static String getCellData(ExcelObject excel) throws Exception
RowNum - ColNum - Exceptionpublic static void setCellData(ExcelObject excel) throws Exception
excel - - required: excel.row, excel.column, excel.value, excel.fileExceptionpublic static void setCellData(List<ExcelObject> excelObjects) throws Exception
excelObjects - - contains data infoExceptionCopyright © 2021. All rights reserved.