From 1c2e03ffcfd32f0523c76923a36756fd36641f53 Mon Sep 17 00:00:00 2001 From: guozejun Date: Tue, 2 Sep 2025 17:22:06 +0800 Subject: [PATCH 1/2] Update test_hap script Signed-off-by: guozejun --- cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a9c7a3a..6d9465e 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') -- Gitee From 71adb711ed80be7363748ff8114f9f9a8edcd5b2 Mon Sep 17 00:00:00 2001 From: guozejun Date: Tue, 2 Sep 2025 20:01:44 +0800 Subject: [PATCH 2/2] Update test_hap script Signed-off-by: guozejun --- .../basic/screenshot32/new_script/testcases/test_ui_hap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 9dc12f0..6f8f975 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') -- Gitee