问答 微信小程序 UI 自动话 执行脚本 appium 报错 JSONWP error code 13 to UnknownError

杨伟明 测试交流1 214字数 127阅读模式

该脚本有时候能正常跑起来 有时候又不行 (有尝试过是不是 chromedriver 版本的问题 但是没有找到这个版本 89.0.4389.72 才用了 89.0.4389.23)
附录1.9
微信 7.0.22
设备华为 mate10
系统 android10
脚本:


appium 日志:
文章源自玩技e族-https://www.playezu.com/179158.html
玩技站长微信
添加好友自动发送入群邀请
weinxin
rainbow-shownow
玩技官方公众号
官方微信公众号
weinxin
PLAYEZU
 
  • 版权提示:本站仅供存储任何法律责任由作者承担▷诈骗举报◁▷新闻不符◁▷我要投稿◁
    风险通知:非原创文章均为网络投稿真实性无法判断,侵权联系2523030730
    免责声明:内容来自用户上传发布或新闻客户端自媒体,切勿!切勿!切勿!添加联系方式以免受骗。
  • 原创转载:https://www.playezu.com/179158.html
    转载说明: 点我前往阅读>>>
    • li
      li 9

      不胜感激 希望各位大佬可以帮帮忙麻烦发下完整的 appium log 内容?你截图里的报错是 session 长时间没有收到新命令后,appium 服务自动关闭 session 时的报错,对应的并不是你第一个截图里的脚本操作,所以这个错和你那个脚本对应的执行内容没有关系。

      延长 newCommandTimeout,不然 appium 会杀掉,你设置了 600,太短了,你等待了五秒,appiumserver 早关了今天重新跑了一遍没有复现出这个问题 但是出现了别的问题。但是 pycharm 没有报错 都正常执行。
      [info] [Appium] Welcome to Appium v1.9.0
      [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] –> POST /wd/hub/session
      [info] [HTTP] {“capabilities”:{“firstMatch”:[{“appium:automationName”:”UiAutomator2″,”platformName”:”Android”,”appium:platformVersion”:”10″,”appium:deviceName”:”10.10.105.39:5556″,”appium:appPackage”:”com.tencent.mm”,”appium:appActivity”:”.ui.LauncherUI”,”appium:noReset”:true,”appium:fullReset”:false,”appium:newCommandTimeout”:600,”appium:chromedriverExecutable”:”/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver”,”appium:recreateChromeDriverSessions”:true,”appium:chromeOptions”:{“androidProcess”:”com.tencent.mm:appbrand0″},”browserName”:””,”appium:skipDeviceInitialization”:true,”appium:skipUnlockt”:true,”appium:sessionOverride”:true}]},”desiredCapabilities”:{“automationName”:”UiAutomator2″,”platformName”:”Android”,”platformVersion”:”10″,”deviceName”:”10.10.105.39:5556″,”appPackage”:”com.tencent.mm”,”appActivity”:”.ui.LauncherUI”,”noReset”:true,”fullReset”:false,”newCommandTimeout”:600,”chromedriverExecutable”:”/Users/supermonkey/Downloads/ReservationUITest-master/MacDrive
      [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“automationName”:”UiAutomator2″,”platformName”:”Android”,”platformVersion”:”10″,”deviceName”:”10.10.105.39:5556″,”appPackage”:”com.tencent.mm”,”appActivity”:”.ui.LauncherUI”,”noReset”:true,”fullReset”:false,”newCommandTimeout”:600,”chromedriverExecutable”:”/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver”,”recreateChromeDriverSessions”:true,”chromeOptions”:{“androidProcess”:”com.tencent.mm:appbrand0″},”browserName”:””,”skipDeviceInitialization”:true,”skipUnlockt”:true,”sessionOverride”:true},null,{“firstMatch”:[{“appium:automationName”:”UiAutomator2″,”platformName”:”Android”,”appium:platformVersion”:”10″,”appium:deviceName”:”10.10.105.39:5556″,”appium:appPackage”:”com.tencent.mm”,”appium:appActivity”:”.ui.LauncherUI”,”appium:noReset”:true,”appium:fullReset”:false,”appium:newCommandTimeout”:600,”appium:chromedriverExecutable”:”/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver”,”appium:recreateChromeDriverSessions”:true,”appium:chromeOptions”:{“androi…
      [debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1634633542032 (16:52:22 GMT+0800 (CST))
      [info] [Appium] Creating new AndroidUiautomator2Driver (v1.16.0) session
      [info] [Appium] Capabilities:
      [info] [Appium] platformName: Android
      [info] [Appium] browserName:
      [info] [Appium] automationName: UiAutomator2
      [info] [Appium] platformVersion: 10
      [info] [Appium] deviceName: 10.10.105.39:5556
      [info] [Appium] appPackage: com.tencent.mm
      [info] [Appium] appActivity: .ui.LauncherUI
      [info] [Appium] noReset: true
      [info] [Appium] fullReset: false
      [info] [Appium] newCommandTimeout: 600
      [info] [Appium] chromedriverExecutable: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver
      [info] [Appium] recreateChromeDriverSessions: true
      [info] [Appium] chromeOptions: {
      [info] [Appium] androidProcess: com.tencent.mm:appbrand0
      [info] [Appium] }
      [info] [Appium] skipDeviceInitialization: true
      [info] [Appium] skipUnlock : true
      [info] [Appium] sessionOverride: true
      [debug] [BaseDriver] W3C capabilities {“alwaysMatch”:{“platformNa… and MJSONWP desired capabilities {“automationName”:”UiAutoma… were provided
      [debug] [BaseDriver] Creating session with W3C capabilities: {“alwaysMatch”:{“platformNa…
      [warn] [BaseDriver] The following capabilities were provided, but are not recognized by appium: chromeOptions, skipDeviceInitialization, skipUnlock , sessionOverride.
      [info] [BaseDriver] Session created with session id: bf507416-3631-48b2-9c0f-56d8d7a5ad9a
      [info] [AndroidDriver] Java version is: 1.8.0_161
      [info] [AndroidDriver] Retrieving device list
      [debug] [ADB] Trying to find a connected android device
      [debug] [ADB] Getting connected devices…
      [debug] [ADB] 1 device(s) connected
      [info] [AndroidDriver] Looking for a device with Android ’10’
      [debug] [ADB] Setting device id to 10.10.105.39:5556
      [info] [ADB] Getting device platform version
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.build.version.release’
      [debug] [ADB] Current device property ‘ro.build.version.release’: 10
      [info] [AndroidDriver] Using device: 10.10.105.39:5556
      [debug] [ADB] Setting device id to 10.10.105.39:5556
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.build.version.sdk\'[debug] [ADB] Current device property ‘ro.build.version.sdk’: 29
      [debug] [ADB] Device API level: 29
      [warn] [AndroidDriver] No app sent in, not parsing package/activity
      [info] [ADB] Getting device platform version
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.build.version.release’
      [debug] [ADB] Current device property ‘ro.build.version.release’: 10
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell wm size’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell wm density’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.product.model’
      [debug] [ADB] Current device property ‘ro.product.model’: ALP-AL00
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell getprop ro.product.manufacturer\'[debug] [ADB] Current device property ‘ro.product.manufacturer’: HUAWEI
      [debug] [ADB] Device API level: 29
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am force-stop io.appium.uiautomator2.server’
      [debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.15.1.apk
      [debug] [ADB] Starting ‘/Users/supermonkey/Library/Android/sdk/build-tools/31.0.0/apksigner’ with args ‘[“verify”,”–print-certs”,”/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.15.1.apk”]’
      [error] [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
      [error] [W3C] at JWProxy.command$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:371:13)
      [error] [W3C] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
      [error] [W3C] at GeneratorFunctionPrototype.invoke as _invoke
      [error] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
      [error] [W3C] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
      [error] [W3C] at
      [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed.
      [debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
      [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
      [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
      [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
      [debug] [ADB] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
      [debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/.
      [debug] [ADB]
      [debug] [ADB] ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.15.1.apk’ is already signed.
      [debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
      [debug] [ADB] Starting ‘/Users/supermonkey/Library/Android/sdk/build-tools/31.0.0/apksigner’ with args ‘[“verify”,”–print-certs”,”/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk”]\'[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
      [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
      [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
      [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
      [debug] [ADB]
      [debug] [ADB] ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’ is already signed.
      [debug] [ADB] Getting install status for io.appium.uiautomator2.server
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.uiautomator2.server\'[debug] [ADB] App is installed
      [debug] [ADB] Getting package info for ‘io.appium.uiautomator2.server’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell dumpsys package io.appium.uiautomator2.server’
      [debug] [ADB] The installed ‘io.appium.uiautomator2.server’ package does not require upgrade (‘1.15.1’ >= ‘1.15.1’)
      [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.uiautomator2.server.test\'[warn] [ADB] Cannot read version codes of ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’ and/or ‘io.appium.uiautomator2.server.test’
      [warn] [ADB] Cannot read version names of ‘/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk’ and/or ‘io.appium.uiautomator2.server.test’. Assuming correct app version is already installed
      [debug] [UiAutomator2] Waiting up to 20000ms for instrumentation ‘io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’ to be available
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list instrumentation’
      [debug] [UiAutomator2] Instrumentation ‘io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’ available
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 wait-for-device’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell echo ping\'[debug] [AndroidDriver] Pushing settings apk to device…
      [debug] [ADB] Getting install status for io.appium.settings
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.settings’
      [debug] [ADB] App is installed
      [debug] [ADB] Getting package info for ‘io.appium.settings’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell dumpsys package io.appium.settings’
      [debug] [ADB] The installed ‘io.appium.settings’ package does not require upgrade (29 > 5)
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps\'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
      [debug] [ADB] Device API level: 29
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell appops set io.appium.settings android:mock_location allow’
      [warn] [AndroidDriver] setDeviceLanguageCountry requires language or country.
      [warn] [AndroidDriver] Got language: ‘undefined’ and country: ‘undefined’
      [debug] [Logcat] Starting logcat capture
      [debug] [AndroidDriver] Pushing unlock helper app to device…
      [debug] [ADB] Getting install status for io.appium.unlock
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell pm list packages io.appium.unlock\'[debug] [ADB] App is installed
      [debug] [ADB] Getting package info for ‘io.appium.unlock’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell dumpsys package io.appium.unlock’
      [debug] [ADB] The installed ‘io.appium.unlock’ package does not require upgrade (‘2.0.0’ >= ‘2.0.0’)
      [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8202
      [debug] [ADB] Forwarding system: 8202 to device: 6790
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward tcp:8202 tcp:6790’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell rm -rf /data/local/tmp/strings.json\'[debug] [UiAutomator2] No app capability. Assuming it is already on the device
      [debug] [ADB] Checking app cert for undefined
      [debug] [ADB] ‘undefined’ doesn’t exist
      [debug] [ADB] Getting all processes with uiautomator
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps’
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am force-stop io.appium.uiautomator2.server\'[debug] [JSONWP Proxy] Matched ‘/status’ to command name ‘getStatus’
      [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body[debug] [JSONWP Proxy] Matched ‘/status’ to command name ‘getStatus’
      [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body[debug] [JSONWP Proxy] Matched ‘/status’ to command name ‘getStatus’
      [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body
      [debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”SESSIONID”,”status”:0,”value”:”Status Invoked”}”
      [debug] [JSONWP Proxy] Matched ‘/session’ to command name ‘createSession’
      [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8202/wd/hub/session] with body: {“desiredCapabilities”:{“platform”:”LINUX”,”webStorageEnabled”:false,”takesScreenshot”:true,”javascriptEnabled”:true,”databaseEnabled”:false,”networkConnectionEnabled”:true,”locationContextEnabled”:false,”warnings”:{},”desired”:{“platformName”:”Android”,”browserName”:””,”automationName”:”UiAutomator2″,”platformVersion”:”10″,”deviceName”:”10.10.105.39:5556″,”appPackage”:”com.tencent.mm”,”appActivity”:”.ui.LauncherUI”,”noReset”:true,”fullReset”:false,”newCommandTimeout”:600,”chromedriverExecutable”:”/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver”,”recreateChromeDriverSessions”:true,”chromeOptions”:{“androidProcess”:”com.tencent.mm:appbrand0″},”skipDeviceInitialization”:true,”skipUnlockt”:true,”sessionOverride”:true},”platformName”:”Android”,”browserName”:””,”automationName”:”UiAutomator2″,”platformVersion”:”10″,”deviceName”:”10.10.105.39:5556″,”appPackage”:”com.tencent.mm”,”appActivity”:”.ui.LauncherUI”,”noReset”:true,”fullReset”:false,”newCommandTimeout”:600,”chromedriverExecu…
      [debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:”Created Session”}
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell dumpsys window\'[info] [AndroidDriver] Screen already unlocked, doing nothing
      [info] [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, ‘com.tencent.mm/.ui.LauncherUI’. Starting it ourselves
      [debug] [ADB] Device API level: 29
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am start -W -n com.tencent.mm/.ui.LauncherUI -S\'[debug] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/appium/device/pixel_ratio] with body: {}[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:3}”
      [debug] [JSONWP Proxy] Matched ‘/appium/device/system_bars’ to command name ‘getSystemBars’
      [debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/appium/device/system_bars] with body: {}
      [debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:{“statusBar”:72}}”
      [debug] [JSONWP Proxy] Matched ‘/window/current/size’ to command name ‘getWindowSize’
      [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/window/current/size] with body: {}
      [debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:{“height”:1920,”width”:1080}}”
      [info] [Appium] New AndroidUiautomator2Driver session created successfully, session bf507416-3631-48b2-9c0f-56d8d7a5ad9a added to master session list
      [debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1634633549977 (16:52:29 GMT+0800 (CST))
      [debug] [W3C] Responding to client with driver.createSession() result: {“capabilities”:{“platform”:”LINUX”,”webStorageEnabled”:false,”takesScreenshot”:true,”javascriptEnabled”:true,”databaseEnabled”:false,”networkConnectionEnabled”:true,”locationContextEnabled”:false,”warnings”:{},”desired”:{“platformName”:”Android”,”browserName”:””,”automationName”:”UiAutomator2″,”platformVersion”:”10″,”deviceName”:”10.10.105.39:5556″,”appPackage”:”com.tencent.mm”,”appActivity”:”.ui.LauncherUI”,”noReset”:true,”fullReset”:false,”newCommandTimeout”:600,”chromedriverExecutable”:”/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver”,”recreateChromeDriverSessions”:true,”chromeOptions”:{“androidProcess”:”com.tencent.mm:appbrand0″},”skipDeviceInitialization”:true,”skipUnlockt”:true,”sessionOverride”:true},”platformName”:”Android”,”browserName”:””,”automationName”:”UiAutomator2″,”platformVersion”:”10″,”deviceName”:”10.10.105.39:5556″,”appPackage”:”com.tencent.mm”,”appActivity”:”.ui.LauncherUI”,”noReset”:true,”fullReset”:false,”newCommandTimeout”:600,”chromedriverExecutable”:…
      [info] [HTTP] <– POST /wd/hub/session 200 7947 ms – 1596
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/timeouts
      [info] [HTTP] {“implicit”:25000}
      [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,25000,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [BaseDriver] W3C timeout argument: {“implicit”:25000}}
      [debug] [BaseDriver] Set implicit wait to 25000ms
      [debug] [W3C] Responding to client with driver.timeouts() result: null
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/timeouts 200 2 ms – 14
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
      [info] [HTTP] {“using”:”-android uiautomator”,”value”:”new UiSelector().text(“发现”)”}
      [debug] [W3C] Calling AppiumDriver.findElement() with args: [“-android uiautomator”,”new UiSelector().text(“发现”)”,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
      [debug] [BaseDriver] Waiting up to 25000 ms for condition
      [debug] [JSONWP Proxy] Matched ‘/element’ to command name ‘findElement’
      [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {“strategy”:”-android uiautomator”,”selector”:”new UiSelector().text(“发现”)”,”context”:””,”multiple”:false}[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
      [debug] [BaseDriver] Waited for 625 ms so far[debug] [JSONWP Proxy] Matched ‘/element’ to command name ‘findElement’
      [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {“strategy”:”-android uiautomator”,”selector”:”new UiSelector().text(“发现”)”,”context”:””,”multiple”:false}[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
      [debug] [BaseDriver] Waited for 1192 ms so far[debug] [JSONWP Proxy] Matched ‘/element’ to command name ‘findElement’
      [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {“strategy”:”-android uiautomator”,”selector”:”new UiSelector().text(“发现”)”,”context”:””,”multiple”:false}[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:{“ELEMENT”:”6ca183fd-48bf-4750-8102-11c333c6fc7e”}}
      [debug] [W3C] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:”6ca183fd-48bf-4750-8102-11c333c6fc7e”}
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 4060 ms – 88
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click
      [info] [HTTP] {“id”:”6ca183fd-48bf-4750-8102-11c333c6fc7e”}
      [debug] [W3C] Calling AppiumDriver.click() with args: [“6ca183fd-48bf-4750-8102-11c333c6fc7e”,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [JSONWP Proxy] Matched ‘/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click’ to command name ‘click’
      [debug] [JSONWP Proxy] Proxying [POST /element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click] with body: {“element”:”6ca183fd-48bf-4750-8102-11c333c6fc7e”}[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:true}
      [debug] [W3C] Responding to client with driver.click() result: true
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/6ca183fd-48bf-4750-8102-11c333c6fc7e/click 200 2468 ms – 14
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
      [info] [HTTP] {“using”:”-android uiautomator”,”value”:”new UiSelector().text(“小程序”)”}
      [debug] [W3C] Calling AppiumDriver.findElement() with args: [“-android uiautomator”,”new UiSelector().text(“小程序”)”,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
      [debug] [BaseDriver] Waiting up to 25000 ms for condition
      [debug] [JSONWP Proxy] Matched ‘/element’ to command name ‘findElement’
      [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {“strategy”:”-android uiautomator”,”selector”:”new UiSelector().text(“小程序”)”,”context”:””,”multiple”:false}
      [debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:{“ELEMENT”:”06d80966-0822-4de1-9fa6-6caa4288131e”}}
      [debug] [W3C] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:”06d80966-0822-4de1-9fa6-6caa4288131e”}
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 164 ms – 88
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/06d80966-0822-4de1-9fa6-6caa4288131e/click
      [info] [HTTP] {“id”:”06d80966-0822-4de1-9fa6-6caa4288131e”}
      [debug] [W3C] Calling AppiumDriver.click() with args: [“06d80966-0822-4de1-9fa6-6caa4288131e”,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [JSONWP Proxy] Matched ‘/element/06d80966-0822-4de1-9fa6-6caa4288131e/click’ to command name ‘click’
      [debug] [JSONWP Proxy] Proxying [POST /element/06d80966-0822-4de1-9fa6-6caa4288131e/click] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element/06d80966-0822-4de1-9fa6-6caa4288131e/click] with body: {“element”:”06d80966-0822-4de1-9fa6-6caa4288131e”}[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:true}
      [debug] [W3C] Responding to client with driver.click() result: true
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/06d80966-0822-4de1-9fa6-6caa4288131e/click 200 1622 ms – 14
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
      [info] [HTTP] {“using”:”-android uiautomator”,”value”:”new UiSelector().text(“超级猩猩”)”}
      [debug] [W3C] Calling AppiumDriver.findElement() with args: [“-android uiautomator”,”new UiSelector().text(“超级猩猩”)”,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
      [debug] [BaseDriver] Waiting up to 25000 ms for condition
      [debug] [JSONWP Proxy] Matched ‘/element’ to command name ‘findElement’
      [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element] with body: {“strategy”:”-android uiautomator”,”selector”:”new UiSelector().text(“超级猩猩”)”,”context”:””,”multiple”:false}
      [debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:{“ELEMENT”:”a3877a67-9723-448d-8ab3-a4414b6df6aa”}}
      [debug] [W3C] Responding to client with driver.findElement() result: {“element-6066-11e4-a52e-4f735466cecf”:”a3877a67-9723-448d-8ab3-a4414b6df6aa”}
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 102 ms – 88
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click
      [info] [HTTP] {“id”:”a3877a67-9723-448d-8ab3-a4414b6df6aa”}
      [debug] [W3C] Calling AppiumDriver.click() with args: [“a3877a67-9723-448d-8ab3-a4414b6df6aa”,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [JSONWP Proxy] Matched ‘/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click’ to command name ‘click’
      [debug] [JSONWP Proxy] Proxying [POST /element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click] with body: {“element”:”a3877a67-9723-448d-8ab3-a4414b6df6aa”}[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:true}
      [debug] [W3C] Responding to client with driver.click() result: true
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/a3877a67-9723-448d-8ab3-a4414b6df6aa/click 200 944 ms – 14
      [info] [HTTP] [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context
      [info] [HTTP] {“name”:”WEBVIEW_com.tencent.mm:appbrand0″}
      [debug] [W3C] Calling AppiumDriver.setContext() with args: [“WEBVIEW_com.tencent.mm:appbrand0″,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [AndroidDriver] Getting a list of available webviews
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell cat /proc/net/unix’
      [debug] [AndroidDriver] WEBVIEW_32080 mapped to pid 32080
      [debug] [AndroidDriver] Getting process name for webview
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps\'[debug] [AndroidDriver] Parsed pid: ‘32080’ pkg: ‘com.tencent.mm:appbrand0’ from
      [debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
      [debug] [AndroidDriver] u0_a172 32080 611 51608684 379400 0 0 S com.tencent.mm:appbrand0
      [debug] [AndroidDriver] Returning process name: ‘com.tencent.mm:appbrand0’
      [debug] [AndroidDriver] Found webviews: [“WEBVIEW_com.tencent.mm:appbrand0”]
      [debug] [AndroidDriver] Available contexts: [“NATIVE_APP”,”WEBVIEW_com.tencent.mm:appbrand0″]
      [debug] [AndroidDriver] Connecting to chrome-backed webview context ‘WEBVIEW_com.tencent.mm:appbrand0’
      [debug] [AndroidDriver] A port was not given, using random port: 8021
      [debug] [Chromedriver] Changed state to ‘starting’
      [info] [Chromedriver] Set chromedriver binary as: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver
      [debug] [Chromedriver] Killing any old chromedrivers, running: pkill -15 -f “/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver.–port=8021”
      [warn] [Chromedriver] No old chromedrivers seemed to exist
      [debug] [Chromedriver] Cleaning any old adb forwarded port socket connections
      [debug] [ADB] List forwarding ports
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward –list’
      [info] [Chromedriver] Spawning chromedriver with: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver –url-base=wd/hub –port=8021 –adb-port=5037 –verbose[debug] [Chromedriver] Chromedriver version: ‘89.0.4389.23’
      [debug] [JSONWP Proxy] Matched ‘/status’ to command name ‘getStatus’
      [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8021/wd/hub/status] with no body
      [debug] [JSONWP Proxy] Matched ‘/status’ to command name ‘getStatus’
      [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8021/wd/hub/status] with no body
      [debug] [JSONWP Proxy] Got response with status 200: “{“value”:{“build”:{“version”:”89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})”},”message”:”ChromeDriver ready for new sessions.”,”os”:{“arch”:”x86_64″,”name”:”Mac OS X”,”version”:”11.5.1″},”ready”:true}}”
      [debug] [JSONWP Proxy] Matched ‘/session’ to command name ‘createSession’
      [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8021/wd/hub/session] with body: {“desiredCapabilities”:{“chromeOptions”:{“androidPackage”:”com.tencent.mm”,”androidUseRunningApp”:true,”androidProcess”:”com.tencent.mm:appbrand0″,”androidDeviceSerial”:”10.10.105.39:5556″}}}[debug] [Chromedriver] Webview version: ‘Chrome/89.0.4389.72′[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”3771aa3fb3afd8b5699c84c827811c16″,”status”:33,”value”:{“message”:”session not creatednfrom disconnected: received Inspector.detached eventn (Session info: chrome=89.0.4389.72)n (Driver info: chromedriver=89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294}),platform=Mac OS X 11.5.1 x86_64)”}}
      [debug] [MJSONWP] Matched JSONWP error code 33 to SessionNotCreatedError
      [error] [Chromedriver] Error: Failed to start Chromedriver session: A new session could not be created. Details: [object Object] session not created
      [error] [Chromedriver] from disconnected: received Inspector.detached event
      [error] Chromedriver
      [error] Chromedriver
      [error] [Chromedriver] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:78:13)
      [error] [Chromedriver] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/lib/chromedriver.js:448:13)
      [error] [Chromedriver] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
      [error] [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
      [error] [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
      [error] [Chromedriver] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
      [error] [Chromedriver] at [debug] [JSONWP Proxy] Matched ‘/session’ to command name ‘createSession’
      [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8021/wd/hub/session] with body: {“desiredCapabilities”:{“chromeOptions”:{“androidPackage”:”com.tencent.mm”,”androidUseRunningApp”:true,”androidProcess”:”com.tencent.mm:appbrand0″,”androidDeviceSerial”:”10.10.105.39:5556″}}}[debug] [Chromedriver] Webview version: ‘Chrome/89.0.4389.72′[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”b7c67d37e09b532ccd82e16bf778abbc”,”status”:0,”value”:{“acceptInsecureCerts”:false,”acceptSslCerts”:false,”applicationCacheEnabled”:false,”browserConnectionEnabled”:false,”browserName”:”chrome”,”chrome”:{“chromedriverVersion”:”89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})”},”cssSelectorsEnabled”:true,”databaseEnabled”:false,”goog:chromeOptions”:{“debuggerAddress”:”localhost:53104″},”handlesAlerts”:true,”hasTouchScreen”:true,”javascriptEnabled”:true,”locationContextEnabled”:true,”mobileEmulationEnabled”:false,”nativeEvents”:true,”pageLoadStrategy”:”normal”,”platform”:”ANDROID”,”proxy”:{},”rotatable”:false,”setWindowRect”:false,”strictFileInteractability”:false,”takesHeapSnapshot”:true,”takesScreenshot”:true,”timeouts”:{“implicit”:0,”pageLoad”:300000,”script”:30000},”unexpectedAlertBehaviour”:”ignore”,”version”:”89.0.4389.72″,”webStorageEnabled”:true,”webauthn:extension:largeBlob”:false,”webauthn:virtualAuthenticators”:false}}
      [debug] [Chromedriver] Changed state to ‘online’
      [debug] [W3C] Responding to client with driver.setContext() result: null
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context 200 5703 ms – 14
      [info] [HTTP]
      [info] [HTTP] –> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source
      [info] [HTTP] {}
      [info] [W3C] Driver proxy active, passing request on via HTTP proxy
      [debug] [JSONWP Proxy] Matched ‘/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source’ to command name ‘getPageSource’
      [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source] to [GET http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc/source] with body: {}[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”b7c67d37e09b532ccd82e16bf778abbc”,”status”:0,”value”:”u003Chtml lang=”zh-CN”>u003Chead>u003Cstyle>html{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;height:100%;width:100%}body{cursor:default;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;overflow-x:hidden;-webkit-text-size-adjust:none;text-size-adjust:none}:root{–safe-area-inset-top:0px;–safe-area-inset-bottom:0px;–safe-area-inset-left:0px;–safe-area-inset-right:0px}@supports (bottom:constant(safe-area-inset-bottom)){:root{–safe-area-inset-top:constant(safe-area-inset-top);–safe-area-inset-bottom:constant(safe-area-inset-bottom);–safe-area-inset-left:constant(safe-area-inset-left);–safe-area-inset-right:constant(safe-area-inset-right)}}@supports (bottom:env(safe-area-inset-bottom)){:root{–safe-area-inset-top:env(safe-area-inset-top);–safe-area-inset-bottom:env(safe-area-inset-bottom);–safe-area-inset-left:env(safe-area-inset-left);–safe-area-inset-right…
      [info] [JSONWP Proxy] Replacing sessionId b7c67d37e09b532ccd82e16bf778abbc with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
      [info] [HTTP] <– GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source 200 303 ms – 443372
      [info] [HTTP] [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element
      [info] [HTTP] {“using”:”xpath”,”value”:”//[@class=”NavigatorBar–nav-home”]”}
      [info] [W3C] Driver proxy active, passing request on via HTTP proxy
      [debug] [JSONWP Proxy] Matched ‘/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element’ to command name ‘findElement’
      [debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element] to [POST http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc/element] with body: {“using”:”xpath”,”value”:”//[@class=”NavigatorBar–nav-home”]”}
      [debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”b7c67d37e09b532ccd82e16bf778abbc”,”status”:0,”value”:{“ELEMENT”:”0.142413894191874-1″}}
      [info] [JSONWP Proxy] Replacing sessionId b7c67d37e09b532ccd82e16bf778abbc with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element 200 102 ms – 105
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click
      [info] [HTTP] {“id”:”0.142413894191874-1″}
      [info] [W3C] Driver proxy active, passing request on via HTTP proxy
      [debug] [JSONWP Proxy] Matched ‘/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click’ to command name ‘click’
      [debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click] to [POST http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc/element/0.142413894191874-1/click] with body: {“id”:”0.142413894191874-1″}[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”b7c67d37e09b532ccd82e16bf778abbc”,”status”:0,”value”:null}
      [info] [JSONWP Proxy] Replacing sessionId b7c67d37e09b532ccd82e16bf778abbc with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/element/0.142413894191874-1/click 200 230 ms – 76
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context
      [info] [HTTP] {“name”:”NATIVE_APP”}
      [debug] [W3C] Calling AppiumDriver.setContext() with args: [“NATIVE_APP”,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [AndroidDriver] Getting a list of available webviews
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell cat /proc/net/unix’
      [debug] [AndroidDriver] WEBVIEW_1426 mapped to pid 1426
      [debug] [AndroidDriver] Getting process name for webview
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps’
      [debug] [AndroidDriver] WEBVIEW_32649 mapped to pid 32649
      [debug] [AndroidDriver] Getting process name for webview
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps’
      [debug] [AndroidDriver] WEBVIEW_32080 mapped to pid 32080
      [debug] [AndroidDriver] Getting process name for webview
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps\'[debug] [AndroidDriver] Parsed pid: ‘32649’ pkg: ‘com.tencent.mm:toolsmp’ from
      [debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
      [debug] [AndroidDriver] u0_a172 32649 611 46330796 253712 0 0 S com.tencent.mm:toolsmp
      [debug] [AndroidDriver] Returning process name: ‘com.tencent.mm:toolsmp’
      [debug] [AndroidDriver] Parsed pid: ‘1426’ pkg: ‘com.tencent.mm:appbrand2’ from
      [debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
      [debug] [AndroidDriver] u0_a172 1426 611 50758780 286884 0 0 S com.tencent.mm:appbrand2
      [debug] [AndroidDriver] Returning process name: ‘com.tencent.mm:appbrand2’
      [debug] [AndroidDriver] Parsed pid: ‘32080’ pkg: ‘com.tencent.mm:appbrand0’ from
      [debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
      [debug] [AndroidDriver] u0_a172 32080 611 74798324 574092 0 0 R com.tencent.mm:appbrand0
      [debug] [AndroidDriver] Returning process name: ‘com.tencent.mm:appbrand0’
      [debug] [AndroidDriver] Found webviews: [“WEBVIEW_com.tencent.mm:appbrand2″,”WEBVIEW_com.tencent.mm:toolsmp”,”WEBVIEW_com.tencent.mm:appbrand0″]
      [debug] [AndroidDriver] Available contexts: [“NATIVE_APP”,”WEBVIEW_com.tencent.mm:appbrand2″,”WEBVIEW_com.tencent.mm:toolsmp”,”WEBVIEW_com.tencent.mm:appbrand0″]
      [debug] [AndroidDriver] recreateChromeDriverSessions set to true; killing existing chromedrivers
      [debug] [AndroidDriver] Stopping chromedriver for context WEBVIEW_com.tencent.mm:appbrand0
      [debug] [Chromedriver] Changed state to ‘stopping’
      [debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8021/wd/hub/session/b7c67d37e09b532ccd82e16bf778abbc] with no body
      [debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”b7c67d37e09b532ccd82e16bf778abbc”,”status”:0,”value”:null}”
      [debug] [Chromedriver] Changed state to ‘stopped’
      [debug] [W3C] Responding to client with driver.setContext() result: null
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context 200 229 ms – 14
      [info] [HTTP]
      [info] [HTTP] –> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect
      [info] [HTTP] {}
      [debug] [W3C] Calling AppiumDriver.getWindowRect() with args: [“bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [W3C] Responding to client with driver.getWindowRect() result: {“width”:1080,”height”:1920,”x”:0,”y”:0}
      [info] [HTTP] <– GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect 200 4 ms – 50
      [info] [HTTP]
      [info] [HTTP] –> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect
      [info] [HTTP] {}
      [debug] [W3C] Calling AppiumDriver.getWindowRect() with args: [“bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [W3C] Responding to client with driver.getWindowRect() result: {“width”:1080,”height”:1920,”x”:0,”y”:0}
      [info] [HTTP] <– GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/window/rect 200 2 ms – 50
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/touch/perform
      [info] [HTTP] {“actions”:[{“action”:”press”,”options”:{“x”:540,”y”:1728}},{“action”:”wait”,”options”:{“ms”:5000}},{“action”:”moveTo”,”options”:{“x”:540,”y”:480}},{“action”:”release”,”options”:{}}]}
      [debug] [W3C] Calling AppiumDriver.performTouch() with args: [[{“action”:”press”,”options”:{“x”:540,”y”:1728}},{“action”:”wait”,”options”:{“ms”:5000}},{“action”:”moveTo”,”options”:{“x”:540,”y”:480}},{“action”:”release”,”options”:{}}],”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [JSONWP Proxy] Matched ‘/touch/perform’ to command name ‘performTouch’
      [debug] [JSONWP Proxy] Proxying [POST /touch/perform] to [POST http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089/touch/perform] with body: {“startX”:540,”startY”:1728,”endX”:540,”endY”:480,”steps”:140}[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:true}
      [debug] [W3C] Responding to client with driver.performTouch() result: true
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/touch/perform 200 3717 ms – 14
      [info] [HTTP]
      [info] [HTTP] –> POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context
      [info] [HTTP] {“name”:”WEBVIEW_com.tencent.mm:appbrand0″}
      [debug] [W3C] Calling AppiumDriver.setContext() with args: [“WEBVIEW_com.tencent.mm:appbrand0″,”bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [AndroidDriver] Getting a list of available webviews
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell cat /proc/net/unix’
      [debug] [AndroidDriver] WEBVIEW_1426 mapped to pid 1426
      [debug] [AndroidDriver] Getting process name for webview
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps’
      [debug] [AndroidDriver] WEBVIEW_32649 mapped to pid 32649
      [debug] [AndroidDriver] Getting process name for webview
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps’
      [debug] [AndroidDriver] WEBVIEW_32080 mapped to pid 32080
      [debug] [AndroidDriver] Getting process name for webview
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell ps\'[debug] [AndroidDriver] Parsed pid: ‘1426’ pkg: ‘com.tencent.mm:appbrand2’ from
      [debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
      [debug] [AndroidDriver] u0_a172 1426 611 50758780 284296 0 0 S com.tencent.mm:appbrand2
      [debug] [AndroidDriver] Returning process name: ‘com.tencent.mm:appbrand2’
      [debug] [AndroidDriver] Parsed pid: ‘32649’ pkg: ‘com.tencent.mm:toolsmp’ from
      [debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
      [debug] [AndroidDriver] u0_a172 32649 611 46316300 270544 0 0 S com.tencent.mm:toolsmp
      [debug] [AndroidDriver] Returning process name: ‘com.tencent.mm:toolsmp’
      [debug] [AndroidDriver] Parsed pid: ‘32080’ pkg: ‘com.tencent.mm:appbrand0’ from
      [debug] [AndroidDriver] USER PID PPID VSZ RSS WCHAN ADDR S NAME
      [debug] [AndroidDriver] u0_a172 32080 611 74783168 563992 0 0 S com.tencent.mm:appbrand0
      [debug] [AndroidDriver] Returning process name: ‘com.tencent.mm:appbrand0’
      [debug] [AndroidDriver] Found webviews: [“WEBVIEW_com.tencent.mm:appbrand2″,”WEBVIEW_com.tencent.mm:toolsmp”,”WEBVIEW_com.tencent.mm:appbrand0″]
      [debug] [AndroidDriver] Available contexts: [“NATIVE_APP”,”WEBVIEW_com.tencent.mm:appbrand2″,”WEBVIEW_com.tencent.mm:toolsmp”,”WEBVIEW_com.tencent.mm:appbrand0″]
      [debug] [AndroidDriver] Connecting to chrome-backed webview context ‘WEBVIEW_com.tencent.mm:appbrand0’
      [debug] [AndroidDriver] A port was not given, using random port: 8021
      [debug] [Chromedriver] Changed state to ‘starting’
      [info] [Chromedriver] Set chromedriver binary as: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver
      [debug] [Chromedriver] Killing any old chromedrivers, running: pkill -15 -f “/Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver.–port=8021”
      [warn] [Chromedriver] No old chromedrivers seemed to exist
      [debug] [Chromedriver] Cleaning any old adb forwarded port socket connections
      [debug] [ADB] List forwarding ports
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward –list’
      [info] [Chromedriver] Spawning chromedriver with: /Users/supermonkey/Downloads/ReservationUITest-master/MacDriver/chromedriver –url-base=wd/hub –port=8021 –adb-port=5037 –verbose
      [debug] [Chromedriver] Chromedriver version: ‘89.0.4389.23’
      [debug] [JSONWP Proxy] Matched ‘/status’ to command name ‘getStatus’
      [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8021/wd/hub/status] with no body
      [debug] [JSONWP Proxy] Got response with status 200: “{“value”:{“build”:{“version”:”89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})”},”message”:”ChromeDriver ready for new sessions.”,”os”:{“arch”:”x86_64″,”name”:”Mac OS X”,”version”:”11.5.1″},”ready”:true}}”
      [debug] [JSONWP Proxy] Matched ‘/session’ to command name ‘createSession’
      [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8021/wd/hub/session] with body: {“desiredCapabilities”:{“chromeOptions”:{“androidPackage”:”com.tencent.mm”,”androidUseRunningApp”:true,”androidProcess”:”com.tencent.mm:appbrand0″,”androidDeviceSerial”:”10.10.105.39:5556″}}}[debug] [Chromedriver] Webview version: ‘Chrome/89.0.4389.72′[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:”28bcc304bb6183677e779715fe72dd63″,”status”:0,”value”:{“acceptInsecureCerts”:false,”acceptSslCerts”:false,”applicationCacheEnabled”:false,”browserConnectionEnabled”:false,”browserName”:”chrome”,”chrome”:{“chromedriverVersion”:”89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})”},”cssSelectorsEnabled”:true,”databaseEnabled”:false,”goog:chromeOptions”:{“debuggerAddress”:”localhost:53339″},”handlesAlerts”:true,”hasTouchScreen”:true,”javascriptEnabled”:true,”locationContextEnabled”:true,”mobileEmulationEnabled”:false,”nativeEvents”:true,”pageLoadStrategy”:”normal”,”platform”:”ANDROID”,”proxy”:{},”rotatable”:false,”setWindowRect”:false,”strictFileInteractability”:false,”takesHeapSnapshot”:true,”takesScreenshot”:true,”timeouts”:{“implicit”:0,”pageLoad”:300000,”script”:30000},”unexpectedAlertBehaviour”:”ignore”,”version”:”89.0.4389.72″,”webStorageEnabled”:true,”webauthn:extension:largeBlob”:false,”webauthn:virtualAuthenticators”:false}}
      [debug] [Chromedriver] Changed state to ‘online’
      [debug] [W3C] Responding to client with driver.setContext() result: null
      [info] [HTTP] <– POST /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/context 200 721 ms – 14
      [info] [HTTP]
      [info] [HTTP] –> GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source
      [info] [HTTP] {}
      [info] [W3C] Driver proxy active, passing request on via HTTP proxy
      [debug] [JSONWP Proxy] Matched ‘/wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source’ to command name ‘getPageSource’
      [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source] to [GET http://127.0.0.1:8021/wd/hub/session/28bcc304bb6183677e779715fe72dd63/source] with body: {}[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”28bcc304bb6183677e779715fe72dd63″,”status”:0,”value”:”u003Chtml lang=”zh-CN”>u003Chead>u003Cstyle>html{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;height:100%;width:100%}body{cursor:default;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;overflow-x:hidden;-webkit-text-size-adjust:none;text-size-adjust:none}:root{–safe-area-inset-top:0px;–safe-area-inset-bottom:0px;–safe-area-inset-left:0px;–safe-area-inset-right:0px}@supports (bottom:constant(safe-area-inset-bottom)){:root{–safe-area-inset-top:constant(safe-area-inset-top);–safe-area-inset-bottom:constant(safe-area-inset-bottom);–safe-area-inset-left:constant(safe-area-inset-left);–safe-area-inset-right:constant(safe-area-inset-right)}}@supports (bottom:env(safe-area-inset-bottom)){:root{–safe-area-inset-top:env(safe-area-inset-top);–safe-area-inset-bottom:env(safe-area-inset-bottom);–safe-area-inset-left:env(safe-area-inset-left);–safe-area-inset-right…
      [info] [JSONWP Proxy] Replacing sessionId 28bcc304bb6183677e779715fe72dd63 with bf507416-3631-48b2-9c0f-56d8d7a5ad9a
      [info] [HTTP] <– GET /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a/source 200 380 ms – 747198
      [info] [HTTP] [info] [HTTP] –> DELETE /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a
      [info] [HTTP] {}
      [debug] [W3C] Calling AppiumDriver.deleteSession() with args: [“bf507416-3631-48b2-9c0f-56d8d7a5ad9a”]
      [debug] [BaseDriver] Event ‘quitSessionRequested’ logged at 1634633582310 (16:53:02 GMT+0800 (CST))
      [info] [Appium] Removing session bf507416-3631-48b2-9c0f-56d8d7a5ad9a from our master session list
      [debug] [UiAutomator2] Deleting UiAutomator2 session
      [debug] [AndroidDriver] Stopping chromedriver for context WEBVIEW_com.tencent.mm:appbrand0
      [debug] [Chromedriver] Changed state to ‘stopping’
      [debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8021/wd/hub/session/28bcc304bb6183677e779715fe72dd63] with no body
      [debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”28bcc304bb6183677e779715fe72dd63″,”status”:0,”value”:null}”
      [debug] [Chromedriver] Changed state to ‘stopped’
      [debug] [UiAutomator2] Deleting UiAutomator2 server session
      [debug] [JSONWP Proxy] Matched ‘/’ to command name ‘deleteSession’
      [debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8202/wd/hub/session/2c36d526-0cfb-4178-aa33-a048a15b1089] with no body
      [debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”2c36d526-0cfb-4178-aa33-a048a15b1089″,”status”:0,”value”:”Session deleted”}”
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 shell am force-stop com.tencent.mm\'[debug] [Logcat] Stopping logcat capture
      [debug] [ADB] Removing forwarded port socket connection: 8202
      [debug] [ADB] Running ‘/Users/supermonkey/Library/Android/sdk/platform-tools/adb -P 5037 -s 10.10.105.39:5556 forward –remove tcp:8202’
      [debug] [BaseDriver] Event ‘quitSessionFinished’ logged at 1634633582768 (16:53:02 GMT+0800 (CST))
      [debug] [W3C] Received response: null
      [debug] [W3C] But deleting session, so not returning
      [debug] [W3C] Responding to client with driver.deleteSession() result: null
      [info] [HTTP] <– DELETE /wd/hub/session/bf507416-3631-48b2-9c0f-56d8d7a5ad9a 200 460 ms – 14
      [info] [HTTP] [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
      [debug] [UiAutomator2] [UIAutomator2] Time: 36.116
      [debug] [UiAutomator2] [UIAutomator2] OK (1 test)重新跑一遍可以正常 但是 appium 日志里面还是携带报错信息
      我看日志,应该后面重试后成功了,现在这日志也看不出错误原因,建议再持续执行多几次,采集更多数据再分析定位吧。感谢

    匿名

    发表评论

    匿名网友
    确定