How to fetch the Requirements that are stored in Req Coverage Section under each Test Case of Test Plan using REST API?

I have tried to fetch the requirements that are stored under Req Coverage tab of each test case from test plan.

I have below URL to fetch the test case information.

https://alm.xxx.xxx.com/qcbin/rest/domains/SOME_DOMAIN/projects/SOME_PROJECT/tests/TEST_ID

I have below URL to fetch the requirement information.

https://alm.xxx.xxx.com/qcbin/rest/domains/SOME_DOMAIN/projects/SOME_PROJECT/requirements/REQUIREMENT_ID

But I need specific REST API URL where I can get REQUIREMENT_IDs so that I can pass it to above URL and fetch the requirement details.

 

Parents
  • Suggested Answer

    0  

    You can try following API

    <ServerName>/rest/domains/<Domain>/projects/<Project>/test-config-coverages?query={second-endpoint-id[<TestConfigurationID>]}&fields=first-endpoint-id

    Please note, the TestConfiguraitonID is not equal to the TestID. You could get the testConfigurationIDs first, then use the API to get covered requirements.

Reply
  • Suggested Answer

    0  

    You can try following API

    <ServerName>/rest/domains/<Domain>/projects/<Project>/test-config-coverages?query={second-endpoint-id[<TestConfigurationID>]}&fields=first-endpoint-id

    Please note, the TestConfiguraitonID is not equal to the TestID. You could get the testConfigurationIDs first, then use the API to get covered requirements.

Children
No Data