It's all about the answers!

Ask a question

Create "Test Plan Environment Types" from RqmApi


Matthew Brazeau (2155) | asked Oct 15 '14, 6:25 p.m.
Go to "Manage Project Properties" in the RQM interface, and "Test Plan Environment Types". I need to define "Test Plan Environment Types" via the Reportable REST RqmApi. That way, when I PUT a 'configuration', I can include said configurations type in <configurationPart type=..../>.

Please show associated GET / PUT requests with correct XML schema in a response. A GET of a projects 'labresourceattribute' seems to reveal all Test Plan Environment Types, but I have been unsuccessful in PUTting them back (400 Bad Request). 

Best,

-Matt


One answer



permanent link
Donald Nong (14.5k414) | answered Oct 16 '14, 6:54 a.m.
edited Oct 16 '14, 6:59 a.m.
PUT the below content to
https://clm:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project>/labresourceattribute
< ?xml version="1.0" encoding="UTF-8"?>
< ns4:labresourceattribute 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">
< ns4:projectArea alias="JKE+Banking+%28Quality+Management%29" href="https://clm:9443/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_njWlEFP7EeS6jMvm4Cce5Q"/>
< ns4:externalIdentifier>OSLC< /ns4:externalIdentifier>
< ns6:title>OSLC< /ns6:title>
< ns4:parent href="https://clm:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/labresourceattribute/urn:com.ibm.rqm:labresourceattribute:358">CPU< /ns4:parent>
< /ns4:labresourceattribute>
Note that you can only "create", not "update" this resource using REST API. Of course you can always update it in the GUI. Another issue is that the recourse can be filtered only by the attribute "update", and you will have a hard time to find your newly created resource since the response does not contain anything relevant except for HTTP 201 code.

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.