Back to QMetry All Products Help Page
How to update Test Case execution result in Bulk - 3x Server/DC
Kindly follow the below steps for updating the Test Case execution results in Bulk.
Step 1:
Method: GET
Authorization: Basic Auth
URL: {JIRA base url}/rest/qmetry/latest/testrun/testexecution/{testRunIssueId}
Required request parameters:
{"projectId":"[PROJECT_ID]","offset":0,"automationRun":false,"whereClause":[],"assignedToUsers":[],"executionResult":[],"testScenarioWithDefectRequired":false}
From the response, get the value of “resultId“ parameter.
Step 2:
Method: PUT
URL: {JIRA base url}/rest/qmetry/latest/testrun/{testRunId}/bulkupdateresults
Required request parameters:
{ "tcResultIds": [ 1, 2, 99, 102 ], "executionResultId": "5", "isAs": true, "isSu": false }
tcResultIds: resultIds which was got from the previous API.
executionResultId : Id of execution result.
isAs : If they want to update the execution result of the test casse. true/false.
isSu : If they want to update the execution result of test steps. true/false.
Output:
The output of the above API returns a 200 code which means that the execution status is updated in bulk succesfully.
{
"success": true,
"result": {
"autoUpdateResult": true
}
}
Back to QMetry All Products Help Page