报错 log 如下

The server is running

[Appium] Welcome to Appium v1.8.0
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] log: E:\Learn\AppiumLog
[Appium] localTimezone: true
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"appActivity":"com.yixin.itoumi.module.login.SplashActivity","platformName":"Android","app":"E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk","appPackage":"com.yixin.itoumi","platformVersion":"8.0","automationName":"UIAutomator2","deviceName":"9889db31544f393046"}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.yixin.itoumi.module.login.SplashActivity","platformName":"Android","app":"E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk","appPackage":"com.yixin.itoumi","platformVersion":"8.0","automationName":"UIAutomator2","deviceName":"9889db31544f393046"},null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1526293069593 (18:17:49 GMT+0800 (中国标准时间))
[Appium] Creating new AndroidUiautomator2Driver (v1.12.0) session
[Appium] Capabilities:
[Appium] appActivity: com.yixin.itoumi.module.login.SplashActivity
[Appium] platformName: Android
[Appium] app: E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk
[Appium] appPackage: com.yixin.itoumi
[Appium] platformVersion: 8.0
[Appium] automationName: UIAutomator2
[Appium] deviceName: 9889db31544f393046
[BaseDriver] Creating session with MJSONWP desired capabilities: {"appActivity":"com.yixin.i...
[BaseDriver] Session created with session id: bcafe31a-91aa-4983-b130-881c39693440
[BaseDriver] Using local app 'E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk'
[UiAutomator2] Checking whether app is actually present
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_05
[ADB] Checking whether adb is present
[ADB] Using adb.exe from D:\SDK\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '8.0'
[ADB] Setting device id to 9889db31544f393046
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell getprop ro.build.version.release'
[ADB] Current device property 'ro.build.version.release': 8.0.0
[AndroidDriver] Using device: 9889db31544f393046
[ADB] Checking whether adb is present
[ADB] Using adb.exe from D:\SDK\platform-tools\adb.exe
[ADB] Setting device id to 9889db31544f393046
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell getprop ro.build.version.sdk'
[ADB] Current device property 'ro.build.version.sdk': 26
[ADB] Device API level: 26
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell getprop ro.build.version.release'
[ADB] Current device property 'ro.build.version.release': 8.0.0
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell wm size'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell wm density'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell getprop ro.product.model'
[ADB] Current device property 'ro.product.model': SM-G9500
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell getprop ro.product.manufacturer'
[ADB] Current device property 'ro.product.manufacturer': samsung
[ADB] Device API level: 26
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell am force-stop io.appium.uiautomator2.server'
[ADB] Checking app cert for C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Patching 'D:\SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[ADB] Starting patched 'C:\Users\ADMINI~1\AppData\Local\Temp\2018414-8064-wjitcn.po1sb\apksigner.bat' with args 'verify,--print-certs,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk'
[ADB] 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk' is not signed with debug cert.
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Zip-aligning 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk'
[ADB] Checking whether zipalign is present
[ADB] Using zipalign.exe from D:\SDK\build-tools\27.0.3\zipalign.exe
[ADB] Signing 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk' with default cert
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Patching 'D:\SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[ADB] Starting patched 'C:\Users\ADMINI~1\AppData\Local\Temp\2018414-8064-1k8vfav.b7d6f\apksigner.bat' with args 'sign,--key,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk'
[ADB] Checking app cert for C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Patching 'D:\SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[ADB] Starting patched 'C:\Users\ADMINI~1\AppData\Local\Temp\2018414-8064-1eyq8wn.vwv8\apksigner.bat' with args 'verify,--print-certs,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[ADB] 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not signed with debug cert.
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Zip-aligning 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[ADB] Checking whether zipalign is present
[ADB] Using zipalign.exe from D:\SDK\build-tools\27.0.3\zipalign.exe
[ADB] Signing 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' with default cert
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Patching 'D:\SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[ADB] Starting patched 'C:\Users\ADMINI~1\AppData\Local\Temp\2018414-8064-1omyp1w.cqxp\apksigner.bat' with args 'sign,--key,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[ADB] Uninstalling io.appium.uiautomator2.server
[ADB] Getting install status for io.appium.uiautomator2.server
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages io.appium.uiautomator2.server'
[ADB] App is not installed
[ADB] io.appium.uiautomator2.server was not uninstalled, because it was not present on the device
[ADB] Uninstalling io.appium.uiautomator2.server.test
[ADB] Getting install status for io.appium.uiautomator2.server.test
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages io.appium.uiautomator2.server.test'
[ADB] App is not installed
[ADB] io.appium.uiautomator2.server.test was not uninstalled, because it was not present on the device
[ADB] Getting install status for io.appium.uiautomator2.server
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages io.appium.uiautomator2.server'
[ADB] App is not installed
[ADB] App 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk' not installed. Installing
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 install C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk'
[ADB] Install command stdout:
[ADB] Getting install status for io.appium.uiautomator2.server.test
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages io.appium.uiautomator2.server.test'
[ADB] App is not installed
[ADB] App 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' not installed. Installing
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 install C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[ADB] Install command stdout:
[UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list instrumentation'
[UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 wait-for-device'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell echo ping'
[AndroidDriver] Pushing settings apk to device...
[ADB] Getting install status for io.appium.settings
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages io.appium.settings'
[ADB] App is installed
[ADB] Getting package info for 'io.appium.settings'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell dumpsys package io.appium.settings'
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from D:\SDK\build-tools\27.0.3\aapt.exe
[ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0')
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell ps'
[ADB] Device API level: 26
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[ADB] Device API level: 26
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell appops set io.appium.settings android:mock_location allow'
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'undefined' and country: 'undefined'
[Logcat] Starting logcat capture
[AndroidDriver] Pushing unlock helper app to device...
[ADB] Getting install status for io.appium.unlock
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages io.appium.unlock'
[ADB] App is installed
[ADB] Getting package info for 'io.appium.unlock'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell dumpsys package io.appium.unlock'
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from D:\SDK\build-tools\27.0.3\aapt.exe
[ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0')
[UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[ADB] Forwarding system: 8200 to device: 6790
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 forward tcp:8200 tcp:6790'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell rm -rf /data/local/tmp/strings.json'
[AndroidDriver] Extracting strings from apk
[AndroidDriver] E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk
[AndroidDriver] undefined
[AndroidDriver] C:\Users\ADMINI~1\AppData\Local\Temp\com.yixin.itoumi
[ADB] Extracting strings for language: default
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from D:\SDK\build-tools\27.0.3\aapt.exe
[ADB] Successfully extracted 263 strings from 'E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk' resources for '(default)' configuration
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 push C:\Users\ADMINI~1\AppData\Local\Temp\com.yixin.itoumi\strings.json /data/local/tmp'
[ADB] Checking app cert for E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Patching 'D:\SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[ADB] Starting patched 'C:\Users\ADMINI~1\AppData\Local\Temp\2018414-8064-4rz50i.t14aw\apksigner.bat' with args 'verify,--print-certs,E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk'
[ADB] 'E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk' is not signed with debug cert.
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Zip-aligning 'E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk'
[ADB] Checking whether zipalign is present
[ADB] Using zipalign.exe from D:\SDK\build-tools\27.0.3\zipalign.exe
[ADB] Signing 'E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk' with default cert
[ADB] Using apksigner.bat from D:\SDK\build-tools\27.0.3\apksigner.bat
[ADB] Patching 'D:\SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[ADB] Starting patched 'C:\Users\ADMINI~1\AppData\Local\Temp\2018414-8064-13frmml.fkiuj\apksigner.bat' with args 'sign,--key,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-adb\keys\testkey.x509.pem,E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk'
[ADB] Getting install status for com.yixin.itoumi
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages com.yixin.itoumi'
[ADB] App is installed
[ADB] Getting install status for com.yixin.itoumi
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages com.yixin.itoumi'
[ADB] App is installed
[ADB] Getting package info for 'com.yixin.itoumi'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell dumpsys package com.yixin.itoumi'
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from D:\SDK\build-tools\27.0.3\aapt.exe
[ADB] The installed 'com.yixin.itoumi' package does not require upgrade ('2.8.7' >= '2.8.7')
[AndroidDriver] Performing fast reset on 'com.yixin.itoumi'
[ADB] Getting install status for com.yixin.itoumi
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm list packages com.yixin.itoumi'
[ADB] App is installed
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell am force-stop com.yixin.itoumi'
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell pm clear com.yixin.itoumi'
[AndroidDriver] Performed fast reset on the installed 'com.yixin.itoumi' application (stop and clear)
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell am force-stop io.appium.uiautomator2.server'
[UiAutomator2] Starting uiautomator2 server 1.10.0
[UiAutomator2] Using UIAutomator2 server from 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.10.0.apk' and test from 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Running command: 'adb -s 9889db31544f393046 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}"
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8200/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appActivity":"com.yixin.itoumi.module.login.SplashActivity","platformName":"Android","app":"E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk","appPackage":"com.yixin.itoumi","platformVersion":"8.0","automationName":"UIAutomator2","deviceName":"9889db31544f393046"},"appActivity":"com.yixin.itoumi.module.login.SplashActivity","platformName":"Android","app":"E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk","appPackage":"com.yixin.itoumi","platformVersion":"8.0.0","automationName":"UIAutomator2","deviceName":"9889db31544f393046","deviceUDID":"9889db31544f393046","deviceScreenSize":"1440x2960","deviceScreenDensity":640,"deviceModel":"SM-G9500","deviceManufacturer":"samsung","deviceApiLevel":26}}
[JSONWP Proxy] Got response with status 200: {"sessionId":"99395652-0917-447c-9939-c392472a737d","status":0,"value":"Created Session"}
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'com.yixin.itoumi/com.yixin.itoumi.module.login.SplashActivity'. Starting it ourselves
[ADB] Device API level: 26
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell am start -W -n com.yixin.itoumi/com.yixin.itoumi.module.login.SplashActivity -S'
[JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/appium/device/pixel_ratio] with body: {}
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"99395652-0917-447c-9939-c392472a737d\",\"status\":0,\"value\":4}"
[JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/appium/device/system_bars] with body: {}
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"99395652-0917-447c-9939-c392472a737d\",\"status\":0,\"value\":{\"statusBar\":96}}"
[JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/window/current/size] with body: {}
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"99395652-0917-447c-9939-c392472a737d\",\"status\":0,\"value\":{\"height\":2768,\"width\":1440}}"
[Appium] New AndroidUiautomator2Driver session created successfully, session bcafe31a-91aa-4983-b130-881c39693440 added to master session list
[BaseDriver] Event 'newSessionStarted' logged at 1526293098236 (18:18:18 GMT+0800 (中国标准时间))
[MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"appActivity":"com.yixin.itoumi.module.login.SplashActivity","platformName":"Android","app":"E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk","appPackage":"com.yixin.itoumi","platformVersion":"8.0","automationName":"UIAutomator2","deviceName":"9889db31544f393046"},"appActivity":"com.yixin.itoumi.module.login.SplashActivity","platformName":"Android","app":"E:\Learn\Python\crediteaseTM_1-az-gw-zzb_20180423_2.8.7_488.apk","appPackage":"com.yixin.itoumi","platformVersion":"8.0.0","automationName":"UIAutomator2","deviceName":"9889db31544f393046","deviceUDID":"9889db31544f393046","deviceScreenSize":"1440x2960","deviceScreenDensity":640,"deviceModel":"SM-G9500","deviceManufacturer":"samsung","deviceApiLevel":26,"pixelRatio":4,"statBarHeight":96,"viewportRect":{"left":0,"top":96,"width":144...
[HTTP] <-- POST /wd/hub/session 200 28645 ms - 1110
[HTTP]
[HTTP] --> POST /wd/hub/session/bcafe31a-91aa-4983-b130-881c39693440/timeouts/implicit_wait
[HTTP] {"ms":10000,"sessionId":"bcafe31a-91aa-4983-b130-881c39693440"}
[MJSONWP] Calling AppiumDriver.implicitWait() with args: [10000,"bcafe31a-91aa-4983-b130-881c39693440"]
[BaseDriver] Set implicit wait to 10000ms
[MJSONWP] Responding to client with driver.implicitWait() result: null
[HTTP] <-- POST /wd/hub/session/bcafe31a-91aa-4983-b130-881c39693440/timeouts/implicit_wait 200 5 ms - 76
[HTTP]
[HTTP] --> POST /wd/hub/session/bcafe31a-91aa-4983-b130-881c39693440/element
[HTTP] {"sessionId":"bcafe31a-91aa-4983-b130-881c39693440","value":"com.yixin.itoumi:id/tv_startUse","using":"id"}
[MJSONWP] Calling AppiumDriver.findElement() with args: ["id","com.yixin.itoumi:id/tv_startUse","bcafe31a-91aa-4983-b130-881c39693440"]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[BaseDriver] Waiting up to 10000 ms for condition
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 466 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 994 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 1557 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 2201 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 2750 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 4058 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 4667 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 5226 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 5779 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 6381 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 6955 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 7527 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 8116 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 8664 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 9258 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[BaseDriver] Waited for 9853 ms so far
[JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d/element] with body: {"strategy":"id","selector":"com.yixin.itoumi:id/tv_startUse","context":"","multiple":false}
[HTTP] <-- POST /wd/hub/session/bcafe31a-91aa-4983-b130-881c39693440/element 500 10411 ms - 164
[HTTP]
[HTTP] --> DELETE /wd/hub/session/bcafe31a-91aa-4983-b130-881c39693440
[HTTP] {}
[MJSONWP] Calling AppiumDriver.deleteSession() with args: ["bcafe31a-91aa-4983-b130-881c39693440"]
[BaseDriver] Event 'quitSessionRequested' logged at 1526293108675 (18:18:28 GMT+0800 (中国标准时间))
[Appium] Removing session bcafe31a-91aa-4983-b130-881c39693440 from our master session list
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/99395652-0917-447c-9939-c392472a737d] with no body
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"99395652-0917-447c-9939-c392472a737d\",\"status\":0,\"value\":\"Session deleted\"}"
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 shell am force-stop com.yixin.itoumi'
[Logcat] Stopping logcat capture
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running 'D:\SDK\platform-tools\adb.exe -P 5037 -s 9889db31544f393046 forward --remove tcp:8200'
[BaseDriver] Event 'quitSessionFinished' logged at 1526293109454 (18:18:29 GMT+0800 (中国标准时间))
[MJSONWP] Received response: null
[MJSONWP] But deleting session, so not returning
[MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/bcafe31a-91aa-4983-b130-881c39693440 200 782 ms - 76
[HTTP]
[UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[UiAutomator2] [UIAutomator2] Time: 15.056
[UiAutomator2] [UIAutomator2] OK (1 test)


↙↙↙阅读原文可查看相关链接,并与作者交流