TA #5 —Automatic Test Run status update using JIRA/XRay API using automation framework

Nazar Khimin
Dec 14, 2021

--

API calls:

  1. Retrieve information of test runs that are in test execution
curl -H "Content-Type: application/json" -X GET -u <jira_user_username>:<password> https://<JIRA_PORTAL>/jira/rest/raven/1.0/api/testexec/<TEST_EXECUTION_ISSUE-KEY>/test

Sample Response

[
{
"id": 10444291,
"status": "TODO",
"key": "<TEST_RUN_ISSUE_KEY>",
"rank": 1
}
]

2. Do update of Test Run using above Test Run Id

curl -H "Content-Type: application/json" -X PUT -u <jira_user_username>:<password> https://<JIRA_PORTAL>/jira/rest/raven/1.0/api/testrun/10368224/status?status=PASS

XRay API reference:

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response