赞
踩
我用的是真机 安卓 4.4.3 的智能电视,执行脚本后被调应用不停的重启, 求助啊 各位有没有遇到过的啊
看日志没有什么异常啊
C:\Users\Robin>appium
[Appium] Welcome to Appium v1.6.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"platformVersion":"4.4.3","deviceName":"192.168.1.106:5555","platformName":"Android","appActivity":".VodActivity","appPackage":"com.jamdeo.tv.vod"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformVersion":"4.4.3","deviceName":"192.168.1.106:5555","platformName":"Android","appActivity":".VodActivity","appPackage":"com.jamdeo.tv.vod"},{},null,null,null]
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] platformVersion: '4.4.3'
[Appium] deviceName: '192.168.1.106:5555'
[Appium] platformName: 'Android'
[Appium] appActivity: '.VodActivity'
[Appium] appPackage: 'com.jamdeo.tv.vod'
[debug] [AndroidDriver] AndroidDriver version: 1.10.36
[BaseDriver] Session created with session id: cdb86f28-1a1e-4f34-b70f-3e4378d9136e
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_111
[ADB] Checking whether adb is present
[ADB] Using adb.exe from D:\android\adt-bundle-windows-x86-20140321\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] Looking for a device with Android '4.4.3'
[debug] [ADB] Setting device id to 192.168.1.106:5555
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","getprop","ro.build.version.release"]
[AndroidDriver] Using device: 192.168.1.106:5555
[ADB] Checking whether adb is present
[ADB] Using adb.exe from D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe
[debug] [ADB] Setting device id to 192.168.1.106:5555
[AndroidDriver] App file was not listed, instead we're going to run com.jamdeo.tv.vod directly on the device
[debug] [AndroidDriver] Checking whether package is present on the device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","pm","list","packages","com.jamdeo.tv.vod"]
[AndroidDriver] Starting Android session
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","echo","ping"]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","install","C:\Users\Robin\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\bin\settings_apk-debug.apk"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","install","C:\Users\Robin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk"]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","getprop","ro.build.version.release"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [AndroidDriver] No app capability. Assuming it is already on the device
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","am","force-stop","com.jamdeo.tv.vod"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","pm","clear","com.jamdeo.tv.vod"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","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 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","push","C:\Users\Robin\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-bootstrap\bootstrap\bin\AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","192.168.1.106:5555","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.jamdeo.tv.vod","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[debug] [UiAutomator] Moving to state 'online'
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Getting connected devices...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Device API level: 19
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","am","start","-W","-n","com.jamdeo.tv.vod/.VodActivity","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[Appium] New AndroidDriver session created successfully, session cdb86f28-1a1e-4f34-b70f-3e4378d9136e added to master session list
[debug] [MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformVersion":"4.4.3","deviceName":"192.168.1.106:5555","platformName":"Android","appActivity":".VodActivity","appPackage":"com.jamdeo.tv.vod"},"platformVersion":"4.4.3","deviceName":"192.168.1.106:5555","platformName":"Android","appActivity":".VodActivity","appPackage":"com.jamdeo.tv.vod","deviceUDID":"192.168.1.106:5555"}
[HTTP]
[BaseDriver] Shutting down because we waited 60 seconds for a command
[debug] [AndroidDriver] Shutting down Android driver
[Appium] Closing session, cause was 'New Command Timeout of 60 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability'
[Appium] Removing session cdb86f28-1a1e-4f34-b70f-3e4378d9136e from our master session list
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","am","force-stop","com.jamdeo.tv.vod"]
[debug] [ADB] Pressing the HOME button
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","input","keyevent",3]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"shutdown"}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"shutdown"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [UiAutomator] Shutting down UiAutomator
[debug] [UiAutomator] Moving to state 'stopping'
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"value":"OK, shutting down","status":0}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Closed client connection
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: numtests=1
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: stream=.
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: current=1
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS_CODE: 0
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS: stream=
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Test results for WatcherResultPrinter=.
[debug] [AndroidBootstrap] [UIAUTO STDOUT] Time: 65.37
[debug] [AndroidBootstrap] [UIAUTO STDOUT] OK (1 test)
[debug] [AndroidBootstrap] [UIAUTO STDOUT] INSTRUMENTATION_STATUS_CODE: -1
[debug] [UiAutomator] UiAutomator shut down normally
[debug] [UiAutomator] Moving to state 'stopped'
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Moving to state 'stopped'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\android\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","192.168.1.106:5555","shell","am","force-stop","io.appium.unlock"]
[debug] [Logcat] Stopping logcat capture
[debug] [AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。