Hello, I'm having some problems in importing a XML file with test cases (converting from XLS to XML)...
the XML map:
<?xml version="1.0" encoding="UTF-8"?>
<testcases>
<testcase name="10 G shock">
<summary><![CDATA[]]></summary>
<steps><![CDATA[]]></steps>
<expectedresults><![CDATA[]]></expectedresults>
</testcase>
<testcase name="Gamma Ray Storm">
<summary><![CDATA[]]></summary>
<steps><![CDATA[]]></steps>
<expectedresults><![CDATA[]]></expectedresults>
</testcase>
</testcases>
XLS file (colums):
Test case name
summary
steps
Expected results
after exporting to XML (from XLS) and importing to TestLink the only this that is created is the case case but no step or expected results... What should the problem??
Thanks
import XML map
Moderators: Amaradana, TurboPT, TL Developers
Re: import XML map
Hi,
It seems that the XML format you posted is not so correct. Umm...you could have a try with the format like below?:
-------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<testcases>
<testcase internalid="" name="case 001">
<node_order><![CDATA[]]></node_order>
<externalid><![CDATA[]]></externalid>
<version><![CDATA[]]></version>
<summary><![CDATA[summary 001]]></summary>
<preconditions><![CDATA[preconditions 001]]></preconditions>
<execution_type><![CDATA[1]]></execution_type>
<importance><![CDATA[2]]></importance>
<steps>
<step>
<step_number><![CDATA[1]]></step_number>
<actions><![CDATA[actions 00101]]></actions>
<expectedresults><![CDATA[expected 00101]]></expectedresults>
<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>
</testcases>
-------------------------------------------------
Also, earlier I posted a tool in forum for converting from XLS to XML, which may help you with this job.
Here: http://www.teamst.org/forum/viewtopic.php?f=11&t=7221
It seems that the XML format you posted is not so correct. Umm...you could have a try with the format like below?:
-------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<testcases>
<testcase internalid="" name="case 001">
<node_order><![CDATA[]]></node_order>
<externalid><![CDATA[]]></externalid>
<version><![CDATA[]]></version>
<summary><![CDATA[summary 001]]></summary>
<preconditions><![CDATA[preconditions 001]]></preconditions>
<execution_type><![CDATA[1]]></execution_type>
<importance><![CDATA[2]]></importance>
<steps>
<step>
<step_number><![CDATA[1]]></step_number>
<actions><![CDATA[actions 00101]]></actions>
<expectedresults><![CDATA[expected 00101]]></expectedresults>
<execution_type><![CDATA[1]]></execution_type>
</step>
</steps>
</testcase>
</testcases>
-------------------------------------------------
Also, earlier I posted a tool in forum for converting from XLS to XML, which may help you with this job.
Here: http://www.teamst.org/forum/viewtopic.php?f=11&t=7221