Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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


0 votes



One answer

Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Dec 11 '19, 7:33 a.m.

Question was seen: 1,187 times

Last updated: Dec 11 '19, 1:38 p.m.

Confirmation Cancel Confirm