Installing Sauce Bindings
Universal Prerequisites
-
Get your Sauce Labs account
-
Set up your Sauce Credentials Since credentials should never be stored in code that might get added to a version control system, we have decided to require users of Sauce Bindings to store these values in environment variables:
SAUCE_USERNAME='valid.username'
SAUCE_ACCESS_KEY='valid.key'
How to set environment variables on each Operating System:
Language Specific Prerequisites
- Java
- Install Java version 11 or greater
- Install your favorite Java IDE (IntelliJ is 🔥 and the Community Edition is free).
- Choose your test runner below:
- JUnit 5
- JUnit 4
- TestNG
- Add the following to your
.pom
file:
<!-- https://mvnrepository.com/artifact/com.saucelabs/saucebindings-junit4/latest -->
<dependency>
<groupId>com.saucelabs</groupId>
<artifactId>saucebindings-junit5</artifactId>
<version>1.5.0</version>
</dependency>
- Add the following to your
.pom
file:
<!-- https://mvnrepository.com/artifact/com.saucelabs/saucebindings-junit4/latest -->
<dependency>
<groupId>com.saucelabs</groupId>
<artifactId>saucebindings-junit4</artifactId>
<version>1.5.0</version>
</dependency>
- Add the following to your
.pom
file:
<!-- https://mvnrepository.com/artifact/com.saucelabs/saucebindings-testng/latest -->
<dependency>
<groupId>com.saucelabs</groupId>
<artifactId>saucebindings-testng</artifactId>
<version>1.5.0</version>
</dependency>