问答 Appium 启动 Android 真机 app 后无限重启

tigerwu · 2024年06月06日 · 3170 次阅读

环境:mac m2 芯片、appium 版本:1.22.1、node 版本:v16.2.0 、java 版本:11.0.21

appium 打印日记:

Last login: Thu Jun 6 11:07:13 on ttys001
admin@szhndeMac-mini ~ % appium -p 4726
[Appium] Welcome to Appium v1.22.1
[Appium] Non-default server args:
[Appium] port: 4726
[Appium] Appium REST http interface listener started on 0.0.0.0:4726
[debug] [HTTP] Request idempotency key: 680e9a35-3256-4c50-97b6-431c77b58b23
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{"platformName":"android","appium:platformVersion":"10.0","appium:udid":"671d4c71","appium:appPackage":"com.eg.android.AlipayGphone","appium:appActivity":".AlipayLogin","appium:fullReset":"false","appium:noReset":"true"}]},"desiredCapabilities":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":"false","noReset":"true"}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":"false","noReset":"true"},null,{"firstMatch":[{"platformName":"android","appium:platformVersion":"10.0","appium:udid":"671d4c71","appium:appPackage":"com.eg.android.AlipayGphone","appium:appActivity":".AlipayLogin","appium:fullReset":"false","appium:noReset":"true"}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1717643467801 (11:11:07 GMT+0800 (中国标准时间))
[Appium]
[Appium] ======================================================================
[Appium] DEPRECATION WARNING:
[Appium]
[Appium] The 'automationName' capability was not provided in the desired
[Appium] capabilities for this Android session
[Appium]
[Appium] Setting 'automationName=UiAutomator2' by default and using the
[Appium] UiAutomator2 Driver
[Appium]
[Appium] The next major version of Appium (2.x) will require the
[Appium] 'automationName' capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] In previous versions (Appium <= 1.13.x), the default was
[Appium] 'automationName=UiAutomator1'
[Appium]
[Appium] If you wish to use that automation instead of UiAutomator2, please
[Appium] add 'automationName=UiAutomator1' to your desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] 'Drivers' menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Appium v1.22.1 creating new AndroidUiautomator2Driver (v1.70.1) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "appium:platformVersion": "10.0",
[debug] [BaseDriver] "appium:udid": "671d4c71",
[debug] [BaseDriver] "appium:appPackage": "com.eg.android.AlipayGphone",
[debug] [BaseDriver] "appium:appActivity": ".AlipayLogin",
[debug] [BaseDriver] "appium:fullReset": "false",
[debug] [BaseDriver] "appium:noReset": "true"
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Session created with session id: 8f2c8da1-d5c8-4aec-85f7-fba0c3b528d6
[UiAutomator2] Starting 'com.eg.android.AlipayGphone' directly on the device
[ADB] Found 1 'build-tools' folders under '/Users/admin/Library/Android/sdk' (newest first):
[ADB] /Users/admin/Library/Android/sdk/build-tools/34.0.0
[ADB] Using 'adb' from '/Users/admin/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"671d4c71","state":"device"}]
[AndroidDriver] Using device: 671d4c71
[ADB] Using 'adb' from '/Users/admin/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[debug] [ADB] Setting device id to 671d4c71
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 29
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 10
[debug] [ADB] Device API level: 29
[UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 wait-for-device'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.settings'
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0')
[debug] [ADB] There is no need to install/upgrade '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell pgrep -f ([[:blank:]]|^) io.appium.settings([[:blank:]]|\$)'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell appops set io.appium.settings android:mock_location allow'
[debug] [Logcat] Starting logs capture with command: /Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 logcat -v threadtime
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 forward tcp:8200 tcp:6790'
[UiAutomator2] Server package at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[UiAutomator2] Server package at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' is not writeable. Will copy it into the temporary location at '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] 'io.appium.uiautomator2.server' is installed
[debug] [ADB] Getting package info for 'io.appium.uiautomator2.server'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.27.0' >= '4.27.0')
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [ADB] Checking app cert for /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb/appium-uiautomator2-server-v4.27.0.apk
[ADB] Using 'apksigner.jar' from '/Users/admin/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar'
[debug] [ADB] Starting apksigner: /Users/admin/.sdkman/candidates/java/current/bin/java -Xmx1024M -Xss1m -jar /Users/admin/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar verify --print-certs /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb/appium-uiautomator2-server-v4.27.0.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] sha256 hash did match for 'appium-uiautomator2-server-v4.27.0.apk'
[ADB] '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb/appium-uiautomator2-server-v4.27.0.apk' is signed with the default certificate
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed
[debug] [ADB] Checking app cert for /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting apksigner: /Users/admin/.sdkman/candidates/java/current/bin/java -Xmx1024M -Xss1m -jar /Users/admin/Library/Android/sdk/build-tools/34.0.0/lib/apksigner.jar verify --print-certs /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb/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] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
[ADB] '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-1qn269i.c8lb/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[UiAutomator2] Server packages are not going to be (re) installed
[debug] [UiAutomator2] Waiting up to 30000ms for services to be available
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[debug] [UiAutomator2] No app capability. Assuming it is already on the device
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers
[debug] [UiAutomator2] The following obsolete sessions are still running: ["dd347399-5ac8-4f5f-b4ce-d86b3f713dbe"]
[debug] [UiAutomator2] Cleaning up 1 obsolete session
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell am force-stop io.appium.uiautomator2.server.test'
[UiAutomator2] Starting UIAutomator2 server 4.27.0
[UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online...
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","671d4c71","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[debug] [UiAutomator2] The initialization of the instrumentation process took 3179ms
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71"}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"15fcb335-ec54-4cf2-bb22-44378c28857f","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71"}],"alwaysMatch":{}},"sessionId":"15fcb335-ec54-4cf2-bb22-44378c28857f"}}
[WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/15fcb335-ec54-4cf2-bb22-44378c28857f/appium/device/info] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"15fcb335-ec54-4cf2-bb22-44378c28857f","value":{"androidId":"45905b59920ed8ae","apiVersion":"29","bluetooth":{"state":"ON"},"brand":"vivo","carrierName":"","displayDensity":480,"locale":"zh_CN","manufacturer":"vivo","model":"V1932A","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":1048576,"linkUpstreamBandwidthKbps":1048576,"networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-49,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":null,"isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"}],"platformVersion":"10","realDisplaySize":"1080x2400","timeZone":"Asia/Shanghai"}}
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] Starting 'com.eg.android.AlipayGphone/.AlipayLogin and waiting for 'com.eg.android.AlipayGphone/.AlipayLogin'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell am start -W -n com.eg.android.AlipayGphone/.AlipayLogin -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/15fcb335-ec54-4cf2-bb22-44378c28857f/appium/device/pixel_ratio] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"15fcb335-ec54-4cf2-bb22-44378c28857f","value":3}
[debug] [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/15fcb335-ec54-4cf2-bb22-44378c28857f/appium/device/system_bars] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"15fcb335-ec54-4cf2-bb22-44378c28857f","value":{"statusBar":108}}
[debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize'
[debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/15fcb335-ec54-4cf2-bb22-44378c28857f/window/current/size] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"15fcb335-ec54-4cf2-bb22-44378c28857f","value":{"height":2310,"width":1080}}
[Appium] New AndroidUiautomator2Driver session created successfully, session 8f2c8da1-d5c8-4aec-85f7-fba0c3b528d6 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1717643476484 (11:11:16 GMT+0800 (中国标准时间))
[debug] [W3C (8f2c8da1)] Cached the protocol value 'W3C' for the new session 8f2c8da1-d5c8-4aec-85f7-fba0c3b528d6
[debug] [W3C (8f2c8da1)] 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","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71","deviceApiLevel":29,"deviceScreenSize":"1080x2400","deviceScreenDensity":480,"deviceModel":"V1932A","deviceManufacturer":"vivo","pixelRatio":3,"statBarHeight":108,"viewportRect":{"left":0,"top":108,"width":1080,"height":2202}}}
[HTTP] <-- POST /wd/hub/session 200 8689 ms - 903
[HTTP]
[debug] [HTTP] Request idempotency key: 9a8cc3ee-1b90-4c2d-a272-bebd33e32049
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{"platformName":"android","appium:platformVersion":"10.0","appium:udid":"671d4c71","appium:appPackage":"com.eg.android.AlipayGphone","appium:appActivity":".AlipayLogin","appium:fullReset":"false","appium:noReset":"true"}]},"desiredCapabilities":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":"false","noReset":"true"}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":"false","noReset":"true"},null,{"firstMatch":[{"platformName":"android","appium:platformVersion":"10.0","appium:udid":"671d4c71","appium:appPackage":"com.eg.android.AlipayGphone","appium:appActivity":".AlipayLogin","appium:fullReset":"false","appium:noReset":"true"}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1717643484532 (11:11:24 GMT+0800 (中国标准时间))
[Appium]
[Appium] ======================================================================
[Appium] DEPRECATION WARNING:
[Appium]
[Appium] The 'automationName' capability was not provided in the desired
[Appium] capabilities for this Android session
[Appium]
[Appium] Setting 'automationName=UiAutomator2' by default and using the
[Appium] UiAutomator2 Driver
[Appium]
[Appium] The next major version of Appium (2.x) will require the
[Appium] 'automationName' capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] In previous versions (Appium <= 1.13.x), the default was
[Appium] 'automationName=UiAutomator1'
[Appium]
[Appium] If you wish to use that automation instead of UiAutomator2, please
[Appium] add 'automationName=UiAutomator1' to your desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] 'Drivers' menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Appium v1.22.1 creating new AndroidUiautomator2Driver (v1.70.1) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "appium:platformVersion": "10.0",
[debug] [BaseDriver] "appium:udid": "671d4c71",
[debug] [BaseDriver] "appium:appPackage": "com.eg.android.AlipayGphone",
[debug] [BaseDriver] "appium:appActivity": ".AlipayLogin",
[debug] [BaseDriver] "appium:fullReset": "false",
[debug] [BaseDriver] "appium:noReset": "true"
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Session created with session id: db526c8f-c0d4-4e2f-a3d5-c34e169163a3
[UiAutomator2] Starting 'com.eg.android.AlipayGphone' directly on the device
[ADB] Using 'adb' from '/Users/admin/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"671d4c71","state":"device"}]
[AndroidDriver] Using device: 671d4c71
[ADB] Using 'adb' from '/Users/admin/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[debug] [ADB] Setting device id to 671d4c71
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 29
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 10
[debug] [ADB] Device API level: 29
[UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 wait-for-device'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.settings'
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0')
[debug] [ADB] There is no need to install/upgrade '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell pgrep -f ([[:blank:]]|^) io.appium.settings([[:blank:]]|\$)'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell appops set io.appium.settings android:mock_location allow'
[debug] [Logcat] Starting logs capture with command: /Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 logcat -v threadtime
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8201
[debug] [ADB] Forwarding system: 8201 to device: 6790
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 forward tcp:8201 tcp:6790'
[UiAutomator2] Server package at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' is not writeable. Will copy it into the temporary location at '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-zlzpuk.64rf' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[UiAutomator2] Server package at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-zlzpuk.64rf' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] 'io.appium.uiautomator2.server' is installed
[debug] [ADB] Getting package info for 'io.appium.uiautomator2.server'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.27.0' >= '4.27.0')
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [ADB] Checking app cert for /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-zlzpuk.64rf/appium-uiautomator2-server-v4.27.0.apk
[debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-v4.27.0.apk'
[debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.27.0.apk'
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed
[debug] [ADB] Checking app cert for /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-zlzpuk.64rf/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Server packages are not going to be (re) installed
[debug] [UiAutomator2] Waiting up to 30000ms for services to be available
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[debug] [UiAutomator2] No app capability. Assuming it is already on the device
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers
[debug] [UiAutomator2] The following obsolete sessions are still running: ["15fcb335-ec54-4cf2-bb22-44378c28857f"]
[debug] [UiAutomator2] Cleaning up 1 obsolete session
[debug] [Instrumentation] .
[debug] [Instrumentation] Time: 13.166
[debug] [Instrumentation]
[debug] [Instrumentation] OK (1 test)
[debug] [Instrumentation] The process has exited with code 0
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell am force-stop io.appium.uiautomator2.server.test'
[UiAutomator2] Starting UIAutomator2 server 4.27.0
[UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online...
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","671d4c71","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[debug] [UiAutomator2] The initialization of the instrumentation process took 3164ms
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8201/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71"}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"690f0816-4759-488d-9e20-f8862ce8acd3","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71"}],"alwaysMatch":{}},"sessionId":"690f0816-4759-488d-9e20-f8862ce8acd3"}}
[WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8201/wd/hub/session/690f0816-4759-488d-9e20-f8862ce8acd3/appium/device/info] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"690f0816-4759-488d-9e20-f8862ce8acd3","value":{"androidId":"45905b59920ed8ae","apiVersion":"29","bluetooth":{"state":"ON"},"brand":"vivo","carrierName":"","displayDensity":480,"locale":"zh_CN","manufacturer":"vivo","model":"V1932A","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":1048576,"linkUpstreamBandwidthKbps":1048576,"networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-49,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":null,"isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"}],"platformVersion":"10","realDisplaySize":"1080x2400","timeZone":"Asia/Shanghai"}}
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] Starting 'com.eg.android.AlipayGphone/.AlipayLogin and waiting for 'com.eg.android.AlipayGphone/.AlipayLogin'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell am start -W -n com.eg.android.AlipayGphone/.AlipayLogin -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8201/wd/hub/session/690f0816-4759-488d-9e20-f8862ce8acd3/appium/device/pixel_ratio] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"690f0816-4759-488d-9e20-f8862ce8acd3","value":3}
[debug] [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8201/wd/hub/session/690f0816-4759-488d-9e20-f8862ce8acd3/appium/device/system_bars] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"690f0816-4759-488d-9e20-f8862ce8acd3","value":{"statusBar":108}}
[debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize'
[debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8201/wd/hub/session/690f0816-4759-488d-9e20-f8862ce8acd3/window/current/size] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"690f0816-4759-488d-9e20-f8862ce8acd3","value":{"height":2310,"width":1080}}
[Appium] New AndroidUiautomator2Driver session created successfully, session db526c8f-c0d4-4e2f-a3d5-c34e169163a3 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1717643492149 (11:11:32 GMT+0800 (中国标准时间))
[debug] [W3C (db526c8f)] Cached the protocol value 'W3C' for the new session db526c8f-c0d4-4e2f-a3d5-c34e169163a3
[debug] [W3C (db526c8f)] 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","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71","deviceApiLevel":29,"deviceScreenSize":"1080x2400","deviceScreenDensity":480,"deviceModel":"V1932A","deviceManufacturer":"vivo","pixelRatio":3,"statBarHeight":108,"viewportRect":{"left":0,"top":108,"width":1080,"height":2202}}}
[HTTP] <-- POST /wd/hub/session 200 7623 ms - 903
[HTTP]
[debug] [HTTP] Request idempotency key: 3bd58cd2-a69d-478b-853b-0891185486c4
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{"platformName":"android","appium:platformVersion":"10.0","appium:udid":"671d4c71","appium:appPackage":"com.eg.android.AlipayGphone","appium:appActivity":".AlipayLogin","appium:fullReset":"false","appium:noReset":"true"}]},"desiredCapabilities":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":"false","noReset":"true"}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":"false","noReset":"true"},null,{"firstMatch":[{"platformName":"android","appium:platformVersion":"10.0","appium:udid":"671d4c71","appium:appPackage":"com.eg.android.AlipayGphone","appium:appActivity":".AlipayLogin","appium:fullReset":"false","appium:noReset":"true"}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1717643500174 (11:11:40 GMT+0800 (中国标准时间))
[Appium]
[Appium] ======================================================================
[Appium] DEPRECATION WARNING:
[Appium]
[Appium] The 'automationName' capability was not provided in the desired
[Appium] capabilities for this Android session
[Appium]
[Appium] Setting 'automationName=UiAutomator2' by default and using the
[Appium] UiAutomator2 Driver
[Appium]
[Appium] The next major version of Appium (2.x) will require the
[Appium] 'automationName' capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] In previous versions (Appium <= 1.13.x), the default was
[Appium] 'automationName=UiAutomator1'
[Appium]
[Appium] If you wish to use that automation instead of UiAutomator2, please
[Appium] add 'automationName=UiAutomator1' to your desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] 'Drivers' menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Appium v1.22.1 creating new AndroidUiautomator2Driver (v1.70.1) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "appium:platformVersion": "10.0",
[debug] [BaseDriver] "appium:udid": "671d4c71",
[debug] [BaseDriver] "appium:appPackage": "com.eg.android.AlipayGphone",
[debug] [BaseDriver] "appium:appActivity": ".AlipayLogin",
[debug] [BaseDriver] "appium:fullReset": "false",
[debug] [BaseDriver] "appium:noReset": "true"
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Session created with session id: 7e7c44ab-a83a-4c97-8f79-25f625434fe1
[UiAutomator2] Starting 'com.eg.android.AlipayGphone' directly on the device
[ADB] Using 'adb' from '/Users/admin/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"671d4c71","state":"device"}]
[AndroidDriver] Using device: 671d4c71
[ADB] Using 'adb' from '/Users/admin/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[debug] [ADB] Setting device id to 671d4c71
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 29
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 10
[debug] [ADB] Device API level: 29
[UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 wait-for-device'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.settings'
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0')
[debug] [ADB] There is no need to install/upgrade '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell pgrep -f ([[:blank:]]|^) io.appium.settings([[:blank:]]|\$)'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell appops set io.appium.settings android:mock_location allow'
[debug] [Logcat] Starting logs capture with command: /Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 logcat -v threadtime
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8202
[debug] [ADB] Forwarding system: 8202 to device: 6790
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 forward tcp:8202 tcp:6790'
[UiAutomator2] Server package at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' is not writeable. Will copy it into the temporary location at '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-smzksu.ctxaf' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[UiAutomator2] Server package at '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-smzksu.ctxaf' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] 'io.appium.uiautomator2.server' is installed
[debug] [ADB] Getting package info for 'io.appium.uiautomator2.server'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.27.0' >= '4.27.0')
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [ADB] Checking app cert for /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-smzksu.ctxaf/appium-uiautomator2-server-v4.27.0.apk
[debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-v4.27.0.apk'
[debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.27.0.apk'
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed
[debug] [ADB] Checking app cert for /var/folders/1p/v9pd_y7j7jn718y376bn4gd40000gn/T/202456-11203-smzksu.ctxaf/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Server packages are not going to be (re) installed
[debug] [UiAutomator2] Waiting up to 30000ms for services to be available
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[debug] [UiAutomator2] No app capability. Assuming it is already on the device
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers
[debug] [UiAutomator2] The following obsolete sessions are still running: ["690f0816-4759-488d-9e20-f8862ce8acd3"]
[debug] [UiAutomator2] Cleaning up 1 obsolete session
[debug] [Instrumentation] .
[debug] [Instrumentation] Time: 13.158
[debug] [Instrumentation]
[debug] [Instrumentation] OK (1 test)
[debug] [Instrumentation] The process has exited with code 0
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell am force-stop io.appium.uiautomator2.server.test'
[UiAutomator2] Starting UIAutomator2 server 4.27.0
[UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online...
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","671d4c71","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8202/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8202/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8202/wd/hub/status] with no body
[WD Proxy] socket hang up
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8202/wd/hub/status] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[debug] [UiAutomator2] The initialization of the instrumentation process took 3122ms
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8202/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71"}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"6043d137-dbf4-4128-afee-cfe3972eb224","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71"}],"alwaysMatch":{}},"sessionId":"6043d137-dbf4-4128-afee-cfe3972eb224"}}
[WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8202/wd/hub/session/6043d137-dbf4-4128-afee-cfe3972eb224/appium/device/info] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"6043d137-dbf4-4128-afee-cfe3972eb224","value":{"androidId":"45905b59920ed8ae","apiVersion":"29","bluetooth":{"state":"ON"},"brand":"vivo","carrierName":"","displayDensity":480,"locale":"zh_CN","manufacturer":"vivo","model":"V1932A","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":1048576,"linkUpstreamBandwidthKbps":1048576,"networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-49,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":null,"isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"}],"platformVersion":"10","realDisplaySize":"1080x2400","timeZone":"Asia/Shanghai"}}
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] Starting 'com.eg.android.AlipayGphone/.AlipayLogin and waiting for 'com.eg.android.AlipayGphone/.AlipayLogin'
[debug] [ADB] Running '/Users/admin/Library/Android/sdk/platform-tools/adb -P 5037 -s 671d4c71 shell am start -W -n com.eg.android.AlipayGphone/.AlipayLogin -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8202/wd/hub/session/6043d137-dbf4-4128-afee-cfe3972eb224/appium/device/pixel_ratio] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"6043d137-dbf4-4128-afee-cfe3972eb224","value":3}
[debug] [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8202/wd/hub/session/6043d137-dbf4-4128-afee-cfe3972eb224/appium/device/system_bars] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"6043d137-dbf4-4128-afee-cfe3972eb224","value":{"statusBar":108}}
[debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize'
[debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8202/wd/hub/session/6043d137-dbf4-4128-afee-cfe3972eb224/window/current/size] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"6043d137-dbf4-4128-afee-cfe3972eb224","value":{"height":2310,"width":1080}}
[Appium] New AndroidUiautomator2Driver session created successfully, session 7e7c44ab-a83a-4c97-8f79-25f625434fe1 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1717643507605 (11:11:47 GMT+0800 (中国标准时间))
[debug] [W3C (7e7c44ab)] Cached the protocol value 'W3C' for the new session 7e7c44ab-a83a-4c97-8f79-25f625434fe1
[debug] [W3C (7e7c44ab)] 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","platformVersion":"10.0","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true},"platformName":"android","platformVersion":"10","udid":"671d4c71","appPackage":"com.eg.android.AlipayGphone","appActivity":".AlipayLogin","fullReset":false,"noReset":true,"deviceName":"671d4c71","deviceUDID":"671d4c71","deviceApiLevel":29,"deviceScreenSize":"1080x2400","deviceScreenDensity":480,"deviceModel":"V1932A","deviceManufacturer":"vivo","pixelRatio":3,"statBarHeight":108,"viewportRect":{"left":0,"top":108,"width":1080,"height":2202}}}
[HTTP] <-- POST /wd/hub/session 200 7434 ms - 903
[HTTP]

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册