Appium appium 升级到 1.0.0.3 启动正常,运行时出错的问题!!

zhuxuan · 2014年05月21日 · 最后由 唐僧之妈 回复于 2014年05月28日 · 1760 次阅读

我以前用的 0.18 版本的,今天升到 1.0.0.3 版本之后启动正常,运行时出错,这是控制台信息,大神帮忙分析下,,万分感谢!!!!!

info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
info: Getting focused package and activity
ERROR: debug: executing: "D:\sdk\platform-tools\adb.exe" -s 430080d9d252c009 shell "dumpsys window windows"
ERROR: error: com.hp.photohive/com.pogoplug.android.login.Splash never started. Current: com.hp.photohive/com.lifesaver.ui.utils.UiHpcAccountAct
info: Stopping logcat capture
ERROR: debug: Logcat terminated with code null, signal SIGTERM
info: [BOOTSTRAP] [info] Got data from client: {"cmd":"shutdown"}
info: [BOOTSTRAP] [info] Got command of type SHUTDOWN
info: [BOOTSTRAP] [info] Returning result: {"value":"OK, shutting down","status":0}
info: [BOOTSTRAP] [info] Closed client connection
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [UIAUTOMATOR STDOUT] Time: 22.229
info: [UIAUTOMATOR STDOUT] OK (1 test)
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: Sent shutdown command, waiting for UiAutomator to stop...
info: UiAutomator shut down normally
ERROR: error: Failed to start an Appium session, err was: Error: com.hp.photohive/com.pogoplug.android.login.Splash never started. Current: com.hp.photohive/com.lifesaver.ui.utils.UiHpcAccountAct
info: Cleaning up android objects
info: Cleaning up appium session
info: Error: com.hp.photohive/com.pogoplug.android.login.Splash never started. Current: com.hp.photohive/com.lifesaver.ui.utils.UiHpcAccountAct
at null. (D:\AppiumForWindows\Appium\node_modules\appium\lib\devices\android\adb.js:1268:12)
at null. (D:\AppiumForWindows\Appium\node_modules\appium\lib\devices\android\adb.js:1214:7)
at D:\AppiumForWindows\Appium\node_modules\appium\lib\devices\android\adb.js:154:5
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: com.hp.photohive/com.pogoplug.android.login.Splash never started. Current: com.hp.photohive/com.lifesaver.ui.utils.UiHpcAccountAct)","origValue":"com.hp.photohive/com.pogoplug.android.login.Splash never started. Current: com.hp.photohive/com.lifesaver.ui.utils.UiHpcAccountAct"},"sessionId":null}
POST /wd/hub/session 500 35364ms - 410b

共收到 4 条回复 时间 点赞

我用的 1.0.0.3 也是这个问题,但是脚本运行正常。

那你现在解决没有啊,亲?

增加 'appWaitActivity'

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册