Forum Discussion

AcidL1zard's avatar
3 months ago

Update test execution via API

Hello, I'm using the Zephyr APIs to automate the execution of test cases within a cycle phase. The API I'm using to update the test case execution is:
PUT /flex/services/rest/latest/execution/bulk?scheduleids=83206&status=1&testerid=247&tcrCatalogTreeId=29540
with the following payload:

{ "ids": [77276], "selectedAll": 1, "teststepUpdate": true, "teststepStausId": 1 }

I know that the scheduleId corresponds to the releaseTestSchedule, and I was able to retrieve it using the API GET /flex/services/rest/latest/execution/expanded?ids={schedule_id}. The issue I'm facing is that I receive the following error:

{ "errorCode": "global.unknown" }

without any further information. Perhaps I am using the wrong parameters or the wrong API. I would appreciate it if you could clarify which parameters should be included in the JSON, how they can be retrieved, and what the correct path variables are to use. Thank you in advance.

No RepliesBe the first to reply