Ask a Question

Zephyr Scale server testResult POST publishes only one test script result

SOLVED
tomevision
New Contributor

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?

2 REPLIES 2
MisterB
Champion Level 2

I remember this coming up a while back and have found the related conversation.  Here's the solution that was posted:

 

MisterB_0-1678367987462.png

 

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/

This solves the issue.
Thanks! 

cancel
Showing results for 
Search instead for 
Did you mean: