- minitest运行问题?
if'__main__'os"minitest -c config.json -p login -g"configconfig.json -m login -g 都会报错: UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 87: illegal multibyte sequence
2021-10-09 - minitest运行问题?
class FirstTest(minium.MiniTest):def test_get_system_info(self)selfself"SDKVersion", sys_info) 执行出错。 Traceback (most recent call last): File "c:\programfiles\python\lib\s ite-packages\minium\framework\libs\unittest\suite.py", line 33, in _handleClassSetUp _miniClassSetUp() File "c:\programfiles\python\lib\site-packages\minium\framework\minitest.py", line 611, in _miniClassSetUp cls.mini = get_minium(cls.CONFIG) File "c:\programfiles\python\lib\site-packages\minium\framework\minitest.py", line 89, in get_minium g_minium = minium.miniprogram.get_minium_driver(conf=cfg, native=g_native) File "c:\programfiles\python\lib\site-packages\minium\miniprogram\__init__.py", line 28, in get_minium_driver return APP[application](conf, *args, **kwargs) File "c:\programfiles\python\lib\site-packages\minium\miniprogram\wx_minium.py", line 110, in __init__ self.launch_dev_tool() File "c:\programfiles\python\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "c:\programfiles\python\lib\site-packages\minium\miniprogram\wx_minium.py", line 200, in launch_dev_tool self._get_sdk_version() File "c:\programfiles\python\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)。
2021-09-30 - 环境搭建问题:执行文件拿不到官方文档的环境信息?
[图片] Terminal中执行python minium_test.py 执行,没有拿到环境信息:有对应的解决办法吗? 具体报错如下: websocket run error Traceback (most recent call last): File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 407, in _callback callback(self, *args) TypeError: _on_open() takes 1 positional argument but 2 were given During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 322, in run_forever self._callback(self.on_open) File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 412, in _callback self.on_error(self, e) TypeError: _on_error() takes 2 positional arguments but 3 were given During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 407, in _callback callback(self, *args) TypeError: _on_error() takes 2 positional arguments but 3 were given During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 70, in _ws_run_forever self._client.run_forever() File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 371, in run_forever self._callback(self.on_error, e) File "C:\programFiles\python\lib\site-packages\websocket\_app.py", line 412, in _callback self.on_error(self, e) TypeError: _on_error() takes 2 positional arguments but 3 were given Traceback (most recent call last): File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\minium.py", line 102, in launch_dev_tool connection=Connection(self.uri) File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 37, in __init__ self._connect() File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 67, in _connect raise Exception("connect to server timeout: %s, thread:%s"%(self.uri,self._thread.is_alive())) Exception: connect to server timeout: ws://localhost:9420, thread:False connect to server timeout: ws://localhost:9420, thread:False Traceback (most recent call last): File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\minium.py", line 102, in launch_dev_tool connection=Connection(self.uri) File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 37, in __init__ self._connect() File "C:\programFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\connection.py", line 67, in _connect raise Exception("connect to server timeout: %s, thread:%s"%(self.uri,self._thread.is_alive())) Exception: connect to server timeout: ws://localhost:9420, thread:False
2021-09-13 - minium自动化执行python minium_test.py出错?
[图片] 执行以上代码,报错: File "minium_test.py", line 12, in <module> "test_port":9420 File "D:\ProgramFiles\python\lib\site-packages\minium-0.0.2-py3.7.egg\minium\wechatdriver\minium.py", line 53, in __init__ self.uri=uri+":"+test_port TypeError: unsupported operand type(s) for +: 'dict' and 'str'。 怎么解决?
2021-09-12 - 官方提供的小程序自动化文档中配置minium包安装成功后,引用包时提示找不到?
[图片]
2021-09-12