Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sausage is built on PHPUnit, and includes a set of classes and libraries that make it easy for you to run Selenium tests on Sauce Labs. Sausage offers many features for working with Sauce Labs, like automatic pass/fail reporting and test naming. Sausage comes bundled with Paratest (for running your tests in parallel) and optionally Sauce Connect (for testing locally-hosted sites with Sauce). You don't have to use either PHPUnit or Sausage to run tests on Sauce, but Sausage will help optimize your testing experience. 

Include Page
_sausage_description
_sausage_description

  1. Create a project directory where you will download and install Sausage, for example sauce-tutorial

    Code Block
    bat mkdir C:\sauce-tutorial
  2. Save the file givememysausage.php to your project directory. 
  3. Using the command prompt, navigate to your project directory and run givememysausage.php. You can also set your Sauce username and credentials at the same time. 

    Code Block
    bat cd C:\sauce-tutorial
    bat php givememysausage.php -t sauceUsername sauceAccessKey


    This downloads Sausage and all its dependences, as well as the demo test WebDriverDemo.php, which may take a few minutes. The setup checks for a number of requirements and if any are not met, notification messages are displayed on your screen. If there are any issues, fix them and then run the installation command again.

    Include Page
    _username
    _username

...