Skip to content

Commit f16b753

Browse files
raju249AutomatedTesterdiemol
authored
Add grid 4 section (SeleniumHQ#461)
* Add grid 4 section * Apply suggestions to index page in grid 4 for all languages * Refactoe grid4 docs * Change weight to earlier number * Add image path * Add WIP and language notification * Add Router, SessionMap and Distributor docs * Add standalone and hub docs * Delete grid4.png * Update components_of_a_grid.en.md Co-authored-by: David Burns <david.burns@theautomatedtester.co.uk> Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent e51e54e commit f16b753

File tree

7 files changed

+58
-7
lines changed

7 files changed

+58
-7
lines changed

docs_source_files/content/grid/grid_4/components_of_a_grid.en.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,55 @@ title: "Components"
33
weight: 1
44
---
55

6-
> Work in progress
6+
## Router
7+
* Routes request each request to the corresponding handler.
8+
9+
__Router__ is a point where all the requests to run a new session are sent.
10+
It forwards the request to __Distributor__ for further processing. It routes different
11+
requests based on where they are meant to be sent. It also helps to communicate with the
12+
Session Map. All the communication with a session is done via router.
13+
14+
## Distributor
15+
* Contains information on nodes and its capabilities.
16+
* Selects node on which session is run.
17+
18+
__Distributor__ is responsible for selecting the node on which your session will be run.
19+
It has all the information related to nodes and is aware of each node's capabilities.
20+
21+
## SessionMap
22+
* Datastore mapping for session id and the node.
23+
24+
__SessionMap__ is data store used to store the map of session id and the node on which the session is running.
25+
26+
## Nodes
27+
28+
* Where the browsers live
29+
* Registers itself to the hub and communicates its capabilities
30+
* Receives requests from the hub and executes them
31+
32+
__Nodes__ are different Selenium instances
33+
that will execute tests on individual computer systems.
34+
There can be many nodes in a grid.
35+
The machines which are nodes do not need to be the same platform
36+
or have the same browser selection as that of the hub or the other nodes.
37+
A node on Windows might have the capability of
38+
offering Internet Explorer as a browser option,
39+
whereas this wouldn't be possible on Linux or Mac.
40+
41+
## Hub
42+
* Accepts requests to run tests
43+
* Acts as a Router
44+
* Acts as a Distributor
45+
* Acts as a SessionMap
46+
* Takes instructions from client and executes them remotely on the nodes
47+
48+
A __Hub__ is a central point where all your tests are sent.
49+
It allows you to run a Router, Distributor and a SessionMap on the same machine using a single command.
50+
The hub needs to be reachable from the respective clients (i.e. CI server, Developer machine etc.).
51+
It communicates with the node to run your selenium sessions. Instead of running each component separately,
52+
you can use _hub_ role to run all 3 together.
53+
54+
## Standalone
55+
56+
A __Standalone__ version of Grid consists of all components running as single process, including the node.
57+
You can directly start running sessions after starting the standalone version of the Grid.

docs_source_files/content/grid/grid_4/components_of_a_grid.es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 1
44
---
55

66
{{% notice info %}}
7-
<i class="fas fa-language"></i> Page being translated from
7+
<i class="fas fa-language"></i> Page being translated from
88
English to Spanish. Do you speak Spanish? Help us to translate
99
it by sending us pull requests!
1010
{{% /notice %}}

docs_source_files/content/grid/grid_4/components_of_a_grid.fr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 1
44
---
55

66
{{% notice info %}}
7-
<i class="fas fa-language"></i> Page being translated from
7+
<i class="fas fa-language"></i> Page being translated from
88
English to French. Do you speak French? Help us to translate
99
it by sending us pull requests!
1010
{{% /notice %}}

docs_source_files/content/grid/grid_4/components_of_a_grid.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 1
44
---
55

66
{{% notice info %}}
7-
<i class="fas fa-language"></i> Page being translated from
7+
<i class="fas fa-language"></i> Page being translated from
88
English to Japanese. Do you speak Japanese? Help us to translate
99
it by sending us pull requests!
1010
{{% /notice %}}

docs_source_files/content/grid/grid_4/components_of_a_grid.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 1
44
---
55

66
{{% notice info %}}
7-
<i class="fas fa-language"></i> Page being translated from
7+
<i class="fas fa-language"></i> Page being translated from
88
English to Korean. Do you speak Korean? Help us to translate
99
it by sending us pull requests!
1010
{{% /notice %}}

docs_source_files/content/grid/grid_4/components_of_a_grid.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 1
44
---
55

66
{{% notice info %}}
7-
<i class="fas fa-language"></i> Page being translated from
7+
<i class="fas fa-language"></i> Page being translated from
88
English to Chinese. Do you speak Chinese? Help us to translate
99
it by sending us pull requests!
1010
{{% /notice %}}

docs_source_files/content/grid/grid_4/setting_up_your_own_grid.de.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Aufsetzen eines Grid"
2+
title: "Aufsetzen"
33
weight: 2
44
---
55

0 commit comments

Comments
 (0)