• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AbilityDelegatorArgs
2
3The **AbilityDelegatorArgs** module provides APIs to obtain an **AbilityDelegatorArgs** object during the execution of test cases.
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> The APIs of this module can be used only in <!--RP1-->[arkxtest](../../application-test/arkxtest-guidelines.md)<!--RP1End-->.
10
11## Modules to Import
12
13```ts
14import { abilityDelegatorRegistry } from '@kit.TestKit';
15```
16
17## Usage
18
19An **AbilityDelegatorArgs** object is obtained by calling [getArguments](js-apis-app-ability-abilityDelegatorRegistry.md#abilitydelegatorregistrygetarguments) in **AbilityDelegatorRegistry**.
20
21## AbilityDelegatorArgs
22
23**Atomic service API**: This API can be used in atomic services since API version 11.
24
25**System capability**: SystemCapability.Ability.AbilityRuntime.Core
26
27| Name               | Type                  | Read-Only| Optional| Description                                                        |
28| ------------------- | ---------------------- | ---- | ---- | ------------------------------------------------------------ |
29| bundleName          | string                 | No  | No  | Bundle name of the application to test.|
30| parameters          | Record\<string, string> | No  | No  | Parameters of the unit test that is started currently.|
31| testCaseNames       | string                 | No  | No  | Test case name.|
32| testRunnerClassName | string                 | No  | No  | Names of the test case executors.|
33
34**Example**
35
36```ts
37import { abilityDelegatorRegistry } from '@kit.TestKit';
38
39let args: abilityDelegatorRegistry.AbilityDelegatorArgs = abilityDelegatorRegistry.getArguments();
40```
41