Hi,
I am currently trying to use ZAPI to update execution status of issues (for example, updating it from UNEXECUTED to PASSED).
Unfortunately, all my tries have been unsuccessful.
Could you indicate me the different steps I need to fill or maybe an example of what to do to update those execution statuses ?
Regards,
Adrien
Hi Adrien,
To update execution status of issues, you have to follow the below steps.
GET - http://localhost:8080/rest/zapi/latest/execution?issueId=113884
PUT - http://localhost:8080/rest/zapi/latest/execution/16944/execute Request Body : { "status" : 2 }
If you still not able to update the status or have any issues using API, please submit a case through our support portal https://support.getzephyr.com. On this page register and click on Submit a case icon to create a support ticket.
Regards,
Zephyr Support
I am still getting an error: how did you derrive:issueId=113884
sorry but i am new to Zephyr
i use Advance rest client extension in chrom to send request
below is the response
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops, you've found a dead link. - JIRA</title><script type="text/javascript">contextPath = "";</script><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><!--[if lt IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie.css' media='all'><script src='/static-assets/metal-all-ie.js'></script><![endif]--><!--[if IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie9.css' media='all'><![endif]--><meta name="decorator" content="none" /></head><body class=" error-page error404"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Oops, you've found a dead link.</h1><ul><li>Go back to the <a href="javascript:window.history.back()">previous page</a></li><li>Go to the <a href="/secure/MyJiraHome.jspa">Home Page</a></li></ul></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body">
<ul class="atlassian-footer">
<li>
Atlassian JIRA <a class="seo-link" href="https://www.atlassian.com/software/jira">Project Management Software</a>
<span id="footer-build-information">(v6.3.15#6346-<span title='dbc023dd75cecacf443c4b235f66124b15f5c5fe' data-commit-id='dbc023dd75cecacf443c4b235f66124b15f5c5fe}'>sha1:dbc023d</span>)</span>
</li>
<li>
<a id="about-link" href="/secure/AboutPage.jspa">About JIRA</a>
</li>
<li>
<a id="footer-report-problem-link" href="/secure/CreateIssue!default.jspa">Report a problem</a>
</li>
</ul>
<div id="footer-logo"><a href="http://www.atlassian.com/">Atlassian</a></div></section></footer><!-- #footer --></div><!-- #page --></body></html>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using the approach told by you and it is not working for me. This is the output that I am getting.
HTTP/1.1 405 Method Not Allowed
X-AREQUESTID: 659x6848x1
X-ASEN: SEN-L10209903
Set-Cookie: JSESSIONID=B3AF12B5CE2DF309984364292E256520;path=/;HttpOnly
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=B3V4-FQVS-53YI-3FBV|e86b4eba01681208430efe329935d48938583151|lin;path=/
X-ASESSIONID: qxjmhv
X-AUSERNAME: anand.aggarwal%40testingxperts.com
Allow: HEAD,DELETE,POST,GET,OPTIONS
X-Content-Type-Options: nosniff
Content-Encoding: gzip
Vary: User-Agent
Content-Type: text/html;charset=UTF-8
Date: Tue, 29 Aug 2017 05:29:16 GMT
X-Cache: MISS from damco.local.localdomain
X-Cache-Lookup: MISS from damco.local.localdomain:3128
Transfer-Encoding: chunked
Via: 1.1 damco.local.localdomain (squid/3.5.20)
Connection: keep-alive
Help on this will be apprecaited.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the method you are using, you might be using "get". change it to "put" to update the results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yo presento el mismo error:
PUT: http://jira.XXXXXXX.com:80/rest/zapi/latest/execution/141/execute
Body:
{"status":3}
141 es el ID de la ultima ejecución, lo valido en JIRA y esta correcto.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have tried this approach several times but I keep getting an error response message:
{
"error": "Error in creating Execution, please check value of 10744 and retry"
}
Any help would be greatly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
GET - http://localhost:8080/rest/zapi/latest/execution?issueId=113884
PUT - http://localhost:8080/rest/zapi/latest/execution/16944/execute Request Body : { "status" : 2 }
"16944" must be the id of test execution and not any other id. You are supplying a wrong a test execution id
NOTE: IssueId= 113884 is the Test id here and "16944" is the test execution Id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.