Before you Begin
- 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.
- 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
- 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).
- Compile and run the test.
- 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.