TestLink tests execution with PhpUnit

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
kalins
TestLink user
Posts: 4
Joined: Mon Oct 19, 2009 1:09 pm

TestLink tests execution with PhpUnit

Post 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?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

I'm afraid that this code is obsolete.
kalins
TestLink user
Posts: 4
Joined: Mon Oct 19, 2009 1:09 pm

Post 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?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post 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?
Locked