我正在尝试使用phpunit运行SeleniumTestCase,但我无法使用phpunit.bat脚本运行它.
我的目标是在CruiseControl和phpUnderControl中使用带有Selenium RC的phpunit.这是测试的样子:
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');
}
}
Run Code Online (Sandbox Code Playgroud)
我还在include_path中添加了PEAR,并在Selenium扩展中安装了PHPUnit.我用pear安装程序安装了这些,所以我猜这不是问题所在.
任何帮助将非常感谢.
谢谢,雷米