未验证 提交 d644948a 编写于 作者: O openharmony_ci 提交者: Gitee

!2505 XTS挑单

Merge pull request !2505 from jiangwensai/OpenHarmony-3.1-Release
......@@ -219,9 +219,13 @@ describe('ActsAmsTestSecondScene', function () {
* @tc.desc : Kill Processes By BundleName(by Promise)
*/
it('Acts_Ams_test_3100', 0, async function (done) {
var info = await appManager.killProcessesByBundleName('XXXXXXXXXXXX');
console.info('Acts_Ams_test_3100 killProcessesByBundleName data [' + info + ']');
expect(info).assertEqual(2097215);
done();
console.info('Acts_test_3100 killProcessesByBundleName data');
appManager.killProcessesByBundleName('XXXXXXXXXXXX').then(data => {
console.log('Acts_test_3100 success: ' + data);
}).catch(err => {
console.log('Acts_test_3100 failed: ' + err.code);
expect(err.code).assertEqual(2097215);
done();
});
})
})
\ No newline at end of file
......@@ -240,9 +240,13 @@ describe('ActsAmsTestThirdScene', function () {
* @tc.desc : Kill Processes By BundleName(by Promise)
*/
it('Acts_Ams_test_4700', 0, async function (done) {
var info = await appManager.killProcessesByBundleName('XXXXXXXX');
console.info('Acts_Ams_test_4700 killProcessesByBundleName data [' + info + ']');
expect(info.code).assertEqual(2097215);
done();
console.info('Acts_test_4700 killProcessesByBundleName data');
appManager.killProcessesByBundleName('XXXXXXXX').then(data => {
console.log('Acts_test_4700 success: ' + data);
}).catch(err => {
console.log('Acts_test_4700 failed: ' + err.code);
expect(err.code).assertEqual(2097215);
done();
});
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册