• 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## Usage
10
11An **AbilityDelegatorArgs** object is obtained by calling [getArguments](js-apis-app-ability-abilityDelegatorRegistry.md#abilitydelegatorregistrygetarguments) in **AbilityDelegatorRegistry**.
12
13## AbilityDelegatorArgs
14
15Describes the ability delegator arguments.
16
17**System capability**: SystemCapability.Ability.AbilityRuntime.Core
18
19| Name               | Type                  | Readable| Writable| Description                                                        |
20| ------------------- | ---------------------- | ---- | ---- | ------------------------------------------------------------ |
21| bundleName          | string                 | Yes  | Yes  | Bundle name of the application to test.|
22| parameters          | {[key:string]: string} | Yes  | Yes  | Parameters of the unit test that is started currently.|
23| testCaseNames       | string                 | Yes  | Yes  | Test case names.|
24| testRunnerClassName | string                 | Yes  | Yes  | Names of the test case executors.|
25
26**Example**
27
28```ts
29import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry';
30
31let args = AbilityDelegatorRegistry.getArguments();
32```
33