Description
This method is used to list all the Test Data Case Names for a Test Data Category or Test Data Case Set.
Exceptions
The following GenRocket exceptions may be thrown by this method:
- If an invalid Category name is passed to the API.
- If an incorrect Test Data Case file path is passed to the API.
Runtime Method Signature
Use this method signature when directly accessing the GenRocket binary runtime.
List<String> listTestDataCaseNames(String pathAndFileName) List<String> listTestDataCaseNames(String pathAndFileName, String categoryName)
REST/Socket Payload Request
Use this API JSON request payload when making an API call to the GenRocket REST or Socket Engine.
Test Data Cases' Names for a Test Data Case set:
{ "interfaceType": "Manual", "methodName": "listTestDataCaseNames", "parameters": { "pathAndFileName": "" } }
Test Data Cases' Names for a particular Category:
{ "interfaceType": "Manual", "methodName": "listTestDataCaseNames", "parameters": { "pathAndFileName": "", "categoryName": "" } }
REST/Socket Payload Successful Payload Response
The API JSON response payload returns the list of zero or more Test Data Case names for the given Test Data Case Set or Category.
{ "responseType": "OK", "data": [ { "testCaseName": "" }, { "testCaseName": "" }, { "testCaseName": "" } ] }