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

Change RQM test case section name using RQM REST API

Hi guys,

I'm using a PUT XML to RQM API to change the test case design section name to "My Test Case Design Name". (See example below)

It loads correctly the contents of the test case design but it doesn't change the section name.

Do you know how to change a section name by PUT XML REST to RQM server?

Thanks in advance

<?xml version="1.0" encoding="UTF-8"?><testcase xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/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:ns2="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns7="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1"><projectArea href="https://ccrat.cc.mercadona.es:9443/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_VUiNMDWaEeKWddCGORNfeQ"/><ns4:identifier>https://ccrat.cc.mercadona.es:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SIEXT/testcase/SIEXT00000018</ns4:identifier><webId>34579</webId><ns4:title>Enviar Trabajo sin fichero de datos</ns4:title><ns4:description>Enviar un trabajo de impresión sin incluir un fichero de datos a imprimir.</ns4:description><creationDate>2012-11-24T12:52:09.322Z</creationDate><ns5:updated>2013-01-10T10:12:04.405Z</ns5:updated><ns5:state>com.ibm.rqm.planning.common.new</ns5:state><ns4:creator ns3:resource="https://ccrat.cc.mercadona.es:9443/jts/resource/itemName/com.ibm.team.repository.Contributor/jtsadmin">jtsadmin</ns4:creator><ns5:owner ns3:resource="https://ccrat.cc.mercadona.es:9443/jts/resource/itemName/com.ibm.team.repository.Contributor/getronic">getronic</ns5:owner><locked>false</locked><weight>1</weight><variables/><template href="https://ccrat.cc.mercadona.es:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SIEXT/template/testcase/com.ibm.rqm.planning.templates.testcase.default"/><com.ibm.rqm.planning.editor.section.testCaseDesign extensionDisplayName="My Test Case Design Name"><div xmlns="http://www.w3.org/1999/xhtml"><pre>New Test case design contents correctly updated. Why does not change the extensionDisplayName???
</pre></div></com.ibm.rqm.planning.editor.section.testCaseDesign><com.ibm.rqm.planning.editor.section.testCasePreCondition extensionDisplayName="Precondition"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></com.ibm.rqm.planning.editor.section.testCasePreCondition><com.ibm.rqm.planning.editor.section.testCasePostCondition extensionDisplayName="Postcondition"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></com.ibm.rqm.planning.editor.section.testCasePostCondition><com.ibm.rqm.planning.editor.section.testCaseNotes extensionDisplayName="Notes"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></com.ibm.rqm.planning.editor.section.testCaseNotes><com.ibm.rqm.planning.editor.section.testCaseAcceptanceCriteria extensionDisplayName="Acceptance Criteria"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></com.ibm.rqm.planning.editor.section.testCaseAcceptanceCriteria><LegacyCustomField extensionDisplayName="LegacyCustomField"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></LegacyCustomField><LegacyInputData extensionDisplayName="LegacyInputData"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></LegacyInputData><LegacyPassPoints extensionDisplayName="LegacyPassPoints"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></LegacyPassPoints><LegacyFailPoints extensionDisplayName="LegacyFailPoints"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></LegacyFailPoints><LegacyDesign extensionDisplayName="LegacyDesign"><div xmlns="http://www.w3.org/1999/xhtml"><body/></div></LegacyDesign><History extensionDisplayName="History"><div xmlns="http://www.w3.org/1999/xhtml">33554589    2011-05-24 05:03:58    getronic    Submit    no_value    Draft33554669    2011-05-24 10:45:01    getronic    Modify    Draft    Draft</div></History></testcase>

0 votes



2 answers

Permanent link
The extensionDisplayName attribute (not a property) of the qm:com.ibm.rqm.planning.editor.section.testCaseDesign element is read-only.

0 votes

Comments

Hi Paul,

Thanks for your quick response.

I was using the CQTM export utility (eclipse client) to RQM and I modified the migration.cfg file

....
 <mapping from="test_case_design" to="myns:com.ibm.rqm.planning.editor.section.testCaseDesign extensionDisplayName=&quot;Diseno del caso de pruebas&quot;" pre="true"/>
.......

That seems to work changing the extensionDisplayName to "Diseno del caso de pruebas"

I was wondering to do the same with XML PUT. I thought CQTM export utility uses REST API. Is that true?


Permanent link
Hi Luis,

The RQM Reportable API does not support setting the extensionDisplayName attribute.  The CQTM Export Utility may be creating a new test with a new test case section (and name).

Note, the com.ibm.rqm.planning.editor.section.testCaseDesign element (see https://jazz.net/products/rational-quality-manager/api-doc-4.0/api-files/schemas/qm_xsd/elements/testcase_1.html#r15) is of type qm:richtext (see https://jazz.net/products/rational-quality-manager/api-doc-4.0/api-files/schemas/qm_xsd/complexTypes/richtext.html).  As such, extensionDisplayName is an attribute (not a property) that is not documented in the RQM schema (https://jazz.net/wiki/bin/view/Main/RqmApi#Detailed_Schema_Documentation).

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,948

Question asked: Jan 10 '13, 5:42 a.m.

Question was seen: 6,558 times

Last updated: Jan 13 '13, 6:44 p.m.

Confirmation Cancel Confirm