Hi,
I am starting appium server each device it detects it creates a random --port and -bp and -U of each device.
The appium server starts all connections with different port for each devices.
I then establish the following connection for each device depending on the platform type:
wd is a static WebDriver
wd = new AndroidDriver<>(new URL("http://127.0.0.1:"+devices.getPortNo()+"//wd/hub"),capabilities)
or
wd = new iOSDriver<>(new URL("http://127.0.0.1:"+devices.getPortNo()+"//wd/hub"),capabilities)
Below is the Appium Server starting foe each device:
2016-04-29 06:59:50:169 - info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)
2016-04-29 06:59:50:169 - info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)
2016-04-29 06:59:50:174 - info: Appium REST http interface listener started on 127.0.0.1:4513
2016-04-29 06:59:50:174 - info: Appium REST http interface listener started on 127.0.0.1:4567
2016-04-29 06:59:50:178 - info: [debug] Non-default server args: {"udid":"192.168.57.102:5555","address":"127.0.0.1","port":4513,"bootstrapPort":4500,"sessionOverride":true,"fullReset":true,"log":"/Users/admin/Documents/log/log.txt"}
2016-04-29 06:59:50:178 - info: [debug] Non-default server args: {"udid":"192.168.57.101:5555","address":"127.0.0.1","port":4567,"bootstrapPort":4543,"sessionOverride":true,"fullReset":true,"log":"/Users/admin/Documents/log/log.txt"}
However the test only executes on one device, I am not sure what have done wrong.
I don't want to use selenium grid as a solution.