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