Update for our Zephyr for Jira Server/DataCenter customers : Our team is working on a major version release of Zephyr for Jira to be compatible with Jira 8 .The tentative ETA for the release of this compatible version is by end of March 2019.Please watch this space and anticipate further notifications from the Zephyr team on the updates with regards to the release of the same.Till then we suggest you to use lower version of Jira for seamless operations of Zephyr plugin.For any further feedback , follow up queries or suggestions kindly 'Submit a Ticket' with us.
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