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
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 xmlns="http://www.w3.org/1999/xhtml">
<div dir="ltr">policy create </div>
</div>
</ns16:expectedResult>
<ns16:actualResult>
<div xmlns="http://www.w3.org/1999/xhtml">policy was created </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:tester ns7:resource="https://jts.xxxx.oncloudone.com/jts/resource/itemName/com.ibm.team.repository.Contributor/yyyy">yyyy</ns16:tester>
<ns16:comment/>
<ns16:compare/>
</ns16:stepResult>
|
2 answers
![]() 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
Comments HI, i am doing GET and PUT on <executionresult>, not the <executionelementresult >.
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.
|
![]() 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? 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
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:
<entry xmlns:rqm="http://schema.ibm.com/rqm/2007#executionresult" xmlns="http://www.w3.org/2005/Atom">
<rqm:resultItemId xmlns:rqm="http://schema.ibm.com/rqm/2007#executionresult">_-QgtgBd0EeuM8KXaU6NXCg</rqm:resultItemId>
<rqm:resultExternalId xmlns:rqm="http://schema.ibm.com/rqm/2007#executionresult">urn:com.ibm.rqm:executionresult:4262</rqm:resultExternalId>
</entry>
What do you get?
Hi , I am getting the same response as u r getting
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
showing 5 of 9
show 4 more comments
|
Comments
Hi followings are the details
1) RQM 6.0.6
2)REST CLIENT Mozzila firebox browser
3) two headers
i) Accept : text/xml