How to create a TER for a given test case-id using a REST call
Create a Test Execution Request (passing in options for project-name, release version, browser under test..)
2 answers
You can GET or POST xml of any artifact using below url
https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/
resources/<projectAlias>/<resourceType>
So if you want to GET a TestCase in RQM, in browser paste below url. You will get a list of the TestCases. Copy your desired TestCase url and do a GET using POSTER utility. This will give you the xml content of that TestCase
https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/
resources/<projectAlias>/testcase
If you want to create a TER in RQM, then do a POST to below url using POSTER with xml content having your desired content
https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/
resources/<projectAlias>/executionworkitem
To get format of TER xml, you can do a GET of any existing TERs in RQM using POSTER
NOTE: You will need to login from UI before using POSTER and while doing a GET or POST add Header (user-agent)
Hope this helps
Thanks
Comments
You can get more info in jazz.net wiki page. Link is as below:
https://jazz.net/wiki/bin/view/Main/RqmApi#Feeds
we added following xml tag in <StepResult> tag of the execution result xml to generate TC execution result in RQM
<ns16:properties>
<ns16:property propertyType="rtcdefectView"propertyValue="https://projectintegrationURL/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/120" propertyName="120: Defect name" />
</ns16:properties>
and as suggested, sent a POST request to
https://<host>:port>/<contextroot>/service/com.ibm.rqm.integration.service.IIntegrationService/
resources/<projectalias>/executionworkitem
It created the Execution result in RQM but did not link defect with it.
Let me know if you know if you know any solution to achieve this.
Thanks in advance.