mirror of
https://github.com/openharmony/developtools_integration_verification.git
synced 2026-08-27 21:40:55 -04:00
update cases/smoke/basic/screenshot32/new_script/testcases/test_launcher.py.
再次点击确保usb弹窗问题解决 Signed-off-by: 贾孟元 <jiamengyuan@h-partners.com>
This commit is contained in:
@@ -18,6 +18,9 @@ class Test:
|
||||
if device.get_focus_window() == 'SystemDialog1':
|
||||
device.click(595, 555)
|
||||
time.sleep(10)
|
||||
if device.get_focus_window() == 'SystemDialog1':
|
||||
device.click(360, 800)
|
||||
time.sleep(10)
|
||||
standard_pic = os.path.join(device.resource_path, 'launcher.jpeg')
|
||||
launcher_pic = device.save_snapshot_to_local('{}_launcher.jpeg'.format(device.sn))
|
||||
similarity = compare_image_similarity(launcher_pic, standard_pic)
|
||||
|
||||
Reference in New Issue
Block a user