Activity: Running a Test on a Third-party Service

Before you Begin

  1. For the sake of simplicity, we will use Sauce Labs for this activity. If you don't have an account with Sauce Labs, go to https://saucelabs.com/ and click on Free Trial, fill out the registration form, and create an account.
  2. Get your access key from the user settings area; it will be needed for the activity development.

Aim

To run a Selenium test on a remote Selenium Grid provided by a third-party service on the cloud.

Steps for Completion

  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).
  2. Compile and run the test.
  3. 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.

We are now able to run a Selenium test using a third-party testing service that provides a remote Selenium Grid.


To refer to the detailed steps, go to the Solutions section at the end of this book on Page no. 188.
..................Content has been hidden....................

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