We are performing a phasewise scheduled maintenance of our Zephyr for Jira Cloud and Capure for Jira Cloud instances to be compliant with GDPR- Atlassian privacy policy (https://www.atlassian.com/trust/privacy) .Please expect a downtime during this phase of maintenance from Saturday, 01/12/2019, 9:30 PM PST up until Sunday 01/13/2019, 9:30 AM PST.This will be for our phasewise deployment of infrastructure changes, migration utility verification and customer data migration, as part of our GDPR and Atlassian privacy policy compliance efforts.For any further queries regarding this please rasie a ticket by using the option 'Submit a Ticket' below
Support | Zephyr



Get test steps in JSON format via REST API

Created on

Problem:

How to get test steps in JSON format via REST API

Fix:

Zephyr 4.7 allows you to get the Zephyr Test Steps in JSON format using the Rest API. To achieve this you need to pass the path parameter "teststepasjson=true".

You can use any Rest client to fire the below API to get the Teststeps in JSON format. It will show you the steps in response body as in the picture :


Example :


API :

http://<Your Zephyr instance IP:port number>/flex/services/rest/latest/testcase?id=1&teststepasjson=true

Here the "id" is the tcr_catalog_tree_testcase(TCT) id of the particular testcase with testcase.id =3

Refer  How To View Hidden IDs Of Various Components In ZEE to get these id's.

Response : 

 

You can also get the same result by passing the direct testcase id :

API :

http://<Your Zephyr instance IP:port number>/flex/services/rest/latest/testcase?testcase.id=1&teststepasjson=true

Here the "testcase.id" is the id of the particular testcase visible in TCR module.

Response : 

 


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk