diff --git a/test/autotest/sub_startup_appspawn_base/sub_startup_appspawn_base_0500.json b/test/autotest/sub_startup_appspawn_base/sub_startup_appspawn_base_0500.json deleted file mode 100644 index b825cf197f4a17071e82580eaa122f75622fb57d..0000000000000000000000000000000000000000 --- a/test/autotest/sub_startup_appspawn_base/sub_startup_appspawn_base_0500.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "description": "Config for OpenHarmony devicetest test cases", - "environment": [ - { - "type": "device" - } - ], - "driver": { - "type": "DeviceTest", - "py_file": [ - "SUB_STARTUP_APPSPAWN_BASE/SubStartupAppspawnBase0500.py" - ] - } -} \ No newline at end of file diff --git a/test/autotest/sub_startup_appspawn_base/sub_startup_appspawn_base_0500.py b/test/autotest/sub_startup_appspawn_base/sub_startup_appspawn_base_0500.py deleted file mode 100644 index efec5734f4c8b45c95015e1a6f00a0eddf0e5c46..0000000000000000000000000000000000000000 --- a/test/autotest/sub_startup_appspawn_base/sub_startup_appspawn_base_0500.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# Copyright (c) 2025 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import time -from devicetest.core.test_case import TestCase, Step -from hypium import UiDriver -from aw import Common - - -class SubStartupAppspawnBase0500(TestCase): - - def __init__(self, controllers): - self.tag = self.__class__.__name__ - TestCase.__init__(self, self.tag, controllers) - self.driver = UiDriver(self.device1) - - def setup(self): - Step(self.devices[0].device_id) - device = self.driver.shell("param get const.product.model") - device = device.replace("\n", "").replace(" ", "") - device = str(device) - Step(device) - # 解锁屏幕 - wake = self.driver.Screen.is_on() - time.sleep(0.5) - if wake: - self.driver.ScreenLock.unlock() - else: - self.driver.Screen.wake_up() - self.driver.ScreenLock.unlock() - self.driver.shell("power-shell timeout -o 86400000") - - def process(self): - Step("安装测试hap并打开") - bundle_name = "com.app.hmos.inputmethod" - self.driver.AppManager.start_app(bundle_name) - pid = self.driver.System.get_pid(bundle_name) - for path in ["base", "database"]: - for i in range(1, 5): - result01 = self.driver.Storage.has_dir("/proc/%d/root/data/storage/el%d/%s" % (pid, i, path)) - result02 = self.driver.Storage.has_dir("/data/app/el%d/100/%s" % (i, path)) - self.driver.Assert.equal(result01, True) - self.driver.Assert.equal(result02, True) - - def teardown(self): - Step("收尾工作.................") - self.driver.AppManager.stop_app(bundle_name) \ No newline at end of file