From e0e32e8d8daad11d200d8d60c80d312053ce4879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=B9=BF=E7=94=9F?= Date: Mon, 26 May 2025 07:57:30 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8D=95=E8=B7=91helloworld?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 马广生 --- .../screenshot32/new_script/testcases.json | 52 ------------------- .../new_script/testcases/test_hap.py | 3 +- 2 files changed, 2 insertions(+), 53 deletions(-) diff --git a/cases/smoke/basic/screenshot32/new_script/testcases.json b/cases/smoke/basic/screenshot32/new_script/testcases.json index 249b9b9..406359c 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases.json +++ b/cases/smoke/basic/screenshot32/new_script/testcases.json @@ -1,56 +1,4 @@ [ - { - "case_file": "testcases/test_launcher.py", - "description": "开机测试" - }, - { - "case_file": "testcases/test_process.py", - "description": "进程检查" - }, - { - "case_file": "testcases/test_apl_check.py", - "description": "外部用例APL白名单检查" - }, - { - "case_file": "testcases/test_acl_check.py", - "description": "外部用例ACL白名单检查" - }, - { - "case_file": "testcases/test_settings_wifi.py", - "description": "设置和wlan开关测试" - }, - { - "case_file": "testcases/test_crash_check.py", - "description": "crash检查" - }, - { - "case_file": "testcases/test_photos.py", - "description": "图库测试" - }, - { - "case_file": "testcases/test_contacts.py", - "description": "联系人测试" - }, - { - "case_file": "testcases/test_mms.py", - "description": "短信息测试" - }, - { - "case_file": "testcases/test_distributed_musicplayer.py", - "description": "音乐测试" - }, - { - "case_file": "testcases/test_camera.py", - "description": "照相机测试" - }, - { - "case_file": "testcases/test_controller_center.py", - "description": "控制中心测试" - }, - { - "case_file": "testcases/test_note.py", - "description": "备忘录应用测试" - }, { "case_file": "testcases/test_hap.py", "description": "hap包测试" 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 314f150..8638b1f 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py @@ -23,7 +23,8 @@ class Test: @pytest.mark.parametrize('setup_teardown', [None], indirect=True) def test(self, setup_teardown, device): logging.info('install hap') - hap_path = os.path.join(device.resource_path, 'entry-default-signed.hap') + relative_path = os.path.join("..", "..") + hap_path = os.path.join(relative_path, 'entry-default-signed.hap') device.install_hap(hap_path) time.sleep(1) logging.info('start app') -- Gitee From 4d0e58a85f2684fa430954afb9f374871df522e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=B9=BF=E7=94=9F?= Date: Wed, 28 May 2025 08:56:07 +0000 Subject: [PATCH 2/3] update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 马广生 --- .../smoke/basic/screenshot32/new_script/testcases/test_hap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 8638b1f..f1030b1 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py @@ -23,8 +23,7 @@ class Test: @pytest.mark.parametrize('setup_teardown', [None], indirect=True) def test(self, setup_teardown, device): logging.info('install hap') - relative_path = os.path.join("..", "..") - hap_path = os.path.join(relative_path, 'entry-default-signed.hap') + hap_path = os.path.join(os.path.dirname(os.path.dirname(device.resource_path)), 'entry-default-signed.hap') device.install_hap(hap_path) time.sleep(1) logging.info('start app') -- Gitee From 590a8ea3a345b8fa44946ca82b6134f36fda31f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=B9=BF=E7=94=9F?= Date: Thu, 29 May 2025 10:49:26 +0000 Subject: [PATCH 3/3] update path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 马广生 --- 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 f1030b1..0538ded 100644 --- a/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py +++ b/cases/smoke/basic/screenshot32/new_script/testcases/test_hap.py @@ -23,7 +23,7 @@ class Test: @pytest.mark.parametrize('setup_teardown', [None], indirect=True) def test(self, setup_teardown, device): logging.info('install hap') - hap_path = os.path.join(os.path.dirname(os.path.dirname(device.resource_path)), 'entry-default-signed.hap') + hap_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(device.resource_path))), 'entry-default-signed.hap') device.install_hap(hap_path) time.sleep(1) logging.info('start app') -- Gitee