Activity: Running a Test on a Third-Party Service

  1. On the AgeCalculatorTest, change the URL when the RemoteWebDriver is created to the one provided by Sauce Labs (don't forget to declare previously your user name and access key):

driver = new RemoteWebDriver(new URL("http://" + username + ":" + key + "@ondemand.saucelabs.com:80/wd/hub"),
desiredCapabilities);
  1. Compile and run the test.

  2. Go to https://saucelabs.com/beta/dashboard/tests and check the details of the test you just executed. Browse around the logs, videos, and screenshots.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.236.62