From 3ac747365faf0d86dd55ec6357007c1de189156e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=AD=9F=E5=85=83?= Date: Fri, 7 Feb 2025 05:34:06 +0000 Subject: [PATCH] =?UTF-8?q?update=20cases/smoke/basic/screenshot32/new=5Fs?= =?UTF-8?q?cript/testcases/test=5Fsettings=5Fwifi.py.=20wifi=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 贾孟元 --- .../new_script/testcases/test_settings_wifi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cases/smoke/basic/screenshot32/new_script/testcases/test_settings_wifi.py b/cases/smoke/basic/screenshot32/new_script/testcases/test_settings_wifi.py index 141c8ab..2f364ef 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_settings_wifi.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_settings_wifi.py @@ -30,9 +30,10 @@ class Test: before_click = device.get_wifi_status().get('active') logging.info('turn on/off wlan swith') - device.hdc_shell(f'uitest uiInput click 646 210') - time.sleep(5) + device.click(646, 210) + #device.hdc_shell(f'uitest uiInput click 646 210') + time.sleep(10) device.save_snapshot_to_local('{}_after_click.jpeg'.format(device.sn)) after_click = device.get_wifi_status().get('active') logging.info('wlan switch changes from [{}] to [{}]'.format(before_click, after_click)) - #assert before_click != after_click, 'wlan switch turn on/off failed' + assert before_click != after_click, 'wlan switch turn on/off failed' -- Gitee