appium跑自动化,应用首页打开后卡住不动了,无明显报错行为,请问是怎么回事

[info] [Appium] Welcome to Appium v1.13.0
[info] [Appium] Non-default server args:
[info] [Appium] address: 127.0.0.1
[info] [Appium] Appium REST http interface listener started on 127.0.0.1:4723[info] [HTTP] –> POST /wd/hub/session
[info] [HTTP] {“desiredCapabilities”:{“appActivity”:".Calculator",“appPackage”:“com.android.calculator2”,“platformVersion”:“6.0”,“automationName”:“Appium”,“platformName”:“Android”,“deviceName”:“Android Emulator”},“capabilities”:{“firstMatch”:[{“appium:appActivity”:".Calculator",“appium:appPackage”:“com.android.calculator2”,“appium:automationName”:“Appium”,“appium:deviceName”:“Android Emulator”,“platformName”:“android”,“appium:platformVersion”:“6.0”}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{“appActivity”:".Calculator",“appPackage”:“com.android.calculator2”,“platformVersion”:“6.0”,“automationName”:“Appium”,“platformName”:“Android”,“deviceName”:“Android Emulator”},null,{“firstMatch”:[{“appium:appActivity”:".Calculator",“appium:appPackage”:“com.android.calculator2”,“appium:automationName”:“Appium”,“appium:deviceName”:“Android Emulator”,“platformName”:“android”,“appium:platformVersion”:“6.0”}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1569293904764 (10:58:24 GMT+0800 (中国标准时间))
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium] DEPRECATION WARNING:
[warn] [Appium]
[warn] [Appium] The ‘automationName’ capability was not provided in the desired
[warn] [Appium] capabilities for this Android session
[warn] [Appium]
[warn] [Appium] Setting ‘automationName=UiAutomator1’ by default and using the
[warn] [Appium] UiAutomator1 Driver
[warn] [Appium]
[warn] [Appium] The next minor version of Appium (1.14.x) will set
[warn] [Appium] ‘automationName=UiAutomator2’ by default and use the UiAutomator2
[warn] [Appium] Driver
[warn] [Appium]
[warn] [Appium] The next major version of Appium (2.x) will require the
[warn] [Appium] ‘automationName’ capability to be set for all sessions on all
[warn] [Appium] platforms
[warn] [Appium]
[warn] [Appium] If you are happy with ‘UiAutomator1’ and do not wish to upgrade
[warn] [Appium] Android drivers, please add ‘automationName=UiAutomator1’ to your
[warn] [Appium] desired capabilities
[warn] [Appium]
[warn] [Appium] For more information about drivers, please visit
[warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[warn] [Appium] ‘Drivers’ menu
[warn] [Appium]
[warn] [Appium] ======================================================================
[warn] [Appium]
[info] [Appium] Setting automation to ‘UiAutomator1’.
[warn] [Appium] Consider setting ‘automationName’ capability to ‘UiAutomator2’ on Android >= 6, since UIAutomator1 framework is not maintained anymore by the OS vendor.
[info] [Appium] Appium v1.13.0 creating new AndroidDriver (v4.15.1) session
[info] [Appium] Capabilities:
[info] [Appium] platformName: android
[info] [Appium] appActivity: .Calculator
[info] [Appium] appPackage: com.android.calculator2
[info] [Appium] automationName: Appium
[info] [Appium] deviceName: Android Emulator
[info] [Appium] platformVersion: 6.0
[debug] [BaseDriver] W3C capabilities {“alwaysMatch”:{“platformNa… and MJSONWP desired capabilities {“appActivity”:”.Calculator… were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {“alwaysMatch”:{“platformNa…
[info] [BaseDriver] Session created with session id: 48f69ece-e641-4ca3-a4b7-76b40f87b7fc
[info] [ADB] Using ‘adb.exe’ from ‘E:\android-sdk-windows\platform-tools\adb.exe’
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…[debug] [ADB] 1 device(s) connected
[info] [AndroidDriver] Looking for a device with Android ‘6.0’
[debug] [ADB] Setting device id to 8025d028
[info] [ADB] Getting device platform version
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell getprop ro.build.version.release’
[debug] [ADB] Current device property ‘ro.build.version.release’: 6.0.1
[info] [AndroidDriver] Using device: 8025d028
[info] [ADB] Using ‘adb.exe’ from ‘E:\android-sdk-windows\platform-tools\adb.exe’
[debug] [ADB] Setting device id to 8025d028
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell getprop ro.build.version.sdk’
[debug] [ADB] Current device property ‘ro.build.version.sdk’: 23
[debug] [ADB] Device API level: 23
[warn] [AndroidDriver] Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.
[info] [AndroidDriver] App file was not listed, instead we’re going to run com.android.calculator2 directly on the device
[debug] [AndroidDriver] Checking whether package is present on the device
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell pm list packages com.android.calculator2’[info] [AndroidDriver] Starting Android session
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 wait-for-device’
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell echo ping’
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 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 ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell dumpsys package io.appium.settings’
[info] [ADB] Using ‘aapt.exe’ from ‘E:\android-sdk-windows\build-tools\29.0.2\aapt.exe’[debug] [ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.14.0’ >= ‘2.14.0’)
[debug] [ADB] There is no need to install/upgrade ‘C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk’
[debug] [ADB] Getting IDs of all ‘io.appium.settings’ processes
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell ‘pgrep --help; echo $?’’
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell pgrep -f io\.appium\.settings’[info] [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 ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 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 ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell appops set io.appium.settings android:mock_location allow’[debug] [Logcat] Starting logcat capture[info] [ADB] Getting device platform version
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell getprop ro.build.version.release’
[debug] [ADB] Current device property ‘ro.build.version.release’: 6.0.1
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell wm size’[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell getprop ro.product.model’[debug] [ADB] Current device property ‘ro.product.model’: OPPO R9s
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell getprop ro.product.manufacturer’
[debug] [ADB] Current device property ‘ro.product.manufacturer’: OPPO
[warn] [AndroidDriver] No app sent in, not parsing package/activity
[debug] [AndroidDriver] No app capability. Assuming it is already on the device
[debug] [ADB] Getting install status for com.android.calculator2
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell dumpsys package com.android.calculator2’[debug] [ADB] ‘com.android.calculator2’ is installed
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell am force-stop com.android.calculator2’[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell pm clear com.android.calculator2’[debug] [AndroidDriver] Performed fast reset on the installed ‘com.android.calculator2’ application (stop and clear)
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 forward tcp:4724 tcp:4724’
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state ‘starting’
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell mkdir -p /data/local’
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 push C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\bootstrap\bin\AppiumBootstrap.jar /data/local/tmp/’[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting IDs of all ‘uiautomator’ processes
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell pgrep -f uiautomator’
[info] [ADB] No ‘uiautomator’ process has been found
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s",“8025d028”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,"-c",“io.appium.android.bootstrap.Bootstrap”,"-e",“pkg”,“com.android.calculator2”,"-e",“disableAndroidWatchers”,false,"-e",“acceptSslCerts”,false][debug] [UiAutomator] Moving to state ‘online’
[info] [AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell dumpsys window’
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[info] [AndroidDriver] Screen already unlocked, doing nothing
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell am start -W -n com.android.calculator2/.Calculator -S’[info] [Appium] New AndroidDriver session created successfully, session 48f69ece-e641-4ca3-a4b7-76b40f87b7fc added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1569293919676 (10:58:39 GMT+0800 (中国标准时间))
[debug] [W3C (48f69ece)] Cached the protocol value ‘W3C’ for the new session 48f69ece-e641-4ca3-a4b7-76b40f87b7fc
[debug] [W3C (48f69ece)] 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”:".Calculator",“appPackage”:“com.android.calculator2”,“automationName”:“Appium”,“deviceName”:“Android Emulator”,“platformVersion”:“6.0”},“platformName”:“android”,“appActivity”:".Calculator",“appPackage”:“com.android.calculator2”,“automationName”:“Appium”,“deviceName”:“8025d028”,“platformVersion”:“6.0.1”,“deviceUDID”:“8025d028”,“deviceScreenSize”:“1080x1920”,“deviceModel”:“OPPO R9s”,“deviceManufacturer”:“OPPO”}}
[info] [HTTP] <-- POST /wd/hub/session 200 14914 ms - 735
[info] [HTTP] 
[info] [HTTP] –> GET /wd/hub/session/48f69ece-e641-4ca3-a4b7-76b40f87b7fc
[info] [HTTP] {}
[debug] [W3C (48f69ece)] Calling AppiumDriver.getSession() with args: [“48f69ece-e641-4ca3-a4b7-76b40f87b7fc”]
[debug] [W3C (48f69ece)] 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”:".Calculator",“appPackage”:“com.android.calculator2”,“automationName”:“Appium”,“deviceName”:“Android Emulator”,“platformVersion”:“6.0”},“platformName”:“android”,“appActivity”:".Calculator",“appPackage”:“com.android.calculator2”,“automationName”:“Appium”,“deviceName”:“8025d028”,“platformVersion”:“6.0.1”,“deviceUDID”:“8025d028”,“deviceScreenSize”:“1080x1920”,“deviceModel”:“OPPO R9s”,“deviceManufacturer”:“OPPO”}
[info] [HTTP] <-- GET /wd/hub/session/48f69ece-e641-4ca3-a4b7-76b40f87b7fc 200 2 ms - 667
[info] [HTTP] [warn] [BaseDriver] Shutting down because we waited 60 seconds for a command
[debug] [AndroidDriver] Shutting down Android driver
[warn] [Appium] Closing session, cause was ‘New Command Timeout of 60 seconds expired. Try customizing the timeout using the ‘newCommandTimeout’ desired capability’
[info] [Appium] Removing session 48f69ece-e641-4ca3-a4b7-76b40f87b7fc from our master session list
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell am force-stop com.android.calculator2’[debug] [ADB] Pressing the HOME button
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell input keyevent 3’[debug] [AndroidBootstrap] Sending command to android: {“cmd”:“shutdown”}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {“cmd”:“shutdown”}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {“status”:0,“value”:“OK, shutting down”}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [UiAutomator] Shutting down UiAutomator
[debug] [UiAutomator] Moving to state ‘stopping’
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Closed client connection
[debug] [UiAutomator] UiAutomator shut down normally
[debug] [UiAutomator] Moving to state ‘stopped’
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting IDs of all ‘uiautomator’ processes
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell pgrep -f uiautomator’[info] [ADB] No ‘uiautomator’ process has been found
[debug] [UiAutomator] Moving to state ‘stopped’
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Running ‘E:\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 8025d028 shell am force-stop io.appium.unlock’[debug] [AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.[info] [HTTP] –> GET /wd/hub/sessions
[info] [HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getSessions() with args: []
[debug] [GENERIC] Responding to client with driver.getSessions() result: []
[info] [HTTP] <-- GET /wd/hub/sessions 200 4 ms - 40
[info] [HTTP] 

你可能感兴趣的:(appium跑自动化,应用首页打开后卡住不动了,无明显报错行为,请问是怎么回事)