Forum Discussion

tousif16's avatar
tousif16
Occasional Visitor
3 years ago

Zephyr API to get list of Test Cases under a Test Cycle

Hi,

 

I would like to know if there is an API which I can use to get the list of test cases under a Test Cycle?

I am looking at the below API documentation - but, there is no such endpoint which I can use to get the list of test cases under a Test Cycle. Please help me with a solution.

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

  • MisterB's avatar
    MisterB
    Champion Level 3

    Hi,

     

    At a glance, I think 'get test executions' will do what you need, assuming that some of the criteria is optional which seems to be the case.  This should work as every test case in a cycle will by default have a "Not Executed" execution status so the API should return all test cases in a test cycle.

     

    Hope that works but please let us know if not.

     

    Thanks

  • that wont work if there are no test executions (i.e. before running tests for the 1st time)