Zephyr Scale server testResult POST publishes only one test script result
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023
05:44 AM
03-06-2023
05:44 AM
Zephyr Scale server testResult POST publishes only one test script result
Hello,
I am trying to use the Zephyr Scale Server API (v1) Python API to publish test results to Jira. According to the documentation I have to use the /testresult endpoint with the following JSON format:
{ "projectKey": "JQA", "testCaseKey": "JQA-T123", "status": "Fail", "environment": "Firefox", "comment": "The test has failed on some automation tool procedure.", "assignedTo": "vitor.pelizza", "executedBy": "cristiano.caetano", "executionTime": 180000, "actualStartDate": "2016-02-14T19:22:00-0300", "actualEndDate": "2016-02-15T19:22:00-0300", "customFields": { "CI Server": "Bamboo" }, "issueLinks": ["JQA-123", "JQA-456"], "scriptResults": [ { "index": 0, "status": "Fail", "comment": "This step has failed." },
{ "index": 1, "status": "Pass", "comment": "This step has passed." }
] }
I manage to publish the results to Jira, and see the test executions under the Executions tab, but I only see one test step under the test scripts section. Can anyone help me how to publish test results and see all test steps listed in the test script field?
Solved! Go to Solution.
Labels:
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023
05:20 AM
03-09-2023
05:20 AM
I remember this coming up a while back and have found the related conversation. Here's the solution that was posted:
And the full post: Not able to add teststep - Page 2 - SmartBear Community
------------------------------------------
Please give kudos if I have helped or accept as solution if appropriate
Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/andrew-barbet-548a234/
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2023
05:51 AM
03-09-2023
05:51 AM
This solves the issue.
Thanks!
