Use Zephyr Scale Cloud API to add existing test cases to and newly created test cycle.
I am attempting to do this via powershell script in teamcity but I am getting a 404 when it attempts to add the testcase to the testcycle. I cannot for the life of me figure out why it is not working. any help is appreciated. # ----------------------------- # Create test cycle # ----------------------------- try { $createResp = Invoke-RestMethod -Uri $TestCycleEndpoint -Method POST -Headers $headers -Body ($body | ConvertTo-Json -Depth 5) $testCycleKey = $createResp.key Write-Host "✅ Created Zephyr Scale test cycle: $testCycleKey (linked to $($env:ZS_LINKED_ISSUE))" } catch { $errResponse = $_.Exception.Response if ($errResponse -ne $null) { $reader = New-Object System.IO.StreamReader($errResponse.GetResponseStream()) $responseBody = $reader.ReadToEnd() Write-Error "❌ Failed to create Zephyr Scale test cycle: $($_.Exception.Message)`nResponse: $responseBody" } else { Write-Error "❌ Failed: $($_.Exception.Message)" } exit 1 } # ----------------------------- # Add mapped test cases to the cycle # ----------------------------- $cycleTestCases = @() foreach ($rxName in $TestCaseMapping.Keys) { $cycleTestCases += @{ testCaseKey = $TestCaseMapping[$rxName] } } $addCasesEndpoint = "https://api.zephyrscale.smartbear.com/v2/testcycles/$testCycleKey/testcases" $addCasesBody = @{ items = $cycleTestCases } try { Invoke-RestMethod -Uri $addCasesEndpoint -Method POST -Headers $headers -Body ($addCasesBody | ConvertTo-Json -Depth 5 -Compress) Write-Host "✅ Added $($cycleTestCases.Count) test cases into cycle $testCycleKey" } catch { Write-Error "❌ Failed to add test cases into cycle ${testCycleKey}: $($_.Exception.Message)" exit 1 }65Views0likes1CommentUsing Datasets
Where can I get more information on how to use Datasets in Zephyr for Jira (in the cloud). I defined a Dataset "Application Pages" and have a list of the pages in the application (Page 1, Page 2, etc). But I cannot find a way to add another column to that dataset to tie any additional information to those pages. AND when I add the dataset to a test case, it requires me to choose each entry in the dataset as a row to the table at the top of the test. I was expecting to be able to define a Dataset as a multidimensional object (table with multiple columns) like when I'm doing the "Custom Input" that is directly in the test case. Is there a way to do a table like that and have it shared across multiple test cases? Given the way that Datasets seem to be working, I'm not seeing the value of them vs just putting the Custom Input data in each test case. How are people using them? Thanks!39Views0likes0CommentsHow to generate custom reports in Zephyr Scale filtered by folder, status, and label
Hi everyone, We have 4 teams, each maintaining their own test folder in Zephyr Scale. Every test case in these folders is accurately tagged with: Statuses: In Progress Completed Manual Blocked Labels: API_AUTOMATION UI_AUTOMATION MANUAL_TESTING What I need: Select a specific team’s folder. Generate status-based reports (e.g., Automated vs Manual percentage). Generate coverage reports (e.g., API vs UI coverage based on labels). Important notes: I’m not looking for execution results. I want to report on existing test cases and their current status/labels. I’ve tried Test Execution Results (List) and Summary reports with advanced filtering, but none give me the desired breakdown. Question: What’s the best way to customize or create a report in Zephyr Scale to achieve this? Is there a way to combine folder filter with status and label filters for a non-execution-based test case report? Thanks in advance for any guidance.74Views0likes1CommentHow to upload an attachment file to a test execution via Zephyr Scale Cloud REST API?
I'm trying to upload an attachment to a test execution in Zephyr Scale using the REST API. I’ve reviewed the official API documentation (https://support.smartbear.com/zephyr-scale-cloud/api-docs/), but I couldn’t find any relevant endpoint that supports uploading attachments. I have the following questions that I need help with: Does Zephyr Scale support uploading attachments to test executions via the REST API? If yes, what is the correct endpoint and request format? If not, is there any recommended workaround or alternative method to achieve this? Any help or clarification would be greatly appreciated. Thanks in advance!99Views1like0CommentsSet Environment When Uploading Test Execution Result to Zephyr
We are using Zephyr Test Managment and Automation for Jira Cloud. We were able to setup a test execution via Gitlab CI and upload the result to Zephyr via https://api.zephyrscale.smartbear.com/v2/automations/executions/custom. But one thing that we can't figure out is to set the environment where we did the execution. We've tried passing "environment", "environmentId", "environmentName", etc. But none of them works. Zephyr doesn't seem to recognize them. We can't seem to find any documentation about it as well. Here's what we tried so far: { "version": 1, "executions": [ { "source": "My Request", "result": "Failed", "testCase": { "name": "API response has status 200", "key": "TESTKEY-T123123", "environment": 3814706, "environmentId": 3814706, "environmentName": "QA" } } ] } And here's what we're always seeing in Zephyr: Can anyone shed some light as to how we can make it work?75Views0likes2CommentsMissing/Incomplete API Integrations
Hi, Maybe I have just missed something, but as far as I can tell the following is missing from the Scale Cloud API which is making it's usage a bit... challenging. You can only fetch test case versions, cannot create new ones Cannot create Parameters for Test Scripts Cannot fetch Custom Field definitions Paginated requests don't support basic searching (Bit pointless without it...) Can't search for test cases which have no parent folder Can't update Owner/Priority after creation (Could just be my integration being incorrect) There could be more, but could anyone tell me if I am losing my mind, or maybe just looking at old documentation? https://support.smartbear.com/zephyr-scale-cloud/api-docs/#section/Introduction Maybe if there is more missing you'd want to add it to this thread and I'll do a big support ticket. Thanks64Views1like0CommentsInfinite spinner for Test Cases view when editing a Test Cycle
After getting a generic error for saving current state of the Test Cycle sometimes I'm getting an infinite spinner on the Test Cases tab and nothing can resolve it - tried to close the tab, browser, tried to logout and re-login to Jira - the spinner is still present on Test Cases view of the Test Cycle Zephyr Scale on Jira Cloud25Views0likes1CommentBDD - Gherkin Script - Unexpected error "Line should start with one of the following keywords:"
From today's morning, our team got a couple of errors in the previously valid BDD test cases. In all cases, the error message is the same: Line should start with one of the following keywords: Given, When, Then, And, But, *, or #. Interestingly, we have many similar tests for different endpoints, but errors appeared only in a few of them. Also, there are no new release notes on the Zephyr Scale, so what happened, and when will it be fixed?74Views0likes3CommentsUsing Zephyr Scale and Python/Robot Automation
My company is using Zephyr Scale within Jira for manual testing. About a year ago, we started using Python/Robot Framework for automation. I'm trying to figure out how to integrate the two. When creating our manual tests, on the Details page, there's a dropdown that says "Automatable" which I set to Yes but there's no other indication of how to use this field. Any suggestions?238Views0likes2CommentsIs there API to download attachments from test & steps?
I am looking for API here Zephyr Scale for Jira Cloud API (smartbear.com) To download attachments from the test and from the steps. I don't see anything for it. I am missing it? Is there an option to do it using API? Thank you.411Views0likes3Comments