Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

OSLC_QM - how can I get a test case by it's ID #?

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

0 votes



2 answers

Permanent link
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.

0 votes


Permanent link
That works a treat, thanks for your help Paul!

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 07 '11, 6:33 p.m.

Question was seen: 4,686 times

Last updated: Dec 07 '11, 6:33 p.m.

Confirmation Cancel Confirm