Hi @Shankeyisgem
No need to use Eclipse to configure and trigger Selenium Grid execution.You can configure TestNG.xml and .json files using any editor like Notepad etc.
following is and example .json file:
{
"capabilities":
[
{
"browserName": "IpadMiniDevice",
"version":"8.5",
"maxInstances": 1,
"platform":"MAC",
"deviceName":"IpadMiniDevice"
},
{
"browserName": "AllIpadDevices",
"version":"8.5",
"maxInstances": 1,
"platform":"MAC",
"deviceName":"AllTabletDevices"
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":0,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"http://<IpAddress on Which AppiumServer is running:Port on Which AppiumServer is running>/wd/hub",
"maxSession": 1,
"port": <Port on Which AppiumServer is running>,
"host": <IpAddress on Which AppiumServer is running>,
"register": true,
"registerCycle": 5000,
"hubPort": <Port on Which Selenium Grid hub is running>,
"hubHost": <IpAddress on Which Selenium Grid hub is running>
}
}
You can start Selenium Grid hub and nodes using following dos commands:
To start Hub use following command:
java -jar -timeout 0 -remoteControlPollingIntervalInSeconds 300 -role hub
To start and register node use following command:
java -jar -role node -nodeConfig
Thanks and Regards,
Pranoday