• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 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/**
18 * Store unit testing-related parameters, including test case names, and test runner name.
19 *
20 * @since 8
21 * @syscap SystemCapability.Ability.AbilityRuntime.Core
22 * @import import AbilityDelegatorArgs from 'application/abilityDelegatorArgs.d'
23 * @permission N/A
24 */
25export interface AbilityDelegatorArgs {
26    /**
27     * the bundle name of the application being tested.
28     *
29     * @since 8
30     * @syscap SystemCapability.Ability.AbilityRuntime.Core
31     */
32    bundleName: string;
33
34    /**
35     * the parameters used for unit testing.
36     *
37     * @since 8
38     * @syscap SystemCapability.Ability.AbilityRuntime.Core
39     */
40    parameters: {[key: string]: string};
41
42    /**
43     * the class names of all test cases.
44     *
45     * @since 8
46     * @syscap SystemCapability.Ability.AbilityRuntime.Core
47     */
48    testCaseNames: string;
49
50    /**
51     * the class name of the test runner used to execute test cases.
52     *
53     * @since 8
54     * @syscap SystemCapability.Ability.AbilityRuntime.Core
55     */
56    testRunnerClassName: string;
57}
58
59export default AbilityDelegatorArgs;