新手区 python 利用 uiautomator 编写自动化脚本遇到的问题,希望大家帮忙解答。。

苏昊波 · September 07, 2017 · Last by llliuyx replied at September 08, 2017 · 2658 hits

做手机自动化工测试,利用 uiautomator 编写自动化脚本,在 android6.0 的设备上运行时正常的,现在测试 android7.0 的设备,就会出现如下错误,请大神指教是什么问题?要怎么解决?

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection
    raise err
[Decode error - output not utf-8]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
[Decode error - output not utf-8]
    server.start(timeout=30)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\uiautomator\__init__.py", line 481, in start
    raise IOError("RPC server not started!")
OSError: RPC server not started!
[Finished in 348.7s with exit code 1]
共收到 2 条回复 时间 点赞

[Decode error - output not utf-8]

这点信息不够解决问题

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up