server version: uploading test results to Zephyr Scale via the automation API
Hello! I'm using Zepyhr Scale Server and I would like to upload to Zephyr the results of my automation testsuite made with pytest. I've tried this POST request: post(url="https://{my-jira-host}/rest/atm/1.0/automation/execution/{projectKey}", auth=({my_username}, {my_password}), files={"file":open("test_results.zip","rb")}) but it doesn't work because the response is "errorMessages":["Invalid Custom Format JSON file"]}'. I'm uploading a zip file containing one xml file generated with pytest --junitxml=output/junitxml_report.xml as it's explained herehttps://support.smartbear.com/zephyr-scale-cloud/docs/test-automation/pytest-integration.html I've tried to make the same request with an API client (Postman) and the error is"InvalidZIPfile", even if I fail the authentication with a wrong username or even if I upload the xml file only. Maybe someone does the same thing and could help me? I'm a newbie 🙂 thanks!Solved6.6KViews0likes10CommentsAdd tests to cycle via API
Hello all, I am so sorry to bother you every day. Today I want to add a tests into a test cycle via API. I tried to use the following link https://zfjcloud.docs.apiary.io/#reference/execution/get-execution/add-tests-to-cycle I created a JWT for the endpoint, used the body which is included on the mentioned link, adjusted the values, but I am getting the error"method field is required.". If I saw correctly it is not included in the body. Can you help me with this? As always I am including some screen shots. Thanks for the tips, TiborSolved4.2KViews0likes6CommentsUpgrade JIRA Connector 11 to 12 is failing missing file qacJIRAConnector.Service.InstallState
We have the QAComplete JIRA Connector 11 (version 1.1.19.0) installed and I'm trying to install (there does not appear to be an upgrade method other than to start the installation of the new version) QAComplete JIRA Connector 12 (version 1.2.0). It is getting stuck when trying to install (so past the admin check) with the message: "could not find file 'C:\Program Files (x86)\Smartbear\qacJIRAConnector\qacJIRAConnector.Service.InstallState". See message attached. I have not yet tried to restart the server, as that would interrupt various services. Any ideas on how to resolve this?Solved3.1KViews0likes4Commentsqsh error when creating test cycle with API
Hello all, I am trying to create a testing cycle through an API (currently Postman). This is what I am doing I am not using Authorization tab at all. As a JWT generator I use this code in JAVA I tried both "GET" and "POST" methods. An I still get the gsh error like seen in the first Image. I am using the following site to get the idea how should I send an API https://zfjcloud.docs.apiary.io/#reference/cycle/creates-new-cycle/creates-new-cycle?console=1 BTW: I am pretty sure that project ID and version is correct Am I doing something wrong? Can you please help me with this? Thanks a lotSolved2.2KViews0likes7CommentsJira Integration - Link an existing Jira ticket to failed test cases
Currently in ReadyAPI 3.0, it is allowed to create a new Jira ticket but it is not possible to link to a test case. It would be helpful to attach a JIra ticket/tickets to a failed test case. Jira ticket could be of any type(bug, enhancement, task etc.) Clicking on that linked JIra ticket, it will open in Atlassian. Regards, Neena1.9KViews2likes1CommentZephyr API: Problems with BROWSE_PROJECTS permissions
Hi, I'm trying to integrate with Zephyr's API and do some basic things like create a test cycle, add tests to cycle, add execution, change execution status but I keep getting caught up with permission problems. I've had success at different moments with different APIs (200 response) without changing the payload, headers, or how I generate the JWT. So for this reason I believe that the authentication, headers and payload are fine. I'll give an example for how the request is being constructed for add cycle: headers = {'Authorization': 'JWT eyJ...', 'Content-Type': 'application/json', 'zapiAccessKey': 'ND...'} payload = { 'name': name, 'build': 'Build 3.1.0', 'environment': 'dev', 'description': 'cloned', 'projectId': 10005, 'versionId': -1, } POST 'https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/cycle' The response (403) is: '{"errorType":"ERROR","clientMessage":"User does not have BROWSE_PROJECTS permission to perform the operation on project 10,005 issue .","errorCode":169}' So I went to Jira and Zephyr config to try to fix the permissions, but no amount of tweaking with the permissions would fix the problem. Attached is a screenshot of the the permissions for this Jira Project. I also cleared Zephyr cache and the Zephyr permissions cache after each tweak to make sure that the changes would be in effect. Can anyone help?1.8KViews0likes4CommentsCreate a new test case via API
Hello all, I would like to ask how can I create Test or any kind of issue through Zephyr's API. I was able to create test cycle through the following APIhttps://zfjcloud.docs.apiary.io/#reference/cycle I did not find the way to create an issue or more specifically test case via API. I would really appreciate a tip how to configure headers and body too. Can you please help me with this?Solved1.7KViews0likes4CommentsRetrieving 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.5KViews0likes1CommentWhat's the best path for Jira Cloud --> Jira Server migration with Zephyr?
I'm trying to migrate from Jira Cloud --> Jira Server migration with Zephyr. It keeps triggering errors. I'm at the point of totally unistalling Zephyr from Jira and reinstalling it, but it just returns this vague error 'Error has occured, check the logs'. Has anyone else done this and do you have any advice on what works, a best practice or even an ok-practice at this point? Also, the license key doesn't work. Is this just Zephyr being Zephyr? Thanks All. and err Grrrrr!1.4KViews0likes0CommentsHow do i get metadata information of Zephyr fields such as actualResults, Expectedresults and so on.
I'm trying to integrate Zephyr for JiraCloud with other systems and for that the fields like Actualresults, ExpectedResults and other fields present in zephyr component is needed. However, in zephyr api documentation I couldn't find such information to retrieve fields. Please let me know if there is any other way to fetch such information.1.4KViews0likes6Comments