It's all about the answers!

Ask a question

RQM GET Rest api request to extract text(test description) from all test cases under a test plan


chythra manjunatha (111) | asked Dec 11 '19, 7:33 a.m.

 Hi all,

    I want to know if there is a way to get the test descriptions of all the test cases under a single test plan.
when I try  GET  https:/localhost/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PJ-AD%20%28qm%29/testplan/urn:com.ibm.rqm:testcase:720 , it only lists all the test cases in this test plan . I want the description for each of the listed test cases


One answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Dec 11 '19, 1:38 p.m.
edited Dec 11 '19, 1:38 p.m.
You should use fields parameter (along with fields filter) as explained in https://jazz.net/wiki/bin/view/Main/RqmApi#fields

https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAreaName>/testcase?fields=feed/entry/content/testcase/(description|title)
will give title and description of all test cases in the projectArea.

https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAreaName>/testcase?fields=feed/entry/content/testcase[testplan/@href='https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/testplan/urn:com.ibm.rqm:testplan:1']/(description|title)
will give title and description of all test cases under testplan:1.

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.