Grid node not connected using node.json

347 views
Skip to first unread message

Biswajit Pattanaik

unread,
Nov 6, 2016, 5:37:59 AM11/6/16
to Selenium Users

Hi Everyone,


Please help me.


I want to Test Multiple Test Cases in different Client Machine and I have Configured (JDK, Grid) in Client Machine within the network.

Hub (http://192.16.10.125:4444

F:\Selenium\HMIS\MavenPOMProject\resource\grid\java -jar selenium-server-standalone-3.0.1.jar -role hub -hubConfig hub.json


Client (192.16.10.68 and 172.16.10.73).

D:\Selenium\Dependency\java -jar selenium-server-standalone-3.0.1.jar -role node -nodeConfig node.json


Exception in thread "main" org.openqa.grid.common.exception.GridConfigurationException: Error with the JSON of the config : Deprecated -nodeConfig file encountered. Please update the file to work with Selenium 3. See https://github.com/SeleniumHQ/selenium/wiki/Grid2#configuring-the-nodes-by-json for more details.

        at org.openqa.grid.internal.utils.configuration.GridNodeConfiguration.loadFromJSON(GridNodeConfiguration.java:311)

        at org.openqa.grid.internal.utils.configuration.GridNodeConfiguration.loadFromJSON(GridNodeConfiguration.java:287)

        at org.openqa.grid.selenium.GridLauncherV3$3.setConfiguration(GridLauncherV3.java:261)

        at org.openqa.grid.selenium.GridLauncherV3.buildLauncher(GridLauncherV3.java:147)

        at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:73)

Caused by: org.openqa.grid.common.exception.GridConfigurationException: Deprecated -nodeConfig file encountered. Please update the file to work with Selenium 3. See https://github.com/SeleniumHQ/selenium/wiki/Grid2#configuring-the-nodes-by-json for more details.

        at org.openqa.grid.internal.utils.configuration.GridNodeConfiguration.loadFromJSON(GridNodeConfiguration.java:303)

        ... 4 more

Biswajit Pattanaik

unread,
Nov 7, 2016, 3:38:57 AM11/7/16
to Selenium Users
Geeting an another Exception 


C:\Dependency>cd C:\Dependency

C:\Dependency>java -jar selenium-server-standalone-3.0.1.jar -role node -nodeCon
fig node.json
Exception in thread "main" com.beust.jcommander.ParameterException: node.json is
 not a valid file.
        at org.openqa.grid.internal.utils.configuration.validators.FileExistsVal
ueValidator.validate(FileExistsValueValidator.java:30)
        at com.beust.jcommander.ParameterDescription.validateValueParameter(Para
meterDescription.java:285)
        at com.beust.jcommander.ParameterDescription.validateValueParameter(Para
meterDescription.java:275)
        at com.beust.jcommander.ParameterDescription.addValue(ParameterDescripti
on.java:242)
        at com.beust.jcommander.ParameterDescription.addValue(ParameterDescripti
on.java:209)
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:875
)
        at com.beust.jcommander.JCommander.processFixedArity(JCommander.java:857
)
        at com.beust.jcommander.JCommander.parseValues(JCommander.java:725)
        at com.beust.jcommander.JCommander.parse(JCommander.java:282)
        at com.beust.jcommander.JCommander.parse(JCommander.java:265)
        at com.beust.jcommander.JCommander.<init>(JCommander.java:210)
        at org.openqa.grid.selenium.GridLauncherV3$3.setConfiguration(GridLaunch
erV3.java:257)
        at org.openqa.grid.selenium.GridLauncherV3.buildLauncher(GridLauncherV3.
java:147)
        at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:73)
Reply all
Reply to author
Forward
0 new messages