• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AbilityDelegatorArgs
2
3The **AbilityDelegatorArgs** module provides a global register to store the registered **AbilityDelegator** and **AbilityDelegatorArgs** instances during application startup.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Modules to Import
10
11```ts
12import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry';
13```
14
15## Usage
16
17An **AbilityDelegatorArgs** object is obtained by calling [getArguments](js-apis-app-ability-abilityDelegatorRegistry.md#abilitydelegatorregistrygetarguments) in **AbilityDelegatorRegistry**.
18
19## AbilityDelegatorArgs
20
21Describes the ability delegator arguments.
22
23**System capability**: SystemCapability.Ability.AbilityRuntime.Core
24
25| Name               | Type                  | Readable| Writable| Description                                                        |
26| ------------------- | ---------------------- | ---- | ---- | ------------------------------------------------------------ |
27| bundleName          | string                 | Yes  | Yes  | Bundle name of the application to test.|
28| parameters          | {[key:string]: string} | Yes  | Yes  | Parameters of the unit test that is started currently.|
29| testCaseNames       | string                 | Yes  | Yes  | Test case names.|
30| testRunnerClassName | string                 | Yes  | Yes  | Names of the test case executors.|
31
32**Example**
33
34```ts
35let args: AbilityDelegatorRegistry.AbilityDelegatorArgs = AbilityDelegatorRegistry.getArguments();
36```
37