Forum Discussion

snatarajan's avatar
2 years ago

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"
}
 
Thanks in advance!

1 Reply

  • MisterB's avatar
    MisterB
    Champion Level 3

    Hi.  I'm not using the API much at the moment - not enough to be able to offer advice - but the documentation is not as helpful as I would like it to be.  There are others in the community with API experience but am not sure how long you might wait for a response.

     

    You could contact the SmartBear support team here for advice