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

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:

https://jazz.net/forum/questions/272963/test-case-actual-results-are-not-modified-in-rqm-after-completion-of-put-request-successfully

0 votes



4 answers

Permanent link

  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.


0 votes


Permanent link

Need assistance on updating the Last Result field on Test Case Execution Record as PASSED/FAILED/BLOCKED using Jazz REST API.


0 votes

Comments

Hi Enid, I haven't get the right answer on this, I am still blocked on this  


Permanent link

 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.

0 votes

Comments

 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”)


Permanent link

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).

0 votes

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)

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.

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.

Thanks Geoffrey That would be Great 

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: Aug 18 '21, 11:58 a.m.

Question was seen: 1,420 times

Last updated: Sep 08 '21, 5:32 a.m.

Confirmation Cancel Confirm