会app自动化的大神帮忙看下,启动脚本 后模拟器里面的APP毫无反应啊,不知道哪一步错了

Checking if an update is available
Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js –address 127.0.0.1 –port 4723 –platform-name Android –platform-version 17 –automation-name Appium –device-name “OPPO R11” –log-no-color
Update not available
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“address”:”127.0.0.1”,”logNoColors”:true,”deviceName”:”OPPO R11”,”platformName”:”Android”,”platformVersion”:”17”,”automationName”:”Appium”}
info: Console LogLevel: debug
Killed Node Server.
Appium server process ended
Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js –address 127.0.0.1 –port 4723 –platform-name Android –platform-version 17 –automation-name Appium –device-name “OPPO R11” –log-no-color
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“address”:”127.0.0.1”,”logNoColors”:true,”deviceName”:”OPPO R11”,”platformName”:”Android”,”platformVersion”:”17”,”automationName”:”Appium”}
info: Console LogLevel: debug
info: –> POST /wd/hub/session {“capabilities”:{“alwaysMatch”:{“appium:platformVersion”:”4.2.2”,”platformName”:”Android”,”appium:app”:”702757.apk”,”appium:appPackage”:”com.taobao.taobao”,”appium:deviceName”:”OPPO R11”,”appium:appActivity”:”com.taobao.tao.welcome.Welcome”},”firstMatch”:[{}]},”desiredCapabilities”:{“app”:”702757.apk”,”platformVersion”:”4.2.2”,”appPackage”:”com.taobao.taobao”,”platformName”:”Android”,”deviceName”:”OPPO R11”,”appActivity”:”com.taobao.tao.welcome.Welcome”}}
info: Client User-Agent string: selenium/3.13.0 (python windows)
info: [debug] App is an Android package, will attempt to run on device
info: [debug] Creating new appium session deee71da-84ef-4e5b-bce8-83af1dce8885
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_131
info: [debug] Checking whether adb is present
warn: The ANDROID_HOME environment variable is not set to the Android SDK root directory path. ANDROID_HOME is required for compatibility with SDK 23+. Checking along PATH for adb.
info: [debug] executing cmd: where adb
info: [debug] Using adb from E:\app\android-sdk-windows\android-sdk-windows\platform-tools\adb.exe

warn: No app capability, can’t parse package/activity
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Not checking whether app is present since we are assuming it’s already on the device
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices…
info: [debug] executing cmd: “E:\app\android-sdk-windows\android-sdk-windows\platform-tools\adb.exe” devices
info: [debug] 1 device(s) connected
info: Found device 127.0.0.1:62001
info: [debug] Setting device id to 127.0.0.1:62001
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: “E:\app\android-sdk-windows\android-sdk-windows\platform-tools\adb.exe” -s 127.0.0.1:62001 wait-for-device
info: [debug] executing cmd: “E:\app\android-sdk-windows\android-sdk-windows\platform-tools\adb.exe” -s 127.0.0.1:62001 shell “echo ‘ready’”
info: [debug] Starting logcat capture
error: Logcat capture failed: spawn “E:\app\android-sdk-windows\android-sdk-windows\platform-tools\adb.exe” ENOENT
info: [debug] Stopping logcat capture

以下是python脚本

coding=utf-8

from appium import webdriver
from time import sleep

desired_caps = {}
desired_caps[‘platformName’] = ‘Android’
desired_caps[‘platformVersion’] = ‘4.2.2’
desired_caps[‘deviceName’] = ‘OPPO R11’

desired_caps[‘app’] = ‘702757.apk’
desired_caps[‘appPackage’] = ‘com.taobao.taobao’
desired_caps[‘appActivity’] = ‘com.taobao.tao.welcome.Welcome’

driver = webdriver.Remote(‘http://localhost:4723/wd/hub‘, desired_caps)
sleep(3)

你可能感兴趣的:(会app自动化的大神帮忙看下,启动脚本 后模拟器里面的APP毫无反应啊,不知道哪一步错了)