Question about RQM data source urls
![](http://jazz.net/_images/myphoto/5409f0cb2d6b5bab8ff047baf3e509a0.jpg)
I currently have an RPE template that will print out a table of test cases for a given RQM URL. I have it working if I supply the URL for all the test cases in the RQM project. For example, in my document specification that goes along with that template, I configure the data source to be:
https://servername:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Sandbox_2/testcase?abbreviate=false&calmlinks=true
I have another RPE template, that prints out information related to a test suite. To get that one to work, I configure the data source from within the document specification to be the URL of the test suite. Within that template, I access the test cases of the test suite but using a query for the testsuite/suiteelement/suiteelements/testcase.
What I would like to do, is dynamically import the template that already prints out the test case table (template #1) within the test suite template (template #2). The problem, I don't know how to get the URL for the feed of test cases in a test suite so that I can dynamically configure the URL for the imported table.
In other words, for something like a test suite that includes its own list of other things like test cases, can you get the URL for that list of things so that you can use it in the same way you'd use the feed of things for an overall project?
Thanks,
Joe
https://servername:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Sandbox_2/testcase?abbreviate=false&calmlinks=true
I have another RPE template, that prints out information related to a test suite. To get that one to work, I configure the data source from within the document specification to be the URL of the test suite. Within that template, I access the test cases of the test suite but using a query for the testsuite/suiteelement/suiteelements/testcase.
What I would like to do, is dynamically import the template that already prints out the test case table (template #1) within the test suite template (template #2). The problem, I don't know how to get the URL for the feed of test cases in a test suite so that I can dynamically configure the URL for the imported table.
In other words, for something like a test suite that includes its own list of other things like test cases, can you get the URL for that list of things so that you can use it in the same way you'd use the feed of things for an overall project?
Thanks,
Joe
Accepted answer
![](http://jazz.net/_images/myphoto/5409f0cb2d6b5bab8ff047baf3e509a0.jpg)
Joe, could you try this filter to give you all the test cases in test suite X where X is the ID of the test suite:
https://myserver:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Sandbox_2/testcase?fields=feed/entry/content/testcase/(*|testsuite[@href='https://myserver:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Sandbox_2/testsuite/urn:com.ibm.rqm:testsuite:X'])
https://myserver:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Sandbox_2/testcase?fields=feed/entry/content/testcase/(*|testsuite[@href='https://myserver:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM_Sandbox_2/testsuite/urn:com.ibm.rqm:testsuite:X'])
According to the API, you should be able to filter on this: https://jazz.net/wiki/bin/view/Main/RqmApi assuming the supported RQM Server version.