Importing the test cases in XML to Testlink

Moderators: Amaradana, TurboPT, TL Developers

Importing the test cases in XML to Testlink

Postby premganesh » Tue May 26, 2015 3:47 pm

Hi All,

We are planning to use Test Link as our Test Management tool for our project and currently checking all the possibility of using Test link for your project.

We have around 10000 test cases in XML format, divided into many test suites. I would like to clarify on possibilities to import the test cases with the format we have currently, since we have many other tags which are not available in TestLink. When we try to import the test cases (in the format we have) to TestLink, it throws the error message saying "xml_load_ko".

Our sample Test case is as below:

<TestCase Number="150-205-008" FileName="TestCase Name" Source="Requirement name" OS_Host_Support="Supproted OS" OS_Host_Exclusion="Which OS need to be excluded" Config="Simple configuration or Complex configuration" FOS_Support="what platform supported" TestType="UI or Functionality" Editions="All" Obsolete="True or false">
<Title>Test Case title</Title>
<Objective>Verification need to be done for this test case</Objective>
<Steps>[PROCEDURE]
1) Steps to perform testing.
[VERIFICATION]
1) Verification need to be done for testing.
</Steps>
</TestCase>

But when i went through the TestLink file format document, i found that the text case should be in the below format for importing. And it works fine when i took one of my test case and modify according to this format.

<testcase name="Verifying XML suite">
<summary>Verifying XML import is succesfull</summary>
<steps>Import the XML</steps>
<expectedresults>XML should import succesfull</expectedresults>
</testcase>

Could you please help us understanding whether we need to change all 10000 test cases to the supported format or we have any work around to import the same XML into TestLink.

Kindly help.

Thanks in Advance!!

Prem Ganesh
premganesh
TestLink user
 
Posts: 5
Joined: Mon May 25, 2015 6:45 pm

Re: Importing the test cases in XML to Testlink

Postby fman » Wed May 27, 2015 1:51 pm

Best option is:
create a COMPLETE TEST CASE on TestLink and the export on XML.
save the file
delete the test case on testlink
import using file

if everything goes ok, you have the right format to use.
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: Importing the test cases in XML to Testlink

Postby premganesh » Thu May 28, 2015 4:34 am

Hi fman,

Thanks Much for your Suggestion!

Yes, i got the correct format now. But I just want to confirm if there is any way to modify something on Testlink and use the same test case format which we have currently. Since, changing all our 10000 test cases to the testlink supported format may be a tedious process.

Our sample Test cases is as below, which is not the correct format for importing into Testlink:

<TestCase Number="150-205-008" FileName="TestCase Name" Source="Requirement name" OS_Host_Support="Supproted OS" OS_Host_Exclusion="Which OS need to be excluded" Config="Simple configuration or Complex configuration" FOS_Support="what platform supported" TestType="UI or Functionality" Editions="All" Obsolete="True or false">
<Title>Test Case title</Title>
<Objective>Verification need to be done for this test case</Objective>
<Steps>[PROCEDURE]
1) Steps to perform testing.
[VERIFICATION]
1) Verification need to be done for testing.
</Steps>
</TestCase>

Thanks & Regards,
Prem Ganesh
premganesh
TestLink user
 
Posts: 5
Joined: Mon May 25, 2015 6:45 pm

Re: Importing the test cases in XML to Testlink

Postby fman » Thu May 28, 2015 8:54 am

custom format needs custom development => no simple workaround
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: Importing the test cases in XML to Testlink

Postby ptvi » Wed Jul 13, 2016 2:59 am

I have the same problem. When I import file XML to testing. It shows xml_load_ko. But I copy this file to other files, then import again. It imports successfully.
ptvi
TestLink user
 
Posts: 1
Joined: Sat Jul 09, 2016 8:58 am


Return to Import / Export



Who is online

Users browsing this forum: No registered users and 1 guest

cron