Behat command and context for using with SauceLabs.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src/Behat/Sauce
vendor/Sauce-Connect
LICENSE
README.md
composer.json

README.md

Behat-Sauce

Behat integrated with Sauce On-Demand, including Sauce Connect support.

Note on Patches/Pull Requests

  • Fork the project here, master for releases & hotfixes only).
  • Make your feature addition or bug fix.
  • Commit
  • Send me a pull request.

Installing Dependencies

wget -nc http://getcomposer.org/composer.phar
php composer.phar update

Create New Test Suite

bin/behat-sauce --init

Modify config/behat.yml to have the correct Sauce credentials (username and access_key) and site under test url (base_url).

Create features, step definitions, as you would with plain-old behat.

Run Tests with Sauce On-Demand

Behat-Sauce lets you vary the Sauce On-Demand browser/os combination on the command line.

Usage:

bin/behat-sauce [--browser="..."] [--browser-version="..."] [--os="..."] [features]

Arguments:

 --browser              SauceLabs browser name.  Default is:  firefox
 --browser-version      SauceLabs browser version.  Default is:  7
 --os                   SauceLabs operating system.  Default is:  Windows 2003

Start Sauce Connect

If you need a SauceConnect tunnel to run your tests, you can reuse the credentials you already have in your config/behat.yml.

bin/behat-sauce --tunnel

Make sure you have satisfied all the requirements needed to run Sauce Connect before using.

Copyright

Copyright (c) 2012 LB Denker.

Contributors