Class BasicDataProvider
- java.lang.Object
-
- com.axway.ats.harness.testng.dataproviders.BasicDataProvider
-
- Direct Known Subclasses:
ExcelDataProvider
public class BasicDataProvider extends Object
-
-
Constructor Summary
Constructors Constructor Description BasicDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStream
getDataFileInputStream(Method m)
Returns theInputStream
to the method input data file.protected String
getDataSheet(Method m)
Return the data sheet name.
-
-
-
Method Detail
-
getDataFileInputStream
protected InputStream getDataFileInputStream(Method m) throws DataProviderException, NoSuchPropertyException, ConfigurationException
Returns theInputStream
to the method input data file. The folder holding the file can be specified by TestOptions annotation in the test class, method or in the harness properties file. If not specified in any of these locations, search for the data file in the classpath. The name of data file can be specified by TestOptions annotation in the test method. If not - use the test class name- Parameters:
m
- the test method- Returns:
- data file
InputStream
- Throws:
DataProviderException
ConfigurationException
NoSuchPropertyException
-
-