提交 fbfa2132 编写于 作者: C chenxuihui

多ability应用恢复新增接口测试用例

Signed-off-by: Nchenxuihui <chenxuhui2@huawei.com>
上级 3f708482
......@@ -192,7 +192,7 @@ describe("ActsAppRecoveryTest", function () {
/**
* @tc.number: DFX_DFR_AppRecovery_Interface_1100
* @tc.name: 调用saveAppState接口
* @tc.name: 调用saveAppState接口(不传参)
* @tc.desc: appRecovery interface test.
*/
it("DFX_DFR_AppRecovery_Interface_1100", 0, function () {
......@@ -392,5 +392,41 @@ describe("ActsAppRecoveryTest", function () {
console.info("DFX_DFR_AppRecovery_Interface_2100 end");
})
/**
* @tc.number: DFX_DFR_AppRecovery_Interface_2200
* @tc.name: 调用saveAppState接口(传参Ability)
* @tc.desc: appRecovery interface test.
*/
it("DFX_DFR_AppRecovery_Interface_2200", 0, function () {
console.info("-------------------------DFX_DFR_AppRecovery_Interface_2200 start-------------------------");
try{
appRecovery.saveAppState(globalThis.abilityContext);
}catch(error){
console.info("DFX_DFR_AppRecovery_Interface_2200 err = " + error);
expect(false).assertTrue();
}
console.info("DFX_DFR_AppRecovery_Interface_2200 end");
})
/**
* @tc.number: DFX_DFR_AppRecovery_Interface_2300
* @tc.name: 调用setRestartWant接口
* @tc.desc: appRecovery interface test.
*/
it("DFX_DFR_AppRecovery_Interface_2300", 0, function () {
console.info("-------------------------DFX_DFR_AppRecovery_Interface_2300 start-------------------------");
try{
let want = {
bundleName: "ohos.samples.recovery",
abilityName: "RecoveryAbility"
};
appRecovery.setRestartWant(want);
}catch(error){
console.info("DFX_DFR_AppRecovery_Interface_2300 err = " + error);
expect(false).assertTrue();
}
console.info("DFX_DFR_AppRecovery_Interface_2300 end");
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册