I have done grid setup as follows:
Hub: iMAC
Started with: java -jar Downloads/selenium-server-standalone-2.52.0.jar -port 4444 -role hub
Node1: Win8 system
Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http://192.168.1.103:4444/grid/register -nodeConfig Node1.json
Node2: Win10 system
Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http://192.168.1.103:4444/grid/register -nodeConfig Node2.json
The contents of the json is as follows:
{
"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"platform": "WINDOWS",
"browserName": "internet explorer",
"maxInstances": 1,
"seleniumProtocol": "WebDriver"
}
],
"configuration":
{
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 10,
"port": 5557,
"host": ip address of node1,
"register": true,
"registerCycle": 5000,
"hubPort": 4444,
"hubHost": ip address of hub
}
}
Hub and nodes are started correctly. When i run a testng suite with 20 tests in the suite xml, with thread-count="10"
I see only 5 sessions are triggered,
- 3 on Node1
- 2 on Node2
Expected/Want to achieve: 10 sessions should be triggered, 5 on each nodes.
I tried the same setup with different versions of selenium server standalone, no luck though!!!
Please let me know if i'm doing any configuration mistakes.