public class CSVData extends AbstractTestData
Fields inherited from class | Fields |
---|---|
class AbstractTestData |
hasHeaders, properties, sourceUrl |
Constructor and description |
---|
CSVData
(String sourceUrl, boolean containsHeader, CSVSeparator separator) |
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 List<List<String>> |
getData() Collect all data of this csv data with type as String |
|
public int |
getRowNumbers() Get total rows of the test data |
|
public TestDataType |
getType() Get the type of the test data |
|
protected String |
internallyGetValue(String columnName, int rowIndex) |
|
protected String |
internallyGetValue(int columnIndex, int rowIndex) |
Methods inherited from class | Name |
---|---|
class AbstractTestData |
activeHeaders, getDataInfo, getHeaderRowIdx, getObjectValue, getObjectValue, getProperty, getSourceUrl, getValue, getValue, hasHeaders, internallyGetValue, internallyGetValue, setProperty, verifyColumnIndex, verifyColumnName, verifyRowIndex |
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
Collect all data of this csv data with type as String
Get total rows of the test data
Get the type of the test data