推荐
  • 全部
  • 文章
  • 问答

  • 在自动化测试框架miniprogram-automator中如何对webview组件中的H5来控制?

    我们的应用,有大量的页面是H5实现的, 在webview中展示 现在我们需要对我们的应用做自动化巡检, 其中有部分流程需要操作到webview的H5页面,请问,这部分工作应该怎么控制

  • 【minium】怎么样小程序console的信息赋值给python变量中?

    使用python+minium调用小程序,怎么样小程序console的信息赋值给python变量中? 比如下图中测试code:的输出结果,我想赋值到python变量中,并打印出来 [图片]

  • 小程序自动化测试,点击输入框没报错但是点击无效,为什么?

    [图片][图片] 点击这个输入框,运行后没报错,但是原本点击后会打开另一页面的,现在没打开,也不知道为啥,点击别的元素都是正常的,就这个输入框不行,有没有大佬知道是咋回事

  • 如何处理openType为chooseAvatar的Button点击事件?

    开发者工具不支持native.text_click的形式,有没有其他办法? self.native.text_click(text="从相册选择")

  • minium编写必须使用类继承 minium.MiniTest 这种吗,自定义编写框架可以吗?

    minium编写必须使用类继承 minium.MiniTest 这种吗,自定义编写框架,比如这个创建实例后,可以通过 mini 这个去定位元素,并进行点击吗 [图片]

  • 云测如何循环执行一条用例?

    录制的脚本,想重复跑这一条用例,现在只跑一遍 [图片]

  • 运行minitest命令,IDE模式,小程序启动后,首页未加载完成就报错?

    [图片] 顺便说一下,本小程序,首页加载比较慢。试了一下,一个新建的无内容小程序跑minitest,是不报错的。 应该如何解决?

  • 为什么在小程序中使用了一次云测服务之后,小程序的接口就不定时被MiniTest调用而且报错?

    在小程序中使用了一次云测服务之后,小程序生产环境的接口就不定时被MiniTest调用而且报错,但是我并没有在MiniTest中开定时测试的任务。出现的错误信息如下图。我想问下如何解决MiniTest调用接口的问题,或者说如何彻底解绑小程序和MiniTest[图片]

  • 原生地图使用map_select_location()方法,没有返回地址,是不是我配置的地址错误?

    业务场景时需要选择地址然后点击确定按钮返回上一页,官方文档提供map_select_location()方法,我看返回的结果是False。然后想知道怎么点击'确定'按钮。业务场景如下图, [图片] 代码如下图, [图片] config.json配置如下 [图片] 运行结果 [图片]

  • 安卓真机调试卡在init miniprogram是什么原因?

    IDE可以正常使用 [图片]

  • minitest,怎么判断当前页面是否弹出原生弹窗(wx.showModal)?

    业务流程里,有个场景是:同个按钮,如果当前满足条件的话,就会弹窗提示弹窗,需要点确定才能继续走下一步,怎么去判断点击按钮后,页面是否存在模态弹窗呢?

  • 小程序云测的启动时间,冷启动跟热启动数据是反的吧

    https://developers.weixin.qq.com/miniprogram/dev/devtools/minitest/api_plan.html [图片]

  • 小程序 录制回放 出现 not equal to 错误?

    [图片]我用小程序录制功能,录制后,回放跳转到另一个页面时出现这个错误,小程序录制回放不支持跳转吗?能否有大神解答一下

  • minium 调起微信支付后使用input_pay_password()后没反应?

    [图片] 提示:call WXAndroidNative.input_pay_password end False

  • 小程序自动化如何模拟用户点击分享卡片

    https://developers.weixin.qq.com/miniprogram/dev/devtools/auto/faq.html

    有用 0
    0
  • 【minium】app.evaluate方法执行js代码报错应该怎么解决?

    js = """ var ctx = document.getElementsByClassName(arguments[0]).getContext('2d'); ctx.font = '70px Arial'; ctx.fillText(arguments[1], 10, 50); """ canvas = {'selector': 'view.firstCanvas>canvas'} self.app.evaluate(app_function=js, args=[canvas['selector'], text], sync=True) 如果直接传递元素会报json序列化错误, TypeError: Object of type BaseElement is not JSON serializable 如果传元素定位会报unexcepted token var; [E 2024-07-16 14:39:45 minium.Conn6672 connection#661 __on_message] [15f69751-1cc7-47c3-b89a-fe398f822552]: Unexpected token 'var' 业务场景,需要在canvas签署中文汉字,想要通过ctx实现绘制;

  • 云测执行录制回放用例超时,总是超时,可能有哪些原因?超时的用例为何还会消费时长?

    [图片]

  • miniprogram-ci preview/upload 上传 报 10009 错误 ?

    [图片][图片]

  • minium运行用例定位元素或者跳转页面的时候,总出现page destoryed,然后重定向页面?

    [图片]

  • 【minium】1. 报告里无运行日志 2. 多账号为什么时而好使时而不好使?

    版本: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

云测官方企业微信群

欢迎大家进群交流