Forum Discussion

tanandserrala's avatar
tanandserrala
New Member
14 days ago

Can I fetch Zephyr Test Execution Status value Directly with API

I am using the Zephyr Scale API to fetch the test execution from test cycle using endpoint "/v2/testexecutions/nextgen"

https://support.smartbear.com/zephyr-scale-cloud/api-docs/#tag/Test-Executions/operation/listTestExecutionsNextgen

In response I am getting execution like below format

"testExecutionStatus": {
                "id": 9635655,
                "self": "https://api.zephyrscale.smartbear.com/v2/statuses/9635655"
            },


So, To fetch the execution status value I need to make another API call endpoint "v2/statuses/9635655"

that return the response with value of status

 "name": "Not Executed",

instead of making multiple call for statuses can I fetch the status of test execution with single call?

1 Reply

  • Karen_452's avatar
    Karen_452
    New Contributor

    No, this endpoint does not currently appear to return the status name directly. You’ll need to fetch the status separately, though you could cache the status IDs to avoid repeated API calls.