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
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 02 '24, 3:03 a.m.Jinghui Song
Jan 02 '24, 12:05 p.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 03 '24, 2:11 a.m.