mirror of
https://github.com/openharmony/developtools_integration_verification.git
synced 2026-08-26 19:06:40 -04:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user