Class ExcelDataProvider
- java.lang.Object
-
- com.axway.ats.harness.testng.dataproviders.BasicDataProvider
-
- com.axway.ats.harness.testng.dataproviders.ExcelDataProvider
-
- All Implemented Interfaces:
IDataProvider
public class ExcelDataProvider extends BasicDataProvider implements IDataProvider
Provides test data, by reading it from an excel spreadsheet. This implementation uses theExcelParser
to parse the data from the spreadsheet.
-
-
Constructor Summary
Constructors Constructor Description ExcelDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[][]
fetchDataBlock(Method m)
Returns a set of test data, depending on theMethod
that requires it.-
Methods inherited from class com.axway.ats.harness.testng.dataproviders.BasicDataProvider
getDataFileInputStream, getDataSheet
-
-
-
-
Method Detail
-
fetchDataBlock
public Object[][] fetchDataBlock(Method m) throws DataProviderException, NoSuchPropertyException, ConfigurationException
Returns a set of test data, depending on theMethod
that requires it. This specific implementation searches for the excel spread sheet in the same directory structure, that the calling method's class is in (i.e. com/axway/some_package/tests).- Specified by:
fetchDataBlock
in interfaceIDataProvider
- Parameters:
m
- theMethod
that requires the test data- Returns:
- a two dimensional array of Object elements
- Throws:
ConfigurationException
NoSuchPropertyException
DataProviderException
- See Also:
IDataProvider.fetchDataBlock(java.lang.reflect.Method)
-
-