It's all about the answers!

Ask a question

Updating Custom Attribute Values in TestPlan-TestCase via OSLC


Stephen Valliere (231418) | asked May 29 '14, 3:53 p.m.
Based on this comment in the RQM API:

PUT (create/update) requests now require an external ID. PUT (create/update) requests without an external ID will return 400 (Bad Request). As an alternative, use POST (create only) requests, which do not require an external ID. For more information, see Usage Basics.

How do you update a Testplan that was created internally and has no external ID?

I have tried using the internal ID anyway, and it doesn't work. I have also tried a POST which doesn't work, because as it says above POST is only for create.

Accepted answer


permanent link
Donald Nong (14.5k614) | answered May 29 '14, 11:58 p.m.
You will need a URL like this
https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/testplan/urn:com.ibm.rqm:testplan:<internalID>
https://jazz.net/library/article/1376
Replace <server>, <port>, <project> and <internalID> with the actual one.
For example, I PUT this
<?xml version="1.0" encoding="UTF-8"?><ns4:testplan xmlns:ns4="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/elements/1.1/" xmlns:ns7="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://purl.org/dc/terms/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform"><com.ibm.rqm.planning.editor.section.planBusinessObjectives xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="RQM-KEY-TP-BUSS-OBJ-TITLE"><div xmlns="http://www.w3.org/1999/xhtml">This is to show the PUT method</div></com.ibm.rqm.planning.editor.section.planBusinessObjectives></ns4:testplan>
to
https://<server>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE Banking (Quality Management)/testplan/urn:com.ibm.rqm:testplan:7
to update the Business Objectives of an existing test plan.



Stephen Valliere selected this answer as the correct answer

Comments
Stephen Valliere commented May 30 '14, 7:30 a.m.

I was using this exact method, it turns out there was an issue with the Sample Project I was using for my testing. When I created a new project and tried it again, it worked.

Thanks for the response!

Your answer


Register or to post your answer.


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.