public class TestDataFactory
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static TestData |
findTestData(String testDataRelativeId)Finds TestData by its id or relative id |
|
public static TestData |
findTestDataForExternalBundleCaller(String testDataId, String projectDir)@deprecated |
|
public static String |
getTestDataId(String testDataRelativeId)Returns test data id of a its relative id. |
|
public static String |
getTestDataRelativeId(String testDataRelativeId)Returns relative id of a test data's id. |
|
public static TestData |
readCSVData(Element testDataElement, String projectDir) |
|
public static TestData |
readDBData(Element testDataElement, String projectDir) |
|
public static TestData |
readExcelData(Element testDataElement, String projectDir) |
|
public static TestData |
readInternalData(Element testDataElement, String projectDir, File dataFile) |
Finds TestData by its id or relative id
testCaseRelativeId is null or test data doesn't existtestDataRelativeId
- Can be test data full id or test data relative id
Eg: Using "Data Files/Sample Test Data" (full id) OR "Sample Test Data" (relative id) as
testDataRelativeId is accepted for the test data with id "Data Files/Sample Test Case"Returns test data id of a its relative id.
testDataRelativeId
- Relative test data's id.null if testDataRelativeId is null. Returns relative id of a test data's id. The relative id is cut "Data Files/" prefix from the test
data's id.
testDataId
- Full test data id.null if testDataId is null.