AndroidViewClient(Culebra)在Marshmallow上失败

时间:2016-02-07 15:20:22

标签: android ubuntu androidviewclient

我在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 Marshmallow上运行吗?

在我的测试文件中,我声明了

'ignoreuiautomatorkilled': True

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

提前致谢。

1 个答案:

答案 0 :(得分:1)