Hi,
i have some query regarding selenium grid, but am stuck, let me explain you my query below
I am trying to start server on MAC using following command:
java -jar selenium-server-standalone-2.46.0.jar -role hub
output:
18:22:29.795 INFO - Launching Selenium Grid hub
2015-09-22 18:22:30.358:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2015-09-22 18:22:30.387:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null}
2015-09-22 18:22:30.395:INFO:osjs.AbstractConnector:Started [email protected]:4444
18:22:30.396 INFO - Nodes should register to http://192.168.2.9:4444/grid/register/
18:22:30.396 INFO - Selenium Grid hub is up and running
Now am trying to register a node by using node.js file with capabilities & configuration as below
{
“capabilities”:
[
{
“browserName”:””,
“version”:”5.0.1”,
“maxInstances”:2,
“platform”:”ANDROID”,
“deviceName”:”TA0940A4Y3”;
}
],
“configuration”:
{
“nodeTimeout”:120,
“port”:4728,
“hubPort”:4444,
“proxy”:”org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”:”http://127.0.0.1:4728/wd/hub”,
“hub”:”http://127.0.0.1:4444/grid/register”,
“hubHost”:”127.0.0.1”,
“nodePolling”:2000,
“registerCycle”:10000,
“register”:true,
“cleanUpCycle”:2000,
“timeout”:30000,
“maxSession”:2
}
}
and am trying to execute the following command to register
cd /Applications/Appium.app/Contents/Resources/node/bin/
$ node /Applications/Appium.app/Contents/Resources/node_modules/appium/bin/appium.js --address 127.0.0.1 --port 4728 -bp 2252 --udid TA0940A4Y3 --nodeconfig /Users/sandeep/Documents/node1.js
output:
info: Welcome to Appium v1.4.8 (REV c8179bd8352d3c62d98fa58b324491230df9342a)
info: Appium REST http interface listener started on 127.0.0.1:4728
info: [debug] Non-default server args: {“udid”:“TA0940A4Y3”,“address”:“127.0.0.1”,“port”:4728,“bootstrapPort”:2252,“nodeconfig”:"/Users/sandeep/Documents/node1.js"}
info: Console LogLevel: debug
error: Syntax error in node configuration file: Unexpected token “
Help me in this regard, thanks in advance
sandeep.