设备是 Mac Mini,小米/三星手机
当两个手机单独执行任务,都是正常的;
当两个手机同时执行任务就会出现问题。
命令行起的服务,查看进程号 40087, 39919
node /Applications/Appium.app/Contents/Resources/app/node_modules/appium/build/lib/main.js -a 0.0.0.0 -p 4623 --bootstrap-port 4624
[ start_appium ]: start appium ok ,appium_id = 40087
node /Applications/Appium.app/Contents/Resources/app/node_modules/appium/build/lib/main.js -a 0.0.0.0 -p 4633 --bootstrap-port 4634
[ start_appium ]: start appium ok ,appium_id = 39919
窗口查看起的服务是正常的:
sh-3.2# ps aux | grep node
root 40087 0.8 1.1 409505040 94304 s005 S+ 10:46 上午 0:03.45 node /Applications/Appium.app/Contents/Resources/app/node_modules/appium/build/lib/main.js -a 0.0.0.0 -p 4623 --bootstrap-port 4624
root 39919 0.0 0.0 0 0 s000 Z+ 10:39 上午 0:00.00 (node)
两个终端出现的报错信息:
终端 1 的报错,连接操作是正常:
error: more than one device/emulator
终端 2 的报错,连接失败:
HTTPConnectionPool(host='127.0.0.1', port=4633): Max retries exceeded with url: /wd/hub/session/c3d6d10e-9873-4f13-aa97-5731a2073c58/timeouts (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 61] Connection refused'))