Need assistance on updating the Last Result field on Test Case Execution Record as PASSED/FAILED/BLOCKED using Jazz REST API
I need some assistance on updating the Last Result field on Test Case Execution Record as passed/failed/blocked using Jazz REST API. Usually we will create the Test Plan and Generate the Test case execution records manually, Initial status of Last Result column of Test case execution record is empty when we create the Test Plan, <o:p> </o:p> then after that we wanted to use the Jazz REST API to update the Last Result Column status of the Test case execution record with passed or failed or blocked. Have tried to use the some of the Jazz REST APIs but nothing worked. I am using the following headers while sending GET/PUT Requests => {"Accept": "application/atom+xml"}
RQM Version we are using is 6.0.4 <o:p> </o:p> Have tried below link but it didn't work: |
4 answers
Geoffrey Clemm (30.1k●3●30●35)
| answered Aug 18 '21, 12:20 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER The "last result" column is a query (for the latest test result artifact), and not a field that you can directly update. So if you create a new Test Result artifact for that TCER, it should appear as the "last result" (until you create a new Test Result artifact). Comments Thanks for the reply Geoffrey.
Can I get assistance on how to create a new Test Result artifact for the TCER (means creating a new Test Result artifact for the TCER)
Geoffrey Clemm
commented Aug 19 '21, 8:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
https://jazz.net/wiki/bin/view/Main/RQMTestAutomationAdapterAPI is where I'd suggest starting.
chinakotireddy challa
commented Aug 23 '21, 4:55 a.m.
Hi Gepffrey, I have started looking into it, am struggling to get the API to create creating a new Test Result artifact for the TCER, it would be great if there is an example how to create a new Test Result artifact for the TCER.
Geoffrey Clemm
commented Aug 23 '21, 10:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Unfortunately, I have never used the API personally, so cannot give any detailed guidance. If we don't get a response from someone else on the forum, I'll ping a couple of folks on the dev team to see if they have time to respond.
chinakotireddy challa
commented Aug 23 '21, 4:57 p.m.
Thanks Geoffrey That would be Great |
Hi Challa,
Last Result field on Test Case Execution Record is the result of the latest run.
If you want to update the last result of TCER :
1. Go to the latest result of the TCER and updated the result to the desired result
or
2. Created a new result for TCER
for help.
Comments
chinakotireddy challa
commented Sep 02 '21, 7:49 a.m.
Hi Karthik,
Thanks for information, I see that in the link you have provided, there is REST APIs to create the Test case execution result mentioned below, but there field myChosen ID, which is unknown and there is no tcer id to pass here in this Rest API
Create a Test Case Execution Results (ext ID “myChosenID”)
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/executionresult/myChosenID
|
Need assistance on updating the Last Result field on Test Case Execution Record as PASSED/FAILED/BLOCKED using Jazz REST API. Comments
chinakotireddy challa
commented Sep 02 '21, 7:40 a.m.
Hi Enid, I haven't get the right answer on this, I am still blocked on this |
The Owner field is set to the last tester who ran the test. Tested By; Test Plan; Iteration; Test Case; Test Script; Test Data; Build; Weight. |
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.