We released a version in our Capture Cloud servers earlier today which has the fix for wiki formats in Test Session and also issue with using Capture for users using Gsuite SSO in their Jira set up .Please click here for instructions on how to use Capture with Gsuite SSO.Please use the option to ‘Submit a Ticket' below if you are still encountering any issues.
Support | Zephyr



No Data returned - Test step Id's are not created once the Execution is created.

Created on

Problem :

Not able to get test step id's using ZAPI after an execution is created unless the execution is viewed from the JIRA UI 

Fix : 

This is done for performance reasons and also to avoid database clutter unless steps execution is really needed.
However, to provide a way to create steps, getExecutionById API has been modified. You can pass checksteps to expand field.

  • After test is added to a cycle, get the execution ID and fire the below API to create step Id's.

Sample cURL:

F:>curl -u "admin":"password" --request GET "http://zephyr.example.com/rest/zapi/latest/execution/309?expand=checksteps
Response :
{"execution":{"id":309,"orderId":302,"executionStatus":"-1","comment":"","htmlComment":"","cycleId":9,"cycleName":"Release 2","versionId":10301,"versi
onName":"QA Release","projectId":10300,"createdBy":"vm_admin","modifiedBy":"vm_admin","issueId":14302,"issueKey":"JIRA-185","summary":"new test zapi",
"label":"","component":"","projectKey":"JIRA","totalDefectCount":0,"executionDefectCount":0,"stepDefectCount":0}}

  • Once you fire the above API the stepresult/stepid will be created.

Sample cURL: 

F:>curl -u "admin":"password" --request GET "http://zephyr.example.com/rest/zapi/latest/stepResult?executionId=309"
Response :
[{"id":99,"status":"-1","htmlComment":"","executionId":309,"stepId":460,"defects":[]},{"id":100,"status":"-1","htmlComment":"","executionId":309,"step
Id":461,"defects":[]}]

These API's are fired in order when they are implemented in any program for automation.

 


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk