收藏
回答

minimu自动化,报错uiautomator screen failed是什么意思?



ERROR 2019-11-11 16:40:26,605 uidevice.py screen_shot     214 uiautomator screen failed

Traceback (most recent call last):
  File "c:\python37\lib\site-packages\minium\native\lib\at\core\uidevice.py", line 211, in screen_shot
    res = self.jd.request_at_device("screen", [float(scale), quality, max_idle])
  File "c:\python37\lib\site-packages\minium\native\lib\at\core\javadriver.py", line 338, in request_at_device
    return self.request_action(self.ACTION_AT_DEVICE, method, params)
  File "c:\python37\lib\site-packages\minium\native\lib\at\core\javadriver.py", line 326, in request_action
    return self.request_java(action, params)
  File "c:\python37\lib\site-packages\minium\native\lib\at\core\javadriver.py", line 397, in request_java
    return self.do_request(action, http_params, **kwargs)
  File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 174, in do_request
    ret = self.request(method.lower(), url, http_params, timeout=timeout, **kwargs)
  File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 182, in request
    self._check_env()
  File "c:\python37\lib\site-packages\minium\native\lib\at\core\basedriver.py", line 167, in _check_env
    raise RuntimeError(u"远程服务开启失败,或者提前被中断, %d", id(self))
RuntimeError: ('远程服务开启失败,或者提前被中断, %d', 195398512)


最后一次编辑于  11-11
回答关注问题邀请回答
收藏

1 个回答

  • 曾夏
    曾夏
    11-11

    手动执行这个命令看看是什么输出:

    adb shell am instrument -w -r -e class 'com.tencent.mm.atstub.atserver.StubRunner#testStartServer' com.tencent.mm.atstub.test/android.support.test.runner.AndroidJUnitRunner


    11-11
    赞同
    回复 3
    • 喵星人
      喵星人
      11-12
      执行报错,Error: Argument expected after "com.tencent.mm.atstub.test/android.support.test. runner.AndroidJUnitRunner"
      11-12
      回复
    • 曾夏
      曾夏
      11-12回复喵星人
      adb shell am instrument -w -r -e class 'com.tencent.mm.atstub.atserver.StubRunner#testStartServer' com.tencent.mm.atstub.test/android.support.test.runner.AndroidJUnitRunner
      11-12
      回复
    • 曾夏
      曾夏
      11-12
      复制上面的再试下,第一个贴的直接复制有问题
      11-12
      回复
问题标签