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). 



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
< ?xml version="1.0" encoding="UTF-8"?>
< ns4:labresourceattribute xmlns:ns4="" xmlns:ns1="" xmlns:ns2="" xmlns:ns3="" xmlns:ns5="" xmlns:ns6="" xmlns:ns7="" xmlns:ns8="" xmlns:ns9="" xmlns:ns10="" xmlns:ns11="" xmlns:ns12="" xmlns:ns13="" xmlns:ns14="" xmlns:ns16="" xmlns:ns17="">
< ns4:projectArea alias="JKE+Banking+%28Quality+Management%29" href="https://clm:9443/qm/resource/itemOid/"/>
< ns4:externalIdentifier>OSLC< /ns4:externalIdentifier>
< ns6:title>OSLC< /ns6:title>
< ns4:parent href="https://clm:9443/qm/service/">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.