com.saucelabs.rdc.RdcEndpoints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdc-appium-junit4 Show documentation
Show all versions of rdc-appium-junit4 Show documentation
Library for running Appium test suites and updating test status on Sauce Labs Real Device Cloud (RDC)
The newest version!
package com.saucelabs.rdc;
import java.net.MalformedURLException;
import java.net.URL;
/**
* The Appium remote addresses of Sauce Labs' data centers. You can use them
* for creating your remote {@code AppiumDriver}.
*
* driver = new AppiumDriver({@link RdcEndpoints#US}, capabilities);
*
*
* @since 1.0.0
*/
public class RdcEndpoints {
public static final URL US = getUrl("https://us1.appium.testobject.com/wd/hub");
public static final URL EU = getUrl("https://eu1.appium.testobject.com/wd/hub");
private static URL getUrl(String url) {
try {
return new URL(url);
} catch (MalformedURLException e) {
throw new RuntimeException(e.getMessage(), e);
}
}
}