What is Selenium Grid?
Selenium
Grid is a part of the Selenium Suite that specializes on running multiple
tests across different browsers, operating systems, and machines in parallel.
Selenium
Grid has 2 versions – the older Grid 1 and the newer Grid 2. We will only
focus on Grid 2 because Grid 1 is gradually being deprecated by the Selenium
Team.
|
Selenium
Grid uses a hub-node concept where you only run the test on a single machine
called a hub, but the
execution will be done by different machines called nodes.
When to Use Selenium Grid?
You
should use Selenium Grid when you want to do either one or both of following :
·
Run your tests against different browsers, operating
systems, and machines all at the same time.This
will ensure that the application you are testing is fully compatible with a
wide range of browser-OS combinations.
·
Save time in execution of your test suites. If you
set up Selenium Grid to run, say, 4 tests at a time, then you would be able to
finish the whole suite around 4 times faster.
Grid 1.0 Vs Grid 2.0
Following
are the main differences between Selenium Grid 1 and 2.
Grid 1
|
Grid 2
|
Selenium
Grid 1 has its own remote control that is different from the Selenium RC
server. They are two different programs.
|
Selenium
Grid 2 is now bundled with the Selenium Server jar file
|
You
need to install and configure Apache Ant first before you can use Grid 1.
|
You do
not need to install Apache Ant in Grid 2.
|
Can
only support Selenium RC commands/scripts.
|
Can
support both Selenium RC and WebDriver scripts.
|
You
can only automate one browser per remote control.
|
One
remote control can automate up to 5 browsers.
|
What is a Hub and Node?
The Hub
·
The hub is the central point where you load your tests into.
·
There should only be one hub in a grid.
·
The hub is launched only on a single machine, say, a computer
whose OS is Windows 7 and whose browser is IE.
·
The machine containing the hub is where the tests will be run, but
you will see the browser being automated on the node.
The Nodes
·
Nodes are the Selenium instances that will execute the tests that
you loaded on the hub.
·
There can be one or more nodes in a grid.
·
Nodes can be launched on multiple machines with different
platforms and browsers.
·
The machines running the nodes need not be the same platform as
that of the hub.
I am trying to run the same test case on two different ip.. how can we do that?
ReplyDeleteHello,
DeletePlease refer http://devrajndrg.blogspot.in/2014/03/how-to-install-gride-20.html