Selenium Java Server

The Selenium Server is written in Java, and requires the Java Runtime Environment (JRE) version 1.5.0 or higher in order to start. To use this package, you need to have selenium-server.jar. You can download selenium-server.jar from http://www.openqa.org/selenium-rc/ (be sure to get 0.9.1 or higher) or get it from [http://search.mpi-sb.mpg.de/markus/tests/selenium-remote-control-0.9.1-SNAPSHOT.zip here].

PHPUnit and the PHP Client Driver

If you use PHP to write tests you must install the PHP Client Driver. It's recommended to use your PHP tests together with a testing framework like PHPUnit (althought a testing framework is not required because you can use the PHP Client Driver with any program whatsoever to automate tasks in your browser). Note: a short overview about PHPUnit and Selenium you will find [http://www.phpunit.de/pocket_guide/3.0/en/selenium.html here].

Installing the PHP Client Driver and PHPUnit

The easiest way to install PHPUnit and the Selenium PHP client driver is using PEAR. On Linux systems it's normally already installed, information to install PEAR on Windows you find [wiki:completesearch/SeleniumRC/SeleniumServer/Install/PEAR here].

Installing the PHP client driver

The current version auf the PHP client driver is Testing_Selenium-0.3.2. To install it (be sure to be in the folder where pear.bat is located or to have add the path of pear.bat to the PATH varibale before):

> pear install Testing_Selenium-beta

Ok, now the PHP client driver is installed.

Installing PHPUnit

Homepage: [http://phpunit.de/]

The [http://www.phpunit.de/pocket_guide/3.1/en/index.html pocket guide] of Sebastian Bergmann give a detailed view in PHPUnit (german version [http://www.phpunit.de/pocket_guide/index.de.php here]).

The PEAR channel (pear.phpunit.de) that is used to distribute PHPUnit needs to be registered with the local PEAR environment (be sure to be in the folder where pear.bat is located or to have add the path of pear.bat to the PATH varibale before):

> pear channel-discover pear.phpunit.de

This has to be done only once. Now the PEAR Installer can be used to install packages from the PHPUnit channel:

> pear install phpunit/PHPUnit

Ok, now all required components are installed and we can begin to write tests.

CompleteSearch: completesearch/SeleniumRC/SeleniumServer/Install (last edited 2007-09-28 12:57:54 by dslb-084-058-232-124)