Support

Expand all | Collapse all

Find test runs of a test case

  • 1.  Find test runs of a test case

    Posted 02-13-2020 16:11
    Hi,

    I'm currently trying to find test runs of a test case through the Jama RESTful API, but looks like there is no such link exist (i.e. from item to test runs).

    I currently have to query all the test runs in order to find test runs of a test case, this becomes very painful considering the Jama API throttling.

    Would you mind telling me if I'm doing this in the right way? Or if there exist an easier path for my purpose? Or if there is any plan to add such link.

    ------------------------------
    Regards,
    Dajie Yang
    ------------------------------


  • 2.  RE: Find test runs of a test case

    Posted 02-14-2020 06:57
    Hi Dajie:

    I am going to send you a link to how to our API Cookbook on how to execute Test through the Rest API. I know this isn't exactly what you are looking for but, it does give some context around the Test Center and our API which you might find informative.

    https://dev.jamasoftware.com/cookbook/#executing-tests

    Test Run Items

    A Test Run Item can be thought of as an execution instance of a Test Case Item. They are created by the system when a Test Cycle is created inside a Test Plan, and they are updated with a status and actual results when executed. A Test Case could have many Test Runs associated with it. These cannot be created directly; this is the reason there is no POST in the /testruns REST endpoint.

    Best,



    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------



  • 3.  RE: Find test runs of a test case

    Posted 02-16-2020 14:41
    Hi Chloe,

    I've go through your API cookbook before posting, I know that a test run would be associated with test cycle and test plan, but that should not affect having a /item/{id}/testruns endpoint with GET method. It's kinda weird that I can only query from a test run to a test case, but not the other way around.

    If this is a missing feature, please consider this post a feature request.


    ------------------------------
    Dajie Yang
    Seeing Machines
    ------------------------------



  • 4.  RE: Find test runs of a test case

    Posted 02-21-2020 07:42
    Dajie:

    I will change this thread to a Product Idea and tag it for the REST API, thank you.

    Best,

    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------