public abstract class BaseDataDrive extends Object
Constructor and Description |
---|
BaseDataDrive() |
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
getClassObjectList(Class<?> type)
Method to be used to parse the data file and to create data objects of the respective passed class.
|
protected abstract Map<String,List<String>> |
getData()
Method to be implemented by the extending class for providing the parsed Data of the respective data file.
|
<T> Object[][] |
getTestngData(Class<?> type)
Method to be used to parse the data file and to create data objects of the respective passed class.
|
protected abstract Map<String,List<String>> getData()
public <T> Object[][] getTestngData(Class<?> type) throws ClassParser.ClassParserException, ClassParser.DataNotAvailableException
type
- Class type for which the object has to be created for each entry in the row of the data file.Object
[][] containing the objects of the Class - type passed as argumentClassParser.ClassParserException
- in case of any issues while parsing the said classClassParser.DataNotAvailableException
- in case no column for the variable present in the class is present in the data file.public <T> List<T> getClassObjectList(Class<?> type) throws ClassParser.ClassParserException, ClassParser.DataNotAvailableException
type
- Class type for which the object has to be created for each entry in the row of the data file.List
containing the objects of the Class - type passed as argumentClassParser.ClassParserException
- in case of any issues while parsing the said classClassParser.DataNotAvailableException
- in case no column for the variable present in the class is present in the data file.Copyright © 2014. All rights reserved.