Category Archives: Android Automation with Appium

Hooking up appium with Selenium Grid

We can use below command to register appium with Selenium Grid.

node appium –nodeconfig android.json -p 4723 -U sagarcell -a 127.0.0.1 –no-reset

Here are the contents of android.json file.

{
"capabilities":
[
{
"deviceName": "sagarcell",
"browserName": "Android",
"version":"4.4.4",
"maxInstances": 1,
"platform":"ANDROID"
}
],
"configuration":
{
"cleanUpCycle":300000,
"timeout":400000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"http://localhost:4730/wd/hub",
"maxSession": 1,
"port": "4730",
"host": "127.0.0.1",
"register": true,
"registerCycle": 2000,
"hubPort": "4444",
"hubHost": "127.0.0.1"
}
}