Forum Discussion

AkshayDeep's avatar
2 months ago

Need help in extracting test cases at a folder level

Hi 

I have a specific requirement to get the testcases from zephyr scale.

We have a particular hierarchy setup in the zephyr scale. 

The structure is as follows :-

Project ID 1
--> Product 1

    --> Field 1 
          --> Sub-Field 1
                --> Component 1

--> Product 2 
same hierarchy

...

I have a use case to get all the test cases inside product 1. But currently I am only able to access test cases at a project level or on the leaf node [Component level]

If i try the api with the FolderId being set to Field 1 or sub-field 1 I am getting an empty list.

Is it possible to get the details I am looking for using just the api ? Or do i have to create a seperate mapping logic after I get all the test cases under Project ID 1 ?

1 Reply

  • I've not a lot of experience using the APIs but it looks like you are right - the endpoints only return test cases from the parent folder - and you would need to build a recursive function to do what you need.