测试人社区

appium日志分析 求大神指点

The server is running

[Appium] Welcome to Appium v1.17.1

[Appium] Non-default server args:

[Appium] allowInsecure: {

[Appium] }

[Appium] denyInsecure: {

[Appium] }

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

[HTTP] --> POST /wd/hub/session

[HTTP] {“capabilities”:{“firstMatch”:[{“platformName”:“android”,“appium:deviceName”:“127.0.0.1:7555”,“appium:appPackage”:“com.meishubao.client”,“appium:platformVersion”:“6.0.1”,“appium:noReset”:“true”,“appium:unicodeKeyboard”:true}]},“desiredCapabilities”:{“platformName”:“android”,“deviceName”:“127.0.0.1:7555”,“appPackage”:“com.meishubao.client”,“platformVersion”:“6.0.1”,“noReset”:“true”,“unicodeKeyboard”:true}}

[W3C] Calling AppiumDriver.createSession() with args: [{“platformName”:“android”,“deviceName”:“127.0.0.1:7555”,“appPackage”:“com.meishubao.client”,“platformVersion”:“6.0.1”,“noReset”:“true”,“unicodeKeyboard”:true},null,{“firstMatch”:[{“platformName”:“android”,“appium:deviceName”:“127.0.0.1:7555”,“appium:appPackage”:“com.meishubao.client”,“appium:platformVersion”:“6.0.1”,“appium:noReset”:“true”,“appium:unicodeKeyboard”:true}]}]

[BaseDriver] Event ‘newSessionRequested’ logged at 1594530553289 (13:09:13 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.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session

[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided

[BaseDriver] Creating session with W3C capabilities: {

[BaseDriver] “alwaysMatch”: {

[BaseDriver] “platformName”: “android”,

[BaseDriver] “appium:deviceName”: “127.0.0.1:7555”,

[BaseDriver] “appium:appPackage”: “com.meishubao.client”,

[BaseDriver] “appium:platformVersion”: “6.0.1”,

[BaseDriver] “appium:noReset”: “true”,

[BaseDriver] “appium:unicodeKeyboard”: true

[BaseDriver] },

[BaseDriver] “firstMatch”: [

[BaseDriver] {}

[BaseDriver] ]

[BaseDriver] }

[BaseDriver] Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior

[BaseDriver] Session created with session id: 52228af2-d236-4cf0-b52c-c4aec797bd72

[UiAutomator2] Starting ‘com.meishubao.client’ directly on the device

[ADB] Found 2 ‘build-tools’ folders under ‘C:\Users\80669\AppData\Local\Android\Sdk’ (newest first):

[ADB] C:/Users/80669/AppData/Local/Android/Sdk/build-tools/30.0.1

[ADB] C:/Users/80669/AppData/Local/Android/Sdk/build-tools/30.0.0

[ADB] Using ‘adb.exe’ from ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe’

[AndroidDriver] Retrieving device list

[ADB] Trying to find a connected android device

[ADB] Getting connected devices…

[ADB] Connected devices: [{“udid”:“127.0.0.1:7555”,“state”:“device”}]

[AndroidDriver] Looking for a device with Android ‘6.0.1’

[ADB] Setting device id to 127.0.0.1:7555

[ADB] Getting device platform version

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell getprop ro.build.version.release’

[ADB] Current device property ‘ro.build.version.release’: 6.0.1

[AndroidDriver] Using device: 127.0.0.1:7555

[ADB] Using ‘adb.exe’ from ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe’

[ADB] Setting device id to 127.0.0.1:7555

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell getprop ro.build.version.sdk’

[ADB] Current device property ‘ro.build.version.sdk’: 23

[ADB] Device API level: 23

[AndroidDriver] No app sent in, not parsing package/activity

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 wait-for-device’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell echo ping’

[AndroidDriver] Pushing settings apk to device…

[ADB] Getting install status for io.appium.settings

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell dumpsys package io.appium.settings’

[ADB] ‘io.appium.settings’ is installed

[ADB] Getting package info for ‘io.appium.settings’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell dumpsys package io.appium.settings’

[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’)

[ADB] There is no need to install/upgrade ‘C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk’

[ADB] Getting IDs of all ‘io.appium.settings’ processes

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell ‘pgrep --help; echo $?’’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell pgrep -f io\.appium\.settings’

[AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell appops set io.appium.settings android:mock_location allow’

[Logcat] Starting logcat capture

[AndroidDriver] Enabling Unicode keyboard support

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell settings get secure default_input_method’

[AndroidDriver] Unsetting previous IME io.appium.settings/.UnicodeIME

[AndroidDriver] Setting IME to ‘io.appium.settings/.UnicodeIME’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell ime enable io.appium.settings/.UnicodeIME’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell ime set io.appium.settings/.UnicodeIME’

[UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200

[ADB] Forwarding system: 8200 to device: 6790

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 forward tcp:8200 tcp:6790’

[ADB] Getting install status for io.appium.uiautomator2.server

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell dumpsys package io.appium.uiautomator2.server’

[ADB] ‘io.appium.uiautomator2.server’ is installed

[ADB] Getting package info for ‘io.appium.uiautomator2.server’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell dumpsys package io.appium.uiautomator2.server’

[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’)

[UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled

[ADB] Checking app cert for C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk

[ADB] Using ‘apksigner.jar’ from ‘C:\Users\80669\AppData\Local\Android\Sdk\build-tools\30.0.1\lib\apksigner.jar’

[ADB] Starting apksigner: D:\JAVA\bin\java.exe -Xmx1024M -Xss1m -jar C:\Users\80669\AppData\Local\Android\Sdk\build-tools\30.0.1\lib\apksigner.jar verify --print-certs C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk

[ADB] Cannot use apksigner tool for signature verification. Original error: Command ‘D:\JAVA\bin\java.exe -Xmx1024M -Xss1m -jar C:\Users\80669\AppData\Local\Android\Sdk\build-tools\30.0.1\lib\apksigner.jar verify --print-certs C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk’ exited with code 1

[ADB] Defaulting to verify.jar

[ADB] ‘C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk’ is signed with the default certificate

[ADB] Getting install status for io.appium.uiautomator2.server.test

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell dumpsys package io.appium.uiautomator2.server.test’

[ADB] ‘io.appium.uiautomator2.server.test’ is not installed

[ADB] Checking app cert for C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk

[ADB] Starting apksigner: D:\JAVA\bin\java.exe -Xmx1024M -Xss1m -jar C:\Users\80669\AppData\Local\Android\Sdk\build-tools\30.0.1\lib\apksigner.jar verify --print-certs C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk

[ADB] Cannot use apksigner tool for signature verification. Original error: Command ‘D:\JAVA\bin\java.exe -Xmx1024M -Xss1m -jar C:\Users\80669\AppData\Local\Android\Sdk\build-tools\30.0.1\lib\apksigner.jar verify --print-certs C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’ exited with code 1

[ADB] Defaulting to verify.jar

[ADB] ‘C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’ is signed with the default certificate

[UiAutomator2] Server packages are going to be (re)installed

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 help’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 features’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell ‘ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo ERROR’’

[ADB] The current Android API does not support extended ls options. Defaulting to no-options call

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell ‘ls /data/local/tmp/appium_cache 2>&1 || echo ERROR’’

[ADB] The count of applications in the cache: 3

[ADB] The application at ‘C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk’ is already cached to ‘/data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell touch -am /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell pm install -r /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk’

[ADB] The installation of ‘appium-uiautomator2-server-v4.5.5.apk’ took 687ms

[ADB] Install command stdout: pkg: /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk

[ADB] Success

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell ‘ls /data/local/tmp/appium_cache 2>&1 || echo ERROR’’

[ADB] The count of applications in the cache: 3

[ADB] The application at ‘C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’ is already cached to ‘/data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell touch -am /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk’

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell pm install -r /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk’

[ADB] The installation of ‘appium-uiautomator2-server-debug-androidTest.apk’ took 356ms

[ADB] Install command stdout: pkg: /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk

[ADB] Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

[UiAutomator2] Deleting UiAutomator2 session

[UiAutomator2] Deleting UiAutomator2 server session

[WD Proxy] Matched ‘/’ to command name ‘deleteSession’

[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 shell am force-stop com.meishubao.client’

[Logcat] Stopping logcat capture

[ADB] Removing forwarded port socket connection: 8200

[ADB] Running ‘C:\Users\80669\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:7555 forward --remove tcp:8200’

[BaseDriver] Event ‘newSessionStarted’ logged at 1594530560220 (13:09:20 GMT+0800 (中国标准时间))

[W3C] Encountered internal error running command: Error: pkg: /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk

[W3C] Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

[W3C] at ADB.install (C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\apk-utils.js:582:13)

[W3C] at UiAutomator2Server.installServerApk (C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:121:11)

[W3C] at AndroidUiautomator2Driver.initUiAutomator2Server (C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:440:7)

[W3C] at AndroidUiautomator2Driver.startUiAutomator2Session (C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:338:5)

[W3C] at AndroidUiautomator2Driver.createSession (C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:212:7)

[W3C] at AppiumDriver.createSession (C:\Users\80669\AppData\Local\Programs\Appium\resources\app\node_modules\appium\lib\appium.js:358:35)

[W3C] Destroying socket connection

[HTTP] <-- POST /wd/hub/session 500 7007 ms - 875

[HTTP]

  • 首先,提问的话请将帖子发到答疑区,并且按照答疑区置顶帖中的格式进行提问
  • 其次,提问需要写清具体问题,只放了一堆日志在这,没有任何情况描述和问题的话,没办法快速定位和分析问题,也不知道该回答些什么
  • 最后,如果发这种特别长的日志一类的东西,建议还是放到txt里然后将文件以附件形式发上来,帖子中主要描述问题、发生的环境等等细节信息。要有技术的提问才能得到想要的答案