problem importing TL generated xml

The release related discussions, plans and questions.
Locked
pudreaux
TestLink user
Posts: 5
Joined: Wed Jan 30, 2008 3:58 pm

problem importing TL generated xml

Post by pudreaux »

I'm having trouble importing a test suite. The XML file was generated by TestLink. The version is 1.7.0RC3 and the exporting/importing is on the same box. I created a new project which will include the test cases from a different project as a starting point.

The XML file is less than 200KB and after clicking "Upload file" I get a "Please choose file to import" error. The cases fail to import and the "File:" box gets cleared out. I looked at the file and none of the lines are over 500 characters.

Any ideas? Thanks in advance.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

Please upgrade to 1.7.3
pudreaux
TestLink user
Posts: 5
Joined: Wed Jan 30, 2008 3:58 pm

Post by pudreaux »

fman wrote:Please upgrade to 1.7.3
Done. I'm still getting errors when I try to import xml generated by 1.7.0RC3 into 1.7.3. Any ideas?

Warning: DOMDocument::load() [function.DOMDocument-load]: Document is empty in /srv/www/atl-testlink/gui/templates_c/e8c258de21b34d20a26b614ba9200f56-importtcs.csv, line: 1 in /srv/www/atl-testlink/third_party/domxml-php4-to-php5.php on line 72

Warning: DOMDocument::load() [function.DOMDocument-load]: Start tag expected, '<' not found in /srv/www/atl-testlink/gui/templates_c/e8c258de21b34d20a26b614ba9200f56-importtcs.csv, line: 1 in /srv/www/atl-testlink/third_party/domxml-php4-to-php5.php on line 72

Notice: Trying to get property of non-object in /srv/www/atl-testlink/lib/testcases/tcImport.php on line 362
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

please send zip file with your XML to
francisco.mancardi@gmail.com
pudreaux
TestLink user
Posts: 5
Joined: Wed Jan 30, 2008 3:58 pm

Post by pudreaux »

OK...after trying a few more things I have found that even when I export a simple test suite from 1.7.3 and try to import it I get those same errors. Basically I can't import anything. It this possibly a php or apache configuration issue? A missing library?

Thanks in advance for any help.
------------------
This is the text of the simple xml that is failing:

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Export Import Test"><details><![CDATA[

]]></details> <testcase name="test case1"><summary><![CDATA[
asdfasfsdfas
]]></summary><steps><![CDATA[
asdf
]]></steps><expectedresults><![CDATA[
fdffdfdfdfd
]]></expectedresults></testcase>
</testsuite>
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

please check on docs folder where we have placed working examples of XML, and let me know
pudreaux
TestLink user
Posts: 5
Joined: Wed Jan 30, 2008 3:58 pm

Post by pudreaux »

fman wrote:please check on docs folder where we have placed working examples of XML, and let me know
Same result. I used handheld_devices_testsuite.xml.
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

I guess that the problem could be in php.ini configuration.
Locked