import XML map

Moderators: Amaradana, TurboPT, TL Developers

import XML map

Postby schmack » Tue Mar 26, 2013 1:02 am

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
schmack
TestLink user
 
Posts: 9
Joined: Thu Jul 28, 2011 6:59 pm

Re: import XML map

Postby jackzhang » Wed Mar 27, 2013 3:48 am

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: viewtopic.php?f=11&t=7221
jackzhang
TestLink user
 
Posts: 8
Joined: Wed Jan 30, 2013 7:03 pm


Return to Import / Export



Who is online

Users browsing this forum: No registered users and 1 guest