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
One answer
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.