51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2042|回复: 3
打印 上一主题 下一主题

uiautomator2 总是重启失败,卸载重装也无效

[复制链接]
  • TA的每日心情
    无聊
    2 小时前
  • 签到天数: 399 天

    连续签到: 5 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2019-8-8 10:28:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    uiautomator2总是重启失败,卸载重装也无效,按照提示验证都正常,且按照提示更新也无效
    报错信息如下:
    1. INFO:apscheduler.executors.default:Running job "prepare_test (trigger: interval[0:01:00], next run at: 2018-11-21 23:00:24 CST)" (scheduled at 2018-11-21 23:00:24.105281+08:00)
    2. /Library/Python/2.7/site-packages/uiautomator2/__init__.py:470: RuntimeWarning: uiautomator2 is not reponding, restart uiautomator2 automatically
    3.   stacklevel=1)
    4. [2018-11-21 23:00:24] uiautomator is starting ...
    5. [2018-11-21 23:00:25] uiautomator is starting ...
    6. [2018-11-21 23:00:26] uiautomator is starting ...
    7. [2018-11-21 23:00:27] uiautomator is starting ...
    8. [2018-11-21 23:00:29] uiautomator is starting ...
    9. [2018-11-21 23:00:30] uiautomator is starting ...
    10. [2018-11-21 23:00:31] uiautomator is starting ...
    11. [2018-11-21 23:00:32] uiautomator is starting ...
    12. [2018-11-21 23:00:33] uiautomator is starting ...
    13. [2018-11-21 23:00:34] uiautomator is starting ...
    14. [2018-11-21 23:00:35] uiautomator is starting ...
    15. [2018-11-21 23:00:36] uiautomator is starting ...
    16. [2018-11-21 23:00:37] uiautomator is starting ...
    17. [2018-11-21 23:00:38] uiautomator is starting ...
    18. [2018-11-21 23:00:39] uiautomator is starting ...
    19. [2018-11-21 23:00:40] uiautomator is starting ...
    20. [2018-11-21 23:00:41] uiautomator is starting ...
    21. [2018-11-21 23:00:43] uiautomator is starting ...
    22. [2018-11-21 23:00:44] uiautomator is starting ...
    23. ERROR:apscheduler.executors.default:Job "prepare_test (trigger: interval[0:01:00], next run at: 2018-11-21 23:01:24 CST)" raised an exception
    24. Traceback (most recent call last):
    25.   File "/Library/Python/2.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
    26.     retval = job.func(*job.args, **job.kwargs)
    27.   File "/Users/lizhen/cmcm/android_perfmance/battery/bugreport_python/battery_scene/u2_bugreport_test.py", line 118, in prepare_test
    28.     screen_unlock()
    29.   File "/Users/lizhen/cmcm/android_perfmance/battery/bugreport_python/battery_scene/u2_bugreport_test.py", line 34, in screen_unlock
    30.     sess.screen_on()
    31.   File "/Library/Python/2.7/site-packages/uiautomator2/__init__.py", line 1573, in screen_on
    32.     self.jsonrpc.wakeUp()
    33.   File "/Library/Python/2.7/site-packages/uiautomator2/__init__.py", line 458, in __call__
    34.     params, http_timeout)
    35.   File "/Library/Python/2.7/site-packages/uiautomator2/__init__.py", line 472, in jsonrpc_retry_call
    36.     self.reset_uiautomator()
    37.   File "/Library/Python/2.7/site-packages/uiautomator2/__init__.py", line 653, in reset_uiautomator
    38.     "Uiautomator started failed. Find solutions in https://github.com/openatx/uiautomator2/wiki/Common-issues"
    39. RuntimeError: Uiautomator started failed. Find solutions in https://github.com/openatx/uiautomator2/wiki/Common-issues
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    3 小时前
  • 签到天数: 1662 天

    连续签到: 5 天

    [LV.Master]测试大本营

    2#
    发表于 2019-8-9 09:45:49 | 只看该作者
    多操作几次,可能抽风了
    回复

    使用道具 举报

  • TA的每日心情
    慵懒
    2 小时前
  • 签到天数: 1381 天

    连续签到: 5 天

    [LV.10]测试总司令

    3#
    发表于 2019-8-9 10:44:08 | 只看该作者
    重新下个
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    5 小时前
  • 签到天数: 2654 天

    连续签到: 6 天

    [LV.Master]测试大本营

    4#
    发表于 2019-8-9 13:16:27 | 只看该作者
    看不出来
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-4-19 12:23 , Processed in 0.075440 second(s), 21 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表