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
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/SauceLabsOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/SauceLabsOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/SauceLabsOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/main/src/test/java/com/saucelabs/saucebindings/examples/SauceLabsOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/python/tests/examples/test_sauce_options.py
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/ruby/spec/examples/sauce_options_spec.rb
C# bindings are coming soon...