Update Test case status using ZAPI

aabir.daneshyar@optimusinfo.com January 8, 2018

Hello,

I know that this question has been asked before but none of the solutions worked for me. Documentation did not help either.

I have a simple task to do. Change the status of the test case - PASS or FAIL using ZAPI.

 

I went through the following links. But problem was not solved -

https://getzephyr.docs.apiary.io/#reference/executionresource 

https://support.getzephyr.com/hc/en-us/sections/200565819-Developer-Zone-ZAPI

https://community.atlassian.com/t5/Marketplace-Apps-questions/How-to-update-the-execution-status-of-Test-type-issues-and-test/qaq-p/105272

 

Now, in the above  thread it was suggested that - Use Get all executions by Issue ID API which gives all executions of that issue with id's as result.

GET - http://localhost:8080/rest/zapi/latest/execution?issueId=113884

Now, where did we get the this number 113884 ?

 

I also executed -

PUT - https://aabirdaneshyar.atlassian.net/rest/zapi/latest/execution/0001515342980260-242ac112-0001/execute

Body:

{
"status": "1"
}

But got 403 Forbidden. 

 

Can anybody please help me out on this.

 

Thanks

 

 

3 answers

0 votes
KumarKaran July 11, 2018

Hi Michael,

Can you please share the steps for updating the test case status using ZAPI over cloud.

I am using the trial version of Zephyr and ZAPI in Jira.

Thanks,

Karan

Lakshminarayana Bharadwaj November 4, 2018

Hi KumarKaran,

Did you find out the way to update the test case status.

As I know we can't update for trial version of Zephyr using ZAPIs.

Thanks,

Bharadwaj.

0 votes
Michael May 11, 2018

Finally I figured out.  

Arun_VS July 24, 2018

How?

0 votes
Michael May 2, 2018

Hi aabir.daneshyar@optimusinfo.com,

I meet the same problem as you, did you get your problem resolved. If yes could you share it to me? Thanks a lot.

Cheers,

Michael

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events