How to access History section of test case & test case execution record in RQM through OSLC or REST API queries
Accepted answer
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.
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.
One other answer
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
Please have a look at my answer.
Hi Subhajit,
Thanks for this answer.
But this is not working and giving error 404
<oslc:statusCode>
</oslc:statusCode>
404
<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.