In this video, Meaghan Lewis describes the benefits of using Selenium Grid, and shows you an example as she explains how the grid distributes the load of testing across a hub and nodes.
- [Instructor] Selenium Grid is a proxy server…that runs tests against remote browser instances.…The biggest benefit of the grid…is that it distributes the load of testing…across several servers.…It allows for multiple configurations of test to be run…across different browsers, platforms,…and devices all at the same time.…There are two main components to the grid.…The first is the hub,…which is the central server for the grid.…It is the point where tests are executed.…The hub is launched on a single machine…and connects to one or more nodes…that are registered to it.…
There can only be one hub in a grid instance,…and this hub can be a Windows, macOS,…or Linux platform.…Nodes are servers that are registered to the hub.…They receive test scripts from the hub…and run them.…Nodes do not have to be the same platform as the hub…and can be a mix and match of different platforms.…Nodes have different Selenium instances installed on them,…as well as the browsers that will be used for testing.…There are usually many nodes registered to one hub…
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