For Example Purposes Only
The code in these scripts is provided on an "AS-IS” basis without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. Your tests and testing environments may require you to modify these scripts. Issues regarding these scripts should be submitted through GitHub. These scripts are not maintained by Sauce Labs Support.
This object represents a single view/page in the sample application. Click below to see the script:
These object represent the individual tests, as well as the prerequisite and postrequisite test tasks (TestBase.java). Click on any of the text below to see the scripts:
These examples employ the page object model and use either the RSpec or Cucumber test frameworks to run tests on emulators and simulators. Feel free to clone these scripts directly from GitHub, and follow the instructions in the README file.
This file initializes the test capabilities, as well as the prerequisite and postrequisite test tasks:
These scripts represent the individual views/pages of the sample application:
These scripts represents the individual tests, as well as a Sauce Labs utility helper:
This file initializes the prerequisite and postrequisite test tasks:
This script pulls the test capabilities for each device combo from the rake tasks; it also initializes the remote web driver object:
These scripts represents the individual behavior scenarios that we define tests for in our step definitions:
Test Step Definitions
These scripts define the specific steps our tests run in order to achieve the desired results from the test features: