Skip to content

Instantly share code, notes, and snippets.

@loveiset
Created June 7, 2018 06:59
Show Gist options
  • Save loveiset/73fb6a8ddd35cd0705c36e16361f9f97 to your computer and use it in GitHub Desktop.
Save loveiset/73fb6a8ddd35cd0705c36e16361f9f97 to your computer and use it in GitHub Desktop.
C:\Users\hechangshu1 (hechangshu1@1.0.0)
λ cappium --session-override --chromedriver-executable D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Welcome to Appium v1.8.1
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] chromedriverExecutable: D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"appium:unicodeKeyboard":"True","appium:resetKeyboard":"True","appium:autoGrantPermissions":true,"appium:fullReset":false,"appium:automationName":"Uiautomator2","appium:app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v270.apk","appium:deviceName":"1469081a","appium:recreateChromeDriverSessions":true,"appium:chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","appium:chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","platformName":"Android","appium:noReset":false,"appium:nativeWebScreenshot":true},"firstMatch":[{}]},"desiredCapabilities":{"deviceName":"1469081a","chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","recreateChromeDriverSessions":true,"app":"D:\\hcs\\Document
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"1469081a","chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","recreateChromeDriverSessions":true,"app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v270.apk","autoGrantPermissions":true,"noReset":false,"unicodeKeyboard":"True","chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","nativeWebScreenshot":true,"resetKeyboard":"True","fullReset":false,"platformName":"Android","automationName":"Uiautomator2"},null,{"alwaysMatch":{"appium:unicodeKeyboard":"True","appium:resetKeyboard":"True","appium:autoGrantPermissions":true,"appium:fullReset":false,"appium:automationName":"Uiautomator2","appium:app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v270.apk","appium:deviceName":"1469081a","appium:recreateChromeDriverSessions":true,"appium:chromedriverChromeMappingFile":"D:\\hcs\...
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1528353471243 (14:37:51 GMT+0800 (中国标准时间))
[Appium] Creating new AndroidUiautomator2Driver (v1.12.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] unicodeKeyboard: True
[Appium] resetKeyboard: True
[Appium] autoGrantPermissions: true
[Appium] fullReset: false
[Appium] automationName: Uiautomator2
[Appium] app: D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk
[Appium] deviceName: 1469081a
[Appium] recreateChromeDriverSessions: true
[Appium] chromedriverChromeMappingFile: D:\hcs\Documents\workspace\app_auto_android\lib\appbase\driver\tools\chromedriver\chromedriver.json
[Appium] chromedriverExecutableDir: D:\hcs\Documents\workspace\app_auto_android\lib\appbase\driver\tools\chromedriver [Appium] noReset: false
[Appium] nativeWebScreenshot: true
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities [object Object] were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.
[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.
[BaseDriver] Capability 'unicodeKeyboard' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'resetKeyboard' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Session created with session id: df57ed50-12a1-4138-bc2a-0242f38696c1
[BaseDriver] Using local app 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_144
[ADB] Checking whether adb is present
[ADB] Found 2 'build-tools' folders under 'D:\hcs\Documents\Android-SDK' (newest first):
[ADB] D:/hcs/Documents/Android-SDK/build-tools/27.0.3
[ADB] D:/hcs/Documents/Android-SDK/build-tools/26.0.2
[ADB] Using adb.exe from D:\hcs\Documents\Android-SDK\platform-tools\adb.exe
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: 1469081a
[debug] [ADB] Setting device id to 1469081a
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 23
[debug] [ADB] Device API level: 23
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Using the alternative activity name detection method because of: Could not find apkanalyzer.bat in D:\hcs\Documents\Android-SDK\platform-tools\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\emulator\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\tools\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\tools\bin\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apkanalyzer.bat,D:\hcs\Documents\Android-SDK\build-tools\26.0.2\apkanalyzer.bat. Do you have the Android SDK installed at 'D:\hcs\Documents\Android-SDK'?
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from D:\hcs\Documents\Android-SDK\build-tools\27.0.3\aapt.exe
[ADB] Extracting package and launch activity from manifest
[ADB] Package name: 'com.crc.hrt'
[ADB] Main activity name: 'com.hrt.platform.activity.FlashActivity'
[debug] [AndroidDriver] Parsed package and activity are: com.crc.hrt/com.hrt.platform.activity.FlashActivity
[ADB] Getting device platform version
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 6.0.1
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell wm size'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell wm density'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell getprop ro.product.model'
[debug] [ADB] Current device property 'ro.product.model': SM901
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell getprop ro.product.manufacturer'
[debug] [ADB] Current device property 'ro.product.manufacturer': smartisan
[debug] [ADB] Device API level: 23
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Checking app cert for C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk
[ADB] Using apksigner.bat from D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-18544-1dvbt7y.73fw\apksigner.bat' with args 'verify,--print-certs,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[ADB] Checking whether zipalign is present
[ADB] Using zipalign.exe from D:\hcs\Documents\Android-SDK\build-tools\27.0.3\zipalign.exe
[debug] [ADB] Signing 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' with default cert
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-18544-1wa99nw.xa7q\apksigner.bat' with args 'sign,--key,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] Checking app cert for C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-18544-1r8jtmt.5jlck\apksigner.bat' with args 'verify,--print-certs,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Signing 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' with default cert
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-18544-lge29v.piccs\apksigner.bat' with args 'sign,--key,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Uninstalling io.appium.uiautomator2.server
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages io.appium.uiautomator2.server'
[debug] [ADB] App is installed
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a uninstall io.appium.uiautomator2.server'
[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server' command output: Success
[ADB] io.appium.uiautomator2.server was successfully uninstalled
[debug] [ADB] Uninstalling io.appium.uiautomator2.server.test
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages io.appium.uiautomator2.server.test'
[debug] [ADB] App is installed
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell am force-stop io.appium.uiautomator2.server.test'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a uninstall io.appium.uiautomator2.server.test'
[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server.test' command output: Success
[ADB] io.appium.uiautomator2.server.test was successfully uninstalled
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages io.appium.uiautomator2.server'
[debug] [ADB] App is not installed
[debug] [ADB] App 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' not installed. Installing
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a install C\:\\Users\\hechangshu1\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] Install command stdout: [ 4%] /data/local/tmp/appium-uiautomator2-server-v1.12.0.apk
[debug] [ADB] [ 8%] /data/local/tmp/appium-uiautomator2-server-v1.12.0.apk
[debug] [ADB] [ 12%] /data/local/tmp/a...tomator2-server-v1.12.0.apk: 1 file pushed. 3.3 MB/s (1593949 bytes in 0.454s) [debug] [ADB] pkg: /data/local/tmp/appium-uiautomator2-server-v1.12.0.apk
[debug] [ADB] Success
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages io.appium.uiautomator2.server.test'
[debug] [ADB] App is not installed
[debug] [ADB] App 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' not installed. Installing
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a install C\:\\Users\\hechangshu1\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Install command stdout: [ 3%] /data/local/tmp/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] [ 6%] /data/local/tmp/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] [ 10...g-androidTest.apk: 1 file pushed. 3.3 MB/s (1881229 bytes in 0.551s)
[debug] [ADB] pkg: /data/local/tmp/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Success
[debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a wait-for-device'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages io.appium.settings'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell dumpsys package io.appium.settings'
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0')
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell ps'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Device API level: 23
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell appops set io.appium.settings android\:mock_location allow'
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Enabling Unicode keyboard support
[debug] [AndroidDriver] Pushing unicode ime to device...
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a install C\:\\Users\\hechangshu1\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\appium-android-ime\\bin\\UnicodeIME-debug.apk'
[debug] [ADB] Install command stdout: [100%] /data/local/tmp/UnicodeIME-debug.apk
[debug] [ADB] C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-ime\bin\UnicodeIME-debug.apk: 1 file pushed. 3.9 MB/s (36795 bytes in 0.009s)
[debug] [ADB] pkg: /data/local/tmp/UnicodeIME-debug.apk
[debug] [ADB] Failure [INSTALL_FAILED_ALREADY_EXISTS]
[debug] [ADB] Application 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-ime\bin\UnicodeIME-debug.apk' already installed. Continuing.
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell settings get secure default_input_method'
[debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME
[debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell ime enable io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell ime set io.appium.android.ime/.UnicodeIME'
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages io.appium.unlock'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'io.appium.unlock'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell dumpsys package io.appium.unlock'
[debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0')
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8202
[debug] [ADB] Forwarding system: 8202 to device: 6790
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a forward tcp\:8202 tcp\:6790'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell rm -rf /data/local/tmp/strings.json'
[debug] [AndroidDriver] Extracting strings from apk
[debug] [AndroidDriver] D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk
[debug] [AndroidDriver] null
[debug] [AndroidDriver] C:\Users\HECHAN~1\AppData\Local\Temp\com.crc.hrt
[debug] [ADB] Extracting strings for language: default
[ADB] Successfully extracted 1293 strings from 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk' resources for '(default)' configuration
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a push C\:\\Users\\HECHAN~1\\AppData\\Local\\Temp\\com.crc.hrt\\strings.json /data/local/tmp'
[debug] [ADB] Checking app cert for D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk
[debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-18544-ey5gi9.jhx2t\apksigner.bat' with args 'verify,--print-certs,D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk'
[debug] [ADB] 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk'
[debug] [ADB] Signing 'D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk' with default cert [debug] [ADB] Patching 'D:\hcs\Documents\Android-SDK\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\HECHAN~1\AppData\Local\Temp\201857-18544-os89u4.str4\apksigner.bat' with args 'sign,--key,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,--cert,C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,D:\hcs\Documents\workspace\app_auto_android\lib\appbase\apps\android_v270.apk'
[debug] [ADB] Getting install status for com.crc.hrt
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages com.crc.hrt'
[debug] [ADB] App is installed
[debug] [ADB] Getting install status for com.crc.hrt
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages com.crc.hrt'
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for 'com.crc.hrt'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell dumpsys package com.crc.hrt'
[debug] [ADB] The installed 'com.crc.hrt' package does not require upgrade (429 > 426)
[AndroidDriver] Performing fast reset on 'com.crc.hrt'
[debug] [ADB] Getting install status for com.crc.hrt
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm list packages com.crc.hrt'
[debug] [ADB] App is installed
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell am force-stop com.crc.hrt'
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell pm clear com.crc.hrt'
[debug] [ADB] Device API level: 23
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell dumpsys package com.crc.hrt'
[debug] [AndroidDriver] Performed fast reset on the installed 'com.crc.hrt' application (stop and clear)
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell am force-stop io.appium.uiautomator2.server'
[UiAutomator2] Starting uiautomator2 server 1.12.0
[UiAutomator2] Using UIAutomator2 server from 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' and test from 'C:\Users\hechangshu1\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Running command: 'adb -s 1469081a shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body
[Appium] Received SIGINT - shutting down
[Logcat] Logcat terminated with code 3221225786, signal null
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8202/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","unicodeKeyboard":true,"resetKeyboard":true,"autoGrantPermissions":true,"fullReset":false,"automationName":"Uiautomator2","app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v270.apk","deviceName":"1469081a","recreateChromeDriverSessions":true,"chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","noReset":false,"nativeWebScreenshot":true},"platformName":"Android","unicodeKeyboard":true,"resetKeyboard":true,"autoGrantPermissions":true,"fullReset":false,"automationName":"Uiautomator2","app":"D:\\hcs\\Documents\\workspac...
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"8850eb0d-2f7d-462d-9634-a74463a17175","status":0,"value":"Created Session"}
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'com.crc.hrt/com.hrt.platform.activity.FlashActivity'. Starting it ourselves
[debug] [ADB] Device API level: 23
[debug] [ADB] Running 'D:\hcs\Documents\Android-SDK\platform-tools\adb.exe -P 5037 -s 1469081a shell am start -W -n com.crc.hrt/com.hrt.platform.activity.FlashActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
^C终止批处理操作吗(Y/N)? ^
C
C:\Users\hechangshu1 (hechangshu1@1.0.0)
λ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment