snatarajan
2 years agoMember
Unable to update test case execution status using the "Create test execution" Zephyr Scale Cloud API
Unable to update test case execution status using the "Create test execution" Zephyr Scale Cloud API
Could some one please tell me how we could update the test execution status for a given test case in a test cycle as Pass or Fail via Zephyr Scale Cloud API?
Any sample api request would help.
Request response below:
Request:
{
"projectKey": "PRJ",
"testCaseKey": "PRJ-T3",
"testCycleKey": "PRJ-R1",
"statusName": "Low",
"testScriptResults": [
{
"statusName": {
"value": "Pass"
},
"actualEndDate": {
"value": "2022-11-27T13:15:13Z"
},
"actualResult": "User logged in successfully"
}
],
"environmentName": "Chrome Latest Version",
"actualEndDate": "2022-12-01T15:41:09.447Z",
"executionTime": 120000,
"executedById": "xyz",
"assignedToId": "xyz",
"comment": "Test passed"
}
Response:
{
"errorCode": 400,
"message": "Invalid Payload"
}
This did not help: https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Test-Executions/operation/createTestExecution
Thanks in advance!