AndroidViewClient(Culebra)在棉花糖上失败
我在Android 5.0.2的根Galaxy S4上借助Culebra GUI制作了一个脚本 考试成功通过了。然而,当我试图在运行安卓6.0的MotoX上运行相同的脚本时,脚本过早地失败了AndroidViewClient(Culebra)在棉花糖上失败,android,ubuntu,androidviewclient,Android,Ubuntu,Androidviewclient,我在Android 5.0.2的根Galaxy S4上借助Culebra GUI制作了一个脚本 考试成功通过了。然而,当我试图在运行安卓6.0的MotoX上运行相同的脚本时,脚本过早地失败了 testSomething (__main__.CulebraTests) ... ERROR ====================================================================== ERROR: testSomething (__main__.Cul
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)
同样,在运行安卓6.0.1的Nexus6p上也会发生同样的事情
dump
在Android棉花糖上不起作用吗
在我的测试文件中,我声明了
'ignoreuiautomatorkilled': True
顺便说一句,我在Ubuntu 15.10上运行这个
提前感谢。这个问题已经在中讨论过。我测试了
AndroidViewClient
、dump
和culebra
,它们在Android 6.0.1上都能正常工作。尝试重新启动设备并再次运行测试。另外,手动运行uiautomator dump
,查看它是否产生一些错误。