How Selenium grid works
·
HUB : Hub
is a master machine which distributes your tests to registered slave machines (nodes).
·
NODE : Node
is a slave machine which takes and executes the commands from the master
machine (hub).
Grid consists of Hub and nodes. Single hub and one or more
nodes registered to the hub.
The hub receives a test to be executed along with
information on which browser (Chrome, IE, Firefox safari etc )and ‘platform’
(i.e. WINDOWS, LINUX, etc) where the test should be run. It has the list of
nodes registered under it, it selects an available node that has the requested
browser-platform combination and initiates, Selenium commands (testcase) and passes
them to the node selected. The node runs the browser, and executes the testcase
within that browser against the application under test.