Is there a way to gather the individual test steps results for an executed test case using the Zapi?

Mi5trB November 22, 2019

Hi,

 

I am trying to create a report that includes the pass/fail of each individual test step of a test case execution. I am able to gather the executed Zephyr test case details but I can't find the results of each test step. Is there a way I can gather this information using Zapi?

Executed Test Case Data:
"id": 891,
"orderId": ,
"cycleId": ,
"cycleName": "",
"issueId": "",
"issueKey": "",
"issueSummary": "",
"labels": [

],
"issueDescription": "<p>test</p>",
"projectKey": "",
"projectId": ,
"project": "",
"projectAvatarId": ,
"priority": " ",
"components": [

],
"versionId": -1,
"versionName": "Unscheduled",
"status": {
"id": 1,
"name": "PASS",
"description": "Test was executed and passed successfully.",
"color": "#75B000",
"type": 0
},
"executedOn": "12/Nov/19",
"creationDate": "12/Nov/19",
"comment": "",
"htmlComment": "",
"executedBy": "",
"executedByUserName": "",
"executionDefects": [

],
"stepDefects": [

],
"testDefectsUnMasked": [

],
"stepDefectsUnMasked": [

],
"executionDefectCount": 0,
"stepDefectCount": 0,
"totalDefectCount": 0,
"executedByDisplay": "",
"assignee": "",
"assigneeUserName": "",
"assigneeDisplay": "",
"canViewIssue": true
}

2 answers

1 accepted

0 votes
Answer accepted
Sushma.Bhargav November 28, 2019

@Mi5trB - Please try using the Zephyr API documentation for getting the Test Step results 

https://zfjcloud.docs.apiary.io/#reference/stepresult/get-stepresult/get-stepresult

0 votes
Aaron Martin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 17, 2020

Regarding Zephyr for Jira Server:  

Does the Server edition have an equivalent endpoint?

I cannot find test results or step results documented.  What am I missing?

https://getzephyr.docs.apiary.io/#

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events