Tanzim Saqib on .NET discovery

March 13, 2007

Setting up PHP environment for Selenium

Filed under: PHP, Selenium — Tanzim Saqib @ 8:43 am

If you have gone through configuring Selenium in Windows system by Setting up Selenium RC server in Windows and Setting up PHP in Windows using Abyss server, next thing you need to setup is the Selenium PHP client. Let me show you the steps I’ve gone through to accomplish this:

1. Open up the console with all administrative privileges especially in Vista
2. Go to the directory where PHP is installed
3. Execute command: php PEAR/go-pear.phar
4. Follow the instructions, and ignore the additional offerings to configure it
5. Install PHPUnit by:
          pear channel-discover pear.phpunit.de
          pear install phpunit/PHPUnit

6. Download Selenium PHP PEAR extension and place into your PHP directory
7. Run: pear install Testing_Selenium-0.4.2.tar
8. Download the sample GoogleTest and assuming you put it in C:\Tests folder
9. Now run: phpunit –verbose GoogleTest C:/Tests/GoogleTest.php
10. Remember the class name GoogleTest must be the same as the class name defined in the GoogleTest.php

March 11, 2007

Setting up Selenium RC server in Windows

Filed under: Selenium, Test — Tanzim Saqib @ 5:20 am

1. Download latest Java SE from http://java.sun.com/ and install
2. Download latest version of Selenium RC from and extract
3. Create a folder named Selenium at C:\Program Files\Java\jdk1.6.0_03\bin
4. Copy all files under Selenium-server-0.9.2 which you will find in the extracted folder and paste in the newly created folder
5. From Command prompt run the following commands:

cd \
cd C:\PROGRA~1\Java\jdk1.6.0_03\bin
java -jar .\Selenium\selenium-server.jar -interactive

If you see the following messages at the end of the console, you are quite confirm that the Selenium server is running fine:

Entering interactive mode… type Selenium commands here (e.g: cmd=open&1=http:/
/www.yahoo.com)

Powered by WordPress