Add 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.2KViews0likes6CommentsZephyr 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.7KViews0likes6Commentsqsh 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.2KViews0likes7CommentsCreate 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.7KViews0likes4CommentsAdd a new Test Cases into Newly created Test Cycle via API
Hello all, I would like to know how should I add a new test cases into created Test Cycle. In short I already created a test cycle through API, now I want to add a new test cases into the cycle. Note that the whole project is new so no test are present. This is what I want to do. I have several API tests in my Java project. Before the run I create the test cycle (which is working fine), after the creation I execute those API tests and after that I would like to create the text case into the previously created test cycle and send the status (pass or fail). I am getting the API endpoints from the following site: https://zfjcloud.docs.apiary.io/#reference/execution/add-tests-to-folder/create-execution Is it possible in that way? Is there an option to do that? How can I create these test cases in the test cycle? PS: I use Postman for now Thanks for the tips823Views0likes0Comments