执行minium官网文档中的第一个案例时,第一次执行总是报错:
ERROR 2023-01-29 11:25:04,281 connection.py _on_message 260 [31m[b93c2a77-3dab-4435-b28b-00a9689ceccb]: getSetting:fail[0m
ERROR 2023-01-29 11:25:04,390 assertbase.py _get_error_info 235 [31mself._outcome is None, it's not reasonable[0m
ERROR 2023-01-29 11:25:04,395 assertbase.py _teardown_collect 273 [31m<bound method FirstTest.test_get_system_info of <test.first_test.FirstTest testMethod=test_get_system_info>>[0m
报错执行之后开发者工具不会退出,此时再次执行就可以正常运行了。求大佬指导原因
初始化成功了吗
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 837, 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 933, 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
[W 2023-11-09 10:36:47 minium assertbase#331 _log_info_when_error] config: {'debug': False, 'base_dir': 'D:\\Project\\study-vue-project\\wx-automation-test\\wx-automation-test', 'platform': 'ide', 'app': 'wx', 'debug_mode': 'debug
', 'close_ide': False, 'auto_capture': 'auto', 'check_mp_foreground': True, 'auto_relaunch': True, 'device_desire': {}, 'account_info': {}, 'report_usage': True, 'remote_connect_timeout': 180, 'request_timeout': 60, 'use_push': Tr
ue, 'full_reset': False, 'outputs': 'D:\\Project\\study-vue-project\\wx-automation-test\\wx-automation-test\\outputs', 'enable_app_log': False, 'enable_network_panel': False, 'project_path': 'D:\\Project\\study-vue-project\\WXmini
[D 2023-11-09 10:36:57 minium.Conn9184 connection#653 __on_message] RECV < {"id":"b677f7e0-56af-467b-8e3c-d14ea5444a50","result":{}}
[I 2023-11-09 10:36:57 minium.Conn9184 connection#697 _handle_async_msg] received async msg: b677f7e0-56af-467b-8e3c-d14ea5444a50, maybe command ignore response
[E 2023-11-09 10:36:57 minium.Conn9184 connection#632 _on_error] Connection to remote host was lost.
[I 2023-11-09 10:36:57 minium.Conn9184 connection#367 _ws_run_forever] websocket run forever shutdown
[I 2023-11-09 10:36:58 minium basenative#25 wrapper] call IdeNative.stop_wechat
[I 2023-11-09 10:36:58 minium basenative#29 wrapper] call IdeNative.stop_wechat end
[I 2023-11-09 10:36:58 minium basenative#25 wrapper] call IdeNative.release
[I 2023-11-09 10:36:58 minium basenative#25 wrapper] call BaseNative.release
[I 2023-11-09 10:36:58 minium basenative#101 release] Native release
[I 2023-11-09 10:36:58 minium basenative#25 wrapper] call BaseNative.release_auto_authorize
[I 2023-11-09 10:36:58 minium basenative#29 wrapper] call BaseNative.release_auto_authorize end
[I 2023-11-09 10:36:58 minium basenative#29 wrapper] call BaseNative.release end
[I 2023-11-09 10:36:58 minium basenative#29 wrapper] call IdeNative.release end
遇到了同类问题