diff --git a/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py b/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py index a9c7a3a1d3266dde1082f6612194f078decd86bb..6d9465e88fafa831dd207c1ef660a821d3bd5a8e 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py @@ -28,7 +28,7 @@ class Test: time.sleep(15) logging.info('start app') device.start_ability(self.bundle_name, self.ability_name) - time.sleep(2) + time.sleep(10) main_page = device.save_snapshot_to_local('{}_hap.jpeg'.format(device.sn)) crop_picture(picture=main_page, x1=0, y1=72, x2=297, y2=290) stand_pic = os.path.join(device.resource_path, 'hap.jpeg') diff --git a/cases/smoke/basic/screenshot32/new_script/testcases/test_ui_hap.py b/cases/smoke/basic/screenshot32/new_script/testcases/test_ui_hap.py index 9dc12f09bf244f63aa477a47aecf6dc7074427e0..6f8f975c48bfe7e7003f23e50ae54436118c27fc 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_ui_hap.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_ui_hap.py @@ -25,10 +25,10 @@ class Test: logging.info('install hap') hap_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(device.resource_path))), 'ArkUIInteropSample','entry-default-signed.hap') device.install_hap(hap_path) - time.sleep(5) + time.sleep(15) logging.info('start app') device.start_ability(self.bundle_name, self.ability_name) - time.sleep(2) + time.sleep(10) main_page = device.save_snapshot_to_local('{}_hap.jpeg'.format(device.sn)) crop_picture(picture=main_page, x1=0, y1=50, x2=700, y2=1150) stand_pic = os.path.join(device.resource_path, 'ui_hap.jpeg')