Compact Rendering (Preview) of execution result from external client
Hi,
From an external client I would like to get a preview (aka compact rendering ) of an execution result. To the http GET request I have addd the oslc-compact rendering header (and have also tryed the x-jazz-compact header), but it does not work. I get a 200 response but the result is not a preview it is just the standard Dojo html/js page.
I'm trying to mimic the behaviour that you will see if you hover over the Last Result icon in the Test Execution Records window, where you will get the execution result rendered in a preview panel. I have copied the same execution result URL and used in my trials.
From my client I can handle the compact rendering / preview function for other resources.
Any help or ideas appreciated.
//Lars
Using RQM 4.0 on Windows 7
Accepted answer
The URL in your comment is the format used by the legacy (non-OSLC) REST API. Rich hover is only supported by the OSLC API.
That being said, there is a way to get the OSLC URL from the legacy URL, albeit a little bit clumsy. If you add "?oslclinks=true&fields=/feed/entry/content/executionresult/identifier" onto the legacy URL and do a GET request with Accept: application/xml then the response should contain an <identifier> element with the OSLC URL.
Hope this helps.
That being said, there is a way to get the OSLC URL from the legacy URL, albeit a little bit clumsy. If you add "?oslclinks=true&fields=/feed/entry/content/executionresult/identifier" onto the legacy URL and do a GET request with Accept: application/xml then the response should contain an <identifier> element with the OSLC URL.
Hope this helps.
One other answer
You should be able to get the compact rendering info by sending a GET request with a header like:
Accept: application/x-oslc-compact+xml
If you're already sending that header then maybe the URL is not correct. The URL should have a form like:
Accept: application/x-oslc-compact+xml
If you're already sending that header then maybe the URL is not correct. The URL should have a form like:
https://server:9443/qm/oslc_qm/contexts/_hLRUAAwAEeKVfbfmPIQPJQ/resources/com.ibm
.rqm.execution.ExecutionResult/_cdrmyAwEEeKVfbfmPIQPJQ
Comments
Hi Paul,
The URL I have used is totaly different,
So the question is how can I transform the slug URL I have into the one you suggest?
_hLRUAAwAEeKVfbfmPIQPJQ = Project Area GUID
_cdrmyAwEEeKVfbfmPIQPJQ = Excution Result GUID
I know how to obtain the project area GUID, but not the Execution Result GUID.
Thanks
//Lars