parent
d2b2b4424f
commit
ecb73c787c
|
@ -96,7 +96,7 @@ IMAGE_MATCH_NUMBER = 1
|
|||
IMAGE_MATCH_WAIT_TIME = 1
|
||||
|
||||
;图像识别匹配度
|
||||
IMAGE_RATE = 0.8
|
||||
IMAGE_RATE = 0.7
|
||||
|
||||
;截取当前屏幕实时图像保存路径,用于图像识别坐标
|
||||
SCREEN_CACHE = /tmp/screen.png
|
||||
|
|
|
@ -269,7 +269,7 @@ class AssertCommon:
|
|||
:param app: 应用名字
|
||||
"""
|
||||
logger.info(f"断言应用窗口数量{app}与期望{expect}是否相同")
|
||||
number = ButtonCenter.get_windows_number(app)
|
||||
number = ButtonCenter(app_name=app, config_path="xxx").get_windows_number(app)
|
||||
if expect != number:
|
||||
raise AssertionError(f"断言应用窗口数量{app}为{number}与期望{expect}不相同")
|
||||
|
||||
|
|
Loading…
Reference in New Issue