It's all about the answers!

Ask a question

How to access History section of test case & test case execution record in RQM through OSLC or REST API queries


Rishi Sharma (6616) | asked Jun 29 '15, 4:44 a.m.
Anybody has any understanding on this: How to access History section of test case & test case execution record in RQM through OSLC or REST API queries

Accepted answer


permanent link
Don Yang (7.7k21114139) | answered Jun 30 '15, 12:34 a.m.
In my test(5.0.1), the below works fine:

https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/history?resourceId=resources/RQM1/testcase/urn:com.ibm.rqm:testcase:65

So in your case, it should be something like:
https://was2201.rishi.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/history?resourceId=resources/Rishi_2015/testcase/urn:com.ibm.rqm:testcase:21

https://was2201.rishi.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/history?resourceId=resources/Rishi_2015/executionworkitem/urn:com.ibm.rqm:executionworkitem:27

Not sure if the project area alias is correct or not in your case. If doubt, you can try to run:
https://was2201.rishi.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projects
which should list the project areas and its alias and you can copy and paste alias into the URL.

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

Hopefully this helps.


Ian Barnard selected this answer as the correct answer

Comments
Rishi Sharma commented Jun 30 '15, 2:10 p.m.

 Thanks Don & Subhajit.

It Works !


Don Yang commented Jun 30 '15, 7:21 p.m.

Thanks Rishi for the update and glad to know it works for you. Please
consider accepting the answer as it helps so that it won't appear on the list with no-accepted answer feed any more(no need to pay attention from the community).

One other answer



permanent link
Subhajit Bhuiya (6222) | answered Jun 29 '15, 6:06 a.m.
JAZZ DEVELOPER
 https://<server name>:<port>/<context>/secure/service/com.ibm.rqm.integration.service.IIntegrationService/history?resourceId=resources/<project area>/<test artifact type>/<test artifact identifier>

Comments
Rishi Sharma commented Jun 30 '15, 12:04 a.m.

Please have a look at my answer.


Rishi Sharma commented Jun 30 '15, 12:04 a.m. | edited Jun 30 '15, 12:12 a.m.

  Hi Subhajit,


Thanks for this answer.
But this is not working and giving error 404
<oslc:statusCode>
404
</oslc:statusCode>
<oslc:message>
AQXCM5008E The operation cannot be completed because the resource, <query>, was not found.
</oslc:message>

I think the syntax that I am writing is not proper.Please help on this.

server name : https://was2201.rishi.com
Project Area in RQM: Rishi_2015
I want to get history section of test case & test case exec record
Id of test case : 21
Id of TCER: 27

Using the above details how would the query be written?
Thanks in advance.

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.