Forum Discussion

burnhard's avatar
burnhard
New Contributor
4 months ago

Update Test Result on Zephyr Scale Server

hey,
we use Zephyr Scale Server and I want to not only be able to post executions/test results but also to update them via the API. 

How can I update a Test Result?

In Zephyr Cloud and Squad there is an API for this. Why does the Zephyr Scale Server Version still have the old 1.0 API which is really outdated?

Will Zephyr Scale Server ever get updated APIs?

  • burnhard's avatar
    burnhard
    New Contributor

    thx for this. I will try it out. Didn't think to look for it under testrun..

    I really hope they switch over the server api to the cloud one..

  • If you happen to use RobotFramework or anything that can output in an junit.xml format then this becomes pretty easy with one API call and your local results file.

    This is something we have used heavily since moving to Zephyr from another tool. Just need to push via postman/Insomnia and it creates a Test Cycle for you, and also holds all the test case traceability which is really cool.

    Happy to share more on the Robot Framework piece if anyone is interested

  • grarun11this is easier achieved in Postman. Here is what I do when uploading my results. It looks like the URL you are using is different to mines so hopefully this will work for you.

    Firstly you will need to use the URL with POST: https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?

    Add your bearer token here in the auth tab

    Then add your params. This will just be the ProjectID and autocreatetestcases

    Finally, you will need to attach the file you want here. And add all the data above

    If you cannot see all options in the above view click the three dots and select all like so

     

    • grarun11's avatar
      grarun11
      Occasional Contributor

      duck-tester

      I see only below options. Where and how do I generate Bearer token?  we have Zephyr scale for Jira data center

       

      • duck-tester's avatar
        duck-tester
        Contributor

        Your bearer token will be the API key from Zephyr scale

  • burnhardif you use the put mentionted by MisterB you can also utilise postman to run from an excel file.

    It will run row by row and essentially do a put API call per row so you only need to click go once

  • grarun11's avatar
    grarun11
    Occasional Contributor

    burnhardI Need to integrate ZS (not cloud) with robotframework. I am not sure how to implement using api calls. Could you please provide me any documentation or any video or please provide me steps with examples if you don't mind.