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

Test case actual results are not modified in RQM after completion of PUT request successfully

Hi, I did GET request and got the xml content , Then i modified the actual results in that xml and trying to PUT it again .After PUT i am getting code 200 OK (that means no error ) but when i actually see the results in tool results are not modified
please help anyone ?

Update 
PS:- <actualResults> is not the title
I see that i can change the <title> but Not the <stepResults >
I think it is some kind of limitation  
Any workaround ? 

Sample code 
<ns16:stepResult href="https://qm.xxxx.oncloudone.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/EES+V_V+Certification/executionelementresult/_KOMdMVFtEeutaIe53Y8_aw" stepIndex="1" ns1:id="_KOMdMVFtEeutaIe53Y8_aw" endTime="2021-01-08T04:51:40.079Z" startTime="2021-01-08T04:51:40.079Z" result="com.ibm.rqm.execution.common.state.passed">
<ns16:startTime>2021-01-08T04:51:40.079Z</ns16:startTime>
<ns16:endTime>2021-01-08T04:51:40.079Z</ns16:endTime>
<ns16:result>com.ibm.rqm.execution.common.state.passed</ns16:result>
<ns16:expectedResult>
<div dir="ltr">policy create&#160;</div>
</div>
</ns16:expectedResult>
<ns16:actualResult>
<div xmlns="http://www.w3.org/1999/xhtml">policy was created&#160;</div>
</ns16:actualResult>
<ns16:description>
<div xmlns="http://www.w3.org/1999/xhtml">1.create the policy</div>
</ns16:description>
<ns16:stepType>com.ibm.rqm.execution.common.elementtype.execution</ns16:stepType>
<ns16:comment/>
<ns16:compare/>
</ns16:stepResult>

0 votes

Comments
it would be helpful is you provide
1) RQM version
2) what tool/client you used to GET/PUT
3) what headers you used
4) sample xml and what you have changed

Hi followings are the details 
1) RQM 6.0.6 
2)REST CLIENT Mozzila firebox browser
3) two headers 
     i) Accept : text/xml

     ii)Content-Type:application/xml
4) the same xml response which i got after GET request with change of text in actual result 



2 answers

Permanent link

Hi Pavan, this is not an answer but it appears I cannot make a comment. In addition to Don's comment, please note that some of the fields are readonly as per the schema, so it depends what fields you were actually updating?

0 votes

Comments

  hi thanks Daniel

i am updating test case execution result 
Note:- i see in tool the date and time of step result updation is being changed but not the text (actual result) 

Not sure what field that is "actual result" is that a custom attribute or do you mean "title"? 

Hi , please have a look at the image attached which describes the webpage

Sorry unable to attach image !!

actual results is title
in which we have to fill the results.

Interestingly Pavan, just done a GET and a PUT (using Postman) modifying the "title" field : <ns4:title>Original title (modification)</ns4:title> and it all works
The only thing I can think of is that there might be a constraint on the title to be unique, but I would not expect a 200 Ok if there was a conflict. 
I get the following in response to the PUT:
What do you get?

Hi , I am getting the same response as u r getting
Note: -<ns2:stepResultsUpdateStatus>NOMODIFICATION
I see this in GET response, is that a problem ? or just showing that not modified ?

Hi Pavan, I also get that same value in stepResultUpdateStatus so I don't think that is your problem. Sadly I am at a bit of a loss now.

PS:- I see that i can change the <title> but Not the stepResults 
I think it is some kind of limitation 
Any workaround ? 

showing 5 of 9 show 4 more comments

Permanent link

Hi Pavan,


I can now see what you are trying to do and it appears as per https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op  this is not possible, it shows that you can only do a GET operation on an executionelementresult which is what you are trying to do a Nested PUT on. So the parent PUT works as you have not changed anything (presumably) and the Nested PUT is not attempted as it is not allowed.

Danny

0 votes

Comments

HI, i am doing GET and PUT on <executionresult>, not the <executionelementresult >.
And PUT is accepted in this 

 

Hi Pavan, I agree with you but it is that the executionelementresult is a nested element, not the primary, so it is the executionelementresult that you are trying to do a Nested PUT on. Please see this section : RqmApi < Main < TWiki (jazz.net), you will note that the following is allowed:

executionresult -> executionworkitem
but not 
executionresult -> executionelementresult
So you are trying to do a nested PUT, even though it does not "feel" like it, so you are not going to be update that item. Unfortunately unless anyone from the Jazz team knows otherwise.

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
× 7,487
× 1,316

Question asked: Jan 06 '21, 12:54 a.m.

Question was seen: 1,514 times

Last updated: Jan 08 '21, 7:09 a.m.

Related questions
Confirmation Cancel Confirm