同遇到该问题
minitest1.2.1版本跑一个用例时候出现以下错误,改什么解决?Traceback (most recent call last): File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/framework/libs/unittest/suite.py", line 33, in _handleClassSetUp _miniClassSetUp() File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/framework/minitest.py", line 243, in _miniClassSetUp cls.mini = get_minium(cls.CONFIG) File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/framework/minitest.py", line 99, in get_minium g_minium = minium.miniprogram.get_minium_driver(conf=cfg, native=g_native) File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/__init__.py", line 28, in get_minium_driver return APP[application](conf, *args, **kwargs) File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/wx_minium.py", line 93, in __init__ self.launch_weapp() File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/base_driver/minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/wx_minium.py", line 660, in launch_weapp self.launch_dev_tool() File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/base_driver/minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/wx_minium.py", line 705, in launch_dev_tool self.__update_project_config() File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/wx_minium.py", line 677, in __update_project_config self.sdk_version is not None and self._comp_version(self.sdk_version, "2.7.3") == -1 File "/Users/zcy/MiniumProjects/minium-1.2.2/minium/miniprogram/base_driver/minium_object.py", line 437, in _comp_version if int(a[i]) > int(b[i]): ValueError: invalid literal for int() with base 10: ''
2021-12-05result={ errMsg: "requestSubscribeMessage:ok",订阅消息模板id: "accept"}//填入requestSubscribeMessage函数succees后回调返回的参数 self.app.mock_wx_method("requestSubscribeMessage",result=response,success=True)
minium,mock_wx_method方法再ide中使用问题?请教,minium自动化测试,在ide中, 怎么使用mock_wx_method,处理requestSubscribeMessage订阅弹框
2021-10-27遇到同样的问题,请问解决了吗[图片]
minium更新到1.2.0的时候获取系统信息的时候报错是怎么回事呢?minium的版本是1.2.0的[图片] [图片] 运行以上代码的时候报了下面的错 重新安装会1.0.6的版本运行以上代码的时候就能正常运行不会报错 Traceback (most recent call last): File "E:\pycharm\winxuanjiuyue\demo.py", line 12, in <module> mini = minium.Minium({ File "D:\Programs\Python\Python39\lib\site-packages\minium\__init__.py", line 20, in Minium return get_minium_driver(conf, *args, **kwargs) File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\__init__.py", line 28, in get_minium_driver return APP[application](conf, *args, **kwargs) File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\wx_minium.py", line 110, in __init__ self.launch_dev_tool() File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\wx_minium.py", line 200, in launch_dev_tool self._get_sdk_version() File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\wx_minium.py", line 166, in _get_sdk_version self.sdk_version = json.loads(fd.read().strip()).get("libVersion", None) UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 1497: illegal multibyte sequence
2021-10-11