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="">New Customer Order Test Script</title>
  <description xmlns="">Steps to manually test the Customer Order functionality</description>
  <category xmlns="" value="Web UI" term="Function"/>
  <state xmlns=""></state>
    <step xmlns="" type="execution">
        <div xmlns="">Log in to the system</div>
        <div xmlns="">Login succeeds</div>
      <div xmlns="">Station</div>
      <div xmlns="">Station</div>
    <step type="execution">
        <div xmlns="">Place an order</div>
        <div xmlns="">An order is created in the system</div>

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


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


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 (287) | 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="">Track Dead / Track Alive Indication</description>
    <value><div xmlns="">Track Dead / Track Alive Indication</div></value>
 <step xmlns="" type="execution">
<description> <div xmlns="">CMS100a.1: Traction Breakers</div></description>
<description> <div xmlns="">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/">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.