Appium 新手求助:WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unhandled endpoint

yuxichou · July 17, 2018 · Last by yuxichou replied at July 19, 2018 · 4752 hits

appium ====1.8.1
webdriveragent======从github下载最新的编译后替换的 product—>Test 正常

错误日志:org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unhandled endpoint: /session/763C2E9E-9078-4931-BDF3-A05C2E3AF2E5/wda/screen -- http://localhost:50385/ with parameters {
wildcards = (
"session/763C2E9E-9078-4931-BDF3-A05C2E3AF2E5/wda/screen"
);
}
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'bogon', ip: 'fe80:0:0:0:8f:d1e1:dce1:85c1%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_121'
Driver info: io.appium.java_client.AppiumDriver
Capabilities===== {app: /Users/xxx/gitlab/..., automationName: XCuiTest, browserName: , bundleId: com.xxx.xxx, clearSystemFiles: true, databaseEnabled: false, deviceName: iPhone, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, platform: MAC, platformName: MAC, preventWDAAttachments: true, shouldUseSingletonTestManager: false, simpleIsVisibleCheck: true, startIWDP: true, takesScreenshot: true, udid: 5ce3a0adc5952986d1c0e90f1c3..., updatedWDABundleId: com.bbtree.WebDriverAgentRu..., useCarthageSsl: true, wdaLocalPort: 50385, wdaStartupRetries: 6, webStorageEnabled: false, webkitDebugProxyPort: 50408, xcodeOrgId: 5EQ4X3VWN8, xcodeSigningId: iPhone Developer}

appium日志:
2018-07-17 01:39:58:253 - warn: [Appium] Appium support for versions of node < 8 has been deprecated and will be removed in a future version. Please upgrade!
2018-07-17 01:39:58:288 - info: [Appium] Welcome to Appium v1.8.1
2018-07-17 01:39:58:289 - info: [Appium] Non-default server args:
2018-07-17 01:39:58:290 - info: [Appium] address: 127.0.0.1
2018-07-17 01:39:58:290 - info: [Appium] port: 11959
2018-07-17 01:39:58:290 - info: [Appium] log: /Users/xxx/gitlab/bbtree-maven-appium/target/appiumlogs/appium_logs.txt
2018-07-17 01:39:58:343 - info: [Appium] Appium REST http interface listener started on 127.0.0.1:11959
2018-07-17 01:39:58:513 - info: [HTTP] --> GET /wd/hub/status
2018-07-17 01:39:58:514 - info: [HTTP] {}
2018-07-17 01:39:58:517 - info: [debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
2018-07-17 01:39:58:530 - info: [debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.8.1","revision":null}}
2018-07-17 01:39:58:538 - info: [HTTP] <-- GET /wd/hub/status 200 21 ms - 83
2018-07-17 01:39:58:538 - info: [HTTP]
2018-07-17 01:39:58:993 - info: [HTTP] --> POST /wd/hub/session
2018-07-17 01:39:58:993 - info: [HTTP] {"desiredCapabilities":{"app":"/Users/xxx/gitlab/bbtree-maven-appium/build/WisdomTree.zip","preventWDAAttachments":true,"simpleIsVisibleCheck":true,"clearSystemFiles":true,"useCarthageSsl":true,"xcodeOrgId":"5EQ4X3VWN8","bundleId":"com.yyy.wisdomtrees","startIWDP":true,"deviceName":"iPhone","updatedWDABundleId":"com.bbtree.WebDriverAgentRunner","xcodeSigningId":"iPhone Developer","wdaLocalPort":50385,"shouldUseSingletonTestManager":false,"webkitDebugProxyPort":50408,"automationName":"XCuiTest","wdaStartupRetries":6,"platformName":"iOS","udid":"5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e"},"capabilities":{"alwaysMatch":{"appium:app":"/Users/xxxx/gitlab/bbtree-maven-appium/build/WisdomTree.zip","appium:automationName":"XCuiTest","appium:bundleId":"com.yyy.wisdomtrees","appium:clearSystemFiles":true,"appium:deviceName":"iPhone","platformName":"ios","appium:preventWDAAttachments":true,"appium:shouldUseSingletonTestManager":false,"appium:simpleIsVisibleCheck":true,"appium:st
2018-07-17 01:39:58:994 - info: [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/xxx/gitlab/bbtree-maven-appium/build/WisdomTree.zip","preventWDAAttachments":true,"simpleIsVisibleCheck":true,"clearSystemFiles":true,"useCarthageSsl":true,"xcodeOrgId":"5EQ4X3VWN8","bundleId":"com.yyy.wisdomtrees","startIWDP":true,"deviceName":"iPhone","updatedWDABundleId":"com.bbtree.WebDriverAgentRunner","xcodeSigningId":"iPhone Developer","wdaLocalPort":50385,"shouldUseSingletonTestManager":false,"webkitDebugProxyPort":50408,"automationName":"XCuiTest","wdaStartupRetries":6,"platformName":"iOS","udid":"5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e"},null,{"alwaysMatch":{"appium:app":"/Users/xxx/gitlab/bbtree-maven-appium/build/WisdomTree.zip","appium:automationName":"XCuiTest","appium:bundleId":"com.yyy.wisdomtrees","appium:clearSystemFiles":true,"appium:deviceName":"iPhone","platformName":"ios","appium:preventWDAAttachments":true,"appium:shouldUseSingletonTestManager":false,"appium:simpleIsVisibleCheck":true,"appium:startIWDP":true,"appium:udid":"5ce3a0adc5952986d1c0e90f...
2018-07-17 01:39:58:995 - info: [debug] [BaseDriver] Event 'newSessionRequested' logged at 1531791598995 (09:39:58 GMT+0800 (CST))
2018-07-17 01:39:58:999 - warn: [BaseDriver] The capabilities ["webkitDebugProxyPort"] are not standard capabilities and should have an extension prefix
2018-07-17 01:39:59:006 - info: [Appium] Creating new XCUITestDriver (v2.84.0) session
2018-07-17 01:39:59:006 - info: [Appium] Capabilities:
2018-07-17 01:39:59:007 - info: [Appium] platformName: ios
2018-07-17 01:39:59:007 - info: [Appium] webkitDebugProxyPort: 50408
2018-07-17 01:39:59:007 - info: [Appium] app: /Users/xxx/gitlab/bbtree-maven-appium/build/WisdomTree.zip
2018-07-17 01:39:59:007 - info: [Appium] automationName: XCuiTest
2018-07-17 01:39:59:007 - info: [Appium] bundleId: com.yyy.wisdomtrees
2018-07-17 01:39:59:008 - info: [Appium] clearSystemFiles: true
2018-07-17 01:39:59:008 - info: [Appium] deviceName: iPhone
2018-07-17 01:39:59:008 - info: [Appium] preventWDAAttachments: true
2018-07-17 01:39:59:008 - info: [Appium] shouldUseSingletonTestManager: false
2018-07-17 01:39:59:009 - info: [Appium] simpleIsVisibleCheck: true
2018-07-17 01:39:59:009 - info: [Appium] startIWDP: true
2018-07-17 01:39:59:009 - info: [Appium] udid: 5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e
2018-07-17 01:39:59:009 - info: [Appium] updatedWDABundleId: com.bbtree.WebDriverAgentRunner
2018-07-17 01:39:59:009 - info: [Appium] useCarthageSsl: true
2018-07-17 01:39:59:010 - info: [Appium] wdaLocalPort: 50385
2018-07-17 01:39:59:010 - info: [Appium] wdaStartupRetries: 6
2018-07-17 01:39:59:010 - info: [Appium] xcodeOrgId: 5EQ4X3VWN8
2018-07-17 01:39:59:011 - info: [Appium] xcodeSigningId: iPhone Developer
2018-07-17 01:39:59:016 - info: [debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities [object Object] were provided
2018-07-17 01:39:59:016 - info: [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
2018-07-17 01:39:59:061 - info: [BaseDriver] Session created with session id: 87e61df6-f092-4a48-b144-351da0492bfb
2018-07-17 01:39:59:075 - info: [debug] [XCUITest] Current user: ‘xxx'
2018-07-17 01:39:59:254 - info: [debug] [XCUITest] Xcode version set to '9.4.1' (tools v10.0.0.0.1.1527767617)
2018-07-17 01:40:00:595 - info: [debug] [XCUITest] iOS SDK Version set to '11.4'
2018-07-17 01:40:00:595 - info: [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1531791600595 (09:40:00 GMT+0800 (CST))
2018-07-17 01:40:01:447 - info: [debug] [XCUITest] Available devices: 5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e
2018-07-17 01:40:01:448 - info: [debug] [XCUITest] Creating iDevice object with udid '5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e'
2018-07-17 01:40:01:451 - info: [XCUITest] Determining device to run tests on: udid: '5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e', real device: true
2018-07-17 01:40:01:453 - info: [BaseDriver] Using local app '/Users/xxx/gitlab/bbtree-maven-appium/build/WisdomTree.zip'
2018-07-17 01:40:01:454 - info: [debug] [BaseDriver] Copying local zip to tmp dir
2018-07-17 01:40:15:768 - info: [BaseDriver] Unzipping local app '/var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-15hygb5.q1v23mcxr/appium-app.zip'...
2018-07-17 01:40:15:875 - info: [debug] [BaseDriver] Unzipping /var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-15hygb5.q1v23mcxr/appium-app.zip
2018-07-17 01:40:15:876 - info: [debug] [BaseDriver] Testing zip archive: /var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-15hygb5.q1v23mcxr/appium-app.zip
2018-07-17 01:40:40:250 - info: [BaseDriver] Unzipped local app to '/var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-15hygb5.q1v23mcxr/Payload/WisdomTree.app'
2018-07-17 01:40:40:251 - info: [debug] [BaseDriver] Event 'appConfigured' logged at 1531791640251 (09:40:40 GMT+0800 (CST))
2018-07-17 01:40:40:252 - info: [debug] [XCUITest] Checking whether app '/var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-15hygb5.q1v23mcxr/Payload/WisdomTree.app' is actually present on file system
2018-07-17 01:40:40:253 - info: [debug] [XCUITest] App is present
2018-07-17 01:40:40:254 - info: [debug] [BaseDriver] Event 'resetStarted' logged at 1531791640254 (09:40:40 GMT+0800 (CST))
2018-07-17 01:40:40:255 - info: [debug] [XCUITest] Reset: running ios real device reset flow
2018-07-17 01:40:40:256 - info: [debug] [BaseDriver] Event 'resetComplete' logged at 1531791640255 (09:40:40 GMT+0800 (CST))
2018-07-17 01:40:40:258 - info: [debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
2018-07-17 01:40:40:261 - info: [debug] [iOSLog] Starting iOS device log capture with: 'idevicesyslog'
2018-07-17 01:40:40:511 - info: [debug] [XCUITest] Crash reports root '/Users/xxx/Library/Logs/CrashReporter/MobileDevice/T09iG' does not exist. Got nothing to gather.
2018-07-17 01:40:40:512 - info: [debug] [BaseDriver] Event 'logCaptureStarted' logged at 1531791640512 (09:40:40 GMT+0800 (CST))
2018-07-17 01:40:40:512 - info: [XCUITest] Setting up real device
2018-07-17 01:40:40:514 - info: [debug] [XCUITest] Verifying application platform
2018-07-17 01:40:40:518 - info: [debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
2018-07-17 01:40:40:799 - info: [debug] [XCUITest] Reset requested. Removing app with id 'com.yyy.wisdomtrees' from the device
2018-07-17 01:40:41:333 - info: [debug] [XCUITest] Installing '/var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-15hygb5.q1v23mcxr/Payload/WisdomTree.app' on device with UUID '5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e'...
2018-07-17 01:40:54:380 - info: [debug] [XCUITest] The app has been installed successfully.
2018-07-17 01:40:54:381 - info: [debug] [BaseDriver] Event 'appInstalled' logged at 1531791654381 (09:40:54 GMT+0800 (CST))
2018-07-17 01:40:54:383 - info: [XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
2018-07-17 01:40:54:383 - info: [XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
2018-07-17 01:40:54:477 - info: [debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 50385 have been found
2018-07-17 01:40:54:480 - info: [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:50385/status] with no body
2018-07-17 01:40:54:505 - info: [debug] [XCUITest] WDA is not listening at 'http://localhost:50385/'
2018-07-17 01:40:54:506 - info: [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1531791654506 (09:40:54 GMT+0800 (CST))
2018-07-17 01:40:54:507 - info: [XCUITest] Launching WebDriverAgent on the device
2018-07-17 01:40:54:512 - info: [debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'
2018-07-17 01:40:54:514 - info: [debug] [XCUITest] Killing running processes 'xcodebuild.*5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e, iproxy 50385' for the device 5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e...
2018-07-17 01:40:54:542 - info: [debug] [XCUITest] 'pgrep -nif xcodebuild.*5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e' didn't detect any matching processes. Return code: 1
2018-07-17 01:40:54:570 - info: [debug] [XCUITest] 'pgrep -nif iproxy 50385' didn't detect any matching processes. Return code: 1
2018-07-17 01:40:54:571 - info: [debug] [XCUITest] Starting iproxy to forward traffic from local port 50385 to device port 8100 over USB
2018-07-17 01:40:59:580 - info: [debug] [XCUITest] Using Xcode 9.4.1, so fixing WDA codebase
2018-07-17 01:40:59:590 - info: [debug] [XCUITest] Successfully reset '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.facebook.WebDriverAgentRunner'
2018-07-17 01:40:59:597 - info: [debug] [XCUITest] Successfully updated '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.bbtree.WebDriverAgentRunner'
2018-07-17 01:40:59:599 - info: [debug] [XCUITest] Generating xcode config file for orgId '5EQ4X3VWN8' and signingId 'iPhone Developer'
2018-07-17 01:40:59:600 - info: [debug] [XCUITest] Writing xcode config file to /var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-1uw54el.kilt8olxr/appium-temp.xcconfig
2018-07-17 01:40:59:602 - warn: [XCUITest] Cannot parse major and minor version numbers from platformVersion "null". Will build for the default platform instead
2018-07-17 01:40:59:602 - info: [debug] [XCUITest] Using Xcode configuration file: '/var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-1uw54el.kilt8olxr/appium-temp.xcconfig'
2018-07-17 01:40:59:603 - info: [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/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e -xcconfig /var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/2018617-1176-1uw54el.kilt8olxr/appium-temp.xcconfig' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
2018-07-17 01:40:59:603 - info: [debug] [XCUITest] Output from xcodebuild will not be logged. To change this, use 'showXcodeLog' desired capability
2018-07-17 01:41:00:231 - info: [debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
2018-07-17 01:41:00:233 - info: [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:50385/status] with no body
2018-07-17 01:41:00:326 - info: [debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"state\" : \"success\",\n \"os\" : {\n \"name\" : \"iOS\",\n \"version\" : \"11.2.6\"\n },\n \"ios\" : {\n \"simulatorVersion\" : \"11.2.6\",\n \"ip\" : \"10.0.8.96\"\n },\n \"build\" : {\n \"time\" : \"Jul 16 2018 19:31:02\"\n }\n },\n \"sessionId\" : \"0181EE4C-F427-44D7-B0FF-859D1384EF05\",\n \"status\" : 0\n}"
2018-07-17 01:41:00:327 - info: [debug] [XCUITest] WebDriverAgent running on ip '10.0.8.96'
2018-07-17 01:41:00:327 - info: [debug] [XCUITest] WebDriverAgent successfully started after 722ms
2018-07-17 01:41:00:330 - info: [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1531791660329 (09:41:00 GMT+0800 (CST))
2018-07-17 01:41:00:331 - info: [debug] [XCUITest] Sending createSession command to WDA
2018-07-17 01:41:00:336 - info: [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:50385/session] with body: {"desiredCapabilities":{"bundleId":"com.yyy.wisdomtrees","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}}
2018-07-17 01:41:02:731 - info: [debug] [XCUITest] Log file for xcodebuild test: /var/folders/f3/z8ry9sr12vd9l72ktbhxcxzm0000gn/T/com.apple.dt.XCTest/IDETestRunSession-49337CF5-DB56-4DFD-8C6B-D55BF46E38DB/WebDriverAgentRunner-C5443B87-1833-4779-9158-73A92132A02F/Session-WebDriverAgentRunner-2018-07-17_094102-VEqlGU.log
2018-07-17 01:41:03:658 - info: [debug] [XCUITest] Failed to create WDA session. Retrying...
2018-07-17 01:41:04:665 - info: [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1531791664664 (09:41:04 GMT+0800 (CST))
2018-07-17 01:41:04:665 - info: [debug] [XCUITest] Sending createSession command to WDA
2018-07-17 01:41:04:666 - info: [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:50385/session] with body: {"desiredCapabilities":{"bundleId":"com.yyy.wisdomtrees","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}}
2018-07-17 01:41:04:673 - info: [debug] [XCUITest] Failed to create WDA session. Retrying...
2018-07-17 01:41:05:676 - info: [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1531791665675 (09:41:05 GMT+0800 (CST))
2018-07-17 01:41:05:677 - info: [debug] [XCUITest] Sending createSession command to WDA
2018-07-17 01:41:05:677 - info: [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:50385/session] with body: {"desiredCapabilities":{"bundleId":"com.yyy.wisdomtrees","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}}
2018-07-17 01:41:05:686 - info: [debug] [XCUITest] Failed to create WDA session. Retrying...
2018-07-17 01:41:06:687 - info: [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1531791666687 (09:41:06 GMT+0800 (CST))
2018-07-17 01:41:06:688 - info: [debug] [XCUITest] Sending createSession command to WDA
2018-07-17 01:41:06:688 - info: [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:50385/session] with body: {"desiredCapabilities":{"bundleId":"com.yyy.wisdomtrees","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}}
2018-07-17 01:41:06:693 - info: [debug] [XCUITest] Failed to create WDA session. Retrying...
2018-07-17 01:41:07:694 - info: [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1531791667694 (09:41:07 GMT+0800 (CST))
2018-07-17 01:41:07:694 - info: [debug] [XCUITest] Sending createSession command to WDA
2018-07-17 01:41:07:695 - info: [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:50385/session] with body: {"desiredCapabilities":{"bundleId":"com.yyy.wisdomtrees","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}}
2018-07-17 01:41:07:701 - info: [debug] [XCUITest] Failed to create WDA session. Retrying...
2018-07-17 01:41:08:701 - info: [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1531791668701 (09:41:08 GMT+0800 (CST))
2018-07-17 01:41:08:702 - info: [debug] [XCUITest] Sending createSession command to WDA
2018-07-17 01:41:08:702 - info: [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:50385/session] with body: {"desiredCapabilities":{"bundleId":"com.yyy.wisdomtrees","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":60,"shouldUseSingletonTestManager":false}}
2018-07-17 01:41:13:767 - info: [debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"763C2E9E-9078-4931-BDF3-A05C2E3AF2E5","capabilities":{"device":"iphone","browserName":" ","sdkVersion":"11.2.6","CFBundleIdentifier":"com.apple.springboard"}},"sessionId":"763C2E9E-9078-4931-BDF3-A05C2E3AF2E5","status":0}
2018-07-17 01:41:13:768 - info: [debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1531791673768 (09:41:13 GMT+0800 (CST))
2018-07-17 01:41:13:927 - info: [debug] [XCUITest] Cannot find a match for DerivedData folder path from lsof. Trying to access logs
2018-07-17 01:41:13:935 - info: [XCUITest] Setting '555' permissions to '/Users/xxx/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/Attachments' folder
2018-07-17 01:41:13:936 - info: [debug] [BaseDriver] Event 'wdaPermsAdjusted' logged at 1531791673936 (09:41:13 GMT+0800 (CST))
2018-07-17 01:41:13:938 - info: [debug] [BaseDriver] Event 'wdaStarted' logged at 1531791673937 (09:41:13 GMT+0800 (CST))
2018-07-17 01:41:13:939 - info: [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
2018-07-17 01:41:13:939 - info: [debug] [BaseDriver] Event 'orientationSet' logged at 1531791673939 (09:41:13 GMT+0800 (CST))
2018-07-17 01:41:13:940 - info: [debug] [BaseDriver] Event 'iwdpStarting' logged at 1531791673939 (09:41:13 GMT+0800 (CST))
2018-07-17 01:41:13:943 - info: [debug] [iOS] Starting ios_webkit_debug_proxy at port 50408 on device 5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e
2018-07-17 01:41:13:993 - info: [debug] [BaseDriver] Event 'iwdpStarted' logged at 1531791673990 (09:41:13 GMT+0800 (CST))
2018-07-17 01:41:13:996 - info: [debug] [XCUITest] Started ios_webkit_debug proxy server at: http://localhost:50408
2018-07-17 01:41:14:000 - info: [Appium] New XCUITestDriver session created successfully, session 87e61df6-f092-4a48-b144-351da0492bfb added to master session list
2018-07-17 01:41:14:001 - info: [debug] [BaseDriver] Event 'newSessionStarted' logged at 1531791674001 (09:41:14 GMT+0800 (CST))
2018-07-17 01:41:14:005 - info: [debug] [W3C] Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"ios","webkitDebugProxyPort":50408,"app":"/Users/xxx/gitlab/bbtree-maven-appium/build/WisdomTree.zip","automationName":"XCuiTest","bundleId":"com.yyy.wisdomtrees","clearSystemFiles":true,"deviceName":"iPhone","preventWDAAttachments":true,"shouldUseSingletonTestManager":false,"simpleIsVisibleCheck":true,"startIWDP":true,"udid":"5ce3a0adc5952986d1c0e90f1c3b9540bc374d8e","updatedWDABundleId":"com.bbtree.WebDriverAgentRunner","useCarthageSsl":true,"wdaLocalPort":50385,"wdaStartupRetries":6,"xcodeOrgId":"5EQ4X3VWN8","xcodeSigningId":"iPhone Developer"}}
2018-07-17 01:41:14:008 - info: [HTTP] <-- POST /wd/hub/session 200 75013 ms - 853
2018-07-17 01:41:14:008 - info: [HTTP]
2018-07-17 01:41:14:068 - info: [HTTP] --> GET /wd/hub/session/87e61df6-f092-4a48-b144-351da0492bfb
2018-07-17 01:41:14:068 - info: [HTTP] {}
2018-07-17 01:41:14:071 - info: [debug] [W3C] Calling AppiumDriver.getSession() with args: ["87e61df6-f092-4a48-b144-351da0492bfb"]
2018-07-17 01:41:14:073 - info: [debug] [XCUITest] Executing command 'getSession'
2018-07-17 01:41:14:088 - info: [debug] [JSONWP Proxy] Proxying [GET /] to [GET http://localhost:50385/session/763C2E9E-9078-4931-BDF3-A05C2E3AF2E5] with no body
2018-07-17 01:41:14:153 - info: [debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n \"sessionId\" : \"763C2E9E-9078-4931-BDF3-A05C2E3AF2E5\",\n \"capabilities\" : {\n \"device\" : \"iphone\",\n \"browserName\" : \" \",\n \"sdkVersion\" : \"11.2.6\",\n \"CFBundleIdentifier\" : \"com.apple.springboard\"\n }\n },\n \"sessionId\" : \"763C2E9E-9078-4931-BDF3-A05C2E3AF2E5\",\n \"status\" : 0\n}"
2018-07-17 01:41:14:154 - info: [XCUITest] Merging WDA caps over Appium caps for session detail response
2018-07-17 01:41:14:154 - info: [debug] [JSONWP Proxy] Proxying [GET /wda/screen] to [GET http://localhost:50385/session/763C2E9E-9078-4931-BDF3-A05C2E3AF2E5/wda/screen] with no body
2018-07-17 01:41:14:158 - info: [debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : \"Unhandled endpoint: \/session\/763C2E9E-9078-4931-BDF3-A05C2E3AF2E5\/wda\/screen -- http:\/\/localhost:50385\/ with parameters {\n wildcards = (\n \\"session\/763C2E9E-9078-4931-BDF3-A05C2E3AF2E5\/wda\/screen\\"\n );\n}\",\n \"sessionId\" : \"763C2E9E-9078-4931-BDF3-A05C2E3AF2E5\",\n \"status\" : 1\n}"
2018-07-17 01:41:14:160 - info: [debug] [MJSONWP] Matched JSONWP error code 1 to UnknownError
2018-07-17 01:41:14:181 - info: [HTTP] <-- GET /wd/hub/session/87e61df6-f092-4a48-b144-351da0492bfb 500 112 ms - 1646
2018-07-17 01:41:14:181 - info: [HTTP]
2018-07-17 01:41:15:470 - info: [Appium] Received SIGTERM - shutting down
2018-07-17 01:41:15:475 - error: uncaughtException: write EPIPE date=Tue Jul 17 2018 09:41:15 GMT+0800 (CST), pid=1176, uid=501, gid=20, cwd=/Users/xxx/gitlab/bbtree-maven-appium, execPath=/usr/local/Cellar/node/7.0.0/bin/node, version=v7.0.0, argv=[/usr/local/Cellar/node/7.0.0/bin/node, /usr/local/lib/node_modules/appium/build/lib/main.js, --port, 11959, --address, 127.0.0.1, --log, /Users/xxx/gitlab/bbtree-maven-appium/target/appiumlogs/appium_logs.txt], rss=201756672, heapTotal=99205120, heapUsed=84674416, loadavg=[3.291015625, 2.791015625, 2.30712890625], uptime=1936, trace=[column=11, file=util.js, function=exports._errnoException, line=1026, method=_errnoException, native=false, column=14, file=net.js, function=WriteWrap.afterWrite, line=804, method=afterWrite, native=false], stack=[Error: write EPIPE, at exports._errnoException (util.js:1026:11), at WriteWrap.afterWrite (net.js:804:14)]

共收到 11 条回复 时间 点赞

是不是启动app后就不往下走了?

张晓峰 回复

嗯嗯 用iPhone Developer的签名包

yuxichou 回复

我遇到同样的问题 不知道怎么解决 😭

yuxichou #4 · July 17, 2018 作者
张晓峰 回复

你是连真机吗? 公司的APP不支持模拟器运行,我就没试。我在github上提了个bug,英文写不好,真累😂

yuxichou #5 · July 17, 2018 作者

github回复:The WebDriverAgent binary on the device is out of date. Clear Xcode caches and reset the device
于是我清除了下xcode缓存,重新编译了WebDriverAgent,并把手机还原了,还是不行,😪 😹 😹

微信自动化测试的时候也遇到这样的问题,用的模拟器,解决办法,把微信聊天记录全清空了,然后就能正常用了。不过下次还得清空,估计是动态加载数据的问题

yuxichou #7 · July 18, 2018 作者
小贝 回复

把APP卸载了,并设置 noReset:false 都不行。很无奈做不下去了,准备再重部署下appium环境。

yuxichou 回复

我就是用的真机。。。

yuxichou 回复

???是wedriverAgent的问题还是工具或系统版本的问题

yuxichou #10 · July 18, 2018 作者
张晓峰 回复

wedriverAgent的问题

yuxichou #11 · July 19, 2018 作者

问题已解决,我用最新的wedriverAgent替换appium自带的,版本兼容存在问题,卸载并重装appium并用自己的证书编译后就正常了。

yuxichou 关闭了讨论 19 Jul 10:15
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up