PHPUnit_Framework_Exception:无法连接到Selenium RC服务器。

时间:2012-03-05 08:34:33

标签: selenium yii phpunit

我使用PHPUnit和Selenium Server来测试Yii应用程序,但每当我尝试它时总是给我这个错误。

PHPUnit_Framework_Exception:无法连接到Selenium RC服务器。

我正在使用xp操作系统。我安装PHPUnit_Selenium(1.0.1)和其他软件。实际上我按照这个bellow指令安装这些软件,这样就够了吗? http://www.yiiframework.com/forum/index.php?/topic/14995-wamp-netbeans-phpunit-selenium-yii/

我按照这些页面中的所有指示给出了..

我尝试从命令提示符测试我的简单helloworld yii应用程序 我附上命令提示图像..

http://s8.postimage.org/sh79ue68l/error.jpg

我对此非常陌生,所以请给我一步一步的指示.. plz帮助我..

谢谢..

2 个答案:

答案 0 :(得分:1)

你有没有运行Selenium服务器? 您应该安装它或只运行Selenium Server Standalone

看那里: http://www.phpunit.de/manual/3.1/en/selenium.html

答案 1 :(得分:0)

您链接的教程是针对netbeans的,如果您从netbeans内部运行测试,如果您正确安装了它,它将自动运行selenium。

或者,您可以下载jar文件并直接运行它,然后从命令行运行测试。

http://seleniumhq.org/download/

当前版本: http://selenium.googlecode.com/files/selenium-server-standalone-2.20.0.jar