Unable to update executionresult state with REST api in ETM 7.0.3
Hi all,
I am using the ETM Reportable REST api (RQM REST api) to update the execution result state. However, when I am using PUT api to update the field <ns6:state>com.ibm.rqm.execution.common.state.failed</ns6:state> it shows Error400 AQXEX5065E The execution state"com.ibm.rqm.execution.common.state.failed" is not valid. the other state like com.ibm.rqm.execution.common.state.passed are also shown as invalid
I noticed that the change log from 7.0.2 to 7.0.3 says From 7.0.2 iFix009 onwards, the result state ID is only allowed to modify the state according to the schema. The display name of the result state is not allowed for the value. But all the state identifier I tried are returned as staled.
Is there any way I can update the executionresult state?
update:
the header I used is
'''
headers = {"Content-Type":"application/xml", "Referer":"https://elm.outrider.ai:443/qm"} response = requests.put(url=resourceUrl, data=data_in_xml, headers={ headers, self.auth_headers})
'''
data_in_xml is the xml PULL response I get from the exisiting resource with all ready-only tags filtered out, and only state tag modified.
All other not ready-only tags in xml file can be updated except this state tag
Version: IBM Engineering Test Management Version: 7.0.3
|
Be the first one to answer this question!
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.
Comments
There is simply not enough information to even start to try to answer. Which API is used? OSLC? Reportable REST? Which method? Which URL, which headers and additional parameters?
Hi Ralph, thanks for your response. I am using Reportable REST API. I am using PUT method to update the resource of executionresult, the URL I used to test is <myintegrationUrl>/resources/JKE+Banking+%28Quality+Management%29/executionresult/urn:com.ibm.rqm:executionresult:100
This is beyond my experience, sorry. Please bookmark https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
Check: https://jazz.net/wiki/bin/view/Main/RqmApi#Notable_changes_from_ETM_7_0_2_t and consider: