It's all about the answers!

Ask a question

RQM OLSC : testcase results doesn't contain any defect links


anup g (7912) | asked Jun 04 '14, 7:18 a.m.

hi

ii'm extracting testcase execution record based on modified time using Rest API but the response xml doen't contain any details about defects though a defect is associated with testcase execution record.

i've tried to extract defects from RTC but i could only extract 1 at a time.  i want to extract defect workitems based on modified date.

could someone please explain how to extract all the defects from RTC?

2 answers



permanent link
Stephane Leroy (1.4k149) | answered Jun 04 '14, 10:16 a.m.
JAZZ DEVELOPER
edited Jun 04 '14, 10:38 a.m.
Hi Anup,

the title of your question (incl. OSLC) and the link to the RQM Reportable REST API makes it difficult to understand well your context:

Let me answer for the case you're using RQM Reportable REST API:
you would need to add ?calmlinks=true  and your URL would now look like something like this:
https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project
area alias/executionresult/urn:com.ibm.rqm:executionresult:xx?calmlinks=true

This link has more info: https://jazz.net/wiki/bin/view/Main/RqmApi#calmlinks

Regards,
Stéphane

permanent link
Don Yang (7.7k21109138) | answered Jun 04 '14, 8:13 a.m.
What version of RTC/RQM do you have?
Can you please provide the APIs you used which got problem?

For RQM, if you try:
https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project area alias/executionresult/urn:com.ibm.rqm:executionresult:xx
(xx is id of result)
Does it provide defect link for you?

For RTC to list defects, how about trying:
https://server:port/ccm/oslc/contexts/<project areas="" ID="">/workitems?oslc.where=rtc_cm:type="defect"

Comments
anup g commented Jun 04 '14, 8:29 a.m.

Thanks Don yang for your response.

RQM version : 4.0.6

REST API : https://jazz.net/wiki/bin/view/Main/RqmApi

I've extracted executionresults as well but the assosiated defects are missing in the response.

Can also help with an url to get defects based on modfied date?


Don Yang commented Jun 05 '14, 3:30 a.m. | edited Jun 05 '14, 3:31 a.m.

I use the one specified in the above reply in 4.0.6 and I can see the defect info properly in the response. Are you able to see the defect in your TCER view?
You may want to try what Stephane suggested "?calmlinks=true " or "etlmode=true"


Regarding modified date based defect, you can try to add the below:

&oslc.select=dcterms:title,dcterms:modified&oslc.where=dcterms:modified>=<^^xsd:dateTime>

Your answer


Register or 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.