OHOS allows you to implement test code to monitor the running status of your OHOS applications. You can control the lifecycle of abilities and simulate input events to test applications.
| 接口 | 说明 |
|---|---|
| IAbilityDelegator |
A global test utility interface used for adding
IAbilityMonitor objects and control lifecycle states of
abilities. |
| IAbilityDelegatorArgs |
Stores unit testing-related parameters, including the class loader, test case names, and test runner name.
|
| IAbilityMonitor |
Provides methods for matching monitored
Ability objects that meet specified
conditions. |
| 类 | 说明 |
|---|---|
| AbilityDelegatorRegistry |
A global register used to store the
IAbilityDelegator and IAbilityDelegatorArgs objects registered
during application startup. |
| ShellCmdResult |
A object that records the result of shell command executes.
|
| TestRunner |
Base class for the test framework.
|