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 23Describes the ability delegator arguments. 24 25**Atomic service API**: This API can be used in atomic services since API version 11. 26 27**System capability**: SystemCapability.Ability.AbilityRuntime.Core 28 29| Name | Type | Readable| Writable| Description | 30| ------------------- | ---------------------- | ---- | ---- | ------------------------------------------------------------ | 31| bundleName | string | Yes | Yes | Bundle name of the application to test.| 32| parameters | Record\<string, string> | Yes | Yes | Parameters of the unit test that is started currently.| 33| testCaseNames | string | Yes | Yes | Test case names.| 34| testRunnerClassName | string | Yes | Yes | Names of the test case executors.| 35 36**Example** 37 38```ts 39import { abilityDelegatorRegistry } from '@kit.TestKit'; 40 41let args: abilityDelegatorRegistry.AbilityDelegatorArgs = abilityDelegatorRegistry.getArguments(); 42``` 43