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

RPE RQM ETM: REST API for Single Test Case XML , Config Managed

 Hi, I'm trying to use the below URI to retrieve the XML for a single test case so I can explore the data in the XML data source to help me build a template. However, when I paste this into my browser, I'm just redirected to the test case in the WebUI instead of receiving the XML?


https://[SERVER]/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/[PROJECT]/testcase?abbreviate=false/urn:com.ibm.rqm:testcase:3&oslc_config.context=[SERVER]/gc/configuration/2

Also, the config.context seems to be completely ignored when specifying the urn:com.ibm.rqm:<resourcetype> 
... it just takes me to the last config I selected in the WebUI. How would I control this for RPE Publishing?

0 votes

Comments

 Here is a screen shot doing a GET on a test case URL using the same abbreviate=false and configuration context. As you said, pasting to the browser just resolves to the test case but the REST client will return the XML.



Accepted answer

Permanent link

 Hi Glyn,


Do you have a REST client for your browser? e.g. for Chrome I use https://chrome.google.com/webstore/detail/talend-api-tester-free-ed/aejoelaoggembcahagimdiliamlcdmfm?hl=en but there are several options.

You should install a REST client and add the header "accept" with value "application/rdf+xml" then paste in the test case query URL and click GET

Thanks,
Brett

Glyn Costello selected this answer as the correct answer

0 votes

Comments

This is great, just what I was looking for, thanks! 


2 other answers

Permanent link

Will try the screen shot again. 


Here is a screen shot doing a GET on a test case URL using the same abbreviate=false and configuration context. As you said, pasting to the browser just resolves to the test case but the REST client will return the XML.

0 votes


Permanent link

For reading (making GET request on) resource URL (single resource), you cannot use browser. You can either use a REST Client or use "Preview Data..." option in RPE.
While using RESTClient, you can either add Configuration-Context header or append oslc_config.context parameter to the URL as in
https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectAlias>/testcase/urn:com.ibm.rqm:testcase:<id>?oslc_config.context=https://<server>:<port>/gc/configuration/<id>

0 votes

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,019

Question asked: Oct 02 '20, 6:44 a.m.

Question was seen: 2,157 times

Last updated: Oct 02 '20, 10:35 a.m.

Confirmation Cancel Confirm