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

Import Test Script into Test Manager using XML with Custom Attributes

 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>

0 votes



2 answers

Permanent link

 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

0 votes

Comments

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

 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>

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
× 12,019

Question asked: Jun 16 '21, 2:27 p.m.

Question was seen: 1,716 times

Last updated: Jan 28 '23, 12:40 p.m.

Confirmation Cancel Confirm