Class TestManagerUtil
Resizable-array Implements all optional list operations.Each ArrayList instance has a capacity. The capacity is the size of the array used to store the elements in the list. It is always at least as large as the list size. Hash table based implementation provides all of the optional map operations.
RequestStatus as return type methods will result in being returned as either true or false as its status.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ads.api.util.BaseUtil
com.ads.api.util.BaseUtil.TokenType -
Field Summary
Fields inherited from class com.ads.api.util.BaseUtil
AUTH_TOKEN, AUTH_TOKEN_TYPE -
Method Summary
Modifier and TypeMethodDescriptionaddTestCase(int nodeId, Node.NodeType nodeType, TestCase testCase) TestCase will be added for the specified nodeId of nodeType with the details given in TestCase Object.addTestCaseAs(int nodeId, String nodeType, String testCaseObjJson, String outputFormat) TestCase will be added for the specified nodeId of nodeType with the details given in TestCase Object.addValidationStep(int nodeId, Node.NodeType nodeType, String testCaseName, TestCaseValidationStep validationStep) ValidationStep will be added for the specified testCaseName of nodeId, nodeType with details given in TestCaseValidationStep Object.addValidationStep(int testCaseId, TestCaseValidationStep validationStep) ValidationStep will be added for the specified testCaseId with details given in TestCaseValidationStep Object.addValidationStepAs(int testCaseId, String validationStepObjJson, String outputFormat) ValidationStep will be added for the specified testCaseId with details given in TestCaseValidationStep Object.addValidationStepAs(int nodeId, String nodeType, String testCaseName, String validationStepJsonObj, String outputFormat) ValidationStep will be added for the specified testCaseName of nodeId, nodeType with details given in TestCaseValidationStep Object.addValidationSteps(int nodeId, Node.NodeType nodeType, String testCaseName, List<TestCaseValidationStep> validationSteps) ValidationSteps will be added for the specified testCaseName of nodeId, nodeType with details given in the List of TestCaseValidationStep Objects.addValidationSteps(int testCaseId, List<TestCaseValidationStep> validationSteps) ValidationSteps will be added for the specified testCaseId with details given in the List of TestCaseValidationStep Objects.addValidationStepsAs(int testCaseId, String validationStepsJsonArray, String outputFormat) ValidationSteps will be added for the specified testCaseId with details given in the List of TestCaseValidationStep Objects.addValidationStepsAs(int nodeId, String nodeType, String testCaseName, String validationStepsJsonArray, String outputFormat) ValidationSteps will be added for the specified testCaseName of nodeId, nodeType with details given in the List of TestCaseValidationStep Objects.deleteTestCase(int testCaseId) Removes the TestCase of the specified testCaseId.deleteTestCaseAs(int testCaseId, String outputFormat) Removes the TestCase of the specified testCaseId.deleteTestCases(List<Integer> testCaseIds) Removes the TestCases of the specified List of testCaseId's.deleteTestCasesAs(String testCaseIdsJsonArray, String outputFormat) Removes the TestCases of the specified List of testCaseId's.deleteValidationStep(int validationStepId) Removes the ValidationStep of the specified validationStepId.deleteValidationStep(int nodeId, Node.NodeType nodeType, String testCaseName, String stepName) Removes the ValidationStep of the specified stepName, testCaseName, nodeId, nodeType.deleteValidationStep(int testCaseId, String stepName) Removes the ValidationStep of the specified testCaseId and stepName.deleteValidationStepAs(int testCaseId, String stepName, String outputFormat) Removes the ValidationStep of the specified testCaseId and stepName.deleteValidationStepAs(int nodeId, String nodeType, String testCaseName, String stepName, String outputFormat) Removes the ValidationStep of the specified stepName, testCaseName, nodeId, nodeType.deleteValidationStepByIdAs(int validationStepId, String outputFormat) Removes the ValidationStep of the specified validationStepId.deleteValidationSteps(int testCaseId) Removes the ValidationSteps of the specified testCaseId.deleteValidationSteps(int nodeId, Node.NodeType nodeType, String testCaseName, List<String> stepNames) Removes the ValidationSteps of the specified List of stepNames, testCaseName, nodeId, nodeType.deleteValidationSteps(int testCaseId, List<String> stepNames) Removes the ValidationSteps of the specified testCaseId and List of stepNames.deleteValidationSteps(List<Integer> stepIds) Removes the TestSteps of the specified List of stepIds.deleteValidationStepsAs(int testCaseId, String outputFormat) Removes the ValidationSteps of the specified testCaseId.deleteValidationStepsAs(int testCaseId, String stepNamesJsonArray, String outputFormat) Removes the ValidationSteps of the specified testCaseId and List of stepNames.deleteValidationStepsAs(int nodeId, String nodeType, String testCaseName, String stepNamesJsonArray, String outputFormat) Removes the ValidationSteps of the specified List of stepNames, testCaseName, nodeId, nodeType.deleteValidationStepsAs(String stepIdsJsonArray, String outputFormat) Deletes the TestSteps for the specified List of stepIds.getTestCase(int testCaseId) Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...getTestCase(int nodeId, Node.NodeType nodeType, String testCaseName) Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...getTestCaseAs(int testCaseId, String outputFormat) Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...getTestCaseAs(int nodeId, String nodeType, String testCaseName, String outputFormat) Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...getTestCases(int nodeId, Node.NodeType nodeType) Returns the List of TestCase objects with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...for the specified nodeId of nodeType.getTestCases(List<Integer> testCaseIds) Returns the TestCases with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...getTestCasesAs(int nodeId, String nodeType, String outputFormat) Returns the List of TestCase objects with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...for the specified nodeId of nodeType.getTestCasesAs(String testCaseIdsJson, String outputFromat) Returns the TestCases with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...getValidationStep(int nodeId, Node.NodeType nodeType, String testCaseName, String validationStepName) Returns the TestCaseValidationStep Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...getValidationStep(int testCaseId, String validationStepName) Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId, validationStepName.getValidationStepAs(int testCaseId, String validationStepName, String outputFormat) Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId, validationStepName.getValidationStepAs(int nodeId, String nodeType, String testCaseName, String validationStepName, String outputFormat) Returns the TestCaseValidationStep Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...getValidationStepById(int validationStepId) Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified validationStepId.getValidationStepByIdAs(int validationStepId, String outputFormat) Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified validationStepId.getValidationSteps(int testCaseId) Returns the List of TestCaseValidationStep objects with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId.getValidationSteps(int nodeId, Node.NodeType nodeType, String testCaseName) Returns the List of TestCaseValidationStep objects with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseName, nodeId of nodeType.getValidationStepsAs(int testCaseId, String outputFormat) Returns the TestCaseValidationStep objects with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId.getValidationStepsAs(int nodeId, String nodeType, String testCaseName, String outputFormat) Returns the List of TestCaseValidationStep objects associated with the given testCaseName with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseName, nodeId of nodeType.updateTestCase(TestCase testCase) TestCase will be updated with the details specified in TestCase Object.updateTestCaseAs(String testCaseObjJson, String outputFormat) TestCase will be updated with the details specified in TestCase Object.updateValidationStep(TestCaseValidationStep validationStep) ValidationStep will be updated as specified TestCaseValidationStep Object.updateValidationStepAs(String validationStepObjJson, String outputFormat) ValidationStep will be updated as specified ValidationStep Object.updateValidationSteps(int testCaseId, List<TestCaseValidationStep> validationSteps) ValidationSteps will be updated of the specified testCaseId, with the details specified in TestCaseValidationStep Objects.updateValidationSteps(List<TestCaseValidationStep> validationSteps) ValidationSteps will be updated as the specified TestCaseValidationStep Objects.updateValidationStepsAs(int testCaseId, String validationStepsJsonArray, String outputFormat) ValidationSteps will be updated of the specified testCaseId, with the details specified in TestCaseValidationStep Objects.updateValidationStepsAs(String validationStepsJsonArray, String outputFormat) ValidationSteps will be updated as the specified TestCaseValidationStep Objects.Methods inherited from class com.ads.api.util.BaseUtil
getAccessToken, getAccessTokenType, getTokenType, getUserDetails, permissionDeniedMessage, permissionDeniedStatus, setAccessToken, setAccessTokenType
-
Method Details
-
addTestCase
TestCase will be added for the specified nodeId of nodeType with the details given in TestCase Object.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE.
Depending upon the nodeType, nodeId will be either projectId or mapId or tableId.
Specifying the nodeType, nodeId and testCaseName in TestCase Object are mandatory.- Parameters:
nodeId- intnodeType- Node Object - valid Types are MM_PROJECT, MM_MAPPING, SM_TABLE.testCase- TestCase Object- Returns:
- RequestStatus Object - Returns True if TestCase is added successfully, otherwise returns False.
- Since:
- 7.0
-
addValidationStep
ValidationStep will be added for the specified testCaseId with details given in TestCaseValidationStep Object.
Specifying testCaseId, validationStepName are mandatory.- Parameters:
testCaseId- intvalidationStep- TestCaseValidationStep Object- Returns:
- RequestStatus Object - Returns True if ValidationStep is added successfully, otherwise returns False.
- Since:
- 7.0
-
addValidationStep
public RequestStatus addValidationStep(int nodeId, Node.NodeType nodeType, String testCaseName, TestCaseValidationStep validationStep) ValidationStep will be added for the specified testCaseName of nodeId, nodeType with details given in TestCaseValidationStep Object.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE.
Depending upon the nodeType, nodeId will be either projectId or mapId or tableId.
Specifying testCaseName, nodeId, nodeType and validationStepName are mandatory.- Parameters:
nodeId- intnodeType- Node Object - valid Types are MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringvalidationStep- TestCaseValidationStep Object- Returns:
- RequestStatus Object - Returns True if ValidationStep is added successfully, otherwise returns False.
- Since:
- 7.0
-
addValidationSteps
public RequestStatus addValidationSteps(int nodeId, Node.NodeType nodeType, String testCaseName, List<TestCaseValidationStep> validationSteps) ValidationSteps will be added for the specified testCaseName of nodeId, nodeType with details given in the List of TestCaseValidationStep Objects.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE.
Depending upon the nodeType, nodeId will be either projectId or mapId or tableId.
Specifying testCaseName, nodeId, nodeType and validationStepName are mandatory.- Parameters:
nodeId- intnodeType- Node Object - valid Types are MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringvalidationSteps- TestCaseValidationStep Object- Returns:
- RequestStatus Object - Returns True if ValidationSteps are added successfully, otherwise returns False.
- Since:
- 7.0
-
addValidationSteps
public RequestStatus addValidationSteps(int testCaseId, List<TestCaseValidationStep> validationSteps) ValidationSteps will be added for the specified testCaseId with details given in the List of TestCaseValidationStep Objects.
Specifying testCaseId and validationStepNames are mandatory.- Parameters:
testCaseId- intvalidationSteps- TestCaseValidationStep Object- Returns:
- RequestStatus Object - Returns True if ValidationSteps are added successfully, otherwise returns False.
- Since:
- 7.0
-
updateTestCase
TestCase will be updated with the details specified in TestCase Object.
Specifying testCaseId and testCaseName are mandatory.- Parameters:
testCase- TestCase Object- Returns:
- RequestStatus Object - Returns True if TestCase is updated successfully, otherwise returns False.
- Since:
- 7.0
-
updateValidationStep
ValidationStep will be updated as specified TestCaseValidationStep Object.
Specifying validationStepId is mandatory.- Parameters:
validationStep- TestCaseValidationStep Object- Returns:
- RequestStatus Object - Returns True if ValidationStep is updated successfully, otherwise returns False.
- Since:
- 7.0
-
updateValidationSteps
ValidationSteps will be updated as the specified TestCaseValidationStep Objects.
Specifying validationStepIds are mandatory.- Parameters:
validationSteps- List - TestCaseValidationStep Objects- Returns:
- RequestStatus Object - Returns True if ValidationSteps are updated successfully, otherwise returns False.
- Since:
- 7.0
-
updateValidationSteps
public RequestStatus updateValidationSteps(int testCaseId, List<TestCaseValidationStep> validationSteps) ValidationSteps will be updated of the specified testCaseId, with the details specified in TestCaseValidationStep Objects.
Specifying the testCaseId and validationStepName are mandatory.- Parameters:
testCaseId- intvalidationSteps- List - TestCaseValidationStep Objects- Returns:
- RequestStatus Object - Returns True if ValidationSteps are updated successfully, otherwise returns False.
- Since:
- 7.0
-
getTestCase
public TestCase getTestCase(int nodeId, Node.NodeType nodeType, String testCaseName) throws Exception Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc... for the specified testCaseName present in the nodeId of nodeType.
Specifying the testCaseName, nodeId, nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.- Parameters:
nodeId- intnodeType- Node Object - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- String- Returns:
- TestCase Object
- Throws:
Exception- Since:
- 7.0
-
getTestCases
Returns the List of TestCase objects with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...for the specified nodeId of nodeType.
Specifying the nodeId, nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.- Parameters:
nodeId- intnodeType- Node Object - MM_PROJECT, MM_MAPPING, SM_TABLE.- Returns:
- List of TestCase Objects
- Throws:
Exception- Since:
- 7.0
-
getTestCase
Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc... for the specified testCaseId.
Specifying the testCaseId is mandatory.- Parameters:
testCaseId- int- Returns:
- TestCase Object
- Throws:
Exception- Since:
- 7.0
-
getTestCases
Returns the TestCases with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc... for the specified testCaseId's.
Specifying the testCaseId's are mandatory.- Parameters:
testCaseIds- List- Returns:
- List of TestCase Objects
- Since:
- 7.0
-
getValidationStep
public TestCaseValidationStep getValidationStep(int nodeId, Node.NodeType nodeType, String testCaseName, String validationStepName) throws Exception Returns the TestCaseValidationStep Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc... of the specified validationStepName of testCaseName present in nodeId of type nodeType.
Specifying the validationStepName, testCaseName, nodeId and nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.- Parameters:
nodeId- intnodeType- Node Object - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringvalidationStepName- String- Returns:
- TestCaseValidationStep Object
- Throws:
Exception- Since:
- 7.0
-
getValidationSteps
public List<TestCaseValidationStep> getValidationSteps(int nodeId, Node.NodeType nodeType, String testCaseName) throws Exception Returns the List of TestCaseValidationStep objects with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseName, nodeId of nodeType.
Specifying the testCaseName, nodeId, nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.- Parameters:
nodeId- intnodeType- Node Object - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- String- Returns:
- List of TestCaseValidationStep Objects
- Throws:
Exception- Since:
- 7.0
-
getValidationStep
public TestCaseValidationStep getValidationStep(int testCaseId, String validationStepName) throws Exception Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId, validationStepName.
Specifying the testCaseId, validationStepName are mandatory.- Parameters:
testCaseId- intvalidationStepName- String- Returns:
- TestCaseValidationStep Object
- Throws:
Exception- Since:
- 7.0
-
getValidationSteps
Returns the List of TestCaseValidationStep objects with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId.
Specifying the testCaseId is mandatory.- Parameters:
testCaseId- int- Returns:
- List of TestCaseValidationStep Objects
- Throws:
Exception- Since:
- 7.0
-
getValidationStepById
Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified validationStepId.
Specifying the validationStepId is mandatory.- Parameters:
validationStepId- int- Returns:
- TestCaseValidationStep Object
- Throws:
Exception- Since:
- 7.0
-
deleteTestCase
Removes the TestCase of the specified testCaseId. All the details related to that particular testCase are deleted.
Specifying the testCaseId is mandatory.- Parameters:
testCaseId- int- Returns:
- RequestStatus Object - Returns True if TestCase is deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteTestCases
Removes the TestCases of the specified List of testCaseId's. All the details related to those particular testCases are deleted.
Specifying the List of testCaseId's are mandatory.- Parameters:
testCaseIds- List of testCaseIds- Returns:
- RequestStatus Object - Returns True if TestCases are deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteValidationStep
public RequestStatus deleteValidationStep(int nodeId, Node.NodeType nodeType, String testCaseName, String stepName) Removes the ValidationStep of the specified stepName, testCaseName, nodeId, nodeType. All the details related to those particular stepName are deleted.
Specifying the testCaseName, stepName, nodeId and nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, subjectId or environmentId.- Parameters:
nodeId- intnodeType- Node Object - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringstepName- String- Returns:
- RequestStatus Object - Returns True if ValidationStep is deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteValidationSteps
public RequestStatus deleteValidationSteps(int nodeId, Node.NodeType nodeType, String testCaseName, List<String> stepNames) Removes the ValidationSteps of the specified List of stepNames, testCaseName, nodeId, nodeType. All the details related to those particular stepNames are deleted.
Specifying the testCaseName, stepNames, nodeId and nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, subjectId or environmentId.- Parameters:
nodeId- intnodeType- Node Object - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringstepNames- List- Returns:
- RequestStatus Object - Returns True if ValidationSteps are deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteValidationSteps
Removes the ValidationSteps of the specified testCaseId. All the details related to the particular testCaseId are deleted.
Specifying the testCaseId is mandatory.- Parameters:
testCaseId- int- Returns:
- RequestStatus Object - Returns True if ValidationSteps are deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteValidationStep
Removes the ValidationStep of the specified testCaseId and stepName. All the details related to the particular testCaseId are deleted.
Specifying the testCaseId and stepName are mandatory.- Parameters:
testCaseId- intstepName- String- Returns:
- RequestStatus Object - Returns True if ValidationStep is deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteValidationSteps
Removes the ValidationSteps of the specified testCaseId and List of stepNames. All the details related to the particular testCaseId are deleted.
Specifying the testCaseId and List of stepNames are mandatory.- Parameters:
testCaseId- intstepNames- List of stepNames- Returns:
- RequestStatus Object - Returns True if ValidationSteps are deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteValidationStep
Removes the ValidationStep of the specified validationStepId. All the details related to the particular validationStepId are deleted.
Specifying the validationStepId is mandatory.- Parameters:
validationStepId- int- Returns:
- RequestStatus Object - Returns True if ValidationStep is deleted successfully, otherwise returns False.
- Since:
- 7.0
-
deleteValidationSteps
Removes the TestSteps of the specified List of stepIds. All the details related to those stepIds are deleted.
Specifying the List of stepIds are mandatory.- Parameters:
stepIds- List- Returns:
- RequestStatus Object - Returns True if ValidationSteps are deleted successfully, otherwise returns False.
- Since:
- 7.0
-
addTestCaseAs
public String addTestCaseAs(int nodeId, String nodeType, String testCaseObjJson, String outputFormat) TestCase will be added for the specified nodeId of nodeType with the details given in TestCase Object.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId or mapId or tableId.
Specifying the nodeType, nodeId and testCaseName in TestCase Object are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseObjJson- String - TestCase ObjectoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestCase is added Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'testCaseObjJson' JSON :
{
"testCaseTypeId": "",
"priorityName": null,
"lastModifiedDateTime": "",
"attachFile": null,
"approvedBy": "",
"docMode": "",
"subjectId": "",
"saveFilePath": "",
"priorityId": "",
"testDocApprovalDate": "",
"testDocObject": "",
"approved": "false",
"validationStepMap": {},
"documentLink": "",
"testCaseLevel": "",
"approvalFlag": "",
"testDocId": "",
"validExcelCase": false,
"testDocType": "",
"statusId": "",
"expectedResult": "",
"testcaseLabel": "",
"modifiedDate": "",
"mapId": "",
"extendable": "false",
"projectName": "",
"projectId": "",
"testCaseId": "",
"actualResult": "",
"attachDoc": "",
"description": "",
"testCaseComments": "",
"validationStepsList": [],
"testSQLScript": "",
"testDocOwner": "",
"testStepComments": "",
"testTypeName": null,
"statusName": null,
"modifiedBy": "",
"documentStatus": "",
"testCaseName": "",
"mapName": "",
"excelInvalidRows": null,
"objectId": "",
"subjectName": "",
"testDocIntededUseDescr": "",
"isCopied": false,
"testCaseLabel": "",
"externalTestcaseId": null,
"message": "",
"objectName": "",
"testDocName": "",
"successOption": ""
} - Since:
- 7.0
-
addValidationStepAs
public String addValidationStepAs(int nodeId, String nodeType, String testCaseName, String validationStepJsonObj, String outputFormat) ValidationStep will be added for the specified testCaseName of nodeId, nodeType with details given in TestCaseValidationStep Object.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId or mapId or tableId.
Specifying testCaseName, nodeId, nodeType and validationStepName are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringvalidationStepJsonObj- TestCaseValidationStep ObjectoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationStep is added Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'validationStepObjJson' JSON :
{
"stepName": "",
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
} - Since:
- 7.0
-
addValidationStepsAs
public String addValidationStepsAs(int nodeId, String nodeType, String testCaseName, String validationStepsJsonArray, String outputFormat) ValidationSteps will be added for the specified testCaseName of nodeId, nodeType with details given in the List of TestCaseValidationStep Objects.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId or mapId or tableId.
Specifying testCaseName, nodeId, nodeType and validationStepNames are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringvalidationStepsJsonArray- List of TestCaseValidationStep ObjectsoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationSteps are added Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'validationStepsJsonArray' for this:
[
{
"stepName": "",
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
},
{
"stepName": "",
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
}
] - Since:
- 7.0
-
addValidationStepAs
public String addValidationStepAs(int testCaseId, String validationStepObjJson, String outputFormat) ValidationStep will be added for the specified testCaseId with details given in TestCaseValidationStep Object. Specifying testCaseId, validationStepName are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intvalidationStepObjJson- validationStep ObjectoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationStep is added Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'validationStepObjJson' JSON :
{
"stepName": "",
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
} - Since:
- 7.0
-
addValidationStepsAs
public String addValidationStepsAs(int testCaseId, String validationStepsJsonArray, String outputFormat) ValidationSteps will be added for the specified testCaseId with details given in the List of TestCaseValidationStep Objects.
Specifying testCaseId and validationStepName's are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intvalidationStepsJsonArray- List of validationStepsoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationSteps are added Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'validationStepsJsonArray' for this:
[
{
"stepName": "",
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
},
{
"stepName": "",
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
}
] - Since:
- 7.0
-
updateTestCaseAs
TestCase will be updated with the details specified in TestCase Object. Specifying testCaseId and testCaseName are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseObjJson- testCase ObjectoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestCase is updated Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'testCaseObjJson' for this:
{
"testCaseName": "Test case updated",
"testCaseId" : 0,
"testcaseLabel": "",
"testCaseTypeId": "",
"actualResult": "",
"attachDoc": "",
"description": "",
"testCaseLevel": "",
"testCaseComments": "",
"expectedResult": ""
} - Since:
- 7.0
-
updateValidationStepAs
ValidationStep will be updated as specified ValidationStep Object.
Specifying validationStepId is mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
validationStepObjJson- TestCaseValidationStep ObjectoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationStep is updated Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'validationStepObjJson' for this:
{
"stepName": "",
"validationStepId": ,
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
} - Since:
- 7.0
-
updateValidationStepsAs
ValidationSteps will be updated as the specified TestCaseValidationStep Objects. Specifying validationStepIds are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
validationStepsJsonArray- List - TestCaseValidationStep - ObjectsoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationSteps are updated Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'validationStepJsonArray' JSON :
[
{
"stepName": "",
"validationStepId": 0,
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
},
{
"stepName": "",
"validationStepId": 0,
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
}
] - Since:
- 7.0
-
updateValidationStepsAs
public String updateValidationStepsAs(int testCaseId, String validationStepsJsonArray, String outputFormat) ValidationSteps will be updated of the specified testCaseId, with the details specified in TestCaseValidationStep Objects.
Specifying the testCaseId and validationStepIds are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intvalidationStepsJsonArray- List - TestCaseValidationStep ObjectsoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationSteps are updated Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'validationStepsJsonArray' for this:
[
{
"stepName": "",
"validationStepId": 0,
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
},
{
"stepName": "",
"validationStepId": 0,
"comments": "",
"validationStepType": "",
"description": "",
"statusId": 0,
"expectedResult": "",
"actualResult": ""
}
] - Since:
- 7.0
-
getTestCaseAs
Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc... for the specified testCaseName present in the nodeId of nodeType.
Specifying the testCaseName, nodeId, nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestCase is returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getTestCasesAs
Returns the List of TestCase objects with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc...for the specified nodeId of nodeType.
Specifying the nodeId, nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestCases are returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getTestCasesAs
Returns the TestCases with Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc... for the specified testCaseId's.
Specifying the testCaseId's are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseIdsJson- List of TestCaseId'soutputFromat- String - Valid values: JSON or XML- Returns:
- String - If List of TestCases are returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getTestCaseAs
Returns the TestCase Details such as TestCaseId, TestCaseName, TestCaseLabel, TypeOfTesting, Description and AuditHistory etc... for the specified testCaseId.
Specifying the testCaseId is mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestCase is returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getValidationStepAs
Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId, validationStepName.
Specifying the testCaseId, validationStepName are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intvalidationStepName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationStep is returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getValidationStepAs
public String getValidationStepAs(int nodeId, String nodeType, String testCaseName, String validationStepName, String outputFormat) Returns the TestCaseValidationStep Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc... of the specified validationStepName of testCaseName present in nodeId of type nodeType.
Specifying the validationStepName, testCaseName, nodeId and nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringvalidationStepName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationStep is returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getValidationStepsAs
public String getValidationStepsAs(int nodeId, String nodeType, String testCaseName, String outputFormat) Returns the List of TestCaseValidationStep objects associated with the given testCaseName with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseName, nodeId of nodeType.
Specifying the testCaseName, nodeId, nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, mapId or tableId.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationSteps are returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getValidationStepsAs
Returns the TestCaseValidationStep objects with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified testCaseId.
Specifying the testCaseId is mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationSteps are returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
getValidationStepByIdAs
Returns the TestCaseValidationStep object with Details such as StepName, StepType, Description, ExpectedResult, ActualResult, StepComments and AuditHistory etc...of the specified validationStepId.
Specifying the validationStepId is mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
validationStepId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If ValidationStep is returned Successfully, it returns Success message, otherwise returns failure message.
- Since:
- 7.0
-
deleteTestCaseAs
Removes the TestCase of the specified testCaseId. All the details related to that particular testCase are deleted.
Specifying the testCaseId is mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestCase is deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-
deleteTestCasesAs
Removes the TestCases of the specified List of testCaseId's. All the details related to those particular testCases are deleted.
Specifying the List of testCaseIds are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseIdsJsonArray- List of TestCaseIdsoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestCases are deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-
deleteValidationStepAs
Removes the ValidationStep of the specified testCaseId and stepName. All the details of validationStep related to the particular testCaseId are deleted.
Specifying the testCaseId and stepName are mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intstepName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If validationStep is deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-
deleteValidationStepAs
public String deleteValidationStepAs(int nodeId, String nodeType, String testCaseName, String stepName, String outputFormat) Removes the ValidationStep of the specified stepName, testCaseName, nodeId, nodeType. All the details related to those particular stepName are deleted.
Specifying the testCaseName, stepName, nodeId and nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, subjectId or environmentId.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringstepName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If validationStep is deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-
deleteValidationStepsAs
public String deleteValidationStepsAs(int nodeId, String nodeType, String testCaseName, String stepNamesJsonArray, String outputFormat) Removes the ValidationSteps of the specified List of stepNames, testCaseName, nodeId, nodeType. All the details related to those particular stepNames are deleted.
Specifying the testCaseName, stepNames, nodeId and nodeType are mandatory.
nodeType can be either MM_PROJECT, MM_MAPPING, SM_TABLE. Depending upon the nodeType, nodeId will be either projectId, subjectId or environmentId.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeId- intnodeType- Node Object - valid Types - MM_PROJECT, MM_MAPPING, SM_TABLE.testCaseName- StringstepNamesJsonArray- List of stepNamesoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If validationSteps are deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-
deleteValidationStepsAs
Removes the ValidationSteps of the specified testCaseId. All the details related to the particular testCaseId are deleted.
Specifying the testCaseId is mandatory.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
testCaseId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If validationSteps are deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-
deleteValidationStepsAs
public String deleteValidationStepsAs(int testCaseId, String stepNamesJsonArray, String outputFormat) Removes the ValidationSteps of the specified testCaseId and List of stepNames. All the details related to the particular testCaseId are deleted.
Specifying the testCaseId and List of stepNames are mandatory.- Parameters:
testCaseId- intstepNamesJsonArray- List of stepNamesoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If validationSteps are deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Example for this:
["step1","step2","step3"] - Since:
- 7.0
-
deleteValidationStepByIdAs
Removes the ValidationStep of the specified validationStepId. All the details related to the particular validationStepId are deleted.
Specifying the validationStepId is mandatory.- Parameters:
validationStepId-outputFormat- String - Valid values: JSON or XML- Returns:
- String - If validationStep is deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-
deleteValidationStepsAs
Deletes the TestSteps for the specified List of stepIds.
outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
stepIdsJsonArray- String - List of stepIds.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If TestSteps are deleted Successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 7.0
-