note增加重试机制

Signed-off-by: liyanlin02 <liyanlin15@huawei.com>
This commit is contained in:
liyanlin02
2024-07-11 09:44:19 +08:00
parent c3efea742f
commit 3e77eb956c
2 changed files with 4 additions and 1 deletions
@@ -30,6 +30,7 @@ def setup_teardown(request, device):
# device.rm_faultlog()
# device.start_hilog()
device.wakeup()
device.set_power_mode()
device.set_screen_timeout()
device.unlock()
device.go_home()
@@ -23,7 +23,9 @@ class Test:
time.sleep(1)
logging.info('点击笔记内容区域')
device.click(360, 325)
time.sleep(3)
device.click(360, 325)
device.click(360, 325)
time.sleep(2)
standard_pic = os.path.join(device.resource_path, 'note.jpeg')
note_pic = device.save_snapshot_to_local('{}_note.jpeg'.format(device.sn))
crop_picture(note_pic)