How do I update a testcase custom attribute using REST API?
CLM 5.0.1
I've tried the next URL with the PUT command:
Custom attribute name = copyFromID
https://<CLMServer>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectAreaName>/testcase/urn:com.ibm.rqm:testcase:11578?copyFromID=11578
Would appreciate your assistance,
Liora
One answer
Hi Liorna,
You need to PUT the testcase XML (see https://jazz.net/wiki/bin/view/Main/RqmApi#Update) with the custom attributes.
You need to PUT the testcase XML (see https://jazz.net/wiki/bin/view/Main/RqmApi#Update) with the custom attributes.
Comments
What is the XML representation of this attribute for a specific testcase? This is something I can't figure out.
Paul,
I appreciate your assistance. The documentation is somewhat unclear to newbies like myself. Could you give me an example to how this is done?
Hi Liora,
You would GET the testcase XML, add the custom attribute(s), and PUT the testcase XML. The https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip and the RQM XML schema documentation (https://jazz.net/wiki/bin/view/Main/RqmApi#Detailed_Schema_Documentation) are required to determine the XML representation of the custom attribute(s).