For my setup scenario:
Real iOS device and laptop running appium tests are on the same network.
As part of the tests, the network is changed (testing an IoT device)
Appium almost immediately times out
My tests run completely fine with the exact same scenario if my laptop and iOS device are on different networks when the tests start.
I’m running:
Appium 1.9.1 from CLI
iPhone 8 running iOS 12.1
Appium Logs:
2018-12-12 14:28:46:058 - [Xcode]
2018-12-12 14:29:03:533 - [debug] [XCUITest] Connection to WDA timed out
2018-12-12 14:29:03:534 - [debug] [iProxy] recv failed: Operation not permitted
2018-12-12 14:29:03:537 - [debug] [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
2018-12-12 14:29:03:537 - [debug] [W3C] at JWProxy.command$ (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:238:13)
2018-12-12 14:29:03:537 - [debug] [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
2018-12-12 14:29:03:537 - [debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
2018-12-12 14:29:03:537 - [debug] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
2018-12-12 14:29:03:537 - [debug] [W3C] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
2018-12-12 14:29:03:538 - [HTTP] <-- POST /wd/hub/session/53852d55-f482-414a-9390-40ede2c5b9e9/touch/perform 500 17699 ms - 1097
The first timestamp is the touch action to change networks. I can grab more logs as needed.
Repro rate is 100%
Any advice here? My current workaround is to run my tests on different networks, but that’s kind of a pain.