标题: python利用uiautomator编写自动化脚本遇到的问题,希望大家帮忙解答。。 [打印本页] 作者: tester__ 时间: 2017-9-6 16:04 标题: python利用uiautomator编写自动化脚本遇到的问题,希望大家帮忙解答。。 做手机自动化工测试,利用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]
作者: fhhh_eyou 时间: 2017-9-6 16:04
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] 作者: fhhh_eyou 时间: 2017-9-7 14:48
语言转换错误。
Decode error - output not utf-8