js-apis-inner-application-abilityDelegatorArgs.md 1.5 KB
Newer Older
W
wusongqing 已提交
1 2
# AbilityDelegatorArgs

3
The **AbilityDelegatorArgs** module provides a global register to store the registered **AbilityDelegator** and **AbilityDelegatorArgs** instances during application startup.
4

W
wusongqing 已提交
5 6
> **NOTE**
> 
W
wusongqing 已提交
7 8
> 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.

9 10
## Usage

11
An **AbilityDelegatorArgs** object is obtained by calling [getArguments](js-apis-app-ability-abilityDelegatorRegistry.md#abilitydelegatorregistrygetarguments) in **AbilityDelegatorRegistry**.
W
wusongqing 已提交
12 13 14

## AbilityDelegatorArgs

15 16 17
Describes the ability delegator arguments.

**System capability**: SystemCapability.Ability.AbilityRuntime.Core
W
wusongqing 已提交
18 19 20

| Name               | Type                  | Readable| Writable| Description                                                        |
| ------------------- | ---------------------- | ---- | ---- | ------------------------------------------------------------ |
21 22 23 24 25 26 27 28 29 30
| bundleName          | string                 | Yes  | Yes  | Bundle name of the application to test.|
| parameters          | {[key:string]: string} | Yes  | Yes  | Parameters of the unit test that is started currently.|
| testCaseNames       | string                 | Yes  | Yes  | Test case names.|
| testRunnerClassName | string                 | Yes  | Yes  | Names of the test case executors.|

**Example**

```ts
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry';

31
let args = AbilityDelegatorRegistry.getArguments();
32
```