It's all about the answers!

Ask a question

Import Test Script into Test Manager using XML with Custom Attributes


Gregory Munilla (111) | asked Jun 16 '21, 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>

2 answers



permanent link
Karthik Sirimulla (1811) | answered Jun 18 '21, 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 '21, 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? 


permanent link
David Sedar (2817) | answered Jan 28 '23, 12:40 p.m.

 I am having exactly the same problem as Gregory - using SaaS ETM v7.0.2


My Test Script custom attributes exist, using the same URI, but the Test Script Import fails to populate the values, no errors, just silently appears to ignore them.
XML fragment:

 <?xml version="1.0" encoding="UTF-8"?>
<description xmlns="http://purl.org/dc/elements/1.1/">Track Dead / Track Alive Indication</description>
<customAttributes>
    <value><div xmlns="http://www.w3.org/1999/xhtml">Track Dead / Track Alive Indication</div></value>
</customAttributes>  
 <step xmlns="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" type="execution">
<description> <div xmlns="http://www.w3.org/1999/xhtml">CMS100a.1: Traction Breakers</div></description>
<description> <div xmlns="http://www.w3.org/1999/xhtml">From the Windows login window, log in as a user with the credentials provided by the CRE.
Use the ECO role to perform this test.
Navigate to Area 2.</div></description>
<expectedResult> <div xmlns="http://www/w3.org/1999/xhtml">Successfully logged in.
 Current mode is indicated to the user.
AoR Map displayed on left monitor, and default position Traction Map View displayed on centre monitor.</div></expectedResult></step>

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.