In this video, Meaghan Lewis details the pros and cons that can come when using Selenium Grid. Be aware of some of the challenges that come with using the grid, and how they can be overcome.
- [Instructor] Using the grid can be great.…It's lost the problems of being able…to run tests across many platforms…and browsers.…In a nice, delegated distribution.…There are some pros and cons that come…with using the grid, and it's good…to be aware of what those are.…The main pros are that it can scale well…by distributing tests on several machines…and running tests in parallel.…It is a central way to manage multiple environments,…making it easy to run the test…against a large combinations of browsers…and operating systems.…
The grid is smart by being able…to quickly and easily find nodes…and route test scripts to the correct nodes.…Some cons of the grid are that maintainability is required…to keep the hub and nodes running smoothly.…Maintenance is always going to be required…when dealing with tests and test infrastructure.…To help keep maintenance time to a minimum,…there are a variety of things that can be done to help.…One idea that could help is to enable warnings…and logs so that when problems occur,…they can be easily debugged.…
Find out how to set up the test-writing framework, WebDriver, and Selenium Grid, which allows you to distribute the testing load and run tests against a remote server. Learn best practices to write effective tests using variables and functions, and to organize tests into suites that can scale over time. Instructor Meaghan Lewis—a QA engineer at GitHub—also explains the test pyramid paradigm, which details an ideal way to balance unit, integration, and UI testing.
- Setting up Selenium WebDriver
- Using the Selenium grid to distribute the testing load
- Setting up a hub and nodes
- Writing clean test code
- Organizing a test suite