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:

--

--

No responses yet