YII PHP Unit Testing with phpunit selenium server-Installation
YII PHP Unit Testing with phpunit selenium server
Installing phpunit and selenium server
Go to links
1 http://www.phpunit.de/manual/current/en/installation.html
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
pear install phpunit/PHPUnit_Selenium
if you not setup pear on you computer
go to the link http://pear.php.net/manual/en/installation.getting.php
in windows php,java will only work on command prompt if you set path of it on environment variable
if there is problem with curl on your windows enable it
(1)Close WAMP (if running) 2) Navigate to WAMP\bin\php(your version of php)\ 3) edit php.ini 4) Search for curl, uncomment extension=php_curl.dll 5) Navigate to WAMP\bin\Apache(your version of apache)\bin\ 6) edit php.ini 7) Search for curl, uncomment extension=php_curl.dll 8) Save both )
Still it not working on windows copy libeay32.dll and sselay.dll from “wamp\bin\php\php5.3.5(may change according to version)” to ”C:\windows\system32”
**may be php_curl.dll of “\ext” folder (inside php5.3.5) to ”C:\windows\system32”
Then restart your system
2 http://seleniumhq.org/download/
Download Selenium Server (formerly the Selenium RC Server)
Rename it “selenium-server.jar”
Run this on cmd “java -jar selenium-server.jar” (on the location in which we save the selenium-server.jar file)
Then open other cmd then do testing by following http://www.yiiframework.com/doc/guide/1.1/en/test.overview
Default run
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
pear install phpunit/PHPUnit_Selenium