1
votes

I using PHPUnit and Selenium Server to testing Yii Application, but whenever i tried it always give me this error.

PHPUnit_Framework_Exception: Could not connect to the Selenium RC server.

i m using xp operating system. and i install PHPUnit_Selenium (1.0.1) and other software.actually i follow this bellow instruction to install these software so is it enough? http://www.yiiframework.com/forum/index.php?/topic/14995-wamp-netbeans-phpunit-selenium-yii/

i followed all instruction give in these page..

and i tried to test my simple helloworld yii application from command prompt i attached the command prompt image..

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

i m very new to this so plz give me step by step instruction.. plz help me..

thanks..

2

2 Answers

1
votes

Have you got Selenium server running? You should have it installed or just run Selenium Server Standalone.

Look there: http://www.phpunit.de/manual/3.1/en/selenium.html

0
votes

The tutorial you linked is for netbeans, if you run the test from inside netbeans it will automatically run selenium if you installed it correctly.

Alternatively you can download the jar file and run it directly, and then run your test from the commandline.

http://seleniumhq.org/download/

current version: http://selenium.googlecode.com/files/selenium-server-standalone-2.20.0.jar