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

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

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

0 votes


Accepted answer

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

1 vote

Comments

 Thanks Don & Subhajit.

It Works !

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
 https://<server name>:<port>/<context>/secure/service/com.ibm.rqm.integration.service.IIntegrationService/history?resourceId=resources/<project area>/<test artifact type>/<test artifact identifier>

0 votes

Comments

Please have a look at my answer.

  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 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: Jun 29 '15, 4:44 a.m.

Question was seen: 3,210 times

Last updated: Jun 30 '15, 7:21 p.m.

Confirmation Cancel Confirm