1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit AbilityKit 19 */ 20 21/** 22 * Store unit testing-related parameters, including test case names, and test runner name. 23 * 24 * @typedef AbilityDelegatorArgs 25 * @syscap SystemCapability.Ability.AbilityRuntime.Core 26 * @since 8 27 */ 28/** 29 * Store unit testing-related parameters, including test case names, and test runner name. 30 * 31 * @typedef AbilityDelegatorArgs 32 * @syscap SystemCapability.Ability.AbilityRuntime.Core 33 * @crossplatform 34 * @since 10 35 */ 36/** 37 * Store unit testing-related parameters, including test case names, and test runner name. 38 * 39 * @typedef AbilityDelegatorArgs 40 * @syscap SystemCapability.Ability.AbilityRuntime.Core 41 * @crossplatform 42 * @atomicservice 43 * @since arkts {'1.1':'11', '1.2':'20'} 44 * @arkts 1.1&1.2 45 */ 46export interface AbilityDelegatorArgs { 47 /** 48 * the bundle name of the application being tested. 49 * 50 * @type { string } 51 * @syscap SystemCapability.Ability.AbilityRuntime.Core 52 * @since 8 53 */ 54 /** 55 * the bundle name of the application being tested. 56 * 57 * @type { string } 58 * @syscap SystemCapability.Ability.AbilityRuntime.Core 59 * @crossplatform 60 * @since 10 61 */ 62 /** 63 * the bundle name of the application being tested. 64 * 65 * @type { string } 66 * @syscap SystemCapability.Ability.AbilityRuntime.Core 67 * @crossplatform 68 * @atomicservice 69 * @since arkts {'1.1':'11', '1.2':'20'} 70 * @arkts 1.1&1.2 71 */ 72 bundleName: string; 73 74 /** 75 * the parameters used for unit testing. 76 * 77 * @type { object } 78 * @syscap SystemCapability.Ability.AbilityRuntime.Core 79 * @since 8 80 */ 81 /** 82 * the parameters used for unit testing. 83 * 84 * @type { object } 85 * @syscap SystemCapability.Ability.AbilityRuntime.Core 86 * @crossplatform 87 * @since 10 88 */ 89 /** 90 * the parameters used for unit testing. 91 * 92 * @type { Record<string, string> } 93 * @syscap SystemCapability.Ability.AbilityRuntime.Core 94 * @crossplatform 95 * @atomicservice 96 * @since arkts {'1.1':'11', '1.2':'20'} 97 * @arkts 1.1&1.2 98 */ 99 parameters: Record<string, string>; 100 101 /** 102 * the class names of all test cases. 103 * 104 * @type { string } 105 * @syscap SystemCapability.Ability.AbilityRuntime.Core 106 * @since 8 107 */ 108 /** 109 * the class names of all test cases. 110 * 111 * @type { string } 112 * @syscap SystemCapability.Ability.AbilityRuntime.Core 113 * @crossplatform 114 * @since 10 115 */ 116 /** 117 * the class names of all test cases. 118 * 119 * @type { string } 120 * @syscap SystemCapability.Ability.AbilityRuntime.Core 121 * @crossplatform 122 * @atomicservice 123 * @since arkts {'1.1':'11', '1.2':'20'} 124 * @arkts 1.1&1.2 125 */ 126 testCaseNames: string; 127 128 /** 129 * the class name of the test runner used to execute test cases. 130 * 131 * @type { string } 132 * @syscap SystemCapability.Ability.AbilityRuntime.Core 133 * @since 8 134 */ 135 /** 136 * the class name of the test runner used to execute test cases. 137 * 138 * @type { string } 139 * @syscap SystemCapability.Ability.AbilityRuntime.Core 140 * @crossplatform 141 * @since 10 142 */ 143 /** 144 * the class name of the test runner used to execute test cases. 145 * 146 * @type { string } 147 * @syscap SystemCapability.Ability.AbilityRuntime.Core 148 * @crossplatform 149 * @atomicservice 150 * @since arkts {'1.1':'11', '1.2':'20'} 151 * @arkts 1.1&1.2 152 */ 153 testRunnerClassName: string; 154} 155 156/*** if arkts 1.1 */ 157export default AbilityDelegatorArgs; 158/*** endif */ 159