Fetch all test plans, test cases in RQM from a baseline via OSLC
One answer
Hello Mike,
you could try the following query:
https://<server:port>/qm/oslc_qm/contexts/_g66bgPfAEeis0dH4W9rsZQ/resources/com.ibm.rqm.planning.VersionedTestCase?oslc.query=*&oslc_config.context=_qrvVcR5ZEemSzYJQ2OTLjQ
where _g66bgPfAEeis0dH4W9rsZQ is the uuid of the project (you can capture it with right click on "manage this project area", copy link location, the UUID at the end of the url is the project UUID, something like:
.../qm/admin#action=com.ibm.team.process.editProjectArea&itemId=_g66bgPfAEeis0dH4W9rsZQ)
and _qrvVcR5ZEemSzYJQ2OTLjQ is the uuid of the base line (you can also get this UUID from the rqm UI, after switching to this baseline, right click on the local baseline and copy link location, you would get something like:
.../qm/oslc_config/resources/com.ibm.team.vvc.Configuration/_qrvVcR5ZEemSzYJQ2OTLjQ)
I hope that helps.
Matthieu
Comments
Hello Matthieu,
i tried the URL format you suggested on Rest Client with headers - (OSLC-Core-Version, Accept-application/rdf+xml) but i got the below error:-
- Status Code: 500 Internal Server Error
Should i use any specific headers to query this URL?
Hello Mike,
I used OSLC-Core-Version=2.0 and Accept=application/xml
I do get an error 500 when the uuid specified in the request is incorrect.
you may get additional details in the qm.log, in my case, with the wrong UUID, I had:
.../qm/oslc_qm/contexts/_g66bgPfAEeis0dH4W9rsZQ/resources/com.ibm.rqm.planning.VersionedTestPlan?oslc.query=*&oslc_config.context=_qrvVcR5ZEemSzYJQ2OTLj. The response code is 500.
java.lang.IllegalArgumentException: _qrvVcR5ZEemSzYJQ2OTLj is not the URI of a global configuration
java.lang.IllegalArgumentException: _qrvVcR5ZEemSzYJQ2OTLj is not the URI of a global configuration
I hope this helps, Matthieu