Cannot change status of test execution
Hi,
We are trying to, pramamaticatly, and following the "Zephyr Essential DC REST API" to execute a test and update the status in our JIRA DC, but we are not able to do it. This is what we did:
https://support.smartbear.com/zephyr-essential-dc/docs/en/zephyr-squad-server-rest-api.html
0.- Create a Test JIRA
issueKey = "TEST-0001"
issueId = "2944969"
1.- Add steps to a test
stepID = "1415912"
2.- Create test cycles
cycleId = "14931"
3.- Add folders to a cycle
folderId = "33735"
4.- Add tests to a cycle
executionId = "3392716"
5.- Get test execution properties
{"execution":{"id":3392716,"orderId":3179332,"executionStatus":"4","executionWorkflowStatus":null,"executedOn":"12/Jul/25 8:13 AM","executedOnVal":1752329580000,"executedBy":"xxxxxx","executedByDisplay":"XXXX XXXXX","comment":"","htmlComment":"","cycleId":14931,"cycleName":"Generic PD Test Cycle Saturday","versionId":-1,"versionName":"Unscheduled","projectId":20442,"createdBy":"xxxxx","createdByDisplay":"XXXXX XXXXX","createdByUserName":"xxxxxxx","modifiedBy":"xxxxxx","createdOn":"12/Jul/25 7:58 AM","createdOnVal":1752328680000,"issueId":2944969,"issueKey":"TEST-0001","Feature E Test 2 - Automated","issueDescription":"<p>Test Description<\/p>","label":"","component":"","projectKey":"TEST","canViewIssue":true,"isIssueEstimateNil":true,"isExecutionWorkflowEnabled":true,"isTimeTrackingEnabled":true,"executionDefectCount":0,"stepDefectCount":0,"totalDefectCount":0,"customFields":"{}"}}
6.- Update test step status (Trying with stepId/executionId)
stepID = "1415912"
status = "1"
{"error":"Workflow state is completed, data cannot be modified."}
executionId = "3392716"
status = "1"
{"generic":"Error executing test. Please correct the input and try again."}
7.- Update test execution status
Id = 205, Status = WaitingForActivation
What are we doing wrong?
Any help would be appreciated.
Francisco