Setting Data Center
While the Sauce Options class allows you to specify how you want your tests to run, you may also want to adjust where your tests are run with the Sauce Session class. By default, tests are executed on our US West Coast Data Center. You can Specify US East (Headless only), Central EU, or APAC data centers with the Session class. Here's an example of setting the data center to EU:
- Java
- Python
- Ruby
- C#
- JUnit 5
- JUnit 4
- TestNG
- Direct
java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/DataCenterTest.java
See full example on GitHub
java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/DataCenterTest.java
See full example on GitHub
java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/DataCenterTest.java
See full example on GitHub
java/main/src/test/java/com/saucelabs/saucebindings/examples/DataCenterTest.java
See full example on GitHub
python/tests/examples/test_data_center.py
See full example on GitHub
ruby/spec/examples/data_center_spec.rb
See full example on GitHub
C# bindings are coming soon...