我已经在Culebra GUI的帮助下基于Android 5.0.2的扎根Galaxy S4编写了一个脚本。

测试成功通过。但是,当我尝试在运行Android 6.0的Moto X上运行相同的脚本时,该脚本过早失败。

testSomething (__main__.CulebraTests) ... ERROR

======================================================================
ERROR: testSomething (__main__.CulebraTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./sporza-test.py", line 58, in testSomething
    self.vc.dump(window=-1)
  File "/usr/local/lib/python2.7/dist-packages/androidviewclient-11.4.0-py2.7.egg/com/dtmilano/android/viewclient.py", line 3158, in dump
    raise RuntimeError('''ERROR: UiAutomator output contains no valid information. UiAutomator was killed, no reason given.''' + extraInfo)
RuntimeError: ERROR: UiAutomator output contains no valid information. UiAutomator was killed, no reason given.

----------------------------------------------------------------------
Ran 1 test in 5.536s

FAILED (errors=1)


同样,在运行Android 6.0.1的Nexus 6P上,也会发生相同的情况。

dump在Android棉花糖上不起作用吗?

在我的测试文件中,我已经声明

'ignoreuiautomatorkilled': True


顺便说一句,我在Ubuntu 15.10上运行它

提前致谢。

最佳答案

https://github.com/dtmilano/AndroidViewClient/issues/175中已讨论了此问题。

关于android - AndroidViewClient(Culebra)在棉花糖上失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35255261/

10-12 05:01