Page 1 of 1

TestLink tests execution with PhpUnit

Posted: Wed Oct 28, 2009 9:42 am
by kalins
Hello,

Having trouble with executing TestLink tests available at
lib\functions\code_testing
cfield_mgr.class.test.php
dBug.php
testcase.class.test.php
testplan.class.test.php
testproject.class.test.php
testsuite.class.test.php
tree.class.test.php

Using phpunit to execute them and falling into 2 following issues:

Code: Select all

Fatal error: require_once(): Failed opening required 'ADODB_db_type.class.php' (include_path=';E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-test
link-webapp\src\main\webapp\lib\execute;E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp/target/phpinc;E:\kalin\Apt\TestManagement\t
m\tm-testlink\tm-testlink-webapp/src/main/webapp;.;E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp\src\main\webapp\lib\functions\')
 in E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp\src\main\webapp\lib\functions\common.php on line 113
I'm quite confused with this one as there no ADODB_db_type.class.php at TestLink sources at all.

Another one is

Code: Select all

Fatal error: Cannot redeclare class dBug in E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp\src\main\webapp\lib\functions\code_test
ing\dBug.php on line 49 in
File:
 E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp\src\main\webapp\lib\functions\code_testing\tree.class.test.php
Command:
 "C:\DOCUME~1\kalins\LOCALS~1\Temp\php\php.exe" -d include_path=";E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp/src/main/webapp;E
:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp//src/main/webapp/lib/functions/code_testing;E:\kalin\Apt\TestManagement\tm\tm-testli
nk\tm-testlink-webapp/target/phpinc;E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp\src\main\webapp\lib\functions\code_testing;E:\k
alin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp/target/test-classes;E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp/targe
t/classes;" "E:\kalin\Apt\TestManagement\tm\tm-testlink\tm-testlink-webapp/target/phpinc/PHPUnit/TextUI/Maven.php" "E:\kalin\Apt\TestManagement\t
m\tm-testlink\tm-testlink-webapp\src\main\webapp\lib\functions\code_testing\tree.class.test.php"
Same problem if I run these test from php CLI.

Could you please check is it know issue and how to avoid it or advice how to run TestLink code tests in proper manner?

Posted: Wed Nov 04, 2009 2:23 pm
by havlatm
I'm afraid that this code is obsolete.

Posted: Thu Nov 05, 2009 9:04 am
by kalins
So does this mean that TestLink is no longer unit tested? Is this because you are now concentrating on your Selenium integration tests?

Posted: Tue Nov 10, 2009 10:52 am
by havlatm
The code is attempt to start unit testing, but we fail this process implement regularly. Generally we have not resource and expertise in team for that. Do you interest to care?