版本:1.5.5
suite.json
{
"pkg_list": [
{
"case_list": [
"*"
],
"pkg": "cases.wx.weapp_u_sopei_project.*"
}
]
}
config.json
[
{
"project_path": "D:\\Project\\sopei-other\\weapp_u_sopei_cn",
"dev_tool_path": "D:\\Software\\微信web开发者工具\\cli.bat",
"debug_mode": "info",
"outputs": ".\\output\\wx_u_report\\report_data",
"platform": "ide",
"app": "wx",
"debug": true,
"close_ide": false,
"full_reset": true,
"test_port": 9422,
"assert_capture": true,
"auto_relaunch": true,
"auto_authorize": true,
"enable_app_log": false,
"use_push": false,
"account_info": {
"openid": "xxx",
"nickName": "xxx"
}
},
{
"project_path": "D:\\Project\\sopei-other\\weapp_u_sopei_cn",
"dev_tool_path": "D:\\Software\\微信web开发者工具\\cli.bat",
"debug_mode": "info",
"outputs": ".\\output\\wx_u_report\\report_data",
"platform": "ide",
"app": "wx",
"debug": true,
"close_ide": false,
"full_reset": true,
"test_port": 9423,
"assert_capture": true,
"auto_relaunch": true,
"auto_authorize": true,
"enable_app_log": false,
"use_push": false,
"account_info": {
"openid": "xxx",
"nickName": "xxx"
}
}
]
1. 报告里无运行日志
loader下是有日志的
2. 多账号运行模式下为什么还是串行跑case?
假设我跑两个case,然后配置了多个账户,但是跑case时依旧是一个一个跑
【第二个问题解决了】
3. 多账号运行为啥在parallel模式下不好使呢?我希望几个账户分批运行case,但是parallel模式运行的效果是串行,而不加--mode parallel是所有账号同时跑一个case???
【这个问题也解决了,文档中说每个账号从队列中取一个pkg运行,是指从pkg_list下选一个,所以我每个case都得单独写在一个文件里???】
{
"pkg_list": [
{
"case_list": [
"*"
],
"pkg": "cases.wx.weapp_u_sopei_project.test_adapt_data_project"
},
{
"case_list": [
"*"
],
"pkg": "cases.wx.weapp_u_sopei_project.test_adapt_data_project2"
},
{
"case_list": [
"*"
],
"pkg": "cases.wx.weapp_u_sopei_project.test_adapt_data_project3"
}
]
}
4.多账户为什么时而好使时而不好使???明明日志都打出来了
==========Scan Cases from suite===========
└─ cases.wx.weapp_u_sopei_project.test_adapt_data_project
│ ├─ TestDataAssert.test_weapp_u_adapt_lsc1
└─ cases.wx.weapp_u_sopei_project.test_adapt_data_project2
│ ├─ TestDataAssert2.test_weapp_u_adapt_lsc2
└─ cases.wx.weapp_u_sopei_project.test_adapt_data_project3
│ ├─ TestDataAssert3.test_weapp_u_adapt_lsc3
[I 2024-07-02 10:22:14 minium loader#646 main] load 3 cases
[I 2024-07-02 10:22:14 minium loader#647 main] import package 【cases.wx.weapp_u_sopei_project.test_adapt_data_project2,cases.wx.weapp_u_sopei_project.test_adapt_data_project3,cases.wx.weapp_u_sopei_project.test_adapt_data_project】 success, import package 【】 fail
2024-07-02 10:22:14 "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\loader.py:659" -main-[print]- after load config/wx_u_sopei_project/suite.json
2024-07-02 10:22:14 "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\loader.py:660" -main-[print]- g_case_list size: 3
2024-07-02 10:22:14 "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\loader.py:662" -main-[print]- test_weapp_u_adapt_lsc1 (cases.wx.weapp_u_sopei_project.test_adapt_data_project.TestDataAssert)
2024-07-02 10:22:14 "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\loader.py:662" -main-[print]- test_weapp_u_adapt_lsc2 (cases.wx.weapp_u_sopei_project.test_adapt_data_project2.TestDataAssert2)
2024-07-02 10:22:14 "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\loader.py:662" -main-[print]- test_weapp_u_adapt_lsc3 (cases.wx.weapp_u_sopei_project.test_adapt_data_project3.TestDataAssert3)
2024-07-02 10:22:14 "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\framework\loader.py:673" -main-[print]- {'version': '1.5.5', 'revision': 'dcf6f3345021813b36f0d1b3002746ebf0ec334b', 'branch': 'master', 'update_at': '2024-06-04 11:56:11'}
[I 2024-07-02 10:22:14 minium loader#299 run_session] start session with parallel mode
{'debug': True, 'base_dir': 'D:\\Project\\sopei-other\\other\\TestAutomation\\config\\wx_u_sopei_project', 'platform': 'ide', 'app': 'wx', 'debug_mode': 'info', 'close_ide': False, 'auto_capture': 'auto', 'check_mp_foreground': True, 'auto_relaunch': True, 'device_desire': {}, 'account_info': {'openid': 'o6zAJsz5tL2WOSML-li4x4OT_oRg', 'nickName': '17167851889'}, 'report_usage': True, 'remote_connect_timeout': 180, 'request_timeout': 60, 'use_push': False, 'full_reset': False, 'outputs': '.\\output\\wx_u_report\\report_data', 'enable_app_log': False, 'enable_network_panel': False, 'project_path': 'D:\\Project\\sopei-other\\weapp_u_sopei_cn', 'dev_tool_path': 'D:\\Software\\微信web开发者工具\\cli.bat', 'test_port': 9421, 'mock_native_modal': {}, 'mock_request': [], 'auto_authorize': True, 'audits': None, 'teardown_snapshot': False, 'mock_images_dir': '', 'mock_images': {}, 'need_perf': False, 'appid': None, 'enable_h5': True, 'assert_capture': True, 'framework_capture': True, 'error_capture': False, 'create_time': '20240702102214'}
[I 2024-07-02 10:22:14 minium loader#299 run_session] start session with parallel mode
{'debug': True, 'base_dir': 'D:\\Project\\sopei-other\\other\\TestAutomation\\config\\wx_u_sopei_project', 'platform': 'ide', 'app': 'wx', 'debug_mode': 'info', 'close_ide': False, 'auto_capture': 'auto', 'check_mp_foreground': True, 'auto_relaunch': True, 'device_desire': {}, 'account_info': {'openid': 'o6zAJs3IX0J0FkkGbyVPdIO-qJfI', 'nickName': '17167851887'}, 'report_usage': True, 'remote_connect_timeout': 180, 'request_timeout': 60, 'use_push': False, 'full_reset': False, 'outputs': '.\\output\\wx_u_report\\report_data', 'enable_app_log': False, 'enable_network_panel': False, 'project_path': 'D:\\Project\\sopei-other\\weapp_u_sopei_cn', 'dev_tool_path': 'D:\\Software\\微信web开发者工具\\cli.bat', 'test_port': 9422, 'mock_native_modal': {}, 'mock_request': [], 'auto_authorize': True, 'audits': None, 'teardown_snapshot': False, 'mock_images_dir': '', 'mock_images': {}, 'need_perf': False, 'appid': None, 'enable_h5': True, 'assert_capture': True, 'framework_capture': True, 'error_capture': False}
[I 2024-07-02 10:22:15 minium minitest#200 init_miniprogram] start init miniprogram
[I 2024-07-02 10:22:15 minium basenative#59 wrapper] call IdeNative.start_wechat
[I 2024-07-02 10:22:15 minium basenative#63 wrapper] call IdeNative.start_wechat end None
[I 2024-07-02 10:22:15 minium wx_minium#680 launch_dev_tool] Starting dev tool and launch MiniProgram project ...
[I 2024-07-02 10:22:15 minium minium_object#83 _do_shell] de shell: cli.bat auto --project "D:\Project\sopei-other\weapp_u_sopei_cn" --auto-port 9421
[I 2024-07-02 10:22:16 minium minitest#200 init_miniprogram] start init miniprogram
[I 2024-07-02 10:22:16 minium basenative#59 wrapper] call IdeNative.start_wechat
[I 2024-07-02 10:22:16 minium basenative#63 wrapper] call IdeNative.start_wechat end None
[I 2024-07-02 10:22:16 minium wx_minium#680 launch_dev_tool] Starting dev tool and launch MiniProgram project ...
[I 2024-07-02 10:22:16 minium minium_object#83 _do_shell] de shell: cli.bat auto --project "D:\Project\sopei-other\weapp_u_sopei_cn" --auto-port 9422
[I 2024-07-02 10:22:20 minium minium_object#101 _do_shell] err:
- initialize
× IDE may already started at port 64672, trying to connect
× #initialize-error: wait IDE port timeout
[I 2024-07-02 10:22:46 minium minium_object#102 _do_shell] out:
[I 2024-07-02 10:22:56 minium wx_minium#777 connect_dev_tool] Trying to connect Dev tool ...
[E 2024-07-02 10:23:00 minium.Conn4528 connection#632 _on_error] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
[I 2024-07-02 10:23:00 minium.Conn4528 connection#367 _ws_run_forever] websocket run forever shutdown
[E 2024-07-02 10:23:00 minium wx_minium#789 connect_dev_tool] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
Traceback (most recent call last):
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\wx_minium.py", line 778, in connect_dev_tool
self.connection = Connection.create(
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 169, in create
instance = cls(uri, *args, **kwargs)
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 209, in __init__
self._connect()
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 351, in _connect
raise error_callback.result
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_app.py", line 327, in run_forever
self.sock.connect(
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_core.py", line 244, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 130, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 205, in _open_socket
raise err
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 185, in _open_socket
sock.connect(address)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
[I 2024-07-02 10:23:00 minium wx_minium#777 connect_dev_tool] Trying to connect Dev tool ...
[E 2024-07-02 10:23:05 minium.Conn6976 connection#632 _on_error] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
[I 2024-07-02 10:23:05 minium.Conn6976 connection#367 _ws_run_forever] websocket run forever shutdown
[E 2024-07-02 10:23:05 minium wx_minium#789 connect_dev_tool] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
Traceback (most recent call last):
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\wx_minium.py", line 778, in connect_dev_tool
self.connection = Connection.create(
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 169, in create
instance = cls(uri, *args, **kwargs)
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 209, in __init__
self._connect()
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 351, in _connect
raise error_callback.result
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_app.py", line 327, in run_forever
self.sock.connect(
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_core.py", line 244, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 130, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 205, in _open_socket
raise err
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 185, in _open_socket
sock.connect(address)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
[I 2024-07-02 10:23:05 minium wx_minium#777 connect_dev_tool] Trying to connect Dev tool ...
[E 2024-07-02 10:23:09 minium.Conn8512 connection#632 _on_error] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
[I 2024-07-02 10:23:09 minium.Conn8512 connection#367 _ws_run_forever] websocket run forever shutdown
[E 2024-07-02 10:23:09 minium wx_minium#789 connect_dev_tool] [WinError 10061] 由于目标计算机积极拒绝,无法连接。
Traceback (most recent call last):
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\wx_minium.py", line 778, in connect_dev_tool
self.connection = Connection.create(
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 169, in create
instance = cls(uri, *args, **kwargs)
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 209, in __init__
self._connect()
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\minium\miniprogram\base_driver\connection.py", line 351, in _connect
raise error_callback.result
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_app.py", line 327, in run_forever
self.sock.connect(
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_core.py", line 244, in connect
self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 130, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 205, in _open_socket
raise err
File "C:\Users\94391\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\websocket\_http.py", line 185, in _open_socket
sock.connect(address)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
[E 2024-07-02 10:23:09 minium wx_minium#739 launch_dev_tool] three times try to connect Dev tool has all fail ..., restart now...
[I 2024-07-02 10:23:09 minium wx_minium#753 launch_dev_tool] Starting dev tool again...
[I 2024-07-02 10:23:09 minium minium_object#83 _do_shell] de shell: cli.bat auto --project "D:\Project\sopei-other\weapp_u_sopei_cn" --auto-port 9422
[E 2024-07-02 10:23:12 minium.Conn5536 connection#632 _on_error] [WinError 10054] 远程主机强迫关闭了一个现有的连接。
[I 2024-07-02 10:23:12 minium.Conn5536 connection#367 _ws_run_forever] websocket run forever shutdown
[W 2024-07-02 10:23:12 minium.Conn5536 connection#552 reconnect] connection reconnect
[I 2024-07-02 10:23:12 minium minium_object#101 _do_shell] err:
- initialize
√ IDE server has started, listening on http://127.0.0.1:14150
- preparing
- Fetching AppID (wxc32a18a73224dc73) permissions
√ Using AppID: wxc32a18a73224dc73
√ auto