当前位置:   article > 正文

Java自动化测试(adb常用命令 32)

waiting up to 30000ms for uiautomator2 to be online...

adb

adb「Android Bebug Bridge」是用来连接安卓和PC的桥梁

常用操作:

  • 安装卸载apk

  • 推送拷贝文件

  • 查看设备硬件信息

  • 查看应用程序占用资源

  • 在设备执行shell命令

常用命令

帮助命令

$ adb help

检测连接到电脑的安卓设备

  1. $ adb devices
  2. $ adb connect 127.0.0.1:62001

从手机上拉取信息到电脑上

$ adb pull <手机路径> <本地路径>

从电脑上提交信息到手机上

路径不能有中文和特殊字符

$ adb push <本地路径> <手机路径>

安装软件

$ adb install <本地软件路径>

卸载软件

$ adb uninstall <包名>

登录设备进入shell

$ adb shell

终止adb服务

$ adb kill-server

启动adb服务

$ adb start-server

启动App

$ adb shell am start -n <包名>/<入口>

清除应用数据和缓存

$ adb shell pm clear <包名>

坐标点击

$ adb shell input tap x坐标 y坐标

列出所有包名

  1. $ adb shell pm list packages 
  2. $ -s 系统apk路径及包名
  3. -3 用户apk路径及包名

打印日志

  1. $ adb logcat
  2. $ adb logcat > <本地路径>

截图

$ adb shell screencap -p /sdcard/Pictures/Screenshots/a.png

appium打印内容解析(了解)

启动Appium的欢迎信息

  1. [Appium] Welcome to Appium v1.17.1
  2. [Appium] Non-default server args:
  3. [Appium]   address: 127.0.0.1
  4. [Appium]   allowInsecure: {
  5. [Appium]   }
  6. [Appium]   denyInsecure: {
  7. [Appium]   }
  8. [Appium] Appium REST http interface listener started on 127.0.0.1:4723
  9. [HTTP] --> POST /wd/hub/session
  10. [HTTP] {"desiredCapabilities":{"appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","platformName":"Android","deviceName":"127.0.0.1:62001"},"capabilities":{"firstMatch":[{"appium:appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appium:appPackage":"com.lemon.lemonban","appium:deviceName":"127.0.0.1:62001","platformName":"android"}]}}
  11. [W3C] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","platformName":"Android","deviceName":"127.0.0.1:62001"},null,{"firstMatch":[{"appium:appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appium:appPackage":"com.lemon.lemonban","appium:deviceName":"127.0.0.1:62001","platformName":"android"}]}]
  12. [BaseDriver] Event 'newSessionRequested' logged at 1601112368099 (17:26:08 GMT+0800 (中国标准时间))
  13. [Appium] 
  14. [Appium] ======================================================================
  15. [Appium]   DEPRECATION WARNING:
  16. [Appium] 
  17. [Appium]   The 'automationName' capability was not provided in the desired 
  18. [Appium]   capabilities for this Android session
  19. [Appium] 
  20. [Appium]   Setting 'automationName=UiAutomator2' by default and using the 
  21. [Appium]   UiAutomator2 Driver
  22. [Appium] 
  23. [Appium]   The next major version of Appium (2.x) will **require** the 
  24. [Appium]   'automationName' capability to be set for all sessions on all 
  25. [Appium]   platforms
  26. [Appium] 
  27. [Appium]   In previous versions (Appium <= 1.13.x), the default was 
  28. [Appium]   'automationName=UiAutomator1'
  29. [Appium] 
  30. [Appium]   If you wish to use that automation instead of UiAutomator2, please 
  31. [Appium]   add 'automationName=UiAutomator1' to your desired capabilities
  32. [Appium] 
  33. [Appium]   For more information about drivers, please visit 
  34. [Appium]   http://appium.io/docs/en/about-appium/intro/ and explore the 
  35. [Appium]   'Drivers' menu
  36. [Appium] 
  37. [Appium] ======================================================================
  38. [Appium] 
  39. [Appium] Appium v1.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session
  40. [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
  41. [BaseDriver] Creating session with W3C capabilities: {
  42. [BaseDriver]   "alwaysMatch": {
  43. [BaseDriver]     "platformName""android",
  44. [BaseDriver]     "appium:appActivity""com.lemon.lemonban.activity.WelcomeActivity",
  45. [BaseDriver]     "appium:appPackage""com.lemon.lemonban",
  46. [BaseDriver]     "appium:deviceName""127.0.0.1:62001"
  47. [BaseDriver]   },
  48. [BaseDriver]   "firstMatch": [
  49. [BaseDriver]     {}
  50. [BaseDriver]   ]
  51. [BaseDriver] }
  52. [BaseDriver] Session created with session id: 56b02400-065d-4d7e-8a8f-a074c85ef643
  53. [UiAutomator2] Starting 'com.lemon.lemonban' directly on the device

使用环境变量中配置的adb.exe

  1. [ADB] Found 1 'build-tools' folders under '/Users/zhongxin/Library/Android/sdk' (newest first):
  2. [ADB]     /Users/zhongxin/Library/Android/sdk/build-tools/30.0.2
  3. [ADB] Using 'adb' from '/Users/zhongxin/Library/Android/sdk/platform-tools/adb'
  4. [AndroidDriver] Retrieving device list
  5. [ADB] Trying to find a connected android device
  6. [ADB] Getting connected devices...
  7. [ADB] Connected devices: [{"udid":"127.0.0.1:62001","state":"device"}]
  8. [AndroidDriver] Using device: 127.0.0.1:62001

连接设备,并检测设备API版本号

  1. [ADB] Using 'adb' from '/Users/zhongxin/Library/Android/sdk/platform-tools/adb'
  2. [ADB] Setting device id to 127.0.0.1:62001
  3. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell getprop ro.build.version.sdk'
  4. [ADB] Current device property 'ro.build.version.sdk'25
  5. [ADB] Device API level: 25
  6. [AndroidDriver] No app sent in, not parsing package/activity

等待设备连接

  1. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 wait-for-device'
  2. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell echo ping'
  3. [AndroidDriver] Pushing settings apk to device...
  4. [ADB] Getting install status for io.appium.settings

检测Appium Setting安装状态

  1. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell dumpsys package io.appium.settings'
  2. [ADB] 'io.appium.settings' is installed
  3. [ADB] Getting package info for 'io.appium.settings'
  4. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell dumpsys package io.appium.settings'
  5. [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.1.0' >= '3.1.0')
  6. [ADB] There is no need to install/upgrade '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
  7. [ADB] Getting IDs of all 'io.appium.settings' processes
  8. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell 'pgrep --help; echo $?''
  9. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell 'pgrep ^appium\\.settings$ || pgrep ^io\\.appium\\.setti$''
  10. [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
  11. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell appops set io.appium.settings android\:mock_location allow'
  12. [Logcat] Starting logcat capture

端口转发Appium Server端口8200连接到设备部中UiAutomator2 Server 6790

  1. [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
  2. [ADB] Forwarding system: 8200 to device: 6790
  3. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 forward tcp\:8200 tcp\:6790'

检测uiautomator2.server\uiautomator2.server.test安装状态

  1. [ADB] Getting install status for io.appium.uiautomator2.server
  2. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell dumpsys package io.appium.uiautomator2.server'
  3. [ADB] 'io.appium.uiautomator2.server' is installed
  4. [ADB] Getting package info for 'io.appium.uiautomator2.server'
  5. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell dumpsys package io.appium.uiautomator2.server'
  6. [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.5.5' >= '4.5.5')
  7. [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled

验证uiautomator2.server\uiautomator2.server.test证书

  1. [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk
  2. [ADB] Using 'apksigner.jar' from '/Users/zhongxin/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar'
  3. [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/zhongxin/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk
  4. [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
  5. [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
  6. [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
  7. [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
  8. [ADB] 
  9. [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate
  10. [ADB] Getting install status for io.appium.uiautomator2.server.test
  11. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell dumpsys package io.appium.uiautomator2.server.test'
  12. [ADB] 'io.appium.uiautomator2.server.test' is installed
  13. [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
  14. [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/zhongxin/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
  15. [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
  16. [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
  17. [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
  18. [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
  19. [ADB] 
  20. [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
  21. [UiAutomator2] Server packages are not going to be (re)installed
  22. [UiAutomator2] Waiting up to 30000ms for services to be available
  23. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell pm list instrumentation'
  24. [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
  25. [UiAutomator2] No app capability. Assuming it is already on the device

检测柠檬班App安装状态

  1. [ADB] Getting install status for com.lemon.lemonban
  2. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell dumpsys package com.lemon.lemonban'
  3. [ADB] 'com.lemon.lemonban' is installed

强制关闭和清空柠檬班app的缓存

  1. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell am force-stop com.lemon.lemonban'
  2. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell pm clear com.lemon.lemonban'
  3. [AndroidDriver] Performed fast reset on the installed 'com.lemon.lemonban' application (stop and clear)
  4. [UiAutomator2] Performing shallow cleanup of automation leftovers
  5. [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up)
  6. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell am force-stop io.appium.uiautomator2.server.test'
  7. [UiAutomator2] Starting UIAutomator2 server 4.5.5
  8. [UiAutomator2] Using UIAutomator2 server from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
  9. [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online...
  10. [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","127.0.0.1:62001","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
  11. [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
  12. [WD Proxy] Matched '/status' to command name 'getStatus'
  13. [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
  14. [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}
  15. [WD Proxy] Matched '/status' to command name 'getStatus'
  16. [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
  17. [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}}
  18. [UiAutomator2] The initialization of the instrumentation process took 2035ms
  19. [WD Proxy] Matched '/session' to command name 'createSession'
  20. [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","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001","deviceUDID":"127.0.0.1:62001"}],"alwaysMatch":{}}}
  21. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":{"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001","deviceUDID":"127.0.0.1:62001"}],"alwaysMatch":{}}}}
  22. [WD Proxy] Determined the downstream protocol as 'W3C'
  23. [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/9d7c96d1-9a56-41dc-ae9a-82078c4f7597/appium/device/info] with no body
  24. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":{"androidId":"784F438584880000","manufacturer":"samsung","model":"SM-N950N","brand":"samsung","apiVersion":"25","platformVersion":"7.1.2","carrierName":"CMCC","realDisplaySize":"900x1600","displayDensity":320,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":"\"WiredSSID\"","isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_WIFI","networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_INTERNET,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_VALIDATED","linkUpstreamBandwidthKbps":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-55,"networkSpecifier":null,"SSID":null}}],"locale":"zh_CN","timeZone":"Asia\/Shanghai","bluetooth":{"state":"OFF"}}}
  25. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell dumpsys window'
  26. [AndroidDriver] Screen already unlocked, doing nothing
  27. [UiAutomator2] Starting 'com.lemon.lemonban/com.lemon.lemonban.activity.WelcomeActivity and waiting for 'com.lemon.lemonban/com.lemon.lemonban.activity.WelcomeActivity'

启动柠檬班App

  1. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell am start -W -n com.lemon.lemonban/com.lemon.lemonban.activity.WelcomeActivity -S'
  2. [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/9d7c96d1-9a56-41dc-ae9a-82078c4f7597/appium/device/pixel_ratio] with body: {}
  3. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":2}
  4. [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
  5. [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/9d7c96d1-9a56-41dc-ae9a-82078c4f7597/appium/device/system_bars] with body: {}
  6. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":{"statusBar":48}}
  7. [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize'
  8. [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/9d7c96d1-9a56-41dc-ae9a-82078c4f7597/window/current/size] with body: {}
  9. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":{"height":1600,"width":900}}
  10. [Appium] New AndroidUiautomator2Driver session created successfully, session 56b02400-065d-4d7e-8a8f-a074c85ef643 added to master session list
  11. [BaseDriver] Event 'newSessionStarted' logged at 1601112375537 (17:26:15 GMT+0800 (中国标准时间))
  12. [W3C (56b02400)] Cached the protocol value 'W3C' for the new session 56b02400-065d-4d7e-8a8f-a074c85ef643
  13. [W3C (56b02400)] 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","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001","deviceUDID":"127.0.0.1:62001","deviceApiLevel":25,"platformVersion":"7.1.2","deviceScreenSize":"900x1600","deviceScreenDensity":320,"deviceModel":"SM-N950N","deviceManufacturer":"samsung","pixelRatio":2,"statBarHeight":48,"viewportRect":{"left":0,"top":48,"width":900,"height":1552}}}
  14. [HTTP] <-- POST /wd/hub/session 200 7445 ms - 869
  15. [HTTP] 
  16. [HTTP] --> GET /wd/hub/session/56b02400-065d-4d7e-8a8f-a074c85ef643
  17. [HTTP] {}
  18. [W3C (56b02400)] Calling AppiumDriver.getSession() with args: ["56b02400-065d-4d7e-8a8f-a074c85ef643"]
  19. [UiAutomator2] Getting session details from server to mix in
  20. [WD Proxy] Matched '/' to command name 'getSession'
  21. [WD Proxy] Proxying [GET /] to [GET http://127.0.0.1:8200/wd/hub/session/9d7c96d1-9a56-41dc-ae9a-82078c4f7597] with body: {}
  22. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":{}}
  23. [W3C (56b02400)] Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001","deviceUDID":"127.0.0.1:62001","deviceApiLevel":25,"platformVersion":"7.1.2","deviceScreenSize":"900x1600","deviceScreenDensity":320,"deviceModel":"SM-N950N","deviceManufacturer":"samsung","pixelRatio":2,"statBarHeight":48,"viewportRect":{"left":0,"top":48,"width":900,"height":1552}}
  24. [HTTP] <-- GET /wd/hub/session/56b02400-065d-4d7e-8a8f-a074c85ef643 200 8 ms - 801
  25. [HTTP] 
  26. [HTTP] --> GET /wd/hub/session/56b02400-065d-4d7e-8a8f-a074c85ef643
  27. [HTTP] {}
  28. [W3C (56b02400)] Calling AppiumDriver.getSession() with args: ["56b02400-065d-4d7e-8a8f-a074c85ef643"]
  29. [UiAutomator2] Getting session details from server to mix in
  30. [WD Proxy] Matched '/' to command name 'getSession'
  31. [WD Proxy] Proxying [GET /] to [GET http://127.0.0.1:8200/wd/hub/session/9d7c96d1-9a56-41dc-ae9a-82078c4f7597] with body: {}
  32. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":{}}
  33. [W3C (56b02400)] Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"127.0.0.1:62001","deviceUDID":"127.0.0.1:62001","deviceApiLevel":25,"platformVersion":"7.1.2","deviceScreenSize":"900x1600","deviceScreenDensity":320,"deviceModel":"SM-N950N","deviceManufacturer":"samsung","pixelRatio":2,"statBarHeight":48,"viewportRect":{"left":0,"top":48,"width":900,"height":1552}}
  34. [HTTP] <-- GET /wd/hub/session/56b02400-065d-4d7e-8a8f-a074c85ef643 200 10 ms - 801
  35. [HTTP] 
  36. [BaseDriver] Shutting down because we waited 60 seconds for a command
  37. [Appium] Closing session, cause was 'New Command Timeout of 60 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability'
  38. [Appium] Removing session '56b02400-065d-4d7e-8a8f-a074c85ef643' from our master session list
  39. [UiAutomator2] Deleting UiAutomator2 session
  40. [UiAutomator2] Deleting UiAutomator2 server session
  41. [WD Proxy] Matched '/' to command name 'deleteSession'
  42. [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8200/wd/hub/session/9d7c96d1-9a56-41dc-ae9a-82078c4f7597] with no body
  43. [WD Proxy] Got response with status 200: {"sessionId":"9d7c96d1-9a56-41dc-ae9a-82078c4f7597","value":null}
  44. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 shell am force-stop com.lemon.lemonban'
  45. [Instrumentation] .
  46. [Instrumentation] Time: 63.052
  47. [Instrumentation] 
  48. [Instrumentation] OK (1 test)
  49. [Instrumentation] The process has exited with code 0
  50. [Logcat] Stopping logcat capture
  51. [ADB] Removing forwarded port socket connection: 8200 
  52. [ADB] Running '/Users/zhongxin/Library/Android/sdk/platform-tools/adb -P 5037 -s 127.0.0.1\:62001 forward --remove tcp\:8200'
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/335631
推荐阅读
相关标签
  

闽ICP备14008679号