我正在尝试使用phpunit运行SeleniumTestCase,但是我无法通过phpunit.bat脚本运行它。
我的目标是在CruiseControl和phpUnderControl中使用phpunit与Selenium RC一起使用。以下是测试案例的代码:
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
class WebTest extends PHPUnit_Extensions_SeleniumTestCase
{
protected function setUp()
{
$this->setBrowser('*firefox');
$this->setBrowserUrl('http://www.example.com/');
}
public function testTitle()
{
$this->open('http://www.example.com/');
$this->assertTitleEquals('Example Web Page');
}
}
我在include_path中也安装了PEAR和带有Selenium扩展的PHPUnit。我使用pear installer进行安装,所以我想那不是问题所在。
任何帮助将不胜感激。
谢谢,Remy