How to retrieve Test Case via REST
Hi all
How do I retrieve a TC via rest when I have a uri like this: https://server:9443/jazz/oslc_qm/contexts/_Cbq2sKfcEeCjLZ6OPOYtFw/resources/com.ibm.rqm.planning.VersionedTestCase I've tried to add this to seach for the oslc:shortId ?oslc.where=oslc%3AshortId%3D%2271%22 |
3 answers
Hi Helene,
This URL is for the OSLC QM V2 API in RQM 3.0+ (see https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api). This format of the URL will return a paged feed of test cases. To GET a specific test case, you would need to know the test case UUID (see the dcterms:identifier property of the test case) or query one of the queryable test case properties (see http://open-services.net/bin/view/Main/QmSpecificationV2?sortcol=table;up=#Resource_TestCase). To get started, see https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api#Getting_Started. |
Hi Paul Thank you for your answer. When you say "query one of the queryable test case properties" what does that exactly mean? I've tried to add something like this to my url &oslc.prefix=dcterms=<http://purl.org/dc/terms/>&oslc.selec=*&oslc.where=dcterms:identifier=71
but it doesn't work. As fare as I can understand, then the com.ibm.rqm.planning.VersionedTestCase belongs to the oslc interface while urn:com.ibm.rqm:testcase has something to do with the REST. I have tried to write my url to fit something like this https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:32 but that doesn't work either.
Comments There are two public RQM APIs:
helene højrup
commented Oct 25 '13, 12:59 p.m.
Fantastic! Thank you, that solved it. |
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.