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 (real mobile devices only), or Central EU 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
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/DataCenterTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/DataCenterTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/DataCenterTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/main/src/test/java/com/saucelabs/saucebindings/examples/DataCenterTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/python/tests/examples/test_data_center.py
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/ruby/spec/examples/data_center_spec.rb
C# bindings are coming soon...