From 66a2d191a1812e0066467e3a8bbf40aa9203713d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=AD=9F=E5=85=83?= Date: Wed, 19 Feb 2025 03:45:17 +0000 Subject: [PATCH] =?UTF-8?q?update=20cases/smoke/basic/screenshot32/new=5Fs?= =?UTF-8?q?cript/testcases/test=5Flauncher.py.=20launcher=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 贾孟元 --- .../screenshot32/new_script/testcases/test_launcher.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cases/smoke/basic/screenshot32/new_script/testcases/test_launcher.py b/cases/smoke/basic/screenshot32/new_script/testcases/test_launcher.py index 85878e2..6d99db0 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_launcher.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_launcher.py @@ -9,16 +9,24 @@ from utils.images import compare_image_similarity class Test: + ability_name = 'com.ohos.settings.MainAbility' + bundle_name = 'com.ohos.settings' + @pytest.mark.parametrize('setup_teardown', [None], indirect=True) def test(self, setup_teardown, device): logging.info('compare image similarity') # usb弹窗 device.unlock() time.sleep(2) - device.unlock() + device.start_ability(self.bundle_name, self.ability_name) time.sleep(2) + device.click(360, 1245) + device.click(360, 1245) + #device.unlock() + #time.sleep(2) # device.click(595, 555) # time.sleep(10) + if device.get_focus_window() == 'SystemDialog1': device.click(595, 555) time.sleep(10) -- Gitee