appium 執行 ios 自動化測試時,應用介面載入不出來,日誌及截圖如下,求大佬指點,多謝~~~~
版本:
APPIUM 1.15.1
Mac os 10.13.6
Xcode 10.1
[Appium] Welcome to Appium v1.15.1
[Appium] Non-default server args:
[Appium] allowInsecure: {
[Appium] }
[Appium] denyInsecure: {
[Appium] }
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[GENERIC] Calling AppiumDriver.getSessions() with args: []
[GENERIC] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 8 ms - 40
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"automationName":"XCUITest","bundleId":"com.yeepay.FlyBird","deviceName":"iPhone 8","newCommandTimeout":"3600","noReset":false,"platformName":"iOS","platformVersion":"13.6.1","udid":"7ce2b559b35dbe803836231ccf6dd5ceb6d10942","connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"automationName":"XCUITest","bundleId":"com.yeepay.FlyBird","deviceName":"iPhone 8","newCommandTimeout":"3600","noReset":false,"platformName":"iOS","platformVersion":"13.6.1","udid":"7ce2b559b35dbe803836231ccf6dd5ceb6d10942","connectHardwareKeyboard":true},null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1599623380220 (11:49:40 GMT+0800 (CST))
[Appium] Appium v1.15.1 creating new XCUITestDriver (v2.133.1) session
[BaseDriver] Creating session with MJSONWP desired capabilities: {
[BaseDriver] "automationName": "XCUITest",
[BaseDriver] "bundleId": "com.yeepay.FlyBird",
[BaseDriver] "deviceName": "iPhone 8",
[BaseDriver] "newCommandTimeout": "3600",
[BaseDriver] "noReset": false,
[BaseDriver] "platformName": "iOS",
[BaseDriver] "platformVersion": "13.6.1",
[BaseDriver] "udid": "7ce2b559b35dbe803836231ccf6dd5ceb6d10942",
[BaseDriver] "connectHardwareKeyboard": true
[BaseDriver] }
[BaseDriver] Capability 'newCommandTimeout' changed from string ('3600') to integer (3600). This may cause unexpected behavior
[BaseDriver] Session created with session id: d25eed75-268c-4464-b9c5-b0e969efb75a
[XCUITest] Current user: 'yp-tc-2858'
[XCUITest] Available devices: 7ce2b559b35dbe803836231ccf6dd5ceb6d10942
[XCUITest] Creating iDevice object with udid '7ce2b559b35dbe803836231ccf6dd5ceb6d10942'
[XCUITest] Determining device to run tests on: udid: '7ce2b559b35dbe803836231ccf6dd5ceb6d10942', real device: true
[XCUITest] Normalized platformVersion capability value '13.6.1' to '13.6'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1599623386419 (11:49:46 GMT+0800 (CST))
[BaseDriver] Event 'appConfigured' logged at 1599623386420 (11:49:46 GMT+0800 (CST))
[BaseDriver] Event 'resetStarted' logged at 1599623386420 (11:49:46 GMT+0800 (CST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event 'resetComplete' logged at 1599623386421 (11:49:46 GMT+0800 (CST))
[BaseDriver] Event 'logCaptureStarted' logged at 1599623386825 (11:49:46 GMT+0800 (CST))
[XCUITest] Setting up real device
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[DevCon Factory] Requesting connection for device 7ce2b559b35dbe803836231ccf6dd5ceb6d10942 on local port 8100, device port 8100
[DevCon Factory] Cached connections count: 0
[DevCon Factory] Port #8100 is busy
[DevCon Factory] Successfully requested the connection for 7ce2b559b35dbe803836231ccf6dd5ceb6d10942:8100
[XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got response with status 200: {
[WD Proxy] "value" : {
[WD Proxy] "message" : "WebDriverAgent is ready to accept commands",
[WD Proxy] "state" : "success",
[WD Proxy] "os" : {
[WD Proxy] "testmanagerdVersion" : 28,
[WD Proxy] "name" : "iOS",
[WD Proxy] "sdkVersion" : "12.0",
[WD Proxy] "version" : "13.6.1"
[WD Proxy] },
[WD Proxy] "ios" : {
[WD Proxy] "ip" : "172.18.160.199"
[WD Proxy] },
[WD Proxy] "ready" : true,
[WD Proxy] "build" : {
[WD Proxy] "time" : "Sep 8 2020 14:09:29",
[WD Proxy] "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"
[WD Proxy] }
[WD Proxy] },
[WD Proxy] "sessionId" : null
[WD Proxy] }
[XCUITest] Upgrade timestamp of the currently bundled WDA: 1599558558487
[XCUITest] Upgrade timestamp of the WDA on the device: undefined
[XCUITest] Will reuse previously cached WDA instance at 'http://localhost:8100/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval
[XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[BaseDriver] Event 'wdaStartAttempted' logged at 1599623387250 (11:49:47 GMT+0800 (CST))
[XCUITest] Using provided WebdriverAgent at 'http://localhost:8100/'
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got response with status 200: {
[WD Proxy] "value" : {
[WD Proxy] "message" : "WebDriverAgent is ready to accept commands",
[WD Proxy] "state" : "success",
[WD Proxy] "os" : {
[WD Proxy] "testmanagerdVersion" : 28,
[WD Proxy] "name" : "iOS",
[WD Proxy] "sdkVersion" : "12.0",
[WD Proxy] "version" : "13.6.1"
[WD Proxy] },
[WD Proxy] "ios" : {
[WD Proxy] "ip" : "172.18.160.199"
[WD Proxy] },
[WD Proxy] "ready" : true,
[WD Proxy] "build" : {
[WD Proxy] "time" : "Sep 8 2020 14:09:29",
[WD Proxy] "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"
[WD Proxy] }
[WD Proxy] },
[WD Proxy] "sessionId" : null
[WD Proxy] }
[BaseDriver] Event 'wdaSessionAttempted' logged at 1599623387292 (11:49:47 GMT+0800 (CST))
[XCUITest] Sending createSession command to WDA
[WD Proxy] Matched '/session' to command name 'createSession'
[WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.yeepay.FlyBird","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[WD Proxy] Got response with status 200: {"value":{"sessionId":"E5FB194B-3F02-44AD-A456-3BFD031C78A3","capabilities":{"device":"iphone","browserName":null,"sdkVersion":"13.6.1","CFBundleIdentifier":null}},"sessionId":"E5FB194B-3F02-44AD-A456-3BFD031C78A3"}
[WD Proxy] Determined the downstream protocol as 'W3C'
[BaseDriver] Event 'wdaSessionStarted' logged at 1599623388809 (11:49:48 GMT+0800 (CST))
[BaseDriver] Event 'wdaStarted' logged at 1599623388810 (11:49:48 GMT+0800 (CST))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[BaseDriver] Event 'orientationSet' logged at 1599623388811 (11:49:48 GMT+0800 (CST))
[Appium] New XCUITestDriver session created successfully, session d25eed75-268c-4464-b9c5-b0e969efb75a added to master session list
[BaseDriver] Event 'newSessionStarted' logged at 1599623388815 (11:49:48 GMT+0800 (CST))
[MJSONWP (d25eed75)] Cached the protocol value 'MJSONWP' for the new session d25eed75-268c-4464-b9c5-b0e969efb75a
[MJSONWP (d25eed75)] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"automationName":"XCUITest","bundleId":"com.yeepay.FlyBird","deviceName":"iPhone 8","newCommandTimeout":3600,"noReset":false,"platformName":"iOS","platformVersion":"13.6.1","udid":"7ce2b559b35dbe803836231ccf6dd5ceb6d10942","connectHardwareKeyboard":true}
[HTTP] <-- POST /wd/hub/session 200 8601 ms - 523
[HTTP]
[HTTP] --> POST /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/context
[HTTP] {"name":"NATIVE_APP"}
[MJSONWP (d25eed75)] Calling AppiumDriver.setContext() with args: ["NATIVE_APP","d25eed75-268c-4464-b9c5-b0e969efb75a"]
[XCUITest] Executing command 'setContext'
[XCUITest] Attempting to set context to 'NATIVE_APP'
[MJSONWP (d25eed75)] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/context 200 107 ms - 76
[HTTP]
[HTTP] --> GET /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/screenshot
[HTTP] {}
[MJSONWP (d25eed75)] Calling AppiumDriver.getScreenshot() with args: ["d25eed75-268c-4464-b9c5-b0e969efb75a"]
[XCUITest] Executing command 'getScreenshot'
[HTTP] --> GET /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/source
[HTTP] {}
[MJSONWP (d25eed75)] Calling AppiumDriver.getPageSource() with args: ["d25eed75-268c-4464-b9c5-b0e969efb75a"]
[XCUITest] Executing command 'getPageSource'
[HTTP] --> GET /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/window/current/size
[HTTP] {}
[MJSONWP (d25eed75)] Calling AppiumDriver.getWindowSize() with args: ["current","d25eed75-268c-4464-b9c5-b0e969efb75a"]
[XCUITest] Executing command 'getWindowSize'
[XCUITest] Taking screenshot with WDA
[WD Proxy] Matched '/screenshot' to command name 'getScreenshot'
[WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/E5FB194B-3F02-44AD-A456-3BFD031C78A3/screenshot] with no body
[WD Proxy] Got response with status 200: {
[WD Proxy] "value" : "iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAIAAABFtaRRAAAAAXNSR0IArs4c6QAA\r\nAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKAC\r\nAAQAAAABAAAC7qADAAQAAAABAAAFNgAAAACw0axrAAAAHGlET1QAAAACAAAAAAAA\r\nApsAAAAoAAACmwAAApsAAWZc0R2aBAAAQABJREFUeAHs3Ye\/b0V1N\/7nH\/jFiihi\r\nSXzSVKpgDZpiARsi9QIiItgVNYIlJiZqTOz6GHvXGE00iRVERUEpCgKXeylKl97v\r\nvaf37+89+3PO3H3K93AOXMqVfV7zmjN7Zs2aNWutWWvt2bP39\/+MDE90qeNAx4GO\r\nAx0HOg50HLiXc2B8aLJJY+NDY6PDJTUMmRwenh4e7pU01BsZ6o0O9kaHpscHp0dG\r\nxqTR4QkpfVMzODoibRyXxjaMT2wYm751XOo1OEEW4JHhkoYbDOPDQ1NDQ71N0sjU\r\n4AhsG8cmdVm5OP7PykE7yI4DHQc6DnQc6DjQceD3lQOjQ5MlldCkiWOaOKOZrLBD\r\nYDGbwDThSIljSgKfjk2AMjwyIUAZHK1pYnBkcnBkenBkNpQJcBPHTA6OFuCRkZHx\r\n4ZHpgZImhgrCjaMl+lk5n7tQptuU6jjQcaDjQMeBjgMdB3BA9CBqmZiNUYQYc3+j\r\nwzZLRkZHhkZHBsZHNo2PbJBEIU3g0gQ6zYbN7OZNgycRz8Tg5NRASdObpkuQ1AQ9\r\nBhLcDIxOC1lswAyUgKYMCmB4xOV0s5HT60KZTik7DnQc6DjQcaDjQMeBVXEgD31K\r\nYGFbZXh0RMpfK5QZGhkdGBndJDWVY6KTEgM1oUzyUQ+hPIEampwYnJgamJieSzWO\r\n8cSqhDIjvRLNlFAm2zNl3DJ02cUplV0osyrhdcAdBzoOdBzoON...
[WD Proxy] Matched '/source' to command name 'getPageSource'
[WD Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/E5FB194B-3F02-44AD-A456-3BFD031C78A3/source] with no body
[MJSONWP (d25eed75)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAIAAABFtaRRAAAAAXNSR0IArs4c6QAA\r\nAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKAC\r\nAAQAAAABAAAC7qADAAQAAAABAAAFNgAAAACw0axrAAAAHGlET1QAAAACAAAAAAAA\r\nApsAAAAoAAACmwAAApsAAWZc0R2aBAAAQABJREFUeAHs3Ye/b0V1N/7nH/jFiihi\r\nSXzSVKpgDZpiARsi9QIiItgVNYIlJiZqTOz6GHvXGE00iRVERUEpCgKXeylKl97v\r\nvaf37+89+3PO3H3K93AOXMqVfV7zmjN7Zs2aNWutWWvt2bP39/+MDE90qeNAx4GO\r\nAx0HOg50HLiXc2B8aLJJY+NDY6PDJTUMmRwenh4e7pU01BsZ6o0O9kaHpscHp0dG\r\nxqTR4QkpfVMzODoibRyXxjaMT2wYm751XOo1OEEW4JHhkoYbDOPDQ1NDQ71N0sjU\r\n4AhsG8cmdVm5OP7PykE7yI4DHQc6DnQc6DjQceD3lQOjQ5MlldCkiWOaOKOZrLBD\r\nYDGbwDThSIljSgKfjk2AMjwyIUAZHK1pYnBkcnBkenBkNpQJcBPHTA6OFuCRkZHx\r\n4ZHpgZImhgrCjaMl+lk5n7tQptuU6jjQcaDjQMeBjgMdB3BA9CBqmZiNUYQYc3+j\r\nwzZLRkZHhkZHBsZHNo2PbJBEIU3g0gQ6zYbN7OZNgycRz8Tg5NRASdObpkuQ1AQ9\r\nBhLcDIxOC1lswAyUgKYMCmB4xOV0s5HT60KZTik7DnQc6DjQcaDjQMeBVXEgD31K\r\nYGFbZXh0RMpfK5QZGhkdGBndJDWVY6KTEgM1oUzyUQ+hPIEampwYnJgamJieSzWO\r\n8cSqhDIjvRLNlFAm2zNl3DJ02cUplV0osyrhdcAdBzoOdBzoONBxoONA4UATx0zY\r\n...
[HTTP] <-- GET /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/screenshot 200 105 ms - 249934
[HTTP]
[WD Proxy] Got response with status 500: {
[WD Proxy] "value" : {
[WD Proxy] "error" : "unknown error",
[WD Proxy] "message" : "Cannot get 'xml' source of the current application",
[WD Proxy] "traceback" : ""
[WD Proxy] },
[WD Proxy] "sessionId" : "E5FB194B-3F02-44AD-A456-3BFD031C78A3"
[WD Proxy] }
[W3C] Matched W3C error code 'unknown error' to UnknownError
[WD Proxy] Proxying [GET /window/size] to [GET http://localhost:8100/session/E5FB194B-3F02-44AD-A456-3BFD031C78A3/window/size] with no body
[MJSONWP (d25eed75)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot get 'xml' source of the current application
[MJSONWP (d25eed75)] at errorFromW3CJsonCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-xcuitest-driver/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[MJSONWP (d25eed75)] at ProxyRequestError.errorFromW3CJsonCode as getActualError
[MJSONWP (d25eed75)] at JWProxy.getActualError as command
[HTTP] <-- GET /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/source 500 267 ms - 221
[HTTP]
[WD Proxy] Got response with status 200: {
[WD Proxy] "value" : {
[WD Proxy] "width" : 0,
[WD Proxy] "height" : 0
[WD Proxy] },
[WD Proxy] "sessionId" : "E5FB194B-3F02-44AD-A456-3BFD031C78A3"
[WD Proxy] }
[MJSONWP (d25eed75)] Responding to client with driver.getWindowSize() result: {"width":0,"height":0}
[HTTP] <-- GET /wd/hub/session/d25eed75-268c-4464-b9c5-b0e969efb75a/window/current/size 200 331 ms - 94
[HTTP]
{
"platformName": "iOS",
"platformVersion": "13.6.1",
"deviceName": "iPhone 8",
"udid": "7ce2b559b35dbe803836231ccf6dd5ceb6d10942",
"noReset": false,
"bundleId": "com.yeepay.FlyBird",
"automationName": "XCUITest",
"newCommandTimeout": "3600"
}
相關文章
- 求大神指點思路-python 自動化介面測試Python
- Ios+appium自動化多裝置執行實現iOSAPP
- 關於 Appium 中 ios 自動化測試的幾個問題,請教下大神,謝謝APPiOS
- app 自動化測試 - 多裝置併發 -appium+pytest+ 多執行緒APP執行緒
- 多執行緒 日誌 和截圖的問題執行緒
- iOS appium UI 自動化測試配置可控 xpathiOSAPPUI
- python自動化測試之異常及日誌Python
- 介面自動化:pytest 執行測試用例時可以使用主從模式嗎?多個電腦一同執行測試用例模式
- 做自動化測試時開啟多執行緒,怎麼解決日誌混亂的問題??執行緒
- 多個 iOS 裝置同時進行 UI 自動化測試iOSUI
- 自動化測試應該如何實現多執行緒?執行緒
- robotframework + appium進行自動化測試時遇到的問題FrameworkAPP
- 各位測試大佬可有實用的介面自動化測試平臺推薦?
- appium 進行 ios 自動化測試,報無法啟動 WebDriverAgent 會話錯誤,跪求大佬們幫忙看看~APPiOSWeb會話
- Appium自動化(15) - 針對 webview 進行自動化測試APPWebView
- 採用自動化測試的情形及自動化測試的優缺點
- Appium 在 IOS 真機測試時啟動應用後經常卡死APPiOS
- Flutter應用進行自動化測試Flutter
- Appium+Python實現iOS自動化測試~環境搭建APPPythoniOS
- postman的批次執行:用於多條介面測試用例批次執行,輸出介面測試測試結果Postman
- 介面自動化測試
- 真的要進行介面測試自動化?
- appium uiautomator 移動端自動化測試工具APPUI
- Jenkins整合appium自動化測試(Windows篇)JenkinsAPPWindows
- 【python介面自動化】- logging日誌模組Python
- python 桌面應用自動化測試Python
- win10應用商店載入不出圖片如何解決_win10商店圖片載入不出來恢復方法Win10
- Python 介面自動化測試Python
- 大佬對 WEB 自動化測試的看法Web
- Jmeter 介面自動化連載 (13) - 自動生成測試報告JMeter測試報告
- python 裝飾器在介面自動化測試中的應用Python
- python裝飾器在介面自動化測試中的應用Python
- 想問一下搞 flutter 自動化,python+appium+ 安卓無法獲取節點是什麼意思呢,求大佬指點迷津FlutterPythonAPP安卓
- python+appium+pytest做app自動化測試PythonAPP
- Appium自動化測試之常用的adb命令APP
- 搭建appium+python自動化測試環境APPPython
- iOS 檢視及匯出專案執行日誌iOS
- 【自動化測試入門】自動化測試思維