Currently Selenium Grid2 running with the default config shows that it can run 5 firefox browsers, 5 chrome browsers and 1 IE. With a max of 5 instances at the same time.
How can I change this so that it runs 10 chrome instances at the same time?
I have succesfully changed the maxsession parameter of the node with -maxSession 10. However when I run 10 tests, the hub shows that 5 are in queue waiting to be executed.
I dont know if this matters or not, but the hub itself shows a maxSession params of 5. Yet this one I couldn't change.
Any ideas on how to do this?
Selenium Grid allows us to execute multiple instances of WebDriver or Selenium Remote Control tests in parallel which uses the same code base, hence the code need NOT be present on the system they execute. The selenium-server-standalone package includes Hub, WebDriver, and Selenium RC to execute the scripts in grid.
With a max of 5 instances at the same time.
For this to be controlled, Selenium Grid comes out with a configuration parameter, called maxInstances , using which we can specify how many instances of a particular browser we want our node to provide. The command to do that is as follows: java -jar selenium-server-standalone-3.12.
Each Selenium Grid consists of exactly one hub. The hub needs to be reachable from the respective clients (i.e. CI server, Developer machine etc.) The hub will connect one or more nodes that tests will be delegated to.
I figured it out:
run the node with the argument of MaxSession, and let the browser Configuration have the MaxInstances parameter, ie:
java -jar $JARFILE -Dwebdriver.chrome.driver=$CHROMEDRIVER -role webdriver -hub http://$HUB_IP:4444/grid/register -maxSession 10 -browser browserName=chrome,maxInstances=10"
pretty straightforward actually...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With