Setting Sauce Labs Options
Sauce Labs provides dozens of ways to configure your tests on our platform.
Here is a full list of everything with exhaustive descriptions.
All of these configurations can now be easily set with the SauceOptions
class
Here's an example of running a test on Firefox that sets extended debugging, changes the idle timeout to 45 seconds, and sets the time zone to Alaska:
- Java
- Python
- Ruby
- C#
- JUnit 5
- JUnit 4
- TestNG
- Direct
java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/SauceLabsOptionsTest.java
See full example on GitHub
java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/SauceLabsOptionsTest.java
See full example on GitHub
java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/SauceLabsOptionsTest.java
See full example on GitHub
java/main/src/test/java/com/saucelabs/saucebindings/examples/SauceLabsOptionsTest.java
See full example on GitHub
python/tests/examples/test_sauce_options.py
See full example on GitHub
ruby/spec/examples/sauce_options_spec.rb
See full example on GitHub
C# bindings are coming soon...