Appium node configuration for running multiple iOS and android devices
Hi ,
Currently i am using the following configuration file with the below capabilities and its working fine .
My question
We have add the following customization in hub and running hub with below capability matcher .
Appium client code :
capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "iphone");
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.PLATFORM, "MAC");
capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "8.1");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 4s");
capabilities.setCapability(MobileCapabilityType.APP, apppath);
- Node config :
{
“capabilities” : [ {
“browserName” : “iphone”,
“maxInstances” : 1,
“platform” : “MAC”,
“platformName”:“iOS”,
“platformVersion”:“8.1”,
“deviceName”:“iPhone 4s”
} ],
“configuration” : {
“cleanUpCycle” : 2000,
“hubHost” : “<IP_ADDRESS>”,
“hubPort” : 4444,
“maxSession” : 1,
“nodePolling” : 4000,
“nodeTimeout” : 120,
“proxy” : “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“register” : true,
“registerCycle” : 10000,
“timeout” : 30000
}
}
Capability matcher in hub side :
this.toConsider.add("platformName");
this.toConsider.add("platformVersion");
this.toConsider.add("deviceName");
this.toConsider.add("deviceType");
My question and clarifications :
The above setup is working but the issue is , if i need to run with different platform version ( 7.1 ) and different device iphone 6s then i need to change the config file and required restart appium on node side .
is is possible configure appium run on multiple version of node with capability matcher ?
i can able to execute with different device and platform with out capability matcher but its not working with capability matcher .
i want configure the node json file in such a way it will execute configured devices ( Ex : 5s , 4s only ) and platform versions ( Ex 7.1 and 8.1 ) .
Please let me know is it possible in appium side ?