TestLink tests execution with PhpUnit
Posted: Wed Oct 28, 2009 9:42 am
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:
I'm quite confused with this one as there no ADODB_db_type.class.php at TestLink sources at all.
Another one is
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?
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
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"
Could you please check is it know issue and how to avoid it or advice how to run TestLink code tests in proper manner?