- minium框架中用例执行失败有没有重试功能?如果有要怎么写?
在minium框架中,用例如果执行失败了,有没有什么方法可以进行用例的失败重试,如果有的话要咋写
2023-05-30 - 执行minitest的用例时经常报错WaitTimeoutError如何解决?
报错详细日志如下 test_pro_resemblance_product========= INFO 2023-05-06 20:18:35,825 basenative.py wrapper 23 call BaseNative.get_start_up INFO 2023-05-06 20:18:35,825 basenative.py wrapper 27 call BaseNative.get_start_up end ERROR 2023-05-06 20:18:35,827 assertbase.py _teardown_collect 273 <bound method rerun.<locals>.wrapper.<locals>.decorator of <test_cases.test_product_details.ProductDetailsTest testMethod=test_pro_resemblance_product>> Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/minium/utils/utils.py", line 432, in get_result return fut.result(timeout) File "/usr/local/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/_base.py", line 460, in result raise TimeoutError() concurrent.futures._base.TimeoutError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/minium/framework/libs/unittest/case.py", line 39, in testPartExecutor yield File "/usr/local/lib/python3.10/site-packages/minium/framework/libs/unittest/case.py", line 125, in run self._callTestMethod(testMethod) File "/usr/local/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/unittest/case.py", line 549, in _callTestMethod method() File "/usr/local/lib/python3.10/site-packages/unittestreport/core/reRun.py", line 41, in decorator run_count(count, interval, func, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/unittestreport/core/reRun.py", line 23, in run_count raise e File "/usr/local/lib/python3.10/site-packages/unittestreport/core/reRun.py", line 18, in run_count func(*args, **kwargs) File "/Users/tester/.jenkins/workspace/UI_mini_pro/test_cases/test_product_details.py", line 50, in test_pro_resemblance_product self.execute_case(path) File "/Users/tester/.jenkins/workspace/UI_mini_pro/base/base_operate.py", line 22, in execute_case self.app.go_home() File "/usr/local/lib/python3.10/site-packages/minium/miniprogram/base_driver/minium_log.py", line 131, in wrapper result = func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/minium/miniprogram/base_driver/app.py", line 482, in go_home page = self.relaunch(main_page_path) File "/usr/local/lib/python3.10/site-packages/minium/miniprogram/base_driver/minium_log.py", line 131, in wrapper result = func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/minium/miniprogram/base_driver/app.py", line 388, in relaunch page = self._change_route_async("reLaunch", url, is_wait_url_change) File "/usr/local/lib/python3.10/site-packages/minium/miniprogram/base_driver/app.py", line 564, in _change_route_async if get_result(wait_route_changed, 15): # 接口调用成功后15s内应有on app route done File "/usr/local/lib/python3.10/site-packages/minium/utils/utils.py", line 436, in get_result raise WaitTimeoutError() from ext minium.utils.utils.WaitTimeoutError
2023-05-08 - 微信开发者工具元素定位有时候会找不到元素?
在微信开发者工具中进入比较多层级后,用wxml定位元素时,有时候会无法定位;重新编译后又可以正常定位,请求这是什么问题要如何解决
2023-04-13 - minium自动化中出现获取位置信息的弹窗要如何处理?
minium自动化中出现获取位置信息的弹窗要如何处理? 已经配置了 "auto_authorize": true,还是没有效果 [图片]
2023-03-09 - minium自动化中出现获取位置信息的弹窗要如何处理?
minium自动化中出现获取位置信息的弹窗要如何处理? 已经配置了 "auto_authorize": true,还是没有效果 [图片]
2023-02-21 - minim报告中用例说明不显示内容?
用例函数头部了加了失败重试的代码后(如下),用例说明部分就不显示内容了,代码堆栈也显示错误了 @rerun(count=3, interval=5) [图片]
2023-02-09