Zephyr Test Case status update through ZAPI.


I have created My own ZAPI client class which can update Zephyr testcase status using ZAPI but problem is:

  • If my TestCase is "PASS" in zephyr and i am going to update its status again as "PASS" then it is not happen. And If my TestCase is "PASS" in zephyr and i am going to update its status as "FAIL" then it is successfully done.

1 answer

Hi Sopan
Thank you for using Zephyr.With regards to your query in ZAPI as per the test execution flow,if you are changing the status of an existing executed Test Case and if the new execution status is the same as that of old one you would get a message that "The Test case is already in <XXXX> status".DId you receive any error message or similar message when you changed it from PASS to PASS.
As it is by design if you change the status to another one it will be successfully done.Kind;ly send us the error message or any other relevant message when you performed the first task.
Zephyr Support

Hi Arun, Thanks for your response actually there is NO error message.

Hi @Arun Ravindran Can you please tell me how can i update particular Test Case status using ZAPI. For ex: I have 4 Test Cases but i want to update status of only 2 Test Case so how it can be done !!!

Hi Sopan You can refer our apiary document http://docs.getzephyr.apiary.io/#executionresourceapis And you can update the status by passing the execution id as mentioned in the API /jira_server/rest/zapi/latest/execution/{id}/quickExecute Also Sopan,it would be better if you sign up to our support site and raise a ticket with us a sour ticketing system is highly responsive and our ZAPI experts will clear all your queries via ticket. Please sign up to our support site "https://support.getzephyr.com/hc/en-us"; and use the option "Submit a case" to raise a ticket with us and an engineer will reach out to you soon Thanks ZephyrSupport

Hi ,

Is there any way i can update multiple testcases status at a time using zapi.

currently i using 

jira_server/rest/zapi/latest/execution/{id}/execute, but with this i am not able to update teststatus of more than 1 testcase at a time

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,950 views 19 22
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you