Error when importing testcases from xls

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
istream
Advanced user
Posts: 59
Joined: Wed Mar 31, 2010 10:28 pm

Error when importing testcases from xls

Post by istream »

Environment:
  • Test Link: 1.9.2
    Php: 5.3.3
    apache: 2.2.3
    MySQL: 5.1.50
I try to import testcases from xls file which only has four columns, Title, Summary, Steps, Expected Results as headings and subsequent rows as actual test cases
On 1.9.2 i get following in the apache error log:

PHP Fatal error: Call to undefined function name() in /usr/local/testlink/lib/functions/xml.inc.php on line 148, referer: http://server/testlink/lib/testcases/tc ... erID=36071

On the same server, everything same, except change 1.9.2 to 1.9.0, works fine.

Help appreciated,
Thanks
Amaradana
Member of TestLink Community
Posts: 398
Joined: Mon Feb 16, 2009 11:19 am
Contact:

Re: Error when importing testcases from xls

Post by Amaradana »

From 1.9.0, TestLink stopped supporting for excel, in this result even when you import through excel as you said "Title, Summary, Steps, Expected Results" from these fields only Title and summary will be imported, rest of the two fields data will not be imported. I have worked this in 1.9.0 and 1.9.1.
Thanks,
TesterWorld
Http://amartester.blogspot.com
istream
Advanced user
Posts: 59
Joined: Wed Mar 31, 2010 10:28 pm

Re: Error when importing testcases from xls

Post by istream »

I use the code snippet from this post
http://www.teamst.org/forum/viewtopic.php?f=11&t=3525
and it imports four columns data from an xls file in 1.9.0, but not in 1.9.2. If we do not support import from excel, how is user expected to import test cases from an xml file?
Thanks
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Error when importing testcases from xls

Post by fman »

>> If we do not support import from excel, how is user expected to import test cases from an xml file?
TestLink support import from XML file written in the format requested, and this has nothing i repeat nothing to do with excel.
excel is not an XML editor
istream
Advanced user
Posts: 59
Joined: Wed Mar 31, 2010 10:28 pm

Re: Error when importing testcases from xls

Post by istream »

>>>TestLink support import from XML file written in the format requested, and this has nothing i repeat nothing to do with excel.
excel is not an XML editor
I understand the difference between excel and xml. QA engineers tend to work in spreadsheets and then would like to import into TL. Editing an exported testcase in xml, to add more tests into it, is more painful process, as per QA engineers. I am looking for help to resolve error received in the error_log, in 1.9.2 versus 1.9.0.
Post Reply