Usage of REST API in Zephyr Squad Server
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Usage of REST API in Zephyr Squad Server
Hi,
I am trying to use the Rest API provided by the product "Zephyr Squad - Test Management for Jira Data Center Version 6.2.3".
I have installed a Jira+Zephyr test instance to write a script to upload test results from a proprietary test automation framework.
Basically I just want to upload logfiles and screenshots and alike as a prove of evidence for test execution.
I am aware that Jira and Zephyr is moving from on-premise into cloud.
The productive version of the Zephyr Squad Server we are using is:
Zephyr for Jira - Test Management for JIRA (Server) 6.1.1
I must confess that I am not very clear with the different version/editions avaliable on-premise as well in the cloud.
My understanding is that both mentioned Zephyr versions offer a REST API.
My questions are:
- where to start, i.e. is there getting started example how to generate credentianls for one of the two mentioned zephyr versions (6.1.1, 6.2.3) and execute a api call?
Invoking: http://localhost:8080/jira/rest/zapi/latest results in 404
- when ends support for "Zephyr for Jira - Test Management for JIRA (Server) 6.1.1"
I know the first question is not very specific, I am just confused where to get the information due to the different product versions. Just need a hint.
Best regards,
Raphael
Solved! Go to Solution.
- Labels:
-
APIs
-
documentation
-
Reports
-
Server
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using our productive instance https://xxx/rest/zephyr/latest/application.wadl yields information of the provided api calls.
But https://xxx/rest/zephyr/latest/user for example returns:
<status>
<status-code>404</status-code>
<message>null for uri: https://xxx/rest/zephyr/latest/user</message>
</status>
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can retrieve information now using a browser using a GET via "http://localhost:8080/rest/zephyr/latest/analytics?event=1&projectId=2&versionId=3&cycleId=4", if I am looged in the browser.
I am trying to get the same information using a script e.g. the following but get 401.
import requests
api_url = "http://localhost:8080/rest/zephyr/latest/analytics?event=1&projectId=2&versionId=3&cycleId=4"
api_url = "http://localhost:8080/rest/zephyr/latest/application.wadl"
response = requests.get(api_url)
print(response.status_code)
print(response)
#response.json()
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Post is obsolete. Problem might be that "&" character has to be escaped. Closing Post.
