Node is not starting with JSON | Selenium Forum
M
Posted on 06/07/2016
Hi Ashish,

Please help me on the below issue

Hub:

{
"host": null,
"port": 4444,
"newSessionWaitTimeout": -1,
"servlets" : [],
"prioritizer": null,
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"throwOnCapabilityNotPresent": true,
"nodePolling": 5000,

"cleanUpCycle": 5000,
"timeout": 300000,
"browserTimeout":0,
"maxSession": 5,
"jettyMaxThreads":-1
}

Node1 -
{
"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "webDriver"
},
{
"browserName": "chrome",
"maxInstances": 3,
"seleniumProtocol": "webDriver"
},


],
"configuration":
{

"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession":2,
"port":5523,
"host":ip,
"register":true,
"registerCycle":5000,
"hubPort":4444,
"hubHost":ip
}
}


Start HUB Server-->

java -Dwebdriver.chrome.driver=C:\Users\shettarp\Music\chromedriver_win32\chromedriver.exe -jar selenium-server-standalone-2.53.1.jar -role hub -hubConfig hub.json


Node1-

java -Dwebdriver.chrome.driver=C:\Users\shettarp\Music\chromedriver_win32\chromedriver.exe -jar selenium-server-standalone-2.53.1.jar -role rc -nodeConfig node1.json

Please find the error screen shot as attached.

M
Replied on 06/07/2016

there is a problem with node1.json

there was a extra comma

use this website to validate json file. https://jsonformatter.curiousconcept.com/



http://grokbase.com/t/gg/selenium-users/14b69pd7q0/has-the-json-format-changed-for-grid-node-config-i-am-getting-an-error


M
Replied on 09/07/2016

Thanks a lot Ashish