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

!1778 xtsuserid修改

Merge pull request !1778 from Lotol/master
......@@ -31,7 +31,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, OnReceiveInstallEvent);
......@@ -61,7 +61,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortInfos, 'id.third1', 'third1');
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, OnReceiveUninstallEvent);
......@@ -85,7 +85,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, OnReceiveInstallEvent);
......@@ -99,7 +99,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(shortcutInfos.length).assertEqual(1);
checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1');
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -123,7 +123,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest1.hap', '/data/test/bmsThirdBundleTest3.hap'];
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -137,7 +137,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortInfos, 'id.third3', 'third3');
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -159,7 +159,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -172,7 +172,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortInfos, 'id.third1', 'third1');
checkShortcutIsExist(shortInfos, 'id.third3', 'third3');
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -229,7 +229,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var abilityName = 'com.example.third1.AMainAbility';
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -237,7 +237,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(bundlePath2, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -267,7 +267,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
}
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -292,7 +292,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var abilityName = 'com.example.third1.AMainAbility';
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -300,7 +300,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(bundlePath2, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -328,7 +328,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
}
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -352,7 +352,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest2.hap'];
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -364,7 +364,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(data.length).assertEqual(0);
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -386,7 +386,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest2.hap'];
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -398,7 +398,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
expect(shortcutInfos.length).assertEqual(0);
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -486,7 +486,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -497,7 +497,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1');
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -523,7 +523,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third1';
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -536,7 +536,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutIsExist(shortcutInfos, 'id.third1', 'third1');
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -563,7 +563,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundlePath = ['/data/test/bmsThirdBundleTest4.hap'];
let installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -577,7 +577,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutInfo(shortcutInfos[1], 'third4B');
});
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -599,7 +599,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
var bundleName = 'com.example.third4';
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -612,7 +612,7 @@ describe('ActsBmsAllShortcutInfoTest', function () {
checkShortcutInfo(shortcutInfos[0], 'third4A');
checkShortcutInfo(shortcutInfos[1], 'third4B');
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......
......@@ -34,11 +34,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0100==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -53,11 +51,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS1V', formsInfo, '1V', false, true);
checkFormIsExist('Form_JS1V2', formsInfo, '1V2');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -128,11 +124,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0200==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -147,11 +141,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS1V', formsInfo, '1V', false, true);
checkFormIsExist('Form_JS1V2', formsInfo, '1V2');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -171,11 +163,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0300==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -183,11 +173,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(['/data/test/bmsThirdBundleTestA1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -197,11 +185,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormNoExist(formsInfo, 'Form_JS1');
checkFormIsExist('Form_JSA1', formsInfo, 'A1')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -221,11 +207,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0400==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -233,11 +217,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(['/data/test/bmsThirdBundleTestA1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -248,11 +230,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormNoExist(formsInfo, 'Form_JS1');
checkFormIsExist('Form_JSA1', formsInfo, 'A1');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -273,11 +253,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0500==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -285,11 +263,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -310,11 +286,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0600==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -322,11 +296,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -349,11 +321,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0700==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -365,11 +335,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS4A', formsInfo, '4A');
checkFormIsExist('Form_JS4B', formsInfo, '4B');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -388,11 +356,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0800==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -405,11 +371,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS4A', formsInfo, '4A');
checkFormIsExist('Form_JS4B', formsInfo, '4B');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -430,11 +394,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_0900==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -446,11 +408,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS5A', formsInfo, '5A');
checkFormIsExist('Form_JS5B', formsInfo, '5B');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -470,11 +430,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('=====================bms_getAllFormsInfo_1000==================');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -487,11 +445,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS5A', formsInfo, '5A');
checkFormIsExist('Form_JS5B', formsInfo, '5B');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -537,11 +493,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_0300============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest2.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -551,11 +505,9 @@ describe('ActsBmsFormsInfoTest', function () {
var formsInfo = await bundle.getFormsInfo(BUNDLE_NAME2);
expect(formsInfo.length).assertEqual(0);
installer.uninstall(BUNDLE_NAME2, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -574,11 +526,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_0400============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest2.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -589,11 +539,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(err.code).assertEqual(0);
expect(formsInfo.length).assertEqual(0);
installer.uninstall(BUNDLE_NAME2, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -613,11 +561,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_0500============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap', '/data/test/bmsThirdBundleTest3.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -629,11 +575,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS1', formsInfo, '1');
checkFormIsExist('Form_JS3', formsInfo, '3')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -652,11 +596,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_0600============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap', '/data/test/bmsThirdBundleTest3.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -669,11 +611,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS1', formsInfo, '1')
checkFormIsExist('Form_JS3', formsInfo, '3')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -693,11 +633,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_0700============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -705,11 +643,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(['/data/test/bmsThirdBundleTestA1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -718,11 +654,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(formsInfo.length).assertEqual(1);
checkFormIsExist('Form_JSA1', formsInfo, 'A1')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -742,11 +676,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_0800============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -754,11 +686,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(['/data/test/bmsThirdBundleTestA1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -768,11 +698,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(formsInfo.length).assertEqual(1);
checkFormIsExist('Form_JSA1', formsInfo, 'A1');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -793,11 +721,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_0900============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -809,11 +735,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormByName(formsInfo[0], '4A');
checkFormByName(formsInfo[1], '4B');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -832,11 +756,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_1000============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -849,11 +771,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormByName(formsInfo[0], '4A');
checkFormByName(formsInfo[1], '4B');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -874,11 +794,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_1100============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -890,11 +808,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS5A', formsInfo, '5A');
checkFormIsExist('Form_JS5B', formsInfo, '5B');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -914,11 +830,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_1200============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -931,11 +845,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS5A', formsInfo, '5A');
checkFormIsExist('Form_JS5B', formsInfo, '5B');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -993,11 +905,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_1500============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -1005,11 +915,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1030,11 +938,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfo_1600============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -1042,11 +948,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1069,11 +973,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0100============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1084,11 +986,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(formsInfo.length).assertEqual(1);
checkFormIsExist('Form_JS1', formsInfo, '1');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1107,11 +1007,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0200============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1123,11 +1021,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.length).assertEqual(1);
checkFormIsExist('Form_JS1', data, '1')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1147,11 +1043,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0300============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1161,11 +1055,9 @@ describe('ActsBmsFormsInfoTest', function () {
let formsInfo = await bundle.getFormsInfoByModule(BUNDLE_NAME1, '');
expect(formsInfo.length).assertEqual(0);
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1184,11 +1076,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0400============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1199,11 +1089,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(err.code).assertEqual(-1);
expect(data.length).assertEqual(0);
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1223,11 +1111,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0500============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1237,11 +1123,9 @@ describe('ActsBmsFormsInfoTest', function () {
let formsInfo = await bundle.getFormsInfoByModule('', 'bmsThirdBundle1');
expect(formsInfo.length).assertEqual(0);
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1260,11 +1144,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0600============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1275,11 +1157,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(err.code).assertEqual(-1);
expect(data.length).assertEqual(0);
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1299,11 +1179,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0700============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap', '/data/test/bmsThirdBundleTest3.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1314,11 +1192,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(formsInfo.length).assertEqual(1);
checkFormIsExist('Form_JS3', formsInfo, '3')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1337,11 +1213,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0800============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap', '/data/test/bmsThirdBundleTest3.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1353,11 +1227,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(formsInfo.length).assertEqual(1);
checkFormIsExist('Form_JS3', formsInfo, '3')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1377,11 +1249,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_0900============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1393,11 +1263,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS4A', formsInfo, '4A');
checkFormIsExist('Form_JS4B', formsInfo, '4B');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1416,11 +1284,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_1000============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest4.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1433,11 +1299,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS4A', formsInfo, '4A');
checkFormIsExist('Form_JS4B', formsInfo, '4B');
installer.uninstall(BUNDLE_NAME4, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1458,11 +1322,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_1100============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1474,11 +1336,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS5A', formsInfo, '5A');
checkFormIsExist('Form_JS5B', formsInfo, '5B');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1498,11 +1358,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_1200============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
async function onReceiveinstallEvent(err, data) {
......@@ -1515,11 +1373,9 @@ describe('ActsBmsFormsInfoTest', function () {
checkFormIsExist('Form_JS5A', formsInfo, '5A');
checkFormIsExist('Form_JS5B', formsInfo, '5B');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1577,11 +1433,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_1500============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -1589,11 +1443,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1614,11 +1466,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_1600============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -1626,11 +1476,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(BUNDLE_NAME5, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1653,11 +1501,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_1700============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -1665,11 +1511,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(['/data/test/bmsThirdBundleTestA1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, async (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1678,11 +1522,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(formsInfo.length).assertEqual(1);
checkFormIsExist('Form_JSA1', formsInfo, 'A1')
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1702,11 +1544,9 @@ describe('ActsBmsFormsInfoTest', function () {
console.info('==============bms_getFormsInfoByModule_1800============');
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, onReceiveinstallEvent);
function onReceiveinstallEvent(err, data) {
......@@ -1714,11 +1554,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(['/data/test/bmsThirdBundleTestA1.hap'], {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......@@ -1728,11 +1566,9 @@ describe('ActsBmsFormsInfoTest', function () {
expect(formsInfo.length).assertEqual(1);
checkFormIsExist('Form_JSA1', formsInfo, 'A1');
installer.uninstall(BUNDLE_NAME1, {
param: {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
}, (err, data) => {
expect(err.code).assertEqual(0);
expect(data.status).assertEqual(0);
......
......@@ -47,7 +47,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
}
installer.uninstall(BUNDLE_NAME1,
{
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}
......@@ -63,7 +63,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
installer.install(['/data/test/bmsThirdBundleTest1.hap'],
{
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false,
}, onReceiveinstallEvent);
......
......@@ -29,7 +29,7 @@ describe('ActsBmsHapModuleTest', function () {
let bundleName = 'com.example.bmsmainabilityfirstscene';
var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveInstallEvent);
......@@ -70,7 +70,7 @@ describe('ActsBmsHapModuleTest', function () {
}
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -96,7 +96,7 @@ describe('ActsBmsHapModuleTest', function () {
let secondMainAbility = 'com.example.bmsmainabilitysecondscene.MainAbility';
var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -114,7 +114,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(result.hapModuleInfo[1]);
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -139,7 +139,7 @@ describe('ActsBmsHapModuleTest', function () {
var installer = await bundle.getBundleInstaller();
console.log('========install========' + typeof installer);
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveInstallEvent);
......@@ -160,7 +160,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(result.hapModuleInfo[0]);
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveUninstallEvent);
......@@ -190,7 +190,7 @@ describe('ActsBmsHapModuleTest', function () {
var installer = await bundle.getBundleInstaller();
console.log('========install========' + typeof installer);
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -209,7 +209,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(result.hapModuleInfo[0]);
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveUninstallEvent);
......@@ -236,7 +236,7 @@ describe('ActsBmsHapModuleTest', function () {
let bundleName = 'com.example.third1';
var installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -244,7 +244,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(bundlePath2, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -263,7 +263,7 @@ describe('ActsBmsHapModuleTest', function () {
checkHapModuleInfo(hapModuleInfo);
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......
......@@ -29,7 +29,7 @@ describe('ActsBmsJsTest', function () {
let abilityName = 'com.example.third2.MainAbility';
var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest2.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveInstallEvent);
......@@ -50,7 +50,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[0].srcPath).assertEqual('');
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -76,7 +76,7 @@ describe('ActsBmsJsTest', function () {
let abilityName2 = 'com.example.third5.BMainAbility';
var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest5.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveInstallEvent);
......@@ -101,7 +101,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[1].srcPath).assertEqual('');
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -125,7 +125,7 @@ describe('ActsBmsJsTest', function () {
let abilityName = 'com.example.js.MainAbility';
var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleJs.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveInstallEvent);
......@@ -146,7 +146,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[0].srcPath).assertEqual('default');
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -171,7 +171,7 @@ describe('ActsBmsJsTest', function () {
let abilityName = '.MainAbility';
var installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleC.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveInstallEvent);
......@@ -192,7 +192,7 @@ describe('ActsBmsJsTest', function () {
expect(result.abilityInfo[0].srcPath).assertEqual('default/c++/');
}
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......
......@@ -30,7 +30,7 @@ describe('ActsBmsMetaDataTest', function () {
let abilityName1 = 'com.example.third1.MainAbility';
let dataMap = new Map();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -50,7 +50,7 @@ describe('ActsBmsMetaDataTest', function () {
checkMetaData(dataMap.get(abilityName1), 'Data1');
}
installer.uninstall('com.example.third1', {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -76,7 +76,7 @@ describe('ActsBmsMetaDataTest', function () {
let abilityName1 = 'com.example.third1.AMainAbility';
var installer = await bundle.getBundleInstaller();
installer.install(bundlePath1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -84,7 +84,7 @@ describe('ActsBmsMetaDataTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.install(bundlePath2, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -104,7 +104,7 @@ describe('ActsBmsMetaDataTest', function () {
checkMetaData(dataMap.get(abilityName1), 'DataA1');
}
installer.uninstall('com.example.third1', {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -128,7 +128,7 @@ describe('ActsBmsMetaDataTest', function () {
let bundleName = 'com.example.third1';
var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -136,7 +136,7 @@ describe('ActsBmsMetaDataTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual('SUCCESS');
installer.uninstall(bundleName, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -164,7 +164,7 @@ describe('ActsBmsMetaDataTest', function () {
let abilityName1 = 'com.example.third5.AMainAbility';
var installer = await bundle.getBundleInstaller();
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveinstallEvent);
......@@ -185,7 +185,7 @@ describe('ActsBmsMetaDataTest', function () {
checkMetaData(dataMap.get(abilityName1), 'Data5A');
}
installer.uninstall('com.example.third5', {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......
......@@ -75,7 +75,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=======start ability========')
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -98,7 +98,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
if (err.code != 0 && data.name.length == 0) {
let installer = await bundle.getBundleInstaller();
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -232,7 +232,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_0500==================');
var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, onReceiveinstallEvent);
......@@ -248,7 +248,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
var result = checkIsExist(records, BUNDLE_NAME);
expect(result).assertEqual(false);
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -270,7 +270,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_0600==================');
var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -282,7 +282,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
var result = checkIsExist(moduleUsageRecord, BUNDLE_NAME);
expect(result).assertEqual(false);
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -360,7 +360,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_1100==================');
var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -369,7 +369,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.statusMessage).assertEqual("SUCCESS");
var bundlePath = ['/data/test/bmsThirdBundleTest1.hap'];
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -393,7 +393,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=====================bms_getModuleUsageRecordTest_1200==================');
var installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -402,7 +402,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.statusMessage).assertEqual("SUCCESS");
var bundlePath = ['/data/test/bmsThirdBundleTest1.hap']
installer.install(bundlePath, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -457,7 +457,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
}
let installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -465,7 +465,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -522,7 +522,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
}
let installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......@@ -530,7 +530,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
expect(data.status).assertEqual(0);
expect(data.statusMessage).assertEqual("SUCCESS");
installer.install(['/data/test/bmsThirdBundleTest1.hap'], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -673,7 +673,7 @@ describe('ActsBmsModuleUsageRecordTest', function () {
console.debug('=======after all install========');
let installer = await bundle.getBundleInstaller();
installer.uninstall(BUNDLE_NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, (err, data) => {
......
......@@ -54,7 +54,7 @@ var subscriberInfoEvent_0100 = {
events: ['Third1_Publish_CommonEvent'],
};
var installParam = {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
};
......@@ -74,7 +74,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -123,7 +123,7 @@ describe('ActsBundleManagerTest', function () {
}
expect(datainfo.appInfo.enabled).assertEqual(true);
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -143,7 +143,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_0600', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -176,7 +176,7 @@ describe('ActsBundleManagerTest', function () {
}
expect(datainfo.appInfo.enabled).assertEqual(true)
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -198,7 +198,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
await demo.getBundleInstaller().then((data) => {
data.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -226,7 +226,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.supportedModes).assertEqual(0)
expect(datainfo.appInfo.enabled).assertEqual(true)
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -247,7 +247,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
await demo.getBundleInstaller().then((data) => {
data.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -280,7 +280,7 @@ describe('ActsBundleManagerTest', function () {
}
expect(datainfo.appInfo.enabled).assertEqual(true)
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -301,7 +301,7 @@ describe('ActsBundleManagerTest', function () {
it('getApplicationInfos_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -314,7 +314,7 @@ describe('ActsBundleManagerTest', function () {
var datainfo = await demo.getAllApplicationInfo(8, 0)
checkgetApplicationInfos(datainfo)
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -357,7 +357,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -385,7 +385,7 @@ describe('ActsBundleManagerTest', function () {
}
}
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -406,7 +406,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfos_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -433,7 +433,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0)
}
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -507,7 +507,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfos_0600', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -532,7 +532,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0)
}
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -715,7 +715,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.abilityInfos[j].moduleName).assertEqual("entry")
}
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -735,7 +735,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleArchiveInfo_0200', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -759,7 +759,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.labelId >= 0).assertTrue()
expect(datainfo.appInfo.systemApp).assertEqual(false)
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -779,7 +779,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleArchiveInfo_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -803,17 +803,17 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.labelId >= 0).assertTrue()
expect(datainfo.appInfo.systemApp).assertEqual(false)
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME4, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME5, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -866,7 +866,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleArchiveInfo_0600', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -906,7 +906,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.abilityInfos[j].moduleName).assertEqual("entry")
}
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -927,7 +927,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleArchiveInfo_0700', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -953,7 +953,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.labelId >= 0).assertTrue()
expect(datainfo.appInfo.systemApp).assertEqual(false)
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -974,7 +974,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleArchiveInfo_0800', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1000,7 +1000,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.labelId >= 0).assertTrue()
expect(datainfo.appInfo.systemApp).assertEqual(false)
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1058,7 +1058,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleArchiveInfo_1100', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1098,7 +1098,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.abilityInfos[j].moduleName).assertEqual("entry")
}
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1119,7 +1119,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleArchiveInfo_1200', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1159,7 +1159,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.abilityInfos[j].moduleName).assertEqual("entry")
}
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1180,7 +1180,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_0200', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1205,7 +1205,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.labelId >= 0).assertTrue()
expect(datainfo.appInfo.systemApp).assertEqual(true)
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1225,7 +1225,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_0700', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1251,7 +1251,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.labelId >= 0).assertTrue()
expect(datainfo.appInfo.systemApp).assertEqual(true)
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1273,7 +1273,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1287,7 +1287,7 @@ describe('ActsBundleManagerTest', function () {
console.info("==========ActsBmsGetInfosSecondScene is ==========" + JSON.stringify(datainfo));
checkgetApplicationInfos(datainfo)
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1307,7 +1307,7 @@ describe('ActsBundleManagerTest', function () {
it('getApplicationInfos_0400', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1321,7 +1321,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.length).assertLarger(0)
checkgetApplicationInfos(datainfo)
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1342,7 +1342,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1371,7 +1371,7 @@ describe('ActsBundleManagerTest', function () {
}
}
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1392,7 +1392,7 @@ describe('ActsBundleManagerTest', function () {
it('getApplicationInfos_0900', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1421,7 +1421,7 @@ describe('ActsBundleManagerTest', function () {
}
}
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1443,7 +1443,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1479,7 +1479,7 @@ describe('ActsBundleManagerTest', function () {
}
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1500,7 +1500,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1526,7 +1526,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0)
}
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1595,7 +1595,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1621,7 +1621,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0)
}
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1643,7 +1643,7 @@ describe('ActsBundleManagerTest', function () {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1669,7 +1669,7 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0)
}
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1735,7 +1735,7 @@ describe('ActsBundleManagerTest', function () {
it('getApplicationInfos_0800', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1754,7 +1754,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfos_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1779,17 +1779,17 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0)
}
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME4, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME5, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1808,7 +1808,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfos_0500', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1834,17 +1834,17 @@ describe('ActsBundleManagerTest', function () {
}
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME4, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME5, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1863,7 +1863,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfos_0800', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1888,17 +1888,17 @@ describe('ActsBundleManagerTest', function () {
expect(data[i].appInfo.moduleInfos.length).assertLarger(0)
}
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME4, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME5, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -1918,7 +1918,7 @@ describe('ActsBundleManagerTest', function () {
it('getApplicationInfo_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -1945,17 +1945,17 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.supportedModes).assertEqual(0)
});
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME4, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
installData.uninstall(NAME5, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2126,7 +2126,7 @@ describe('ActsBundleManagerTest', function () {
it('queryAbilityByWant_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2173,7 +2173,7 @@ describe('ActsBundleManagerTest', function () {
}
})
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2193,7 +2193,7 @@ describe('ActsBundleManagerTest', function () {
it('queryAbilityByWant_0200', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + BMSJSTEST2, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2236,7 +2236,7 @@ describe('ActsBundleManagerTest', function () {
}
}
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2256,19 +2256,19 @@ describe('ActsBundleManagerTest', function () {
it('queryAbilityByWant_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
expect(data.status).assertEqual(0);
installData.install([PATH + BMSJSTEST5], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
expect(data.status).assertEqual(0);
installData.install([PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2324,19 +2324,19 @@ describe('ActsBundleManagerTest', function () {
expect(queryResultCount).assertEqual(3)
})
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
expect(data.status).assertEqual(0);
installData.uninstall(NAME4, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
expect(data.status).assertEqual(0);
installData.uninstall(NAME5, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2356,7 +2356,7 @@ describe('ActsBundleManagerTest', function () {
it('queryAbilityByWant_0400', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2374,7 +2374,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.length).assertEqual(0)
})
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2422,7 +2422,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_1400', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2433,7 +2433,7 @@ describe('ActsBundleManagerTest', function () {
});
async function getInfo() {
var bundleOptions = {
userId: 0,
userId: 100,
networkId: ""
};
var dataInfo = await demo.getBundleInfo(NAME1, demo.BundleFlag.GET_BUNDLE_WITH_ABILITIES, bundleOptions);
......@@ -2471,7 +2471,7 @@ describe('ActsBundleManagerTest', function () {
}
expect(dataInfo.appInfo.enabled).assertEqual(true);
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2491,7 +2491,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_1500', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2502,7 +2502,7 @@ describe('ActsBundleManagerTest', function () {
});
async function getInfo() {
var bundleOptions = {
userId: 0,
userId: 100,
networkId: ""
};
demo.getBundleInfo(NAME1, demo.BundleFlag.GET_BUNDLE_WITH_ABILITIES, bundleOptions, (err, dataInfo) => {
......@@ -2540,7 +2540,7 @@ describe('ActsBundleManagerTest', function () {
}
expect(dataInfo.appInfo.enabled).assertEqual(true);
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2561,7 +2561,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_1600', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2579,7 +2579,7 @@ describe('ActsBundleManagerTest', function () {
}).catch(err => {
expect(err).assertEqual(1);
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2600,7 +2600,7 @@ describe('ActsBundleManagerTest', function () {
it('getBundleInfo_1700', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2617,7 +2617,7 @@ describe('ActsBundleManagerTest', function () {
expect(err).assertEqual(1);
expect(dataInfo).assertEqual(undefined);
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, (err, data) => {
......@@ -2754,7 +2754,7 @@ describe('ActsBundleManagerTest', function () {
it('install_0400', 0, async function (done) {
demo.getBundleInstaller().then(async (data) => {
await data.install([PATH + ERROR], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, OnReceiveinstallEvent);
......@@ -2778,7 +2778,7 @@ describe('ActsBundleManagerTest', function () {
it('install_0500', 0, async function (done) {
demo.getBundleInstaller().then((data) => {
data.install([''], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, OnReceiveinstallEvent);
......@@ -2826,7 +2826,7 @@ describe('ActsBundleManagerTest', function () {
it('install_0700', 0, async function (done) {
demo.getBundleInstaller().then((data) => {
data.install([PATH + BMSJSTEST7], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, OnReceiveinstallEvent);
......@@ -2890,7 +2890,7 @@ describe('ActsBundleManagerTest', function () {
it('install_0900', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST9], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2900,7 +2900,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.versionCode).assertEqual(VERSIONCODE2);
expect(datainfo.versionName).assertLarger(0);
installData.install([PATH + BMSJSTEST8], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, OnReceiveinstallEvent);
......@@ -2912,7 +2912,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.versionCode).assertEqual(VERSIONCODE2);
expect(datainfo.versionName).assertLarger(0);
installData.uninstall(THIRD1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2948,7 +2948,7 @@ describe('ActsBundleManagerTest', function () {
}
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST8], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2983,7 +2983,7 @@ describe('ActsBundleManagerTest', function () {
let uid = bundleInfo.uid;
expect(processMap1.has(uid)).assertTrue();
installData.install([PATH + BMSJSTEST9], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -2998,7 +2998,7 @@ describe('ActsBundleManagerTest', function () {
expect(processMap2.has(uid)).assertFalse();
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
installData.uninstall(THIRD1, {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......
......@@ -53,7 +53,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -63,7 +63,7 @@ describe('ActsBundleManagerUninstall', function () {
var datainfo1 = await demo.getBundleInfo(NAME1, 1);
expect(datainfo1.name).assertEqual(NAME1);
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -89,7 +89,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0200', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST1, PATH + BMSJSTEST3], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -101,14 +101,14 @@ describe('ActsBundleManagerUninstall', function () {
expect(datainfo1.name).assertEqual('');
expect(datainfo2.name).assertEqual('');
installData.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async(err, data) => {
var datainfo3 = await demo.getBundleInfo(NAME1, 1);
expect(datainfo3.name).assertEqual('');
installData.uninstall(NAME2, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async(err, data) => {
......@@ -128,7 +128,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller()
installData.install([PATH + BMSJSTEST4, PATH + BMSJSTEST5, PATH + BMSJSTEST6], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -142,21 +142,21 @@ describe('ActsBundleManagerUninstall', function () {
var datainfo3 = await demo.getBundleInfo(NAME5, 1);
expect(datainfo3.name).assertEqual('');
installData.uninstall(NAME3, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async(err, data) => {
var datainfo4 = await demo.getBundleInfo(NAME3, 1);
expect(datainfo4.name).assertEqual('');
installData.uninstall(NAME4, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async(err, data) => {
var datainfo5 = await demo.getBundleInfo(NAME4, 1);
expect(datainfo5.name).assertEqual('');
installData.uninstall(NAME5, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async(err, data) => {
......@@ -177,7 +177,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0400', 0, async function (done) {
demo.getBundleInstaller().then((data) => {
data.uninstall(ERROR, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, OnReceiveinstallEvent);
......@@ -198,7 +198,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0500', 0, async function (done) {
demo.getBundleInstaller().then((data) => {
data.uninstall('', {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, OnReceiveinstallEvent);
......@@ -220,7 +220,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0600', 0, async function (done) {
demo.getBundleInstaller().then((data) => {
data.uninstall(LAUNCHER, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, OnReceiveinstallEvent);
......@@ -242,7 +242,7 @@ describe('ActsBundleManagerUninstall', function () {
it('uninstall_0700', 0, async function (done) {
let result = await demo.getBundleInstaller();
result.install([PATH + BMSJSTEST1], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: true
}, OnReceiveinstallEvent);
......@@ -255,7 +255,7 @@ describe('ActsBundleManagerUninstall', function () {
expect(err).assertFail();
});
result.uninstall(NAME1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async(err, data) => {
......@@ -296,7 +296,7 @@ describe('ActsBundleManagerUninstall', function () {
}
let installData = await demo.getBundleInstaller();
installData.install([PATH + BMSJSTEST8], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -328,7 +328,7 @@ describe('ActsBundleManagerUninstall', function () {
let uid = bundleInfo.uid;
expect(processMap1.has(uid)).assertTrue();
installData.uninstall(THIRD1, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async(err, data) => {
......
......@@ -51,7 +51,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([""], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -71,7 +71,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0200', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT,""], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -91,7 +91,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -99,7 +99,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.status).assertEqual(0);
console.info('===BMS_Multiple_Hap_Install_0300.Message1===' + JSON.stringify(data.statusMessage));
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data1) => {
......@@ -118,7 +118,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0400', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT, PATH + THIRD_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -138,7 +138,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0500', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT, PATH + FOURTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -158,7 +158,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0600', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + EIGHTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -178,7 +178,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0700', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + NINTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -198,7 +198,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0800', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + TENTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -218,7 +218,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_0900', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + ELEVEBTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -238,7 +238,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_1000', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + FIFTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -258,7 +258,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_1100', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT, PATH + SECOND_BACKUP_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -267,7 +267,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Install_1100.Message1===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data1) => {
......@@ -286,7 +286,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_1200', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -295,7 +295,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Install_1200.Message1===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data1) => {
......@@ -314,7 +314,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_1300', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT, PATH + TWELFTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -323,7 +323,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Install_1300.Message1===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data1) => {
......@@ -342,7 +342,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_1400', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + "test_right.hap"], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -362,7 +362,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Install_1500', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + SIXTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -382,7 +382,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0100', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -392,7 +392,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -401,7 +401,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0100.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -421,7 +421,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0200', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -430,7 +430,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0200.Message1===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + FOURTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -439,7 +439,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0200.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('STATUS_INSTALL_FAILURE_CONFLICT');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -459,7 +459,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0300', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -468,7 +468,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0300.Message1===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + THIRTEENTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -477,7 +477,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0300.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('STATUS_INSTALL_FAILURE_INCOMPATIBLE');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -497,7 +497,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0400', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -507,7 +507,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -516,7 +516,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0400.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -536,7 +536,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0500', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -546,7 +546,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + FOURTEENTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -555,7 +555,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0500.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -575,7 +575,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0600', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -585,7 +585,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + FIRST_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -594,7 +594,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0600.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -614,7 +614,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0700', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -624,7 +624,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + FOURTEENTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -633,7 +633,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0700.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -653,7 +653,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0800', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -663,7 +663,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -672,7 +672,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0800.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -692,7 +692,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_0900', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -702,7 +702,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + FOURTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -711,7 +711,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_0900.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -731,7 +731,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_1000', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -740,7 +740,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_1000.Message1===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + THIRTEENTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -749,7 +749,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_1000.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('STATUS_INSTALL_FAILURE_INCOMPATIBLE');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -769,7 +769,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_1100', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -779,7 +779,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + TWELFTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -788,7 +788,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_1100.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -808,7 +808,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_1200', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -818,7 +818,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + SIXTEENTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -827,7 +827,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_1200.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -847,7 +847,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_1300', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -856,7 +856,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_1300.Message1===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + THIRTEENTH_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -865,7 +865,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_1300.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('STATUS_INSTALL_FAILURE_INCOMPATIBLE');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -885,7 +885,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_1400', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -893,7 +893,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.status).assertEqual(0);
console.info('===BMS_Multiple_Hap_Update_1400.Message1===' + JSON.stringify(data.statusMessage));
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data1) => {
......@@ -912,7 +912,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
it('BMS_Multiple_Hap_Update_1500', 0, async function (done) {
let installData = await demo.getBundleInstaller();
installData.install([PATH + FIRST_RIGHT, PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 0,
isKeepData: false
}, async (err, data) => {
......@@ -922,7 +922,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
expect(data.statusMessage).assertEqual('SUCCESS');
installData.install([PATH + FIRST_RIGHT, PATH + SECOND_RIGHT], {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......@@ -931,7 +931,7 @@ describe('ActsBundleMgrMultipleInstallTest', function () {
console.info('===BMS_Multiple_Hap_Update_1500.Message2===' + JSON.stringify(data.statusMessage));
expect(data.statusMessage).assertEqual('SUCCESS');
installData.uninstall(NAME, {
userId: 0,
userId: 100,
installFlag: 1,
isKeepData: false
}, async (err, data) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册