How to create a TER for a given test case-id using a REST call
Hi,
As part of our automation framework which we are developing (using selenium), we need to do the following in code
Open Test Case in RQM <given test case-id>
Create a Test Execution Request (passing in options for project-name, release version, browser under test..)
Record the TER-id from the creation request
Run our Automation script corresponding to <given test case-id>
I'd like to try and figure out the REST URLs and first test these using say postman / poster
Once I'm able to get postman / poster able to generate a TER based on my supplied options, I'd then code this.
From reading other questions posted, it appears that is possible to do some querying which returns a lot of xml :)
e.g. I can see a services xml file by posting a URL like this:
https://nsjazz.raleigh.ibm.com:8032/jazz/oslc_qm/contexts/_DNIaELwiEd-a_P15jF1E4A/services.xml
However, I'm unsure how to use this services information to say open test case 14464 and create a TER for it
Any help on how to create this TER would be great
Thanks!
|
2 answers
Hi Garret,
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>
https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/
resources/<projectAlias>/executionworkitem
Comments You can get more info in jazz.net wiki page. Link is as below:
|
Hi Reshma,
How can we link an RTC defect with Test Case Execution Result?
I am able to create the TC execution result but unable to link RTC defect with it.
Basically my requirement is, I want to link an RQM test case with RTC defect using REST API. One way I got to know to achieve this is by attaching the defect to an Test case execution result. I tried following -
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
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.
|
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.