I cannot import testcases into 1.8.3 in either xls or xml format. When I attempt to import using xml I get:
E_WARNING require_once(DOMDocument.class.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory - in /usr/local/share/testlink/lib/functions/common.php - Line 113
and if I attempt to import from xls I get:
09/02/2009 15:37:22 WARNING E_NOTICE Undefined variable: formatstr - in /usr/local/share/testlink/third_party/phpexcel/reader.php - Line 637 edge
09/02/2009 15:37:22 WARNING E_NOTICE Undefined offset: 3 - in /usr/local/share/testlink/lib/testcases/tcImport.php - Line 721 edge
09/02/2009 15:37:22 WARNING E_NOTICE Undefined offset: 4 - in /usr/local/share/testlink/lib/testcases/tcImport.php - Line 727
I have also attempted to just export one test case from TL and reimport it - same type of errors. I have searched the forums but can't find anything that may help me.
Thanks in advance,
-edge
Cannot import testcases
Moderators: Amaradana, TurboPT, TL Developers
I've finally solved some of my issues and have successfully imported xml (xls is not worth troubleshooting now). What I found:
- attribute arguments have to be quoted <testcase name="XXXX"></testcase>
- < and > are not valid tokens for the TL xml parsing mechanism, they have to be < and > respectively.
- shortened forms of elements are legal <steps/> when there is no CDATA present
- attribute arguments have to be quoted <testcase name="XXXX"></testcase>
- < and > are not valid tokens for the TL xml parsing mechanism, they have to be < and > respectively.
- shortened forms of elements are legal <steps/> when there is no CDATA present
-
- Advanced user
- Posts: 33
- Joined: Tue Jan 20, 2009 4:57 pm
- Location: Las Vegas
- Contact:
Import and Export button not working
Hello, I thought I would jump in here and see if anyone had any clues to why our import capability isn't working for version 1.8.3. When attempting to import testcases, test suites or just a test case using an exported xml file from a different project the following two things happen depending on if using Firefox in Windows or Ubuntu.
1. Ubuntu. Upon clicking the Import button for any of the aforementioned exports a download dialogue box pops open asking if I want to save or open the tcImport.php file.
2. Windows. upon clicking the Import button for any of the aforementioned exports the main iframe in TestLink goes white with no action.
The only change I have made recently which I don't see how it could have any effect is that I added a method call in the tcEdit.php and exec.ini.php files to integrate an API client with a 3rd party application, this method call was added when a test case gets created or edited and when it gets executed.
Any ideas of why the import functionality is not working? Thank you!!
1. Ubuntu. Upon clicking the Import button for any of the aforementioned exports a download dialogue box pops open asking if I want to save or open the tcImport.php file.
2. Windows. upon clicking the Import button for any of the aforementioned exports the main iframe in TestLink goes white with no action.
The only change I have made recently which I don't see how it could have any effect is that I added a method call in the tcEdit.php and exec.ini.php files to integrate an API client with a 3rd party application, this method call was added when a test case gets created or edited and when it gets executed.
Any ideas of why the import functionality is not working? Thank you!!
-
- Advanced user
- Posts: 33
- Joined: Tue Jan 20, 2009 4:57 pm
- Location: Las Vegas
- Contact:
HTTP Headers
Follow up to my previous post. I am still unable to import XML exports from a different project or within the same project for that matter. I have verified I am using the php4-to-php5 dom xml library. I have also watched the HTTP headers as I attempted to import the file. here is what the header contained (minus the actual xml data):
Then here is the end of that same header after the xml data
Please help if you can, thank you!!
Code: Select all
http://testlink.qa.tss/lib/testcases/tcImport.php
POST /lib/testcases/tcImport.php HTTP/1.1
Host: testlink.qa.tss
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTBDFff GTB7.0 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://testlink.qa.tss/lib/testcases/tcImport.php?containerID=55458&bIntoProject=1&bRecursive=1&
Cookie: TL_lastTestProjectForUserID_44=55458; ys-tproject_55338_ext-comp-1001=a%3As%253A/55338/55380/55382; ys-tproject_55458_ext-comp-1001=a%3As%253A/55458/55774; PHPSESSID=667b5fad88d59dcd67e4d13dbebfd2cb
Content-Type: multipart/form-data; boundary=---------------------------1706055016738
Content-Length: 20441
-----------------------------1706055016738
Content-Disposition: form-data; name="importType"
XML
-----------------------------1706055016738
Content-Disposition: form-data; name="uploadedFile"; filename="testsuites.xml"
Content-Type: text/xml
Code: Select all
-----------------------------1706055016738
Content-Disposition: form-data; name="bRecursive"
1
-----------------------------1706055016738
Content-Disposition: form-data; name="bIntoProject"
1
-----------------------------1706055016738
Content-Disposition: form-data; name="containerID"
55458
-----------------------------1706055016738
Content-Disposition: form-data; name="MAX_FILE_SIZE"
1000
-----------------------------1706055016738
Content-Disposition: form-data; name="UploadFile"
Upload file
-----------------------------1706055016738--
HTTP/0.9 200 OK