- Native. handle_modal方法中的title参数不起作用。是怎么回事?
[图片]
2023-07-15 - enable_network_panel这个参数不起作用。是怎么回事?
[图片] [图片]
2023-07-13 - 本地执行app.call_wx_method调用报错,不清楚是为什么?求助。
minitest用的1.4.3版本。用pycharm调用接口网址报错。谁帮我看一下。 [图片]C:\Users\wy\AppData\Local\Programs\Python\Python310\python.exe "C:/Program Files/JetBrains/PyCharm Community Edition 2023.1.2/plugins/python-ce/helpers/pycharm/_jb_unittest_runner.py" --target test.first_test7.AppTest Testing started at 16:44 ... Launching unittests with arguments python -m unittest test.first_test7.AppTest in C:\Users\wy\PycharmProjects\pythonProject\test\outputs DEBUG 2023-07-12 16:44:34,540 minitest.py _miniClassSetUp 248 ===================== DEBUG 2023-07-12 16:44:34,540 minitest.py _miniClassSetUp 249 Testing class:AppTest DEBUG 2023-07-12 16:44:34,540 minitest.py _miniClassSetUp 250 ===================== WARNI 2023-07-12 16:44:34,541 assertbase.py setUpConfig 134 can't find config.json in C:\Users\wy\PycharmProjects\pythonProject\test\outputs, loading default config INFO 2023-07-12 16:44:34,541 minitest.py init_miniprogram 144 start init miniprogram INFO 2023-07-12 16:44:34,543 basenative.py wrapper 24 call IdeNative.start_wechat INFO 2023-07-12 16:44:34,543 basenative.py wrapper 28 call IdeNative.start_wechat end INFO 2023-07-12 16:44:34,544 wx_minium.py launch_dev_tool 565 Starting dev tool and launch MiniProgram project ... WARNI 2023-07-12 16:44:34,545 wx_minium.py launch_dev_tool 610 Can not find `project_path` in config, that means you must open dev tool by automation way first WARNI 2023-07-12 16:44:34,545 wx_minium.py launch_dev_tool 614 If you are not running command like [cli auto --project /path/to/project --auto-port 9420], you may config `project_path` or run this command first INFO 2023-07-12 16:44:34,546 wx_minium.py connect_dev_tool 661 Trying to connect Dev tool ... INFO 2023-07-12 16:44:34,618 connection.py _connect 342 connect to WebChatTools successfully DEBUG 2023-07-12 16:44:34,619 connection.py _safely_send 417 SEND > {"id":"4ca7b8da-fd42-4449-b324-9152e3ec7b65","method":"Tool.getInfo","params":{}} DEBUG 2023-07-12 16:44:34,620 connection.py _on_message 652 RECV < {"id":"4ca7b8da-fd42-4449-b324-9152e3ec7b65","result":{"version":"1.06.2306020","SDKVersion":"2.19.4"}} DEBUG 2023-07-12 16:44:34,620 connection.py _safely_send 417 SEND > {"id":"45040346-2ead-447c-95f8-f99c96472d07","method":"App.callWxMethod","params":{"method":"getSystemInfoSync","args":[]}} DEBUG 2023-07-12 16:44:34,623 connection.py _on_message 650 RECV < {"id":"45040346-2ead-447c-95f8-f99c96472d07","result":{"result":{"model":"iPhone 5","pixelRatio":2,"windowWidth":320,"windowHeight":456,"system":"iOS 10.0.1","language":"zh_CN","version":"8.0.5","deviceOrientation":"portrait","screenWidth":320,"screenHeight":568,"SDKVersion":"2.19.4","brand":"devtools","fontSizeSetting":16,"benchmarkLevel":1,"batteryLevel":100,"statusBarHeight":20,"bluetoothEnabled":true,"locationEnabled":true,"wifiEnabled":true,"cameraAuthorized":true,"locationAuthorized":true,"micropho... DEBUG 2023-07-12 16:44:34,624 connection.py remove 283 remove key which is not in observers DEBUG 2023-07-12 16:44:34,625 connection.py _safely_send 417 SEND > {"id":"7cfa9cd1-6b2d-4902-b7e9-9438b1bcbbd3","method":"App.addBinding","params":{"name":"onAppRouteDone"}} DEBUG 2023-07-12 16:44:34,626 connection.py _on_message 652 RECV < {"id":"7cfa9cd1-6b2d-4902-b7e9-9438b1bcbbd3","result":{}} DEBUG 2023-07-12 16:44:34,627 connection.py _safely_send 417 SEND > {"id":"1923339b-562e-4296-ae13-74a474164c36","method":"App.callFunction","params":{"functionDeclaration":"function () {\n if (!global.__minium_onAppRouteDone) {\n wx.onAppRouteDone(function (options) {\n onAppRouteDone(options, Date.now())\n })\n global.__minium_onAppRouteDone = true\n }\n}","args":[]}} DEBUG 2023-07-12 16:44:34,629 connection.py _on_message 652 RECV < {"id":"1923339b-562e-4296-ae13-74a474164c36","result":{}} DEBUG 2023-07-12 16:44:34,630 connection.py _safely_send 417 SEND > {"id":"5368c100-6bb3-498b-ba75-37b8ba731157","method":"App.callFunction","params":{"functionDeclaration":"function miniumRequestStack(){if(!global.__minium_request_stack){global.__minium_request_stack=new Map,global.__minium_wait_util=function(e=0,t=20){var _=(getCurrentPages().pop()||{}).__wxWebviewId__;return new Promise((r=>{var a=10*t,i=setInterval((()=>{a--;var t=global.__minium_request_stack.has(_)?global.__minium_request_stack.get(_).size:0;console.debug(\"[minitest] current stack size: \",t),t<=e?(clearInterval(i),r(!0)):a<0&&(clearInterval(i),r(!1))}),100)}))};var e=wx._MINI_WX_PROXY_||wx,t=e.request;return Object.defineProperty(e,\"request\",{configurable:!0,get:()=>function(e){if(\"https://weapp.tencent.com/jscov_driver/CollectCovTimer\"==e.url)return t(e);var _,r=(getCurrentPages().pop()||{}).__wxWebviewId__;global.__minium_request_stack.has(r)?_=global.__minium_request_stack.get(r):(_=new Map,global.__minium_request_stack.set(r,_));var a,i=e.complete;e.complete=e=>{_.delete(a),0===_.size&&global.__minium_request_stack.delete(r),i&&i(e)};var n=t(e);return a=n&&n.uniqueId||Math.random(),_.set(a,Date.now()),n}}),!0}return!1}","args":[]}} DEBUG 2023-07-12 16:44:34,632 connection.py _on_message 652 RECV < {"id":"5368c100-6bb3-498b-ba75-37b8ba731157","result":{"result":false}} DEBUG 2023-07-12 16:44:34,634 connection.py _safely_send 417 SEND > {"id":"2c55df78-516e-4424-92d1-5541d5e7dfb2","method":"App.callFunction","params":{"functionDeclaration":"function checkInject(){var i=!1;return global.__minium?i=!0:(global.__minium={},i=!1),{injected:i,isThirdApp:!!wx._MINI_WX_PROXY_}}","args":[]}} DEBUG 2023-07-12 16:44:34,636 connection.py _on_message 652 RECV < {"id":"2c55df78-516e-4424-92d1-5541d5e7dfb2","result":{"result":{"injected":true,"isThirdApp":false}}} DEBUG 2023-07-12 16:44:34,637 connection.py _safely_send 417 SEND > {"id":"f01d072c-af5c-4344-9abc-d9fab42456c5","method":"App.callFunction","params":{"functionDeclaration":"function(){return {\"pages\": __wxConfig.pages, \"tabBar\": __wxConfig.tabBar && __wxConfig.tabBar.list} }","args":[]}} DEBUG 2023-07-12 16:44:34,639 connection.py _on_message 652 RECV < {"id":"f01d072c-af5c-4344-9abc-d9fab42456c5","result":{"result":{"pages":["pages/index/index","pages/mine/mine","pages/login/wechatlogin","pages/login/selflogin","pages/testapp/testapp","pages/testpage/testpage","pages/testelement/testelement","pages/testnative/testnative","pages/exception_page/exception_page","pages/testlive/testplayer","pages/testlive/testpusher","pages/webview/webview"],"tabBar":[{"pagePath":"pages/index/index.html","text":"首页"},{"pagePath":"pages/mine/mine.html","text":"登录"}]}}} DEBUG 2023-07-12 16:44:34,640 connection.py _safely_send 417 SEND > {"id":"8c5e992c-7a9c-4afb-9f31-8cbf5ad71760","method":"App.callWxMethod","params":{"method":"getAccountInfoSync","args":[]}} DEBUG 2023-07-12 16:44:34,642 connection.py _on_message 652 RECV < {"id":"8c5e992c-7a9c-4afb-9f31-8cbf5ad71760","result":{"result":{"miniProgram":{"appId":"wx143f7d5f202671c3","envVersion":"develop","version":""}}}} DEBUG 2023-07-12 16:44:34,643 connection.py _safely_send 417 SEND > {"id":"f862dd4b-13e1-4b08-912b-a40618ec2d85","method":"App.callWxMethod","params":{"method":"getLaunchOptionsSync","args":[]}} DEBUG 2023-07-12 16:44:34,645 connection.py _on_message 652 RECV < {"id":"f862dd4b-13e1-4b08-912b-a40618ec2d85","result":{"result":{"path":"pages/index/index","query":{},"scene":1001,"referrerInfo":{},"mode":"default"}}} INFO 2023-07-12 16:44:34,646 app.py relaunch 623 ReLaunch: /pages/index/index DEBUG 2023-07-12 16:44:34,647 connection.py _safely_send 417 SEND > {"id":"ae685f7c-68f0-46fb-a985-6bd2255d58b0","method":"App.getCurrentPage","params":{}} DEBUG 2023-07-12 16:44:34,649 connection.py _on_message 652 RECV < {"id":"ae685f7c-68f0-46fb-a985-6bd2255d58b0","result":{"pageId":57,"path":"pages/index/index","query":{}}} DEBUG 2023-07-12 16:44:34,650 connection.py _safely_send 417 ASYNC_SEND > {"id":"ab0ffee0-0802-4824-8143-5e3f925eb693","method":"App.callWxMethod","params":{"method":"reLaunch","args":[{"url":"/pages/index/index"}]}} DEBUG 2023-07-12 16:44:34,692 connection.py _on_message 652 RECV < {"id":"ab0ffee0-0802-4824-8143-5e3f925eb693","result":{"result":{"errMsg":"reLaunch:ok"}}} INFO 2023-07-12 16:44:34,693 connection.py _handle_async_msg 693 received async msg: ab0ffee0-0802-4824-8143-5e3f925eb693 DEBUG 2023-07-12 16:44:34,882 connection.py _on_message 652 RECV < {"method":"App.bindingCalled","params":{"name":"onAppRouteDone","args":[{"webviewId":58,"path":"pages/index/index","query":{},"openType":"reLaunch"},1689151474842]}} INFO 2023-07-12 16:44:34,883 app.py _on_route_changed 845 Route changed, {'name': 'onAppRouteDone', 'args': [{'webviewId': 58, 'path': 'pages/index/index', 'query': {}, 'openType': 'reLaunch'}, 1689151474842]} DEBUG 2023-07-12 16:44:34,884 connection.py _safely_send 417 SEND > {"id":"4293be96-5f7c-4827-b806-c5a91e497c99","method":"Tool.getInfo","params":{}} DEBUG 2023-07-12 16:44:34,886 connection.py _on_message 652 RECV < {"id":"4293be96-5f7c-4827-b806-c5a91e497c99","result":{"version":"1.06.2306020","SDKVersion":"2.19.4"}} DEBUG 2023-07-12 16:44:34,888 connection.py _safely_send 417 SEND > {"id":"bbbd124f-665e-497c-9a93-f27f971c4a72","method":"App.callFunction","params":{"functionDeclaration":"function getAppConfig(){if(0===arguments.length)return __wxConfig;{const n={};return Array.from(arguments).forEach((r=>{n[r]=__wxConfig[r]})),n}}","args":["accountInfo"]}} DEBUG 2023-07-12 16:44:34,897 connection.py _on_message 652 RECV < {"id":"bbbd124f-665e-497c-9a93-f27f971c4a72","result":{"result":{"accountInfo":{"appId":"wx143f7d5f202671c3","nickname":"大果的测试程序","icon":"http://wx.qlogo.cn/mmhead/Q3auHgzwzM6yGd2lhwu6MSibB5auKZCDazmmiaric4PNibJJVvcwLqGT5g/0"}}}} DEBUG 2023-07-12 16:44:34,898 connection.py _safely_send 417 SEND > {"id":"9e819f60-34d8-48cf-b0ef-a649300e6639","method":"App.callWxMethod","params":{"method":"getSystemInfoSync","args":[]}} DEBUG 2023-07-12 16:44:34,906 connection.py _on_message 650 RECV < {"id":"9e819f60-34d8-48cf-b0ef-a649300e6639","result":{"result":{"model":"iPhone 5","pixelRatio":2,"windowWidth":320,"windowHeight":456,"system":"iOS 10.0.1","language":"zh_CN","version":"8.0.5","deviceOrientation":"portrait","screenWidth":320,"screenHeight":568,"SDKVersion":"2.19.4","brand":"devtools","fontSizeSetting":16,"benchmarkLevel":1,"batteryLevel":100,"statusBarHeight":20,"bluetoothEnabled":true,"locationEnabled":true,"wifiEnabled":true,"cameraAuthorized":true,"locationAuthorized":true,"micropho... INFO 2023-07-12 16:44:34,907 minitest.py init_miniprogram 159 end init miniprogram INFO 2023-07-12 16:44:34,913 minitest.py _miniSetUp 340 =========Current case: test_network_panel========= INFO 2023-07-12 16:44:34,914 minitest.py _miniSetUp 343 package info: C:.Users.wy.PycharmProjects.pythonProject.test.first_test7, case info: AppTest.test_network_panel INFO 2023-07-12 16:44:34,915 basenative.py wrapper 24 call BaseNative.check_connection INFO 2023-07-12 16:44:34,916 basenative.py wrapper 28 call BaseNative.check_connection end INFO 2023-07-12 16:44:34,917 basenative.py wrapper 24 call BaseNative.back_to_miniprogram INFO 2023-07-12 16:44:34,918 basenative.py back_to_miniprogram 549 try back_to_miniprogram 3 INFO 2023-07-12 16:44:34,919 basenative.py wrapper 28 call BaseNative.back_to_miniprogram end DEBUG 2023-07-12 16:44:34,921 connection.py _safely_send 417 ASYNC_SEND > {"id":"20324ed6-268b-449a-aaa7-10d6e49ec047","method":"App.callWxMethod","params":{"method":"switchTab","args":[{"url":"/pages/index/index"}]}} DEBUG 2023-07-12 16:44:34,946 connection.py _on_message 652 RECV < {"id":"20324ed6-268b-449a-aaa7-10d6e49ec047","result":{"result":{"errMsg":"switchTab:ok"}}} INFO 2023-07-12 16:44:34,947 connection.py _handle_async_msg 693 received async msg: 20324ed6-268b-449a-aaa7-10d6e49ec047 INFO 2023-07-12 16:44:34,949 minitest.py capture 686 capture setup.png INFO 2023-07-12 16:44:34,950 basenative.py wrapper 24 call IdeNative.screen_shot DEBUG 2023-07-12 16:44:34,951 connection.py _safely_send 417 SEND > {"id":"3ae1b6ac-595e-4992-893f-d289b84b2b21","method":"App.captureScreenshot","params":{}} DEBUG 2023-07-12 16:44:35,007 connection.py _on_message 650 RECV < {"id":"3ae1b6ac-595e-4992-893f-d289b84b2b21","result":{"data":"iVBORw0KGgoAAAANSUhEUgAAAZAAAAI6CAIAAACGsomOAAAAAXNSR0IArs4c6QAAIABJREFUeJzt3V1QW1eCL/o/HwIhYbRtUJBlx1KCYkudDlGCu610JljTfuh9qw5VNC/odPnUEVNdbWaSB/nhuNTlh6N+cBXl82DdqvQc7Ooa6BpXrvziZsq36moenFLctxNlOqQVPN3CMY4FMVhEEG8ZI2TEx3mQxDcY29himf+v/CBtLe29BFt/r7X22ouiVCoFIiIRFBe6AkREm8XAIiJhMLCISBgMLCISBgOLiITBwCIiYTCwiEgYDCwiEgYDi4iEwcAiImEwsIhIGAwsIhIGA4uIhMHAIiJhMLCISBgMLCISBgOLiITBwCIiYTCwiEgYDCwiEgYDi4iEwcAiImEwsIhIGAwsIhIGA4uIhMHAIiJhMLCISBgMLCISBg... INFO 2023-07-12 16:44:35,009 basenative.py wrapper 28 call IdeNative.screen_shot end INFO 2023-07-12 16:44:35,010 minitest.py _miniSetUp 393 =========case: test_network_panel start========= DEBUG 2023-07-12 16:44:35,011 connection.py _safely_send 417 SEND > {"id":"fe8fe26a-c2e6-4ff9-ac0d-094b2d4c6f68","method":"App.callWxMethod","params":{"method":"request","args":[{"url":"http://www.kuaidi100.com/query?type=shunfeng&postid=SF1670773581401"}]}} DEBUG 2023-07-12 16:44:35,023 connection.py _on_message 652 RECV < {"id":"fe8fe26a-c2e6-4ff9-ac0d-094b2d4c6f68","error":{"message":"url not in domain list"}} ERROR 2023-07-12 16:44:35,024 connection.py _on_message 660 [fe8fe26a-c2e6-4ff9-ac0d-094b2d4c6f68]: url not in domain list DEBUG 2023-07-12 16:44:35,025 minitest.py _miniTearDown 589 =========Current case Down: test_network_panel========= INFO 2023-07-12 16:44:35,027 minitest.py capture 686 capture teardown.png INFO 2023-07-12 16:44:35,028 basenative.py wrapper 24 call IdeNative.screen_shot DEBUG 2023-07-12 16:44:35,029 connection.py _safely_send 417 SEND > {"id":"fbb20967-3b93-470a-8152-c6cbec094f38","method":"App.captureScreenshot","params":{}} DEBUG 2023-07-12 16:44:35,111 connection.py _on_message 650 RECV < {"id":"fbb20967-3b93-470a-8152-c6cbec094f38","result":{"data":"iVBORw0KGgoAAAANSUhEUgAAAZAAAAI6CAIAAACGsomOAAAAAXNSR0IArs4c6QAAIABJREFUeJzt3V1QW1eCL/o/HwIhYbRtUJBlx1KCYkudDlGCu63uTLCm/dD7Vh2qaF7Q6fKtI6ZSbXqSB+XhuNTlh1E/uIryebBuVXoOdnUNdI0rg1/cTPlUXc2DUwp9O1GmQ6KQ6RaOcSwIYBFBvAVGCIuP+yCJbzC2scUK/1/5Qdpa2nsJtv5ea+21FwXJZBJERCIozHcFiIi2i4FFRMJgYBGRMBhYRCSM4nxXgIhorb6+vsyD2traldvZwiIiYTCwiEgYDCwiEgYDi4iEwcAiImEwsIhIGAwsIhIGA4uIhMHAIiJhMLCISBgMLCISBgOLiITBwCIiYTCwiEgYDCwiEgYDi4iEwcAiImEwsIhIGAwsIhIGA4uIhMHAIi... INFO 2023-07-12 16:44:35,113 basenative.py wrapper 28 call IdeNative.screen_shot end INFO 2023-07-12 16:44:35,115 basenative.py wrapper 24 call BaseNative.get_start_up INFO 2023-07-12 16:44:35,116 basenative.py wrapper 28 call BaseNative.get_start_up end ERROR 2023-07-12 16:44:35,131 assertbase.py _get_stack_info 341 <bound method AppTest.test_network_panel of <test.first_test7.AppTest testMethod=test_network_panel>> Traceback (most recent call last): File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\framework\libs\unittest\case.py", line 265, in testPartExecutor yield File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\framework\libs\unittest\case.py", line 350, in run self._callTestMethod(testMethod) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\unittest\case.py", line 549, in _callTestMethod method() File "C:\Users\wy\PycharmProjects\pythonProject\test\first_test7.py", line 33, in test_network_panel self.app.call_wx_method("request", File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 172, in wrapper result = func(*args, **kwargs) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\app.py", line 464, in call_wx_method return self._call_wx_method(method=method, args=args, plugin_appid=plugin_appid) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\minium_object.py", line 161, in _call_wx_method return self.connection.send("App.callWxMethod", params) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\connection.py", line 447, in send return self._receive_response(cmd) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\connection.py", line 473, in _receive_response raise response minium.framework.exception.MiniCommandError: url not in domain list Ran 1 test in 0.607s FAILED (errors=1) Error Traceback (most recent call last): File "C:\Users\wy\PycharmProjects\pythonProject\test\first_test7.py", line 33, in test_network_panel self.app.call_wx_method("request", File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 172, in wrapper result = func(*args, **kwargs) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\app.py", line 464, in call_wx_method return self._call_wx_method(method=method, args=args, plugin_appid=plugin_appid) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\minium_object.py", line 161, in _call_wx_method return self.connection.send("App.callWxMethod", params) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\connection.py", line 447, in send return self._receive_response(cmd) File "C:\Users\wy\AppData\Local\Programs\Python\Python310\lib\site-packages\minium\miniprogram\base_driver\connection.py", line 473, in _receive_response raise response minium.framework.exception.MiniCommandError: url not in domain list Process finished with exit code 1
2023-07-12 - 下载的官方demo程序,运行时报错,是什么原因?完全按照readme操作。求助。
[图片] 执行后报错 [图片] [图片] 官方demo下载地址是:https://git.weixin.qq.com/minitest/minitest-demo
2023-07-03 - 求助minitest-a执行报错,如何处理?
[图片]
2023-06-28