Class ExcelHelper

java.lang.Object
core.helpers.excelHelper.ExcelHelper

public class ExcelHelper
extends Object
  • Field Details

  • Constructor Details

    • ExcelHelper

      public ExcelHelper()
  • Method Details

    • 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