Hello,
I try to execute test on 2 real android phones on parallel, registered on the grid and plugged on the same machine, but all tests are running on the same device because appium always start test on the first device it finds.
I’ve set my 2 phones in a json file, with different ports. and I’ve launch 2 instances of Appium, like that:
command line : appium --relaxed-security --nodeconfig /path/to/nodes_4727_GalaxyS7.json -p 4727 --session-override -bp 4727
the json : https://gist.github.com/ericzered/1384671a334cc0f471636cf6f3aeb2d74
command line : appium --relaxed-security --nodeconfig /path/to/nodes_4728_Note3.json -p 4728 --session-override -bp 4728
the json : https://gist.github.com/ericzered/24348d80bd35f0a0c602b52cca2895dc1
Purpose is that, when I run my test with capabilities “browserName: ‘chrome’ maxInstances: 2” (but no specify an udid), half of the tests run on device #1 on the grid and other half on the device #2, but no, the 2 Appium launch them on the same device. I wish Appium can use the udid it’s got in his json file to dispatch.
Because I’ve put the udid of the first phone in my first Appium instance, why can’t it run the test only on this device ?
Is there a way to lock an Appium instance on a specific android device ? So each session will not go on the same device ?
Thanks a lot
created
Mar '18
last reply
Mar '18
- 4
replies
- 285
views
- 3
users
- 2
links