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