笔记:美团的测试

 0.先启动appium

1.编写代码

如下: 

from appium import webdriver
from appium.webdriver.extensions.android.nativekey import AndroidKey

desired_caps = {
    'platformName': 'Android',
    'platformVersion': '10',
    'deviceName': ':VOG_AL10',
    'appPackage': 'com.sankuai.meituan',
    'appActivity': 'com.meituan.android.pt.homepage.activity.MainActivity',
    'unicodeKeyboard': True,
    'resetKeyboard': True,
    'noReset': True,
    'newCommandTimeout': 6000,
    'automationName': 'UiAutomator2'
}

# 连接Appium Server,初始化自动化环境
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

2.运行代码之前打开时间记录

 

 3.日志的查看


The server is running
[2024-06-02 05:53:12][Appium] Welcome to Appium v1.22.3
[2024-06-02 05:53:12][Appium] Non-default server args:
[2024-06-02 05:53:12][Appium]   logTimestamp: true
[2024-06-02 05:53:12][Appium]   relaxedSecurityEnabled: true
[2024-06-02 05:53:12][Appium]   allowInsecure: {
[2024-06-02 05:53:12][Appium]   }
[2024-06-02 05:53:12][Appium]   denyInsecure: {
[2024-06-02 05:53:12][Appium]   }
[2024-06-02 05:53:12][Appium] Appium REST http interface listener started on 0.0.0.0:4723
[2024-06-02 05:53:18][HTTP] Request idempotency key: 1d9e1251-c0b4-4491-9d82-a3dce9e117f8
[2024-06-02 05:53:18][HTTP] --> POST /wd/hub/session
[2024-06-02 05:53:18][HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":"10","appium:deviceName":":VOG_AL10","appium:appPackage":"com.sankuai.meituan","appium:appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:noReset":true,"appium:newCommandTimeout":6000,"appium:automationName":"UiAutomator2"},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","platformVersion":"10","deviceName":":VOG_AL10","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2"}}
[2024-06-02 05:53:18][W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"10","deviceName":":VOG_AL10","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2"},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":"10","appium:deviceName":":VOG_AL10","appium:appPackage":"com.sankuai.meituan","appium:appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:noReset":true,"appium:newCommandTimeout":6000,"appium:automationName":"UiAutomator2"},"firstMatch":[{}]}]
[2024-06-02 05:53:18][BaseDriver] Event 'newSessionRequested' logged at 1717321998483 (17:53:18 GMT+0800 (中国标准时间))
[2024-06-02 05:53:18][Appium] Appium v1.22.3 creating new AndroidUiautomator2Driver (v1.70.1) session
[2024-06-02 05:53:18][Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[2024-06-02 05:53:18][BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[2024-06-02 05:53:18][BaseDriver] Creating session with W3C capabilities: {
[2024-06-02 05:53:18][BaseDriver]   "alwaysMatch": {
[2024-06-02 05:53:18][BaseDriver]     "platformName": "Android",
[2024-06-02 05:53:18][BaseDriver]     "appium:platformVersion": "10",
[2024-06-02 05:53:18][BaseDriver]     "appium:deviceName": ":VOG_AL10",
[2024-06-02 05:53:18][BaseDriver]     "appium:appPackage": "com.sankuai.meituan",
[2024-06-02 05:53:18][BaseDriver]     "appium:appActivity": "com.meituan.android.pt.homepage.activity.MainActivity",
[2024-06-02 05:53:18][BaseDriver]     "appium:unicodeKeyboard": true,
[2024-06-02 05:53:18][BaseDriver]     "appium:resetKeyboard": true,
[2024-06-02 05:53:18][BaseDriver]     "appium:noReset": true,
[2024-06-02 05:53:18][BaseDriver]     "appium:newCommandTimeout": 6000,
[2024-06-02 05:53:18][BaseDriver]     "appium:automationName": "UiAutomator2"
[2024-06-02 05:53:18][BaseDriver]   },
[2024-06-02 05:53:18][BaseDriver]   "firstMatch": [
[2024-06-02 05:53:18][BaseDriver]     {}
[2024-06-02 05:53:18][BaseDriver]   ]
[2024-06-02 05:53:18][BaseDriver] }
[2024-06-02 05:53:18][BaseDriver] Session created with session id: e2d696a2-5d0b-4f0d-865b-863543d0fb51
[2024-06-02 05:53:18][UiAutomator2] Starting 'com.sankuai.meituan' directly on the device
[2024-06-02 05:53:18][ADB] Found 2 'build-tools' folders under 'G:\Program Files\Java\sdk' (newest first):
[2024-06-02 05:53:18][ADB]     G:/Program Files/Java/sdk/build-tools/29.0.3
[2024-06-02 05:53:18][ADB]     G:/Program Files/Java/sdk/build-tools/29.0.2
[2024-06-02 05:53:18][ADB] Using 'adb.exe' from 'G:\Program Files\Java\sdk\platform-tools\adb.exe'
[2024-06-02 05:53:18][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 start-server'
[2024-06-02 05:53:18][AndroidDriver] Retrieving device list
[2024-06-02 05:53:18][ADB] Trying to find a connected android device
[2024-06-02 05:53:18][ADB] Getting connected devices
[2024-06-02 05:53:18][ADB] Connected devices: [{"udid":"Q5X7N19605002672","state":"device"}]
[2024-06-02 05:53:18][AndroidDriver] Looking for a device with Android '10.0.0'
[2024-06-02 05:53:18][ADB] Setting device id to Q5X7N19605002672
[2024-06-02 05:53:18][ADB] Getting device platform version
[2024-06-02 05:53:18][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell getprop ro.build.version.release'
[2024-06-02 05:53:18][ADB] Current device property 'ro.build.version.release': 10
[2024-06-02 05:53:18][AndroidDriver] Using device: Q5X7N19605002672
[2024-06-02 05:53:18][ADB] Using 'adb.exe' from 'G:\Program Files\Java\sdk\platform-tools\adb.exe'
[2024-06-02 05:53:18][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 start-server'
[2024-06-02 05:53:18][ADB] Setting device id to Q5X7N19605002672
[2024-06-02 05:53:18][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell getprop ro.build.version.sdk'
[2024-06-02 05:53:18][ADB] Current device property 'ro.build.version.sdk': 29
[2024-06-02 05:53:18][ADB] Getting device platform version
[2024-06-02 05:53:18][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell getprop ro.build.version.release'
[2024-06-02 05:53:18][ADB] Current device property 'ro.build.version.release': 10
[2024-06-02 05:53:18][ADB] Device API level: 29
[2024-06-02 05:53:18][UiAutomator2] Relaxing hidden api policy
[2024-06-02 05:53:18][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 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''
[2024-06-02 05:53:19][AndroidDriver] No app sent in, not parsing package/activity
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 wait-for-device'
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell echo ping'
[2024-06-02 05:53:19][AndroidDriver] Pushing settings apk to device...
[2024-06-02 05:53:19][ADB] Getting install status for io.appium.settings
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell dumpsys package io.appium.settings'
[2024-06-02 05:53:19][ADB] 'io.appium.settings' is installed
[2024-06-02 05:53:19][ADB] Getting package info for 'io.appium.settings'
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell dumpsys package io.appium.settings'
[2024-06-02 05:53:19][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')
[2024-06-02 05:53:19][ADB] There is no need to install/upgrade 'C:\Program Files\Appium Server GUI\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
[2024-06-02 05:53:19][ADB] Getting IDs of all 'io.appium.settings' processes
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell 'pgrep --help; echo $?''
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[2024-06-02 05:53:19][AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell appops set io.appium.settings android:mock_location allow'
[2024-06-02 05:53:19][Logcat] Starting logs capture with command: 'G:\\Program Files\\Java\\sdk\\platform-tools\\adb.exe' -P 5037 -s Q5X7N19605002672 logcat -v threadtime
[2024-06-02 05:53:19][AndroidDriver] Enabling Unicode keyboard support
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell settings get secure default_input_method'
[2024-06-02 05:53:19][AndroidDriver] Unsetting previous IME io.appium.settings/.UnicodeIME
[2024-06-02 05:53:19][AndroidDriver] Setting IME to 'io.appium.settings/.UnicodeIME'
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell ime enable io.appium.settings/.UnicodeIME'
[2024-06-02 05:53:19][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell ime set io.appium.settings/.UnicodeIME'
[2024-06-02 05:53:20][UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8201
[2024-06-02 05:53:20][ADB] Forwarding system: 8201 to device: 6790
[2024-06-02 05:53:20][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 forward tcp:8201 tcp:6790'
[2024-06-02 05:53:20][UiAutomator2] Server package at 'C:\Program Files\Appium Server GUI\resources\app\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 'C:\Users\dell\AppData\Local\Temp\202452-27964-axgrd9.ghnb' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[2024-06-02 05:53:20][UiAutomator2] Server package at 'C:\Program Files\Appium Server GUI\resources\app\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 'C:\Users\dell\AppData\Local\Temp\202452-27964-axgrd9.ghnb' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.
[2024-06-02 05:53:20][ADB] Getting install status for io.appium.uiautomator2.server
[2024-06-02 05:53:20][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell dumpsys package io.appium.uiautomator2.server'
[2024-06-02 05:53:20][ADB] 'io.appium.uiautomator2.server' is installed
[2024-06-02 05:53:20][ADB] Getting package info for 'io.appium.uiautomator2.server'
[2024-06-02 05:53:20][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell dumpsys package io.appium.uiautomator2.server'
[2024-06-02 05:53:21][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')
[2024-06-02 05:53:21][UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[2024-06-02 05:53:21][ADB] Checking app cert for C:\Users\dell\AppData\Local\Temp\202452-27964-axgrd9.ghnb\appium-uiautomator2-server-v4.27.0.apk
[2024-06-02 05:53:21][ADB] Using 'apksigner.jar' from 'G:\Program Files\Java\sdk\build-tools\29.0.3\lib\apksigner.jar'
[2024-06-02 05:53:21][ADB] Starting apksigner: 'G:\\Program Files\\Java\\jdk-22\\bin\\java.exe' -Xmx1024M -Xss1m -jar 'G:\\Program Files\\Java\\sdk\\build-tools\\29.0.3\\lib\\apksigner.jar' verify --print-certs C:\\Users\\dell\\AppData\\Local\\Temp\\202452-27964-axgrd9.ghnb\\appium-uiautomator2-server-v4.27.0.apk
[2024-06-02 05:53:21][ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[2024-06-02 05:53:21][ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[2024-06-02 05:53:21][ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[2024-06-02 05:53:21][ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[2024-06-02 05:53:21][ADB] 
[2024-06-02 05:53:21][ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.27.0.apk'
[2024-06-02 05:53:21][ADB] 'C:\Users\dell\AppData\Local\Temp\202452-27964-axgrd9.ghnb\appium-uiautomator2-server-v4.27.0.apk' is signed with the default certificate
[2024-06-02 05:53:21][ADB] Getting install status for io.appium.uiautomator2.server.test
[2024-06-02 05:53:21][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell dumpsys package io.appium.uiautomator2.server.test'
[2024-06-02 05:53:21][ADB] 'io.appium.uiautomator2.server.test' is installed
[2024-06-02 05:53:21][ADB] Checking app cert for C:\Users\dell\AppData\Local\Temp\202452-27964-axgrd9.ghnb\appium-uiautomator2-server-debug-androidTest.apk
[2024-06-02 05:53:21][ADB] Starting apksigner: 'G:\\Program Files\\Java\\jdk-22\\bin\\java.exe' -Xmx1024M -Xss1m -jar 'G:\\Program Files\\Java\\sdk\\build-tools\\29.0.3\\lib\\apksigner.jar' verify --print-certs C:\\Users\\dell\\AppData\\Local\\Temp\\202452-27964-axgrd9.ghnb\\appium-uiautomator2-server-debug-androidTest.apk
[2024-06-02 05:53:22][ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[2024-06-02 05:53:22][ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[2024-06-02 05:53:22][ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[2024-06-02 05:53:22][ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[2024-06-02 05:53:22][ADB] 
[2024-06-02 05:53:22][ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
[2024-06-02 05:53:22][ADB] 'C:\Users\dell\AppData\Local\Temp\202452-27964-axgrd9.ghnb\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[2024-06-02 05:53:22][UiAutomator2] Server packages are not going to be (re)installed
[2024-06-02 05:53:22][UiAutomator2] Waiting up to 30000ms for services to be available
[2024-06-02 05:53:22][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell pm list instrumentation'
[2024-06-02 05:53:22][UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[2024-06-02 05:53:22][ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[2024-06-02 05:53:22][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",";"]]
[2024-06-02 05:53:22][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[2024-06-02 05:53:22][UiAutomator2] No app capability. Assuming it is already on the device
[2024-06-02 05:53:22][UiAutomator2] Performing shallow cleanup of automation leftovers
[2024-06-02 05:53:22][UiAutomator2] The following obsolete sessions are still running: ["86600d71-a983-4a5e-a3da-4c27fd8ab244"]
[2024-06-02 05:53:22][UiAutomator2] Cleaning up 1 obsolete session
[2024-06-02 05:53:23][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell am force-stop io.appium.uiautomator2.server.test'
[2024-06-02 05:53:23][UiAutomator2] Starting UIAutomator2 server 4.27.0
[2024-06-02 05:53:23][UiAutomator2] Using UIAutomator2 server from 'C:\Program Files\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.27.0.apk' and test from 'C:\Program Files\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[2024-06-02 05:53:23][UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online...
[2024-06-02 05:53:23][ADB] Creating ADB subprocess with args: ["-P",5037,"-s","Q5X7N19605002672","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[2024-06-02 05:53:23][WD Proxy] Matched '/status' to command name 'getStatus'
[2024-06-02 05:53:23][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[2024-06-02 05:53:23][WD Proxy] socket hang up
[2024-06-02 05:53:24][Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[2024-06-02 05:53:24][WD Proxy] Matched '/status' to command name 'getStatus'
[2024-06-02 05:53:24][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[2024-06-02 05:53:24][WD Proxy] socket hang up
[2024-06-02 05:53:25][WD Proxy] Matched '/status' to command name 'getStatus'
[2024-06-02 05:53:25][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[2024-06-02 05:53:25][WD Proxy] socket hang up
[2024-06-02 05:53:26][WD Proxy] Matched '/status' to command name 'getStatus'
[2024-06-02 05:53:26][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body
[2024-06-02 05:53:26][WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[2024-06-02 05:53:26][UiAutomator2] The initialization of the instrumentation process took 3109ms
[2024-06-02 05:53:26][WD Proxy] Matched '/session' to command name 'createSession'
[2024-06-02 05:53:26][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","deviceName":":VOG_AL10","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2"},"platformName":"Android","platformVersion":"10","deviceName":"Q5X7N19605002672","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2","deviceUDID":"Q5X7N19605002672"}],"alwaysMatch":{}}}
[2024-06-02 05:53:26][WD Proxy] Got response with status 200: {"sessionId":"5818c854-ef81-4b4b-b669-4b752caddd7d","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"10","deviceName":":VOG_AL10","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2"},"platformName":"Android","platformVersion":"10","deviceName":"Q5X7N19605002672","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2","deviceUDID":"Q5X7N19605002672"}],"alwaysMatch":{}},"sessionId":"5818c854-ef81-4b4b-b669-4b752caddd7d"}}
[2024-06-02 05:53:26][WD Proxy] Determined the downstream protocol as 'W3C'
[2024-06-02 05:53:26][WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8201/wd/hub/session/5818c854-ef81-4b4b-b669-4b752caddd7d/appium/device/info] with no body
[2024-06-02 05:53:26][WD Proxy] Got response with status 200: {"sessionId":"5818c854-ef81-4b4b-b669-4b752caddd7d","value":{"androidId":"4247a7c9b8af9bea","apiVersion":"29","bluetooth":{"state":"OFF"},"brand":"HUAWEI","carrierName":"中国电信","displayDensity":480,"locale":"zh_CN_#Hans","manufacturer":"HUAWEI","model":"VOG-AL10","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":-45,"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":"1080x2340","timeZone":"Asia/Shanghai"}}
[2024-06-02 05:53:26][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell dumpsys window'
[2024-06-02 05:53:26][AndroidDriver] Screen already unlocked, doing nothing
[2024-06-02 05:53:26][UiAutomator2] Starting 'com.sankuai.meituan/com.meituan.android.pt.homepage.activity.MainActivity and waiting for 'com.sankuai.meituan/com.meituan.android.pt.homepage.activity.MainActivity'
[2024-06-02 05:53:26][ADB] Running 'G:\Program Files\Java\sdk\platform-tools\adb.exe -P 5037 -s Q5X7N19605002672 shell am start -W -n com.sankuai.meituan/com.meituan.android.pt.homepage.activity.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[2024-06-02 05:53:28][WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8201/wd/hub/session/5818c854-ef81-4b4b-b669-4b752caddd7d/appium/device/pixel_ratio] with no body
[2024-06-02 05:53:28][WD Proxy] Got response with status 200: {"sessionId":"5818c854-ef81-4b4b-b669-4b752caddd7d","value":3}
[2024-06-02 05:53:28][WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[2024-06-02 05:53:28][WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8201/wd/hub/session/5818c854-ef81-4b4b-b669-4b752caddd7d/appium/device/system_bars] with no body
[2024-06-02 05:53:28][WD Proxy] Got response with status 200: {"sessionId":"5818c854-ef81-4b4b-b669-4b752caddd7d","value":{"statusBar":104}}
[2024-06-02 05:53:28][WD Proxy] Matched '/window/current/size' to command name 'getWindowSize'
[2024-06-02 05:53:28][WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8201/wd/hub/session/5818c854-ef81-4b4b-b669-4b752caddd7d/window/current/size] with no body
[2024-06-02 05:53:28][WD Proxy] Got response with status 200: {"sessionId":"5818c854-ef81-4b4b-b669-4b752caddd7d","value":{"height":2118,"width":1080}}
[2024-06-02 05:53:28][Appium] New AndroidUiautomator2Driver session created successfully, session e2d696a2-5d0b-4f0d-865b-863543d0fb51 added to master session list
[2024-06-02 05:53:28][BaseDriver] Event 'newSessionStarted' logged at 1717322008966 (17:53:28 GMT+0800 (中国标准时间))
[2024-06-02 05:53:28][W3C (e2d696a2)] Cached the protocol value 'W3C' for the new session e2d696a2-5d0b-4f0d-865b-863543d0fb51
[2024-06-02 05:53:28][W3C (e2d696a2)] 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","deviceName":":VOG_AL10","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2"},"platformName":"Android","platformVersion":"10","deviceName":"Q5X7N19605002672","appPackage":"com.sankuai.meituan","appActivity":"com.meituan.android.pt.homepage.activity.MainActivity","unicodeKeyboard":true,"resetKeyboard":true,"noReset":true,"newCommandTimeout":6000,"automationName":"UiAutomator2","deviceUDID":"Q5X7N19605002672","deviceApiLevel":29,"deviceScreenSize":"1080x2340","deviceScreenDensity":480,"deviceModel":"VOG-AL10","deviceManufacturer":"HUAWEI","pixelRatio":3,"statBarHeight":104,"vie...
[2024-06-02 05:53:28][HTTP] <-- POST /wd/hub/session 200 10486 ms - 1142
[2024-06-02 05:53:28][HTTP] 

 4.关于Android_sdk中启用uiautomatorviewer.bat出现闪退的解决办法_uiautomatorviewer.bat闪退怎么办-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/qq_43100098/article/details/134704953?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171732245216800211529102%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=171732245216800211529102&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_click~default-2-134704953-null-null.142^v100^pc_search_result_base5&utm_term=uiautomatorviewer.bat%E9%97%AA%E9%80%80&spm=1018.2226.3001.4187

https://login-ext.identity.oraclecloud.com/oauth2/v1/authorize?response_mode=form_post&response_type=id_token&scope=openid&IDCS_CG_ENC_VER=v2&state=9874djcUCQ0FUDfaSbScOOm0eJY_FYT-VwlInnJNQvY&nonce=IfuMLiyCbsAjS-azF2DksdTHyi-fxbgZk8McRgsb1DY&IDCS_IS_CLOUDGATE=true&X-HOST-IDENTIFIER-NAME=www.oracle.com&idcs_app_name=b6bd2c15850843e9b976040114f11258&idcs_app_resource_url=https%3A%2F%2Fwww.oracle.com%2Fwebapps%2Fredirect%2Fsignon%3Fnexturl%3Dhttps%3A%2F%2Fdownload.oracle.com%2Fotn%2Fjava%2Fjdk%2F8u201-b09%2F42970487e3af4f5aa5bca3f542482c60%2Fjdk-8u201-windows-x64.exe&client_id=2575943aa3ee4cf692fdf1ee85200ffc&IDCS_CG_ENC=true&enc=kiVkGWCHVQl3AgAAPQIAABAgPQIAACMCAAAQAOPg6XQ4oeoV6m3qHP5YZmrzuGBLwQRQhmLodAEZXJ5WGOIufh2XdXkilFoKe1t-p3rPXTIm_VJgsTDFG8Rq4popde9bWCZryGOL9xXBbwRRv5nTTlixq7az_9cp3VHiILt-r0UQXcE94-cNKd9SG8efRt4-AJiQ0ATWp7JuUFNQvrduMnQXLv_7Wm1jcVZ08KLVvl56OPbF3khgGDS_9jPehkYF0GT0TVL74L-gdh7QMfl44QUGGyjDNdOvhMB2vZtKGT8DcYT6-eMWeHpgZ2JDCsmVIBk2Yu3OdoEEjxecu8A4cJOdPrFpuklX4ZI1kctf4_xhZkJwnWB8jCFP0g_3R7UnKX4XIsfgbKwKXPbNPRB-nIF8gJxrek9_CQV9uHIZ6kuYzCViOkLp25lS0XsXBgUJ__5ziK4fz-dDcEH0U0BgwnfylI0-yI__9g2jhB8gN5w_37rBCJyBF0bpPQtdMS1uXB-HSZUwcfKKNWat2DBKfHrAfigGLjv1AP1y5y4qwLpeGhb3XBrY2UTT_jb439w5NINuuUv6fmCZtuWfMe-AbnUTH_vBXlq8uQqF_walPPbilG9cseXRg5H0zQ1x56wI7aFIP9BTiulXP1l1BIfKM8ACSjLYtmS4A-Ji4Yx50YwSgMeRnvTvLp9AMUt4VmIxTI3j9_x02JnD6UqslWDULV8i_yS0yd0wf8Vlc2wHSRvri3nQaHBcBD3yvv83J9BGswrfJda21hhSXLAKQAubsFRt3tDpKNCwf6CRvxnxktoquPCSkhTYdZmH6Oa9k7Xzsto29qDr-3AYLomLLNm-

成功的解决方法,我的情况

关于Android_sdk中启用uiautomatorviewer.bat出现闪退的解决办法_uiautomatorviewer.bat闪退怎么办-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/qq_43100098/article/details/134704953?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171732245216800211529102%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=171732245216800211529102&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_click~default-2-134704953-null-null.142^v100^pc_search_result_base5&utm_term=uiautomatorviewer.bat%E9%97%AA%E9%80%80&spm=1018.2226.3001.4187 

 set java_exe=G:\Program Files\Java\jdk1.8.0_202\bin\java.exe
rem call lib\find_java.bat

 5.ui automator viewer 的使用

 

 

自动化框架uiautomator2和weditor的安装和使用_weditor 下载-CSDN博客icon-default.png?t=N7T8https://blog.csdn.net/yangyue0205/article/details/126735981?ops_request_misc=&request_id=&biz_id=102&utm_term=%E5%A6%82%E6%9E%9C%E8%AE%BE%E5%A4%87%E4%B8%8A%E6%B2%A1%E6%9C%89%E5%AE%89%E8%A3%85uiautomator2%EF%BC%8C%E4%BD%A0%E9%9C%80%E8%A6%81%E5%9C%A8%E8%AE%BE%E5%A4%87%E4%B8%8A%E5%AE%89&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-126735981.142^v100^pc_search_result_base5&spm=1018.2226.3001.4187 

 未完。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/673000.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

Git操作笔记

学git已经好多次了。但是还是会忘记很多的东西&#xff0c;一些常用的操作命令和遇到的bug以后在这边记录汇总下 一.github图片展示 图片挂载&#xff0c;我是创建了一个库专门存图片&#xff0c;然后在github的md中用专用命令展示图片&#xff0c;这样你的md就不会全是文字那…

Android O Camera深度研究

目录 Adnroid O之前的Android camera软件框架 Adnroid O camera软件框架 Passthrough Mode Binderized mode Wrapper shim for libhardware HALs Wrapper shim for libhardware HALs Customized Treble Camera HAL/framework Camera HAL transition and removal plan …

【限免】杂波环境下线性调频脉冲、巴克码、频率步进脉冲雷达MTI、脉冲压缩【附MATLAB代码】

来源&#xff1a;微信公众号&#xff1a;EW Frontier 本代码主要模拟杂波环境&#xff08;飞机、地杂波、鸟类信号&#xff09;下&#xff0c;Chirp脉冲、巴克码脉冲、频率步进脉冲雷达信号的脉冲压缩及MTI、​匹配滤波。 MATLAB主代码 % 定义参数 fs 1000; % 采样率 T 1; …

MYSQL一、MYSQL的了解

一、MySQL概述 1、数据库相关概念 为了方便&#xff0c;我们一般把mysql数据库管理系统简称位mysql数据库 通过可以操作数据库管理系统&#xff0c;然后再通过数据库管理系统操作&#xff08;数据库&#xff09;和&#xff08;数据库里面的数据&#xff09; 2、当前主流的关系…

Vue3 - Mac系统用文本编辑写html不显示效果的坑

平时在win系统下&#xff0c;可以直接对文本进行编辑&#xff0c;非常的舒服。 在mac系统中&#xff0c;也有类似的功能&#xff0c;就是文本编辑&#xff0c;没想到居然还有坑。 这是我mac系统中创建的html文件&#xff0c;想着没有几行代码&#xff0c;就没有开编辑器了&am…

Java 异常

一、异常的继承体系图 如图 二、Throwable类常用的方法 1.获取异常的信息 public String getMessage() {return detailMessage; } 2.获取异常的原因 // 获取异常的原因 public String getLocalizedMessage() {return getMessage(); } 3.打印异常信息 // 打印异常信息 publi…

NDIS Filter开发-OID 请求

NDIS 定义对象标识符 (OID) 值来标识适配器参数&#xff0c;其中包括操作参数&#xff0c;例如设备特征、可配置的设置和统计信息。 Filter驱动程序可以查询或设置基础驱动程序的操作参数&#xff0c;或过滤/覆盖顶层驱动程序的 OID 请求。 NDIS 还为 NDIS 6.1 及更高版本的Fi…

STM32_SPI

1、SPI简介 1.1 什么是SPI SPI&#xff0c;即Serial Peripheral Interface&#xff0c;串行外设接口。SPI是一种高速的、全双工、同步的串行通信总线&#xff1b;SPI采用主从方式工作&#xff0c;一般有一个主设备和一个或多个从设备&#xff1b;SPI需要至少4根线&#xff0c;…

【操作与配置】VS2017与MFC环境配置

【操作与配置】VS2017与MFC环境配置 概述 Visual Studio 是一款强大且多功能的集成开发环境&#xff08;IDE&#xff09;&#xff0c;适用于软件开发人员和团队。使用此应用程序&#xff0c;您可以构建和调试现代Web应用程序&#xff0c;并利用扩展帮助探索几乎任何编程语言。…

springboot高校网上选课系统-计算机毕业设计源码85583

摘 要 本论文主要论述了如何使用JAVA语言开发一个高校网上选课系统&#xff0c;本系统将严格按照软件开发流程进行各个阶段的工作&#xff0c;采用B/S架构&#xff0c;面向对象编程思想进行项目开发。在引言中&#xff0c;作者将论述高校网上选课系统的当前背景以及系统开发的目…

重复文件怎么查找并清理?电脑重复文件清理工具分享:4个

在日常使用电脑的过程中&#xff0c;我们不可避免地会遇到各种重复文件的问题。这些重复文件不仅占据了宝贵的存储空间&#xff0c;还可能导致系统性能下降&#xff0c;甚至引发一些不必要的问题。因此&#xff0c;如何有效地查找并清理这些重复文件成为了许多用户关注的焦点。…

牛客BM85 验证IP地址【中等 字符串 Java/Go/PHP】

题目 题目链接&#xff1a; https://www.nowcoder.com/practice/55fb3c68d08d46119f76ae2df7566880 https://www.lintcode.com/problem/1222/description 思路 直接模拟&#xff0c;注意IPv4,ipv6的条件Java代码 import java.util.*;public class Solution {/*** 验证IP地址…

docker基础,docker安装mysql,docker安装Nginx,docker安装mq,docker基础命令

核心功能操作镜像 Docker安装mysql docker run -d --name mysql -p 3306:3306 -e TZAsia/Shanghai -e MYSQL_ROOT_PASSWORDlcl15604007179 mysql docker的基本操作 docker rm 容器名称即可 docker ps 查看当前运行的容器 docker rm 干掉当前容器 docker logs 查看容器命令日…

Day 41 NGINX详解

Nginx详解 一、HTTP协议 HTTP协议是Hyper Text Transfer Protocol&#xff08;超文本传输协议&#xff09;的缩写,是用于从万维网&#xff08;WWW:World Wide Web &#xff09;服务器传输超文本到本地浏览器的传送协议。 1、HTTP 工作原理 HTTP协议通信流程 WEB Server&…

数组基础-笔记

数组是非常基础的数据结构&#xff0c;实现运用和理解是两回事 数组是存放在连续内存空间上的相同类型的数据的集合 可以方便的通过下表索引的方式获取到下标下对应的数据。 举一个字符数组的例子&#xff1a; 注意两点&#xff1a; 数组下标从0开始 数组内存空间的地址是连…

AOP案例

黑马程序员JavaWeb开发教程 文章目录 一、案例1.1 案例1.2 步骤1.2.1 准备1.2.2 编码 一、案例 1.1 案例 将之前案例中增、删、改相关节后的操作日志记录到数据库表中。 操作日志&#xff1a;日志信息包含&#xff1a;操作人、操作时间、执行方法的全类名、执行方法名、方法…

pytest框架用例命名规则详解

pytest 测试用例的命名规则是为了确保 pytest 能够正确地识别和执行测试用例。 以下是关于 pytest 测试用例命名规则的详细解释&#xff1a; 1 编写单个测试文件 单个测试文件须以‘test_’开头或者以‘_test’结尾 比如我们创建test_case1.py case2_test.py文件。 2 在单个…

【Mac】Lightroom Classic 2024(LrC 2024中文版) v13.1安装教程

软件介绍 Lightroom Classic 2024 for Mac是一款功能强大的照片编辑和组织软件&#xff0c;专为专业摄影师和爱好者设计。它提供了一系列工具和功能来增强和管理您的数码照片。Lightroom Classic 2024在照片组织和管理方面进行了重大改进。它新增了一个智能化的“发现”面板&a…

电容的电路应用

电容的电路应用 1、陶瓷电容应用于滤波 电源电路&#xff0c;负载电流较小时&#xff0c;可以使用陶瓷电容进行滤波。 C18电容起到滤波作用&#xff0c;因为负载电流比较小&#xff0c;所以可以用小容量的电容&#xff0c;比如经典的10uF、1uF、4.7uF都是可以的 滤波过程&am…

名下企业查询,清晰明了;在线操作,方便快捷

在现代社会&#xff0c;越来越多的人开始涉足创业和投资&#xff0c;拥有自己的企业成为一种时尚。然而&#xff0c;随之而来的是繁琐的企业注册流程和复杂的信息查询。为了解决这个问题&#xff0c;挖数据平台推出了一项名下企业查询接口&#xff0c;提供了一种方便快捷的方式…