It's all about the answers!

Ask a question

Question about RQM data source urls


Joe Gariano (8813137) | asked Jul 18 '13, 5:53 p.m.
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

Accepted answer


permanent link
Antoinette Iacobo (650712) | answered Jul 22 '13, 12:57 p.m.
 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'])

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. 
Joe Gariano selected this answer as the correct answer

Comments
Joe Gariano commented Jul 22 '13, 8:00 p.m. | edited Jul 22 '13, 8:00 p.m.

Brilliant, thanks Antionette!  That is exactly what I was looking for.  I was unaware of the "?fields" parameter... very powerful.

Regards,
Joe

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.