Reputation: 91
I'm having some difficulty connecting Appium to Selenium Grid.
Here's what I have for my nodeconfig file:
{
"capabilities":
[
{
"browserName":“iPhone5”,
"version”:”6.1,
"maxInstances": 1,
"platform”:”MAC”
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":30000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":`"http://127.0.0.1:4725/wd/hub",`
"host": 127.0.0.1,
"port": 4723,
"maxSession": 1,
"register": true,
"hub": `“http://192.168.28.74:4444/grid/register”`
}
}
Using the Appium app, I click on launch. It doesn't throw any errors but I do not see it on the Grid console page.
If anyone has any experience connecting Appium on a Mac to the Grid, can you walk me through it?
Upvotes: 4
Views: 4368
Reputation: 1030
I'm running Appium for iOS on a Mac OS X with Selenium Grid. I've tried using both with running Selenium Server as a hub and also as running it in Jenkins via Selenium Plugin. Also as a node I run it node.js version and Appium.app version and don't have any issues.
It'll be good if you can provide some more details how exactly you are trying to run it.
Also, I've see that your nodeconfig file is looking somehow strange:
"browserName":“iPhone5”, <- here you have different types of double quotes " and “
"version”:”6.1 <- here the same and also one is missing.
So looking like you just have not a valid JSON file.
Here is example of my configuration file, which is working for me:
{
"capabilities":
[
{
"browserName": "iPhone5",
"version":"7.1",
"maxInstances": 1,
"platform":"MAC"
}
],
"configuration":
{
"cleanUpCycle":2000,
"timeout":30000,
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"url":"http://127.0.0.1:4723/wd/hub",
"host": "127.0.0.1",
"port": 4723,
"maxSession": 1,
"register": true,
"registerCycle": 5000,
"hubPort": 4444,
"hubHost": "192.168.33.101"
}
}
Hope this helps.
Upvotes: 2