Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create zephyr test execution using postman api in jira?

sai chinamuthevi
Contributor
January 30, 2022

i have created a body like this 

 

{

  "cycleId": "-1",

  "issueId": "1821331",

  "projectId": "24771",

  "versionId": "10001",

  "assigneeType": "assignee",

  "assignee": "",

  "folderId": ""

}

 

even after getting 200 response test execution was not created in jira issue 

1 answer

1 accepted

0 votes
Answer accepted
Zephyr QA January 31, 2022

Hi @sai chinamuthevi 

can you please use the below API for creating execution , if you are using  Zephyr Cloud:

https://zfjcloud.docs.apiary.io/#reference/execution/add-tests-to-folder/create-execution

Sample request:

POST /connect/public/rest/api/1.0/execution HTTP/1.1
Host: prod-api.zephyr4jiracloud.com
Authorization: JWT XXXXX(using script)

zapiAccessKey:  Access key copy from zephyrsquad menu
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: b5a56b25-a61b-befd-1804-32cd35398d07

{

"cycleId": "-1",

"issueId": "10414",

"projectId": "10009",

"versionId": "-1",

"assigneeType": "",

"assignee": "",

"folderId": ""

}

 

Sample Response:

{
"warningMessage": null,
"originMessage": null,
"execution": {
"id": "19b7f4e3-9b28-467c-a00b-6a4dbfa97b8b",
"issueId": 10414,
"versionId": -1,
"projectId": 10009,
"cycleId": "-1",
"orderId": 1,
"createdBy": "XXXXX",
"createdByAccountId": "XXXXX",
"status": {
"name": "UNEXECUTED",
"id": -1,
"description": "The test has not yet been executed. edited",
"color": "#A0A0A0",
"type": 0
},
"cycleName": "Ad hoc",
"creationDate": 1643623868441,
"executedByZapi": true,
"folderId": "",
"zfjIndexType": "execution",
"issueTypeId": 10005,
"projectType": "classic",
"issueIndex": 10414,
"projectCycleVersionIndex": "10009_-1_-1",
"executionStatusIndex": -1,
"projectIssueCycleVersionIndex": "10009_10414_-1_-1"
},
"issueKey": "Z8-56",
"issueLabel": "BDD_Scenario",
"component": null,
"issueSummary": "test3",
"issueDescription": "",
"projectName": "Zsqaud 802",
"versionName": "Unscheduled",
"priority": "Lowest (migrated)",
"priorityIconUrl": null,
"executedByDisplayName": null,
"assigneeType": null,
"assignedToDisplayName": null,
"testStepBeans": null,
"defectsAsString": "",
"projectKey": "Z8",
"plannedExecutionTimeFormatted": null,
"actualExecutionTimeFormatted": null,
"executionWorkflowStatus": null,
"workflowLoggedTimedIncreasePercentage": null,
"workflowCompletePercentage": null,
"versionReleased": false,
"customFieldValuesAsString": null,
"viewIssuePermission": true,
"executionWorkflowEnabled": false
}

 

if you need more details please reach out to zephyr support : 

https://support.smartbear.com/zephyr-squad/message/?product=zephyr_for_jira_cloud

Thanks,

Zephyr QA

sai chinamuthevi
Contributor
January 31, 2022

we are using zephyr squad and our's is data center not cloud.

after executing them in data center getting response 200 but no execution has been created.

Like • Jeanette likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events