Questions tagged [selenium-grid]

Selenium-Grid allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems. Essentially, Selenium-Grid support distributed test execution. It allows for running your tests in a *distributed test execution environment*.

Selenium Grid is a component of the Selenium project that allows you run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines running different browsers and operating systems. The tests can be run on any number of machines at the same time.

It provides both environment management and resource allocation as it dispatches your tests against nodes in the grid. The environment management allows you to exert finer-grained control over the environment executed in than Selenium Server provides itself. For example, you can target your tests at specific browser versions or particular platforms.

Selenium Grid consist of HUB and Node. Selenium stand alone server jar executable can work as both Node and Hub. In order to configure Grid there must be a single HUB (selenium server running as HUB), and one or more Nodes (selenium server running as Node) attached to the HUB.

PROS AND CONS

Selenium Grid isn't a silver bullet. It solves a subset of common delegation and distribution problems, but will for example not manage your infrastructure and might not suite your specific needs.

Pros

  1. Scale. Scale by distributing tests on several machines using parallel execution.
  2. Central. Manage multiple environments from a central point, making it easy to run the tests against a large combination of browsers and operating systems.
  3. Minimize. Minimize the maintenance time for the grid by allowing you to implement custom hooks to leverage a virtual infrastructure of registered nodes.
  4. Cross-Platform. If your tests are running on one particular platform, by using a node on another platform you effectively have cross-platform testing.
  5. Smart. Grid can route commands to a certain version of a browser if you have two or more nodes registered, each pointing to a different version of the browser binary.

Cons

  1. Prompted input. You have no capabilities for user input if your tests want to prompt for user input whereas you would if your tests ran locally.
  2. Maintainability. You also need to maintain the health of other computer systems which run your nodes.
  3. Limited power. Certain third party libraries have limitations that prevent them from being used in conjunction with Grid.

References:

  1. Selenium Grid docs on seleniumhq.github.io
  2. Selenium Grid docs on seleniumhq.org
  3. Running Standalone Selenium Server form command line
  4. Selenium to Start Hub Server and register Nodes with Hub
1873 questions
0
votes
2 answers

Selenium Exception : No sessionId Provided

I am working on getting rid of many Selenium exceptions I have been getting from quite some time(Which mostly turn out to be false positives). One of the many exceptions I have been getting is the exception Selenium.SeleniumException : No SessionId…
Egalitarian
  • 2,168
  • 7
  • 24
  • 33
0
votes
2 answers

Selenium grid IE 11 test suite issue

I have a test suite that I need to run daily. Both of these suites run in grid environment with 5 nodes. When I run tests in CHROME browser everything is ok. But when I run the suite in IE 11, I am facing issues. When I start the suite tests run on…
0
votes
2 answers

MSTest/Visual Studio parallel test running

Ran into a problem recently with VS/MSTest and wondering if anyone has had a similar issue. I'm currently working on a UI framework in c# using MSTest and over the past few weeks I've been implementing selenium grid/Jenkins for CI. Selenium grid…
Grimzy
  • 23
  • 7
0
votes
2 answers

How to determine a test has finished on a Selenium Grid

I am looking for a way I can ensure certain things happen after each test on a Selenium Grid node. (E.g. controlling certain processes on the node) What is the best way to do on Selenium Grid? Perhaps I don't need to reinvent the wheel and there is…
Eugene S
  • 6,709
  • 8
  • 57
  • 91
0
votes
1 answer

How to set chromedriver for Selenium Grid?

I'm learning Selenium in Java and I have been struggiling with the following problem. I try to launch the test in HUB and receive the following error. Code: package selenium; import java.io.File; import java.net.MalformedURLException; import…
Illes
  • 39
  • 4
0
votes
2 answers

How to Pass file path of local file For a Selenium Web Automation running on Selenium Grid Docker through Jenkins Job

I have a Jenkins Job which Runs my Selenium Web Automation Project using Selenium Grid Docker. The docker is running on a Testing server. I am able to run that job successfully until I have to pass a File (an image file) which I have to upload on…
0
votes
0 answers

Selenium grid launching browser on hub instead of node

I have configured my hub and one of the node. Hub is setup on jenkins as a plugin which is running on ubundu machine and my node is running on windows machine. Hub and node are correctly configure. Now when I am running the test to launch the…
Javed Ahmed
  • 223
  • 1
  • 3
  • 17
0
votes
0 answers

Selenium grid on MAC not support skype web

I have setup with MAC (Sierra 10.12.2) that ran selenium grid (3.6.0) and I tried to automate Skype Web chat on Safari (10.0.2). When the browser opens via RemoteWebDriver I get a message after login from skype that the "site does not support this…
Hezi Israeli
  • 389
  • 1
  • 2
  • 14
0
votes
1 answer

Set proxy to docker selenium node/chrome

I try to use selenium hub/nodes as docker containers like here [selenium/node-chrome][1]. Also I have proxy-manager at 127.0.0.1:24000. Question is: how to launch chrome node so, that traffic from that node will go through my proxy? I tried to pass…
uCodista
  • 9
  • 3
0
votes
2 answers

addons.manager ERROR startup failed:

I am getting this below error, is this really a error or just a warning message that I can ignore, please help. Also my test code runs well but opening another blank window in browser. I am using selenium 3.4.0 Firefox browser 47.0.2…
0
votes
1 answer

JavaScript error: undefined, line 492: Component returned failure code:

I am new to selenium, and getting this below error. Selenium 3.4.0 Firefox browser 47.0.2 geckodriver-v0.16.1-win64 Please help on this, Thanks in advance. :) Below is the test…
0
votes
0 answers

parallel-testing with SeleniumGrid and headless Chrome

I try to run the same end2end test parallel (load test, JMeter with JUnitSampler). If i run parallel tests with real chromeBrowser, its working fine. If i run the Tests with chromeOption “--headless”, no tests are running. What could be the…
0
votes
1 answer

Selenium Grid always executes an unwanted extra instance of my test

Background I have a Selenium Grid project set up to execute my test in two different browsers, Chrome and Firefox. I'm using Gradle to execute my tests. The test will successfully execute twice, once in Chrome and once in Firefox, as expected, and…
homersimpson
  • 4,124
  • 4
  • 29
  • 39
0
votes
1 answer

Maven test-output folder is not updated with the build results(emailable-report is not updated after the build is successful/failure with the result)

Scenario: Send an email after the build with the emailable-report.html. Am able to achieve the above scenario. But when the build is completed in jenkins, target folder or test-output folder is not updated after build. which means the jenkins…
Ansari
  • 3
  • 3
0
votes
1 answer

Can we run Selenium Test using Selenium GRID 2 in two nodes from 2 different machine connected in the same network at the same time

I want to run the test in 2 different machines(2 different nodes) on the same network using SELENIUM GRID2. When i run the test, test is running in one node(node registered first to the hub) Launched a GRID Hub in -…
Ansari
  • 3
  • 3