It's all about the answers!

Ask a question

Import Test Script into Test Manager using XML with Custom Attributes


Gregory Munilla (11) | asked Jun 16, 2:27 p.m.

 I am trying to import a test script based on the example but with an added custom attribute (XML shown below) The import succeeds but the custom attribute isnt created, even if it is created as an attribute in Jazz beforehand. Does anyone know what needs to be done to import a test script with a custom attribute?


<?xml version="1.0" encoding="UTF-8"?>
  <title xmlns="http://purl.org/dc/elements/1.1/">New Customer Order Test Script</title>
  <description xmlns="http://purl.org/dc/elements/1.1/">Steps to manually test the Customer Order functionality</description>
  <category xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" value="Web UI" term="Function"/>
  <state xmlns="http://jazz.net/xmlns/alm/v0.1/">com.ibm.rqm.planning.common.new</state>
    <step xmlns="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" type="execution">
      <description>
        <div xmlns="http://www.w3.org/1999/xhtml">Log in to the system</div>
      </description>
      <expectedResult>
        <div xmlns="http://www.w3.org/1999/xhtml">Login succeeds</div>
      </expectedResult>
      <customAttributes>
        <name>
      <div xmlns="http://www.w3.org/1999/xhtml">Station</div>
    </name>
    <value>
      <div xmlns="http://www.w3.org/1999/xhtml">Station</div>
    </value>
      </customAttributes>
    </step>
    <step type="execution">
      <description>
        <div xmlns="http://www.w3.org/1999/xhtml">Place an order</div>
      </description>
      <expectedResult>
        <div xmlns="http://www.w3.org/1999/xhtml">An order is created in the system</div>
      </expectedResult>
    </step>
  </steps>
</testscript>

One answer



permanent link
Karthik Sirimulla (1411) | answered Jun 18, 3:05 a.m.

 Hello Gregory,


When you import a test script, 
 - If custom attribute exists, you can map the values specified in XML to the existing custom attribute
 - If custom attribute does not exist prior in the system but defined in XML, new custom attribute is created. I can see the custom attribute once I refresh my page

Thanks,
Karthik


Comments
Gregory Munilla commented Jun 30, 1:19 p.m.

Hi,


Unfortunately this does not occur when I import the XML. The test script is created but there is no custom attribute, even if I change the name of the custom attribute to one that doesnt already exist in the system.

Do you know why this might be happening? 

Your answer


Register or to post your answer.