2
I have a spreadsheet where on each line I register a test case and then export it to XML, then upload this xml into another system we use.
The problem is that I can only do 1 to 1, I can’t fill several lines and then export everything, when I do this XML exports only the first line and nothing else or gives an error that I can’t handle.
Currently exports in this way:
<testcases>
<testcase internalid="980" name="Caso de testes Importação">
<node_order><![CDATA[100]]></node_order>
<externalid><![CDATA[1]]></externalid>
<version><![CDATA[1]]></version>
<summary><![CDATA[<p> O caso de teste deve fazer isso </p>]]></summary>
<preconditions><![CDATA[<p> <a id="fck_paste_padding"></a> Pré Condições od caso de testes</p>]]></preconditions>
<execution_type><![CDATA[1]]></execution_type>
<importance><![CDATA[2]]></importance>
<steps>
<step>
<step_number><![CDATA[1]]></step_number>
<actions><![CDATA[<p> A1</p>]]></actions>
<expectedresults><![CDATA[<p> EXC1</p>]]></expectedresults>
<execution_type><![CDATA[1]]></execution_type>
</step>
<step>
<step_number><![CDATA[2]]></step_number>
<actions><![CDATA[<p> A2</p>]]></actions>
<expectedresults><![CDATA[<p> EXC2</p>]]></expectedresults>
<execution_type><![CDATA[2]]></execution_type>
</step>
</steps>
</testcase>
</testcases>
But I need you to export this way:
<testcases>
<!-- Aqui começa o caso de teste 1 -->
<testcase internalid="980" name="Caso de testes Importação">
<node_order><![CDATA[100]]></node_order>
<externalid><![CDATA[1]]></externalid>
<version><![CDATA[1]]></version>
<summary><![CDATA[<p> O caso de teste deve fazer isso </p>]]></summary>
<preconditions><![CDATA[<p> <a id="fck_paste_padding"></a> Pré Condições od caso de testes</p>]]></preconditions>
<execution_type><![CDATA[1]]></execution_type>
<importance><![CDATA[2]]></importance>
<steps>
<step>
<step_number><![CDATA[1]]></step_number>
<actions><![CDATA[<p> A1</p>]]></actions>
<expectedresults><![CDATA[<p> EXC1</p>]]></expectedresults>
<execution_type><![CDATA[1]]></execution_type>
</step>
<step>
<step_number><![CDATA[2]]></step_number>
<actions><![CDATA[<p> A2</p>]]></actions>
<expectedresults><![CDATA[<p> EXC2</p>]]></expectedresults>
<execution_type><![CDATA[2]]></execution_type>
</step>
</steps>
</testcase>
<!-- Aqui Termina o caso de teste 1 -->
<!-- Aqui começa o caso de teste 2 -->
<testcase internalid="981" name="Caso de testes Importação">
<node_order><![CDATA[100]]></node_order>
<externalid><![CDATA[2]]></externalid>
<version><![CDATA[1]]></version>
<summary><![CDATA[<p> O caso de teste deve fazer isso </p>]]></summary>
<preconditions><![CDATA[<p> <a id="fck_paste_padding"></a> Pré Condições od caso de testes</p>]]></preconditions>
<execution_type><![CDATA[1]]></execution_type>
<importance><![CDATA[2]]></importance>
<steps>
<step>
<step_number><![CDATA[1]]></step_number>
<actions><![CDATA[<p> A1</p>]]></actions>
<expectedresults><![CDATA[<p> EXC1</p>]]></expectedresults>
<execution_type><![CDATA[1]]></execution_type>
</step>
<step>
<step_number><![CDATA[2]]></step_number>
<actions><![CDATA[<p> A2</p>]]></actions>
<expectedresults><![CDATA[<p> EXC2</p>]]></expectedresults>
<execution_type><![CDATA[2]]></execution_type>
</step>
</steps>
</testcase>
<!-- Aqui Termina o caso de teste 2 -->
</testcases>
I tried to write here in the comment but it did not fit everything I wanted to put, so I sent as an answer. ok?
– Evert