• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 11
44 */
45export interface AbilityDelegatorArgs {
46  /**
47   * the bundle name of the application being tested.
48   *
49   * @type { string }
50   * @syscap SystemCapability.Ability.AbilityRuntime.Core
51   * @since 8
52   */
53  /**
54   * the bundle name of the application being tested.
55   *
56   * @type { string }
57   * @syscap SystemCapability.Ability.AbilityRuntime.Core
58   * @crossplatform
59   * @since 10
60   */
61  /**
62   * the bundle name of the application being tested.
63   *
64   * @type { string }
65   * @syscap SystemCapability.Ability.AbilityRuntime.Core
66   * @crossplatform
67   * @atomicservice
68   * @since 11
69   */
70  bundleName: string;
71
72  /**
73   * the parameters used for unit testing.
74   *
75   * @type { object }
76   * @syscap SystemCapability.Ability.AbilityRuntime.Core
77   * @since 8
78   */
79  /**
80   * the parameters used for unit testing.
81   *
82   * @type { object }
83   * @syscap SystemCapability.Ability.AbilityRuntime.Core
84   * @crossplatform
85   * @since 10
86   */
87  /**
88   * the parameters used for unit testing.
89   *
90   * @type { Record<string, string> }
91   * @syscap SystemCapability.Ability.AbilityRuntime.Core
92   * @crossplatform
93   * @atomicservice
94   * @since 11
95   */
96  parameters: Record<string, string>;
97
98  /**
99   * the class names of all test cases.
100   *
101   * @type { string }
102   * @syscap SystemCapability.Ability.AbilityRuntime.Core
103   * @since 8
104   */
105  /**
106   * the class names of all test cases.
107   *
108   * @type { string }
109   * @syscap SystemCapability.Ability.AbilityRuntime.Core
110   * @crossplatform
111   * @since 10
112   */
113  /**
114   * the class names of all test cases.
115   *
116   * @type { string }
117   * @syscap SystemCapability.Ability.AbilityRuntime.Core
118   * @crossplatform
119   * @atomicservice
120   * @since 11
121   */
122  testCaseNames: string;
123
124  /**
125   * the class name of the test runner used to execute test cases.
126   *
127   * @type { string }
128   * @syscap SystemCapability.Ability.AbilityRuntime.Core
129   * @since 8
130   */
131  /**
132   * the class name of the test runner used to execute test cases.
133   *
134   * @type { string }
135   * @syscap SystemCapability.Ability.AbilityRuntime.Core
136   * @crossplatform
137   * @since 10
138   */
139  /**
140   * the class name of the test runner used to execute test cases.
141   *
142   * @type { string }
143   * @syscap SystemCapability.Ability.AbilityRuntime.Core
144   * @crossplatform
145   * @atomicservice
146   * @since 11
147   */
148  testRunnerClassName: string;
149}
150
151export default AbilityDelegatorArgs;
152