提交 f0d39a31 编写于 作者: N njupthan

Update md file

Signed-off-by: Nnjupthan <hanhaibin@huawei.com>
上级 5f9e6b6c
......@@ -18,11 +18,11 @@ Ability生命周期状态
| 名称 | 值 | 说明 |
| ------------- | ---- | ------------------------------------------------------------ |
| UNINITIALIZED | 0 | 表示无效状态。<br/>**系统能力**:SystemCapability.Ability.AbilityRuntime.Core |
| CREATE | 1 | 表示Ability处于已创建状态。<br/>**系统能力**:SystemCapability.Ability.AbilityRuntime.Core |
| FOREGROUND | 2 | 表示Ability处于前台状态。<br/>**系统能力**:SystemCapability.Ability.AbilityRuntime.Core |
| BACKGROUND | 3 | 表示Ability处于后台状态。<br/>**系统能力**:SystemCapability.Ability.AbilityRuntime.Core |
| DESTROY | 4 | 表示Ability处于已销毁状态。<br/>**系统能力**:SystemCapability.Ability.AbilityRuntime.Core |
| UNINITIALIZED | 0 | 表示无效状态。<br/>**系统能力** :SystemCapability.Ability.AbilityRuntime.Core |
| CREATE | 1 | 表示Ability处于已创建状态。<br/>**系统能力** :SystemCapability.Ability.AbilityRuntime.Core |
| FOREGROUND | 2 | 表示Ability处于前台状态。<br/>**系统能力** :SystemCapability.Ability.AbilityRuntime.Core |
| BACKGROUND | 3 | 表示Ability处于后台状态。<br/>**系统能力** :SystemCapability.Ability.AbilityRuntime.Core |
| DESTROY | 4 | 表示Ability处于已销毁状态。<br/>**系统能力** :SystemCapability.Ability.AbilityRuntime.Core |
......@@ -32,9 +32,7 @@ getAbilityDelegator(): AbilityDelegator
获取应用程序的AbilityDelegator对象
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**参数:**-
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**返回值:**
......@@ -58,9 +56,7 @@ getArguments(): AbilityDelegatorArgs
获取单元测试参数AbilityDelegatorArgs对象
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**参数:**-
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**返回值:**
......
......@@ -57,7 +57,7 @@ addAbilityMonitor(monitor: AbilityMonitor): Promise\<void>
添加AbilityMonitor实例(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -99,7 +99,7 @@ removeAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\<void>): v
删除已经添加的AbilityMonitor实例(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -136,7 +136,7 @@ removeAbilityMonitor(monitor: AbilityMonitor): Promise\<void>
删除已经添加的AbilityMonitor实例(promise形式)
**系统能力**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -178,7 +178,7 @@ waitAbilityMonitor(monitor: AbilityMonitor, callback: AsyncCallback\<Ability>):
等待与AbilityMonitor实例匹配的ability到达OnCreate生命周期,并返回ability实例(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -215,7 +215,7 @@ waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCall
设置等待时间,等待与AbilityMonitor实例匹配的ability到达OnCreate生命周期,并返回ability实例(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -254,7 +254,7 @@ waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise\<Ability>
等待与AbilityMonitor实例匹配的ability到达OnCreate生命周期,并返回ability实例(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -297,7 +297,7 @@ getAppContext(): Context
获取应用Context
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**返回值:**
......@@ -322,7 +322,7 @@ getAbilityState(ability: Ability): number
获取指定ability的生命周期状态
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -359,7 +359,7 @@ getCurrentTopAbility(callback: AsyncCallback\<Ability>): void
获取当前应用顶部ability(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -388,7 +388,7 @@ getCurrentTopAbility(): Promise\<Ability>
获取当前应用顶部ability(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**返回值:**
......@@ -417,7 +417,7 @@ startAbility(want: Want, callback: AsyncCallback\<void>): void
启动指定ability(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -449,7 +449,7 @@ startAbility(want: Want): Promise\<void>
启动指定ability(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -486,7 +486,7 @@ doAbilityForeground(ability: Ability, callback: AsyncCallback\<boolean>): void
调度指定ability生命周期状态到Foreground状态(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -519,7 +519,7 @@ doAbilityForeground(ability: Ability): Promise\<boolean>
调度指定ability生命周期状态到Foreground状态(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -557,7 +557,7 @@ doAbilityBackground(ability: Ability, callback: AsyncCallback\<boolean>): void
调度指定ability生命周期状态到Background状态(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -590,7 +590,7 @@ doAbilityBackground(ability: Ability): Promise\<boolean>
调度指定ability生命周期状态到Background状态(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -628,7 +628,7 @@ print(msg: string, callback: AsyncCallback\<void>): void
打印日志信息到单元测试终端控制台(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -657,7 +657,7 @@ print(msg: string): Promise\<void>
打印日志信息到单元测试终端控制台(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -691,7 +691,7 @@ executeShellCommand(cmd: string, callback: AsyncCallback\<ShellCmdResult>): void
执行指定的shell命令(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -720,7 +720,7 @@ executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback\<S
执行指定的shell命令(callback形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......@@ -751,7 +751,7 @@ executeShellCommand(cmd: string, timeoutSecs: number): Promise\<ShellCmdResult>
执行指定的shell命令(promise形式)
**系统能力:**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**参数:**
......
......@@ -18,9 +18,9 @@ import { AbilityDelegatorArgs } from './application/abilityDelegatorArgs';
| 名称 | 类型 | 可读 | 可写 | 说明 |
| ------------------- | ---------------------- | ---- | ---- | ------------------------------------------------------------ |
| bundleName | string | 是 | 是 | 当前被测试应用的包名<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| parameters | {[key:string]: string} | 是 | 是 | 当前启动单元测试的参数<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| testCaseNames | string | 是 | 是 | 测试用例名称<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| testRunnerClassName | string | 是 | 是 | 执行测试用例的测试执行器的名称<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| bundleName | string | 是 | 是 | 当前被测试应用的包名<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| parameters | {[key:string]: string} | 是 | 是 | 当前启动单元测试的参数<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| testCaseNames | string | 是 | 是 | 测试用例名称<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| testRunnerClassName | string | 是 | 是 | 执行测试用例的测试执行器的名称<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
......@@ -18,13 +18,13 @@ Ability监听器
| 名称 | 类型 | 可读 | 可写 | 说明 |
| -------------------- | -------- | ---- | ---- | ------------------------------------------------------------ |
| abilityName | string | 是 | 是 | 当前AbilityMonitor绑定的ability名称<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityCreate | function | 是 | 是 | ability被启动初始化时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityForeground | function | 是 | 是 | ability状态变成前台时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityBackground | function | 是 | 是 | ability状态变成后台时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityDestroy | function | 是 | 是 | ability被销毁前的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| onWindowStageCreate | function | 是 | 是 | window stage被创建时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| onWindowStageRestore | function | 是 | 是 | window stage被重载时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| onWindowStageDestroy | function | 是 | 是 | window stage被销毁前的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| abilityName | string | 是 | 是 | 当前AbilityMonitor绑定的ability名称<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityCreate | function | 是 | 是 | ability被启动初始化时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityForeground | function | 是 | 是 | ability状态变成前台时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityBackground | function | 是 | 是 | ability状态变成后台时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| onAbilityDestroy | function | 是 | 是 | ability被销毁前的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| onWindowStageCreate | function | 是 | 是 | window stage被创建时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| onWindowStageRestore | function | 是 | 是 | window stage被重载时的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| onWindowStageDestroy | function | 是 | 是 | window stage被销毁前的回调函数<br/>不设置该属性则不能收到该生命周期回调<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
......@@ -18,5 +18,5 @@ Shell命令执行结果
| 名称 | 类型 | 可读 | 可写 | 说明 |
| --------- | ------ | ---- | ---- | ------------------------------------------------------------ |
| stdResult | string | 是 | 是 | 标准输出内容<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| exitCode | number | 是 | 是 | 结果码<br/>**系统能力**SystemCapability.Ability.AbilityRuntime.Core |
| stdResult | string | 是 | 是 | 标准输出内容<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
| exitCode | number | 是 | 是 | 结果码<br/>**系统能力:** SystemCapability.Ability.AbilityRuntime.Core |
......@@ -18,7 +18,7 @@ onPrepare(): void
为运行测试用例准备单元测试环境
**系统能力**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**示例:**
......@@ -38,7 +38,7 @@ onRun(): void
运行测试用例
**系统能力**SystemCapability.Ability.AbilityRuntime.Core
**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
**示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册