1.6.2 does not iport even a trivial file. Do you know why?

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
doronin
TestLink user
Posts: 1
Joined: Tue Dec 05, 2006 6:21 pm

1.6.2 does not iport even a trivial file. Do you know why?

Post by doronin »

Gentlemen, both our local copy of TL 1.6.2 and Demo 1.6.2 on TestLink site do not import testcase by at least 2 (two) know ways.
1. At home page -> Inport TestCases
try to load to there this file
------
component1,category1,'testcase1','summary','steps','results'
component2,category1,'testcase1','summary','steps','results'
----
2. At category part click on import test-cases
try to load to there this file
---
'testcase1','summary','steps','results','PREVIOUS'
'testcase1','summary','steps','results','PREVIOUS'
----
There is a 'PREVIOUS' keyword in the system.
We had searched the known bugs and forum topics regarding this. Looks like all is fine for other guys, but not for us.
It does not work. Any idea why?

Best regards,
Eugene Doronin
team SDC - software testing and QA company
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

I will try to test it asap
esther7of7
TestLink user
Posts: 5
Joined: Fri Feb 09, 2007 10:59 pm

similar issue with TL1.6 on linux env

Post by esther7of7 »

I have similar issue with import simple test csv file with the exact format, but nothing happen after import test case?

Is there anything that is pertain to Linux env?

Thanks for info =)
anat
TestLink user
Posts: 4
Joined: Mon Feb 12, 2007 8:47 pm

Did you get some response?

Post by anat »

I have the same problem. Did you get some answer for this?
Is it bug? May be some workaround exists....

Thanks,
Anat
esther7of7
TestLink user
Posts: 5
Joined: Fri Feb 09, 2007 10:59 pm

Post by esther7of7 »

not yet, our testlink is on linux platform, php5.0.4 and mysql4.1.11 and apache2
drew
Advanced user
Posts: 23
Joined: Fri Jun 30, 2006 8:19 pm

Post by drew »

go into the /etc/php5/conf.d/apache2/ directory edit the php.ini file. Change the file_uploads parameter from off to on. I suspect that your's is set to off and that is why nothing happens when you press the Upload button.

Good luck.
Drew
esther7of7
TestLink user
Posts: 5
Joined: Fri Feb 09, 2007 10:59 pm

Post by esther7of7 »

Thanks for the tip =) I check the php.ini and it is set to On ...
esther7of7
TestLink user
Posts: 5
Joined: Fri Feb 09, 2007 10:59 pm

Post by esther7of7 »

not sure the issue is just pertain to our testlink setting on the linux platform, I fix the tcImport.php script and now the import function is working.

Here is what I modified in the tcImport.php script.
I change the following code from
$source = isset($HTTP_POST_FILES['uploadedFile']['tmp_name']) ? $HTTP_POST_FILES['uploadedFile']['tmp_name'] : null;
to
$source = isset($HTTP_POST_FILES['uploadedFile']['tmp_name']) ? $HTTP_POST_FILES['uploadedFile']['tmp_name'] : null;

and from
$dest = TL_TEMP_PATH . session_id()."-importTc.csv";
to
define('DS', DIRECTORY_SEPARATOR);
define('TL_ABS_PATH', '/var/www/html/testlink' . DS);
define('TL_TEMP_PATH', TL_ABS_PATH . 'gui'.DS.'templates_c'.DS);
$dest = TL_TEMP_PATH . rand()."-importTc.csv";

note:
-- for some reason, the session_id() does not working so we use rand() as workaround way
-- and the path seems to have issue on the system, so we 'hardcoded' the testlink path

Hope this will help someone who might have same issue... =)
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

OK. Thanks for your help
Post Reply