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?
|
Accepted answer
![]() 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
|
2 other answers
![]() 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.
|
![]() 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.
|
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.