It's all about the answers!

Ask a question

How to get a list of test plans in which a test case is used?


Suad Kajtazovic (2611) | asked Aug 04 '23, 12:36 p.m.
edited Aug 04 '23, 12:39 p.m.

I would like to get a list of test plans in which a test case is used. 
The following call only works if a test case is referenced in only one test plan. No result if a test case is referenced in more than one test plan.
   
https://[server:port]/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/[<contextRoot>]/testplan?fields=feed/entry/content/testplan/(title|description|testcase[@href='https://[server:port]/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/[<contextRoot>]/testcase/urn:com.ibm.rqm:testcase:<testcase id>'])

Thank you in advance for your suggestions and sample codes.

Accepted answer


permanent link
Suad Kajtazovic (2611) | answered Aug 06 '23, 4:07 p.m.

Solved using ETM OSLC API:

https://[server:port]/qm/oslc_qm/contexts/<contextRoot>/resources/com.ibm.rqm.planning.VersionedTestPlan?oslc.where=oslc_qm:usesTestCase="https://[server:port]/qm/oslc_qm/contexts/<contextRoot>/resources/com.ibm.rqm.planning.VersionedTestCase/<testcase_uri>"


Ralph Schoon selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.