Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Create "Test Plan Environment Types" from RqmApi

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


0 votes



One answer

Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,950

Question asked: Oct 15 '14, 6:25 p.m.

Question was seen: 4,842 times

Last updated: Oct 16 '14, 6:59 a.m.

Confirmation Cancel Confirm