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

Question about RQM data source urls

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

0 votes


Accepted answer

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

1 vote

Comments

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 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
× 12,033

Question asked: Jul 18 '13, 5:53 p.m.

Question was seen: 4,070 times

Last updated: Jul 22 '13, 8:00 p.m.

Confirmation Cancel Confirm