Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manage Selenium Grid queue

I have 1 grid hub server and 3 selenium nodes. I would like to execute multiple test suite against one Grid Hub server. So that each test suite will be executed on all 3 servers and the rest of the test suits (pending) will wait till the current test suite will finish its execution.

Can the Grid Hub manage a queue of the test suits? If no, is there any workaround or another solution?

like image 654
Vendrov Avatar asked Aug 03 '15 07:08

Vendrov


People also ask

How do I stop Selenium Grid hub?

"Ctrl + C" is the best option.

How can I tell if Selenium Grid is running?

To double-check if the hub is up and running, you can simply type in http://localhost:4444/grid/console in your web browser of choice. Clicking on the View Config link pulls up a detailed configuration window with data that we succeeded in launching a Selenium hub.


1 Answers

TLDR; - Yes. Grid can manage.

Long answer

Selenium Hub doesn't care about whether the requests are coming from 3 different test suites or one. Think about it in this way - Hub will process all the requests that comes to it. When a request comes, hub will see if there is a node that has the capability to execute the request.

  • If there is one available and free, it will send the command to the node.
  • If there is a node which can execute the request but is busy now, it will send the command to the queue.
  • If there are no nodes which has the requested capability, the request is marked as failed.

Hub doesn't check for the source of request anywhere in the above flow.

like image 51
A.J Avatar answered Sep 20 '22 22:09

A.J