ALM REST API Reference(Core) No Entity Reference for Test Pool

Hello,

i am using Microfocus Quality Center 17.0 in a project.

Under Testing, i found Test Resources, Test Pool, Test Lab and Test Runs.

The Test Pool contains a root Folder named "Subject" with several child nodes and one of them is named JUnit.

This node contains tests that I would like to read out via the REST API with a Java program.

Because I have not found a "Test Pool" entity in the REST API Reference(Core), I would like to ask whether there

is another way to access the "Subject/JUnit" folder via the REST API.

https://admhelp.microfocus.com/alm/api_refs/REST_core/Content/REST_API_Core/General/Overview.html

Thank you very much for your support!

  • Suggested Answer

    0  

    According to your description, looks like the test module of ALM is renamed to 'Test Pool'. If this is the case, you can use REST API resource test-folder and test to access the content. For example, below REST API is to get all subfolders of test folder id=2, id = 2 is the root folder 'Subject'

    yourserver/qcbin/rest/domains/yourdomain/projects/yourproject/test-folders?order-by={name[ASC];}&page-size=1000&query={parent-id[2];}

    Folder JUnit will be returned in the set of the responded result. And then you can use the id of JUnit to get tests under folder 'JUnit'. Suppose the id of 'JUnit' is 132964, For example,

    yourserver/qcbin/rest/domains/yourdomain/projects/yourproject/tests?order-by={name[ASC];}&page-size=1000&query={parent-id[132964];}

    You may directly use two combined conditions to get folder 'JUnit' like below,youserver/qcbin/rest/domains/yourdomain/projects/yourproject/test-folders?order-by={name[ASC];}&page-size=1000&query={parent-id[2];name['JUnit']}