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"?>
<description xmlns="http://purl.org/dc/elements/1.1/">Steps to manually test the Customer Order functionality</description>
<description>
</description>
<expectedResult>
</expectedResult>
<customAttributes>
<name>
</name>
<value>
</value>
</customAttributes>
</step>
<step type="execution">
<description>
</description>
<expectedResult>
</expectedResult>
</step>
</steps>
</testscript>
|
2 answers
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?
|
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"?>
<testscript xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
<title xmlns="http://purl.org/dc/elements/1.1/">CMS100</title>
<description xmlns="http://purl.org/dc/elements/1.1/">Track Dead / Track Alive Indication</description>
<customAttributes>
<name><div xmlns="http://www.w3.org/1999/xhtml">summary_description</div></name>
<value><div xmlns="http://www.w3.org/1999/xhtml">Track Dead / Track Alive Indication</div></value>
<name><div xmlns="http://www.w3.org/1999/xhtml">version</div></name>
<value><div xmlns="http://www.w3.org/1999/xhtml">V10</div></value>
</customAttributes>
<steps xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
<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>
<expectedResult> <div xmlns="http://www/w3.org/1999/xhtml"></div></expectedResult></step>
<step xmlns="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" type="execution">
<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
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.