Class ExcelParser


  • public class ExcelParser
    extends Object
    Utility Class Responsible for parsing the Excel Files.
    • Method Detail

      • setSheetName

        public void setSheetName​(String newSheetName)
        Sets the current Sheet that would be used to load the test case data.
        Parameters:
        newSheetName - The name of the Sheet
      • getDataBlock

        public Object[][] getDataBlock​(Method method)
                                throws DataProviderException
        Returns the test case data in the form of a two dimensional Object array. The method makes sure the information is loaded only the first time it is called.
        Parameters:
        method - the test method which parameters will be used to determine the excel column data type.
        Returns:
        Object[][] containing the test data.
        Throws:
        DataProviderException