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

!2497 XTS用例修改

Merge pull request !2497 from jiangwensai/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册