Microsoft Windows [版本 10.0.17763.973]
© 2018 Microsoft Corporation。保留所有权利。
C:UsersKYF>appium
C:UsersKYF>“node” “C:UsersKYFAppDataRoaming
pm\node_modulesappiumuildlibmain.js”
[Appium] Welcome to Appium v1.15.1
[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:21503”,“appium:app”:“C:\Users\KYF\Desktop\mukewang.apk”}]},“desiredCapabilities”:{“platformName”:“Android”,“deviceName”:“127.0.0.1:21503”,“app”:“C:\Users\KYF\Desktop\mukewang.apk”}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{“platformName”:“Android”,“deviceName”:“127.0.0.1:21503”,“app”:“C:\Users\KYF\Desktop\mukewang.apk”},null,{“firstMatch”:[{“platformName”:“Android”,“appium:deviceName”:“127.0.0.1:21503”,“appium:app”:“C:\Users\KYF\Desktop\mukewang.apk”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1579831274990 (10:01:14 GMT+0800 (GMT+08:00))
[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.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] “alwaysMatch”: {
[debug] [BaseDriver] “platformName”: “Android”,
[debug] [BaseDriver] “appium:deviceName”: “127.0.0.1:21503”,
[debug] [BaseDriver] “appium:app”: “C:\Users\KYF\Desktop\mukewang.apk”
[debug] [BaseDriver] },
[debug] [BaseDriver] “firstMatch”: [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] Session created with session id: 310acb38-65ee-4839-ac23-aa23e5a4a003
[BaseDriver] Using local app ‘C:UsersKYFDesktopmukewang.apk’
[debug] [UiAutomator2] Checking whether app is actually present
[ADB] Found 1 ‘build-tools’ folders under ‘F:Andriod_SDK’ (newest first):
[ADB] F:/Andriod_SDK/build-tools/27.0.1
[ADB] Using ‘adb.exe’ from ‘F:Andriod_SDKplatform-toolsadb.exe’
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] Connected devices: [{“udid”:“127.0.0.1:21503”,“state”:“device”}]
[AndroidDriver] Using device: 127.0.0.1:21503
[ADB] Using ‘adb.exe’ from ‘F:Andriod_SDKplatform-toolsadb.exe’
[debug] [ADB] Setting device id to 127.0.0.1:21503
[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell getprop ro.build.version.sdk’
[debug] [ADB] Current device property ‘ro.build.version.sdk’: 22
[debug] [ADB] Device API level: 22
[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 [“F:\Andriod_SDK\platform-tools\apkanalyzer.bat”,“F:\Andriod_SDK\emulator\apkanalyzer.bat”,“F:\Andriod_SDK\tools\apkanalyzer.bat”,“F:\Andriod_SDK\tools\bin\apkanalyzer.bat”,“F:\Andriod_SDK\build-tools\27.0.1\apkanalyzer.bat”]. Do you have Android Build Tools installed at ‘F:Andriod_SDK’?
[ADB] Using ‘aapt.exe’ from ‘F:Andriod_SDKuild-tools.0.1aapt.exe’
[ADB] Extracting package and launch activity from manifest
[ADB] Package name: ‘cn.com.open.mooc’
[ADB] Main activity name: ‘cn.com.open.mooc.index.splash.MCSplashActivity’
[debug] [AndroidDriver] Parsed package and activity are: cn.com.open.mooc/cn.com.open.mooc.index.splash.MCSplashActivity[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 wait-for-device’
[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell echo ping’
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell dumpsys package io.appium.settings’
[debug] [ADB] ‘io.appium.settings’ is installed
[debug] [ADB] Getting package info for ‘io.appium.settings’
[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell dumpsys package io.appium.settings’
[ADB] Cannot extract apk info using apkanalyzer. Falling back to aapt. Original error: Could not find ‘apkanalyzer.bat’ in [“F:\Andriod_SDK\platform-tools\apkanalyzer.bat”,“F:\Andriod_SDK\emulator\apkanalyzer.bat”,“F:\Andriod_SDK\tools\apkanalyzer.bat”,“F:\Andriod_SDK\tools\bin\apkanalyzer.bat”,“F:\Andriod_SDK\build-tools\27.0.1\apkanalyzer.bat”]. Do you have Android Build Tools installed at ‘F:Andriod_SDK’?
[debug] [ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.14.2’ >= ‘2.14.2’)
[debug] [ADB] There is no need to install/upgrade ‘C:UsersKYFAppDataRoaming
pm
ode_modulesappium
[email protected]@io.appium.settingsapkssettings_apk-debug.apk’
[debug] [ADB] Getting IDs of all ‘io.appium.settings’ processes
[debug] [ADB] Running 'F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell 'pgrep --help; echo KaTeX parse error: Can't use function '\.' in math mode at position 109: …l pgrep ^appium\̲.̲settings'
[AndroidDriver] Granting android.permission.SET_ANIMATION_SCALE, CHANGE_CONFIGURATION, ACCESS_FINE_LOCATION by pm grant
[debug] [ADB] Granting permissions [“android.permission.SET_ANIMATION_SCALE”,“android.permission.CHANGE_CONFIGURATION”,“android.permission.ACCESS_FINE_LOCATION”] to ‘io.appium.settings’
[debug] [ADB] Got the following command chunks to execute: [[“pm”,“grant”,“io.appium.settings”,“android.permission.SET_ANIMATION_SCALE”,";",“pm”,“grant”,“io.appium.settings”,“android.permission.CHANGE_CONFIGURATION”,";",“pm”,“grant”,“io.appium.settings”,“android.permission.ACCESS_FINE_LOCATION”,";"]]
[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pm grant io.appium.settings android.permission.SET_ANIMATION_SCALE ; pm grant io.appium.settings android.permission.CHANGE_CONFIGURATION ; pm grant io.appium.settings android.permission.ACCESS_FINE_LOCATION ;’
[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER’
[debug] [ADB] Getting IDs of all ‘io.appium.settings’ processes
[debug] [ADB] Running ‘F:Andriod_SDKplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium.settingsKaTeX parse error: Can't use function '\.