public interface TestData
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
activeHeaders(boolean active) Set if this test data has headers |
|
public List<List<Object>> |
getAllData() Collect all data of this test data |
|
public String[] |
getColumnNames() Get all column names of the test data |
|
public int |
getColumnNumbers() Get total column of the test data |
|
public TestDataInfo |
getDataInfo() Used for logging |
|
public Object |
getObjectValue(String columnName, int rowIndex) Get raw value of the test data at a cell with the column name and row index |
|
public Object |
getObjectValue(int columnIndex, int rowIndex) Get raw value of the test data at a cell with the column index and row index |
|
public String |
getProperty(String key) Used to retrieve custom properties relating to a test data. |
|
public int |
getRowNumbers() Get total rows of the test data |
|
public String |
getSourceUrl() Get the url of the data source |
|
public TestDataType |
getType() Get the type of the test data |
|
public String |
getValue(String columnName, int rowIndex) Get value (in String) of the test data at a cell with the column name and row index |
|
public String |
getValue(int columnIndex, int rowIndex) Get value (in String) of the test data at a cell with the column index and row index |
|
public boolean |
hasHeaders() Check if this test data has headers |
|
public void |
setProperty(String key, String value) Used to retrieve custom properties relating to a test data. |
Set if this test data has headers
active
- true to set this test data to use headersCollect all data of this test data
Get all column names of the test data
Get total column of the test data
Used for logging
Get raw value of the test data at a cell with the column name and row index
columnName
- column namerowIndex
- row index (row number), starting from 1Get raw value of the test data at a cell with the column index and row index
columnIndex
- index of the column, starting from 1rowIndex
- row numberUsed to retrieve custom properties relating to a test data. Implementing classes should initialize their own maps and handle the set/get themselves
key
- a String that represents the key into the mapGet total rows of the test data
Get the url of the data source
Get the type of the test data
Get value (in String) of the test data at a cell with the column name and row index
columnName
- column namerowIndex
- row index (row number), starting from 1Get value (in String) of the test data at a cell with the column index and row index
columnIndex
- column index (column number), starting from 1rowIndex
- row index (row number), starting from 1Check if this test data has headers