The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Analytics

External Resources

More Info


Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Show If
groupconfluence-users
Expand
titleClick here to see the old example...

You can also clone this script directly from GitHub.

View Git file
pathAndroid/SampleSauceTest.java
repository-id29
languagejava
branchmaster

These examples employ the page object model to run tests on emulators and simulators. Feel free to clone these scripts directly from GitHub, and follow the instructions in the README file.

Page Objects

This object represents a single view/page in the sample application. Click on the text  Click below to see the script:

Expand
titleGuineaPigPage.java

View Git file
pathappium-example/src/test/java/example/android/Pages/GuineaPigPage.java
repository-id33
languagejava
branchrefs/remotes/origin/master


Test Objects

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:

Expand
titleTestBase.java

View Git file
pathappium-example/src/test/java/example/android/Tests/TestBase.java
repository-id33
languagejava
branchrefs/remotes/origin/master

...