Selenium Testing

From HTML5 Video
Jump to: navigation, search


Contents

Setting Up Selenium on Ubuntu

PHPunit

  • Install PHPUnit via PHP's command line PEAR client
#  install PEAR and php5-cli
apt-get install php-pear php5-cli php5-curl
 
#  if needed, add the PEAR channels for PHPUnit and its dependencies
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
 
# Install PHPUnit
pear install phpunit/PHPUnit

Testing_Selenium

Testing_Selenium is a PHP client for the Selenium Remote Control test tool.

  • Install Testing_Selenium via PHP's command line PEAR client
# you can try "pear install Testing_Selenium", but it may give you an error if you don't specify the stable version
pear install Testing_Selenium-0.4.4

Correcting the PEAR Path

In /etc/php5/cli/php.ini add "include_path = ".:/usr/share/php:/usr/share/php/PEAR"

It may be necessary to reinstall PHPUnit and Testing Selenium after updating the path.

http://www.mediawiki.org/wiki/Selenium_Framework