收藏
回答

minium.framework.exception.MiniCommandError?

错误日志:====================case num:1, failed num:0, error num:1====================
FirstTest:test_get_system_info has error:
Traceback (most recent call last):
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\libs\unittest\case.py", line 265, in testPartExecutor
    yield
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\libs\unittest\case.py", line 341, in run
    self._miniSetUp()
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\minitest.py", line 416, in _miniSetUp
    self.app.go_home()
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\minium_log.py", line 172, in wrapper
    result = func(*args, **kwargs)
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\app.py", line 838, in go_home
    page = self.switch_tab(
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\minium_log.py", line 172, in wrapper
    result = func(*args, **kwargs)
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\utils\utils.py", line 82, in wrapper
    ret = func(*args, **kwargs)
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\app.py", line 767, in switch_tab
    page = self._change_route_async(
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\app.py", line 934, in _change_route_async
    cmd.get_open_result(wait_timeout)
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\app.py", line 128, in get_open_result
    return self._open_callback.get_result()
  File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\callback.py", line 152, in get_result
    return self._waiter.result()
minium.framework.exception.MiniCommandError: timeout

开发工具初始化成功,但是紧接着就出现这个错误

代码就是minum官网中的demo示例

可以肯定的是minium测试代码没问题,我换了个小程序项目就好使了,但是这个换回来就报错timeout

回答关注问题邀请回答
收藏

2 个回答

  • Divds
    Divds
    2023-12-11

    同样的问题,求怎么解决啊。快折磨死我了

    2023-12-11
    有用
    回复
  • 航
    2023-12-05

    我这个也是,操作登录都正常,登录后的操作运行就提示超时,楼主解决了吗?

    2023-12-05
    有用
    回复 2
    • Divds
      Divds
      2023-12-12
      降低微信开发者工具的版本,现在最新版本好像有BUG
      2023-12-12
      1
      回复
    • 小五
      小五
      01-12
      我是调整了project.config.json并且换了个appId后可以了,然后你再比对下开发者工具内详情处的appId是否和你当前配置的一致,我当时发现这里不一致也会有类似问题
      01-12
      回复
登录 后发表内容