Hi All,
I am using appium in my local machine successfully.
When i try to keep script in one machine and to run in another machine i am facing some issues.
I followed some online help, i setup hub in in machine1, and registered node in machine2, using selenium server.
I created a json file and try to register using the below command i am getting the below issue, i given all port and machine details properly but i am getting below issue.
C:\Program Files (x86)\Appium>node.exe node_modules\appium\bin\appium.js --nodeconfig “C:\Users\User1\Desktop\Software\appium-json.json” -p 4444 -U e
mulator-5556
warn: Appium support for versions of node < 0.12 has been deprecated and will be removed in a future version. Please upgrade!
info: Welcome to Appium v1.4.0 (REV 8f63e2f91ef7907aed8bda763f4e5ca08e86970a)
info: Appium REST http interface listener started on 0.0.0.0:4444
info: [debug] Non-default server args: {“udid”:“emulator-5556”,“port”:4444,“nodeconfig”:“C:\Users\User1\Desktop\Software\appium-json.json”}
info: Console LogLevel: debug
error: Syntax error in node configuration file: Unexpected string
Thanks and Regards,
Anil Kumar
Please provide the node configuration file.
{
“capabilities”:
[
{
“deviceName”: “emulator-5556”,
“version”:“5.0”,
“maxInstances”: 3,
“platformName”:“ANDROID”
}
]
“configuration”:
{
“cleanUpCycle”:2000,
“timeout”:30000,
“proxy”: “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”:“http://10.28.19.251:5555/wd/hub”,
“host”: “10.28.19.251”,
“port”: 5555,
“maxSession”: 6,
“register”: true,
“registerCycle”: 5000,
“hubPort”: 4723,
“hubHost”: “10.28.19.251”
}
}
You can use http://jsonlint.com/ for example to check JSON validity. Add comma , after the first ]
Try with this
{
"capabilities": [{
"deviceName": "emulator-5556",
"version": "5.0",
"maxInstances": 3,
"platformName": "ANDROID"
}],
"configuration": {
"cleanUpCycle": 2000,
"timeout": 30000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url": "http://10.28.19.251:5555/wd/hub",
"host": "10.28.19.251",
"port": 5555,
"maxSession": 6,
"register": true,
"registerCycle": 5000,
"hubPort": 4723,
"hubHost": "10.28.19.251"
}
}
Thank you very much for your help, i never expected this was the issue.
Now node is registered successfully.
1 Like