Skip to content

Instantly share code, notes, and snippets.

@sydowma
Created July 2, 2017 01:39
Show Gist options
  • Save sydowma/4c617446430400d7d281ea2f329d9c18 to your computer and use it in GitHub Desktop.
Save sydowma/4c617446430400d7d281ea2f329d9c18 to your computer and use it in GitHub Desktop.
appium+python+ios 真机测试
qzstechs-Mac-mini:~ huna$ appium -p 4723
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"capabilities":{"alwaysMatch":{"deviceName":"iphone 6","udid":"6e1ea64b3214d4627f619a2c5399cae214c80cb6","app":"/Users/huna/Desktop/iosautotest/version/QYMapAPP.app","noReset":true,"newCommandTimeout":3600,"platformVersion":"10.3.1","platformName":"iOS","automationName":"XCUITest","bundleId":"com.xxxx.WebDriverAgentLib"},"firstMatch":[]},"desiredCapabilities":{"deviceName":"iphone 6","udid":"6e1ea64b3214d4627f619a2c5399cae214c80cb6","app":"/Users/huna/Desktop/iosautotest/version/QYMapAPP.app","noReset":true,"newCommandTimeout":3600,"platformVersion":"10.3.1","platformName":"iOS","automationName":"XCUITest","bundleId":"com.xxxx.WebDriverAgentLib"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iphone 6","udid":"6e1ea64b3214d4627f619a2c5399cae214c80cb6","app":"/Users/huna/Desktop/iosautotest/version/QYMapAPP.app","noReset":true,"newCommandTimeout":3600,"platformVersion":"10.3.1","platformName":"iOS","automationName":"XCUITest","bundleId":"com.xxxx.WebDriverAgentLib"},null,{"alwaysMatch":{"deviceName":"iphone 6","udid":"6e1ea64b3214d4627f619a2c5399cae214c80cb6","app":"/Users/huna/Desktop/iosautotest/version/QYMapAPP.app","noReset":true,"newCommandTimeout":3600,"platformVersion":"10.3.1","platformName":"iOS","automationName":"XCUITest","bundleId":"com.xxxx.WebDriverAgentLib"},"firstMatch":[]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1498879318354 (11:21:58 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] deviceName: 'iphone 6'
[Appium] udid: '6e1ea64b3214d4627f619a2c5399cae214c80cb6'
[Appium] app: '/Users/huna/Desktop/iosautotest/version/QYMapAPP.app'
[Appium] noReset: true
[Appium] newCommandTimeout: 3600
[Appium] platformVersion: '10.3.1'
[Appium] platformName: 'iOS'
[Appium] automationName: 'XCUITest'
[Appium] bundleId: 'com.xxxx.WebDriverAgentLib'
[debug] [XCUITest] XCUITestDriver version: 2.5.3
[BaseDriver] Session created with session id: b6a4e7c0-a28e-48db-a705-88f0bd8861bb
[debug] [XCUITest] Xcode version set to '8.3.3'
[debug] [XCUITest] iOS SDK Version set to '10.3'
[debug] [XCUITest] Available devices: 6e1ea64b3214d4627f619a2c5399cae214c80cb6
[debug] [XCUITest] Creating iDevice object with udid 6e1ea64b3214d4627f619a2c5399cae214c80cb6
[XCUITest] Determining device to run tests on: udid: '6e1ea64b3214d4627f619a2c5399cae214c80cb6', real device: true
[BaseDriver] Using local app '/Users/huna/Desktop/iosautotest/version/QYMapAPP.app'
[debug] [XCUITest] Checking whether app '/Users/huna/Desktop/iosautotest/version/QYMapAPP.app' is actually present
[debug] [XCUITest] App is present
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog'
[XCUITest] Setting up real device
[debug] [XCUITest] Error checking install status: 'Command 'ios-deploy --exists --id 6e1ea64b3214d4627f619a2c5399cae214c80cb6 --bundle_id com.xxxx.WebDriverAgentLib' exited with code 255'
[debug] [XCUITest] App is not installed. Will try to install.
[debug] [XCUITest] App installed successfully.
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=6e1ea64b3214d4627f619a2c5399cae214c80cb6 -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITest] Log file for xcodebuild test: /Users/huna/Library/Developer/Xcode/DerivedData/WebDriverAgent-hddwkzvcovvaclbcfwntdojakdcw/Logs/Test/35289F27-D3B4-4925-82B0-97FC2849FD6E/Session-WebDriverAgentRunner-2017-07-01_112208-Xnnv4L.log
[debug] [XCUITest] Unable to connect to running WebDriverAgent: Error: socket hang up
[XCUITest] Getting status of WebDriverAgent on device timed out. Continuing
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c8
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down xcodebuild process (pid 1767)
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
[XCUITest] Shutting down iproxy process (pid 1766)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=6e1ea64b3214d4627f619a2c5399cae214c80cb6 -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITest] Log file for xcodebuild test: /Users/huna/Library/Developer/Xcode/DerivedData/WebDriverAgent-hddwkzvcovvaclbcfwntdojakdcw/Logs/Test/4A605413-C6AE-4F1B-9209-D3B2991B2143/Session-WebDriverAgentRunner-2017-07-01_112324-OJWpBQ.log
[debug] [XCUITest] Unable to connect to running WebDriverAgent: Error: socket hang up
[XCUITest] Getting status of WebDriverAgent on device timed out. Continuing
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c8
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying
[XCUITest] Shutting down sub-processes
[XCUITest] Shutting down xcodebuild process (pid 1797)
[XCUITest] xcodebuild exited with code 'null' and signal 'SIGTERM'
[XCUITest] Shutting down iproxy process (pid 1796)
[debug] [XCUITest] iproxy exited with code 'null'
[debug] [XCUITest] Removing WDA application from device
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=6e1ea64b3214d4627f619a2c5399cae214c80cb6 -configuration Debug' in directory '/usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.5.3@appium-xcuitest-driver/WebDriverAgent'
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [XCUITest] Log file for xcodebuild test: /Users/huna/Library/Developer/Xcode/DerivedData/WebDriverAgent-hddwkzvcovvaclbcfwntdojakdcw/Logs/Test/7B41F808-9CAC-4DAA-9EF3-DCFD0DF86036/Session-WebDriverAgentRunner-2017-07-01_112440-cAm1w2.log
[debug] [XCUITest] Unable to connect to running WebDriverAgent: Error: socket hang up
[XCUITest] Getting status of WebDriverAgent on device timed out. Continuing
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c80cb6), port 8100
[debug] [iProxy] accepted connection, fd = 4
[debug] [iProxy] waiting for connection
[debug] [iProxy] Number of available devices == 1
[debug] [iProxy] Requesting connecion to device handle == 3 (serial: 6e1ea64b3214d4627f619a2c5399cae214c8
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.xxxx.WebDriverAgentLib","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [iProxy] Error connecting to device!
[debug] [XCUITest] Failed to create session. Retrying...
[debug] [XCUITest] Unable to start WebDriverAgent session: Could not proxy command to remote server. Original error: Error: socket hang up
[XCUITest] ProxyRequestError: Could not proxy command to remote server. Original error: Error: socket hang up
at JWProxy.proxy$ (../../../lib/jsonwp-proxy/proxy.js:153:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
{ ProxyRequestError: Could not proxy command to remote server. Original error: Error: socket hang up
at JWProxy.proxy$ (../../../lib/jsonwp-proxy/proxy.js:153:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37) jsonwp: null }
[debug] [JSONWP Proxy] Proxying [DELETE /session/b6a4e7c0-a28e-48db-a705-88f0bd8861bb] to [DELETE http://localhost:8100/session/b6a4e7c0-a28e-48db-a705-88f0bd8861bb] with no body
[debug] [iProxy] Error connecting to device!
[MJSONWP] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: Error: socket hang up
at JWProxy.proxy$ (../../../lib/jsonwp-proxy/proxy.js:153:13)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 230499 ms - 216
关注 收藏
共收到 4 条回复
25334c
hnemma · #1 · 22 小时前
附上desired_cap
def get_desired_capabilities():
desired_caps = {
'platformName': 'iOS',
'platformVersion': '10.3.1',
'deviceName': 'iphone 6',
'udid':'6e1ea64b3214d4627f619a2c5399cae214c80cb6',
'app': '/Users/huna/Desktop/iosautotest/version/QYMapAPP.app',
'automationName': 'XCUITest',
'bundleId':'com.xxxx.WebDriverAgentLib',
'newCommandTimeout':3600,
'noReset':True
}
return desired_caps
def get_uri():
return "http://127.0.0.1:4723/wd/hub"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment