Class ExcelHelper


  • public class ExcelHelper
    extends Object
    • Constructor Detail

      • ExcelHelper

        public ExcelHelper()
    • Method Detail

      • 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