Demonstrates running Appium tests against native applications on iOS and Android using Sauce Labs' Real Device Cloud, Emulators and Simulators.
This code 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 this framework. Issues regarding this framework should be submitted through GitHub. For questions regarding Sauce Labs integration, please see the Sauce Labs documentation at https://wiki.saucelabs.com/. This framework is not maintained by Sauce Labs Support.
-
Global Dependencies
-
Or Install Maven with Homebrew
$ brew install maven
-
App Upload
-
Upload the
app-release.apk
from this project to https://testobject.com. -
A new app named Car-Loan-Calculator will be available. Click on it and select Automated Test → Appium.
-
In the upper right corner, click on Setup Instructions.
-
Copy the value of the
testobject_api_key
entry and do either of the following:-
Create an environment variable named
TESTOBJECT_API_KEY
and set its value from TestObject console. -
Change the first line of the TestBase class and hard code the value:
public class TestBase { private static final String testobjectApiKey = "<INSERT_API_KEY_HERE>";
-
-
-
Project Dependencies
-
Check that Packages are available
$ cd MultiAppiumJavaSauce $ mvn test-compile
-
You may also want to run the command below to check for outdated dependencies. Please be sure to verify and review updates before editing your
pom.xml
file. The updated packages may or may not be compatible with your code.$ mvn versions:display-dependency-updates
-
-
Tests in Parallel:
$ mvn test
-
It may be useful to use a Java IDE such as IntelliJ or Eclipse to help troubleshoot potential issues.
-
There may be additional latency when using
RemoteWebDriver
to run tests on Sauce Labs. Timeouts or Waits may need to be increased.