Hi Yii Users,
I am new to Yii and am using the latest version of the framework (v1.1.6.r2877) and am following the book "Agile Web Application Development with Yii Framework".
I am using Netbeans IDE 6.9.1 along with Selenium Module for PHP on Fedora 14.
I have PHP 5.3.5 and PHPunit 3.5.10.
The selenium module for PHP has the following files:
I have successfully setup Netbeans as described here:
Step debugging (with xdebug) works fine.
However, I am having problems running tests.
I don’t have Firefox 3 installed and have Firefox 4 b 11 instead. I edited the phpunit.xml by having the following as the only entry for browser:
<selenium> <browser name="Firefox on Linux" browser="*firefox /usr/bin/firefox" host="localhost" port="4444" timeout="30000"/> </selenium>
However, that failed to work. It says cannot connect to selenium server.
So, I installed Opera and used the following config instead:
<selenium> <browser name="Opera on Linux" browser="*opera" host="localhost" port="4444" timeout="30000"/> </selenium>
When I run the test, Opera launches the page:
When I manually visit the URL with port info (i.e. localhost:4444 as specified in phpunit.xml), it seems to work. However, phpunit somehow insists on launching the same without port information.
Can anyone suggest how I can get it to work?