It's all about the answers!

Ask a question

How to get the test case title when querying TestPlan?


Bharath Rao (900134) | asked Nov 18 '22, 4:32 a.m.

When we query a TestPlan with RESTAPI, example,

https://<serverUrl>/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectUUID>/testplan/urn:com.ibm.rqm:testplan:<ID>

, we only get the link to test cases. 

Our requirement is to get the TestCase Title/creator details when querying a TestPlan and avoid querying separately for test case inside the testplan? Is this possible? How?

2 answers



permanent link
Ralph Schoon (63.1k33645) | answered Nov 21 '22, 4:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The APIs work as the APIs work. Just because you would like to or prefer to get the data in a different way, does not make it a requirement. 


I have not used the Reportable REST Api for ETM, but it is absolutely typical for these APIs to only provide the link for the elements in a collection. This then requires another API call for each element, to get the details. This is how the OSLC API works.


permanent link
Bharath Rao (900134) | answered Nov 22 '22, 5:30 a.m.
Using Reportable REST API, following details of the test case related to a TestPlan, can be fetched.

  • /usesTestCase/TestCase/title14, 16
  • /usesTestCase/TestCase/description14, 16
  • /usesTestCase/TestCase/shortId14, 16
  • /usesTestCase/TestCase/created14, 16
  • /usesTestCase/TestCase/modified14, 16
  • /usesTestCase/TestCase/creator14, 16
  • /usesTestCase/TestCase/contributor14, 16

Here is a sample to start with....

https://<elmhost>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectUUID>/testplan?fields=feed/entry/content/testplan%5Btitle=%22Sample%22%5D/(usesTestCase/TestCase/title)

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.