10704ebd2Sopenharmony_ci/* 20704ebd2Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 30704ebd2Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 40704ebd2Sopenharmony_ci * you may not use this file except in compliance with the License. 50704ebd2Sopenharmony_ci * You may obtain a copy of the License at 60704ebd2Sopenharmony_ci * 70704ebd2Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 80704ebd2Sopenharmony_ci * 90704ebd2Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 100704ebd2Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 110704ebd2Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120704ebd2Sopenharmony_ci * See the License for the specific language governing permissions and 130704ebd2Sopenharmony_ci * limitations under the License. 140704ebd2Sopenharmony_ci */ 150704ebd2Sopenharmony_ci 160704ebd2Sopenharmony_ciimport AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' 170704ebd2Sopenharmony_ciimport { Hypium } from '@ohos/hypium' 180704ebd2Sopenharmony_ciimport testsuite from '../test/List.test' 190704ebd2Sopenharmony_ci 200704ebd2Sopenharmony_ciexport default { 210704ebd2Sopenharmony_ci onCreate() { 220704ebd2Sopenharmony_ci console.info('TestApplication onCreate') 230704ebd2Sopenharmony_ci var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() 240704ebd2Sopenharmony_ci var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() 250704ebd2Sopenharmony_ci console.info('start run testcase!!!') 260704ebd2Sopenharmony_ci Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) 270704ebd2Sopenharmony_ci }, 280704ebd2Sopenharmony_ci onDestroy() { 290704ebd2Sopenharmony_ci console.info("TestApplication onDestroy"); 300704ebd2Sopenharmony_ci } 310704ebd2Sopenharmony_ci}; 32