Zephyr Cloud API - automated creation of execution
Dear Community, I'm new to Zephyr cloud so pardon is the issue seems obvious to you. I've been using the ZAPI to certain endpoints as described in the documentation so far successfully but encountered a problem with some. A most import feature we would like to implement is automated creation/update of test execution, not by a test manager, but ourselves using the code itself at the SetUp/TearDown stages of the test. For this end I've been using the "Create Execution" and "Update Execution" APIs. I was using them them same way I've been using the other endpoints and according to the documentation, but for the execution creation I have been receiving an error: Internal Server Error{"errorType":"ERROR","clientMessage":"We encountered some problems during processing this request. Please try again!","errorCode":104} Searching the web I've seen this error has risen more than a couple of times and probably having something to do with the JWT generation but I'm not certain of that as i've followed the instruction for JWT generation to the letter. the URL for request (GET): https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/execution request headers: { "Authorization": "JWT eyJ0...Xu0I", "Content-Type": "application/json", "zapiAccessKey": <Zephyr access key> } request body (json): {"status": {"id": 1}, "projectId": <project_id>, "issueId": <issue_id>, "versionId": <version_id>} having said that, I must emphasize that the update execution API does indeed work when manually creating the execution using the UI and just updated the execution with the executionId. Sincerely hoping for some intake on that. edit: neglected to mention that trying to use the "try it now" console option from the official documentation with the example body and default headers, yields the exact same results - error 104 (https://zfjcloud.docs.apiary.io/#reference/execution/add-tests-to-folder/create-execution?console=1)Solved3.7KViews0likes6CommentsAPI Resource housing the `fileid` of attachments
Via the API where can one find the `fileid` for execution attachments? Currently, I am able to access the attachments via http://localhost:2990/jira/rest/zapi/latest/attachment/fileid/file which I access the `fileid` via Jira web app. But I have to manually find the `fileid` for each attachment. What I need to be able to accomplish is making a REST call that programmatically returns the `fileid` so that I can automate the attachment exporting. But I have yet to find the API resource that stores this information for extraction. More in-depth overview: I am building an automated process that iterates over the entire Jira space, exports the execution attachments and stores them for later processing. Resources & Versions Jira Server 8.13.1 Zephyr for Jira 5.6.4 Python 3.7713Views0likes0CommentsRetrieving Zephyr Test Execution HISTORY via ZAPI
Hi All I can see that the history of an individual execution is retained, and it can be shown on the screen when you review a particular execution (see attachment). I would like to be able to access this information via ZAPI, but I can't work out if this is possible. Could you advise please Steve (PS - this is not Zephyr Standalone - it is Zephyr for JIRA - but I could not find that in the dropdown list)1.5KViews0likes1CommentUpgraded Zapi now test case count list has mismatch. Also Fetching data from index error message
Good Morning, We have submitted a ticket to Zephyr early yesterday and followed up this morning. We have not heard back yet. Recently upgraded the Zapi and Zephyr and our users noticed the test case count list mismatch. We would do a zephyr hard index of the project the missing test case would display along with duplicates but when executing the test case the error message of "Fetching data from index" would populate. We have done a jira re-index and zephyr hard index for all projects but still does not seem to resolve the issue. Reproduce: Test--->Plan Test Cycle-->Phase2 Pilot1-->Phase2 Pilot1 Must Have(Cycle name)-->Click on Header(Phase 2 Pilot1 Must Have) the count in the cycle is 44, but when click on header count is only 14, 30 are missing... I tried zephyr all project hard re-index. was doing the cleanup cycle but left the page - don't know if it is still running? now team is seeing this error: Error in fetching data from indexes. Displaying mandatory results from DB. This is the error I'm receiving. What should we do? Jira - v7.10.0#710001-sha1:0399717 (Server) Zephyr - 4.0.5.40507892 Zapi - 2.7.1.271077882.1KViews0likes3Comments