- For macOS Ventura: Git and Homebrew
- For Linux: Git and Eclipse Temurin JDK 8+ (https://adoptium.net/temurin/releases/)
- Sauce Labs Account
- Install Eclipse Temurin JDK (for macOS Ventura):
brew install --cask temurin
- Clone the repository:
git clone https://github.com/saucelabs/visual-examples
cd visual-examples/java-ios-app
- Configure with your Sauce credentials from https://app.saucelabs.com/user-settings
export SAUCE_USERNAME=__YOUR_SAUCE_USERNAME__
export SAUCE_ACCESS_KEY=__YOUR_SAUCE_ACCESS_KEY__
- Run the test
./mvnw clean test
- Review your screenshots by clicking on the url printed in the test or go to https://app.saucelabs.com/visual/builds.
- Accept all diffs, so they become new baselines.
- Re-run the tests
VISUAL_CHECK=enabled ./mvnw clean test
- Open the test or go to https://app.saucelabs.com/visual/builds to review changes.
NOTE: If you'd like run the full page screenshot test additionally, you need to pass the environment variable FPS=enabled when running the test.
FPS=enabled ./mvnw clean test
View installation and usage instructions on the Sauce Docs website.