This code is presented as an example only, since your tests and testing environments may require specialized scripting. This information should be taken only as an illustration of how one would set up tests with Sauce Labs, and any modifications will not be supported. For questions regarding Sauce Labs integration, please see our documentation at https://wiki.saucelabs.com/.
-
Global Dependencies
- Install Maven https://maven.apache.org/install.html
- Or Install Maven with Homebrew http://brew.sh/
$ brew install maven -
TestObject Credentials and Appium Endpoint
- Export your API key to authenticate to TestObject
$ export TESTOBJECT_API_KEY=<your_api_key>- Export the TestObject Appium endpoint of your choosing
$ export APPIUM_URL=<appium_endpoint_url> -
TestObject Credentials
- Ensure that your account has access to the devices below. If not, adjust accordingly
new Object[]{"iOS", "iPhone 7", "10"}, new Object[]{"iOS", "iPhone 8", "11"} -
Project Dependencies
- Check that packages are available
$ cd RDC-Java-TestNG-Appium-iOS-Dynamic $ 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 as they may not be compatible with your code.
$ mvn versions:display-dependency-updates -
Application
- Application is located within this repository.
$ mvn test
- It may be useful to use a Java IDE such as IntelliJ or Eclipse to help troubleshoot potential issues.
- A great resource to search for issues not explicitly covered by documentation.