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:
.netbeans/6.9/modules/org-netbeans-modules-selenium-php.jar
.netbeans/6.9/modules/org-netbeans-modules-selenium-server.jar
.netbeans/6.9/modules/ext/selenium/selenium-server-1.0.1.jar
I have successfully setup Netbeans as described here:
http://www.yiiframework.com/wiki/83/netbeans-ide-and-yii-projects/
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.
Any ideas?
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:
localhost/selenium-server/core/RemoteRunner.html?sessionId=2cc51910fa7346a99fb63585a07ffc37&multiWindow=true&baseUrl=http%3A%2F%2Flocalhost%2Ftestdrive%2Findex-test.php%2F&debugMode=false
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?