diff --git a/cases/smoke/basic/screenshot32/new_script/testcases.json b/cases/smoke/basic/screenshot32/new_script/testcases.json index 249b9b99e80703e18853d7a95bd7ec598d86a91d..406359cf7afd770f3bc8a2a2ef079b83426a12f1 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 314f1505427e1d655f39384750bb8c8bd551845b..0538ded05e85a28c2af90a130b1b906615837236 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(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')