Skip to content

elblinkin/Behat-Sauce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Behat command and context for using with SauceLabs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages