Forum Discussion

navsta's avatar
navsta
Occasional Contributor
4 years ago

Import exeucted test cases from a csv file?

Hi

 

I can import test cases into Scale from a csv file. Can you/how to imported test cases that have been executed already into Scale.

 

I cant see the field mapping that would show this. Perhaps you cant do it via csv file?

 

 

  • None that I can think of, no...

    As far as I know, the API is your only option here (apart from manually inputting the results in Zephyr Scale).

  • josh42's avatar
    josh42
    Community Hero

    Hi navsta ,

     

    no, you can't do that using the CSV importer.

     

    You could, after you have imported the test case specs using csv, use the REST API to create test executions.

     

    https://support.smartbear.com/zephyr-scale-server/api-docs/v1/

     

    For executions without a test cycle you can do this.

    1. Create a test result using the POST .../testresult endpoint of the API.

     

    If you want them in a test cycle you can do the following.

    1. You need to create a test cycle using POST .../testrun with the created test cases in the body.
    2. You can then create test results for the test cases in the cycle using POST/PUT .../testrun/{testRunKey}/testcase/{testCaseKey}/testresult or POST .../testrun/{testRunKey}/testresults

     

    Cheers

    Josh

    • navsta's avatar
      navsta
      Occasional Contributor

      Thanks Josh

       

      Besides the csv and the using the REST API, can you do it other import methods?

      • josh42's avatar
        josh42
        Community Hero

        None that I can think of, no...

        As far as I know, the API is your only option here (apart from manually inputting the results in Zephyr Scale).