OSLC_QM - how can I get a test case by it's ID #?
![](http://jazz.net/_images/myphoto/ab1b0201a9bffedd8ba6117e5404637e.jpg)
Hi,
I'm trying to look up a test case by it's ID using OSLC. I notice that this is possible by using the reporting URLs with QM, however when using these the OSLC link URL isn't given. I need this to programmatically create a link from an RTC work item (and also then create a back link from QM to CCM)
From my experimentation the OSLC apis seem to use the UUID (long string of random characters) rather than the Test Case number.
Any ideas on how to get the OSLC representation of a Test Case using it's ID number?
Also any guidance on programmatically creating OSLC/CLM links would be much appreciated!
Thanks,
Simon
I'm trying to look up a test case by it's ID using OSLC. I notice that this is possible by using the reporting URLs with QM, however when using these the OSLC link URL isn't given. I need this to programmatically create a link from an RTC work item (and also then create a back link from QM to CCM)
From my experimentation the OSLC apis seem to use the UUID (long string of random characters) rather than the Test Case number.
Any ideas on how to get the OSLC representation of a Test Case using it's ID number?
Also any guidance on programmatically creating OSLC/CLM links would be much appreciated!
Thanks,
Simon
2 answers
![](http://jazz.net/_images/myphoto/ab1b0201a9bffedd8ba6117e5404637e.jpg)
Try:
https://(host):(port)/(contextRoot)/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ (projectAlias)/testcase/urn:com.ibm.rqm:testcase:(ID #)?abbreviate=false&calmlinks=true&oslclinks=true
You will need to use the https://jazz.net/wiki/bin/view/Main/RqmApi#oslclinks request parameter.
If you want to use the OSLC V2 API (http://open-services.net/bin/view/Main/QmSpecificationV2), you will need to query (http://open-services.net/bin/view/Main/OSLCCoreSpecQuery) on one of the test case properties (http://open-services.net/bin/view/Main/QmSpecificationV2?sortcol=table;up=#Resource_TestCase).
Note, URLs are considered opaque and should not be constructed/deconstructed by consumers.
https://(host):(port)/(contextRoot)/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ (projectAlias)/testcase/urn:com.ibm.rqm:testcase:(ID #)?abbreviate=false&calmlinks=true&oslclinks=true
You will need to use the https://jazz.net/wiki/bin/view/Main/RqmApi#oslclinks request parameter.
If you want to use the OSLC V2 API (http://open-services.net/bin/view/Main/QmSpecificationV2), you will need to query (http://open-services.net/bin/view/Main/OSLCCoreSpecQuery) on one of the test case properties (http://open-services.net/bin/view/Main/QmSpecificationV2?sortcol=table;up=#Resource_TestCase).
Note, URLs are considered opaque and should not be constructed/deconstructed by consumers.