This page is hosted for free by zzz.com.ua, if you are owner of this page, you can remove this message and gain access to many additional features by upgrading your hosting to PRO or VIP for just 41.60 UAH.
Do you want to support owner of this site? Click here and donate to his account some amount, he will be able to use it to pay for any of our services, including removing this ad.

Sauce labs, how to start?

Code example of simple test with usage of Sauce labs

public class Settings {
    public static final String USERNAME = "sanya_tolok";//your user name from https://saucelabs.com
    public static final String ACCESS_KEY = "7f92d543-541f-4214-a49d-24cdae1bb705";//access key taken from user settings inside your dashboard (https://saucelabs.com/beta/user-settings)
    public static final String URL = "http://" + USERNAME + ":" + ACCESS_KEY + "@ondemand.saucelabs.com:80/wd/hub";
    public static void test_title() {
        {
            DesiredCapabilities caps = DesiredCapabilities.chrome();
            caps.setCapability("platform", "Windows XP");
            caps.setCapability("version", "43.0");
            WebDriver driver = null;
            try {
                driver = new RemoteWebDriver(new URL(URL), caps);
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
            driver.get("https://ddi-dev.com");//set your link
            System.out.println("title of page is: " + driver.getTitle());//thist test just print to console title of your page
            driver.quit();
        }
    }
    public static void waitInSeconds (int seconds)
    {
        try {
            Thread.sleep(1000*seconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

}
}

Result

Selection_183

And if you don’t understood my comments, place where you could get your  ACCESS_KEY

Selection_181