It's all about the answers!

Ask a question

How to fetch test cases from test plan using RQM REST API?


Andrew Ciaz (493) | asked Dec 23 '20, 8:29 a.m.

 Hi all,


I have test plan which has some test cases I tried below URL to fetch the test cases but no test cases shown in the response, please suggest the solution:

https://<serverUrl>/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testcase?fields=feed/entry/content/testcase/(*|testplan[@href='https://<serverUrl>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testplan?fields=feed/entry/content/testplan/urn:com.ibm.rqm:testplan:12'])

One answer



permanent link
Subramanya Prasad Pilar (4.1k14) | answered Dec 23 '20, 9:25 a.m.
Can you try the following?
https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testcase?fields=feed/entry/content/testcase/(*|testplan/@href='https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testplan/urn:com.ibm.rqm:testplan:12'])

Comments
Andrew Ciaz commented Dec 23 '20, 11:20 a.m.

 @Subramanya Prasad Pilar Thanks for your response, but the above URL returns all the test cases from the project area. My test plan has only one test case


Subramanya Prasad Pilar commented Dec 23 '20, 12:18 p.m.

The above URL should return only test cases belonging to testplan:12

Your answer


Register or to post your answer.