在我进行连选试时,无论是在Netbeans IDE,还是从指挥线,例如:
class WebTest extends PHPUnit_Extensions_Selenium2TestCase
{
protected function setUp()
{
$this->setBrowser( firefox );
$this->setBrowserUrl( http://www.example.com/ );
}
public function testTitle()
{
$this->url( http://www.example.com/ );
$this->assertEquals( Example WWW Page , $this->title());
}
}
我收到了PHPUnit的答复,但似乎与Selenium服务器通信,因为没有创造浏览器窗口。
PHPUnit 3.6.10 by Sebastian Bergmann.
Configuration read from /var/www/gcd/framework/yii/gadget/protected/tests/phpunit.xml
F
Time: 1 second, Memory: 10.50Mb
There was 1 failure:
1) WebTest::testTitle
Failed asserting that null matches expected Example WWW Page .
利用PHPUnit 3.6.10和 se-server-standalone-2.21.0
是否有任何想法?