assert_capture=true 配置为true的时候,截图超时
"errors": "Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/unittest/case.py\", line 60, in testPartExecutor
yield
File "/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/framework/libs/unittest/case.py\", line 80, in run
、
self._callTestMethod(testMethod)
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/unittest/case.py\", line 633, in _callTestMethod\n
method()\n File
\"/Users/duhong/Desktop/code/python/lightshop_miniapp_test/TestCase/order_test.py\", line 22, in test_submitOrder_Simple\n
self.homePage.go_store(home_page_resource.fast_storename)\n
File \"/Users/duhong/Desktop/code/python/lightshop_miniapp_test/Pages/HomePage.py\", line 49, in go_store\n
self.check_target_path(page_path.homepage_path)\n
File \"/Users/duhong/Desktop/code/python/lightshop_miniapp_test/Base/BasePage.py\", line 30, in check_target_path\n
self.mini.assertEqual(self.current_path(), path)\n
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/framework/assertbase.py\", line 353, in _hook_assert\n
self._add_assert_info(name or item, ret, print_msg)\n
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/framework/assertbase.py\", line 315, in _add_assert_info\n
\"img\": self.hook_assert(name, ret, reason),\n
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/framework/minitest.py\", line 1084, in hook_assert\n
self.capture(\"{0}-{1}\".format(name, \"success\" if ret else \"failed\"))
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/framework/minitest.py\", line 899, in capture\n
self.native.screen_shot(path)\
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/native/wx_native/idenative.py\", line 28, in screen_shot\n
self.mini.app.screen_shot(filename, return_format)\n
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/miniprogram/base_driver/minium_log.py\", line 135, in wrapper
result = func(*args, **kwargs)
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/miniprogram/base_driver/app.py\", line 131, in screen_shot
b64_data = self.connection.send(\"App.captureScreenshot\").get(\"result\").get(\"data\")
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/miniprogram/base_driver/connection.py\", line 185, in send
return self._receive_response(cmd)
File \"/Users/duhong/Library/Python/3.8/lib/python/site-packages/minium/miniprogram/base_driver/connection.py\", line 214,
in _receive_response raise MiniTimeoutError(
minium.framework.exception.MiniTimeoutError: [call App.captureScreenshot] receive from remote timeout, id: bcc63187-6704-4c92-985f-c030893b9893\n",