Skip to content
Extension of PHPUnit_Selenium providing Sauce OnDemand integration for PHPUnit.
PHP Shell Python
Find file
#6 Compare This branch is 64 commits ahead, 2 commits behind dotsunited:master.
Latest commit aa59e1e @sah sah Merge pull request #5 from absfarah/master
Missing driver class



Sauce OnDemand integration for PHPUnit.

This package extends the PHPUnit_Selenium extension and provides additional setter functions for Sauce OnDemand specific options.

Additional setters are:

public function setUsername($username);
public function setAccessKey($accessKey);
public function setOs($os);
public function setBrowserVersion($browserVersion);
public function setJobName($jobName);
public function setPublic($public);
public function setTags($tags);
public function setPassed($passed);
public function setRecordVideo($recordVideo);
public function setRecordScreenshots($recordScreenshots);
public function setSauceAdvisor($sauceAdvisor);
public function setSingleWindow($singleWindow);
public function setUserExtensionsUrl($userExtensionsUrl);
public function setFirefoxProfileUrl($firefoxProfileUrl);
public function setMaxDuration($maxDuration);
public function setIdleTimeout($idleTimeout);
public function setBuild($build);
public function setCustomData($customData);

Multiple browser configurations are also possible:

class WebTest extends PHPUnit_Extensions_SeleniumTestCase_SauceOnDemandTestCase
    public static $browsers = array(
            'name'           => 'Firefox 3.6 on Windows',
            'username'       => 'your-saucelabs-username',
            'accessKey'      => 'your-saucelabs-access-key',
            'os'             => 'Windows 2003',
            'browser'        => 'firefox',
            'browserVersion' => '3.6.'
            'name'           => 'Google Chrome on Windows',
            'username'       => 'your-saucelabs-username',
            'accessKey'      => 'your-saucelabs-access-key',
            'os'             => 'Windows 2003',
            'browser'        => 'googlechrome',
            'browserVersion' => ''
            'name'           => 'Internet Explorer 8 on Windows',
            'username'       => 'your-saucelabs-username',
            'accessKey'      => 'your-saucelabs-access-key',
            'os'             => 'Windows 2003',
            'browser'        => 'iexplore',
            'browserVersion' => '8.'


You can install PHPUnit_Selenium_SauceOnDemand via the Sauce Labs PEAR channel. Run this from your command line:

pear channel-discover
pear install saucelabs/PHPUnit_Selenium_SauceOnDemand

The above process will install PHPUnit_Selenium_SauceOnDemand as a PEAR library.

Something went wrong with that request. Please try again.