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

!5434 【包管理子系统】【master】修改用例名

Merge pull request !5434 from ry/master
......@@ -37,11 +37,11 @@ describe('ActsBmsAccessTokenTest', function () {
});
/*
* @tc.number: bms_AccessTokenId_0100
* @tc.name: test accessTokenId
* @tc.number: BMS_SECURITY_INITIALIZE_0004
* @tc.name: getAccessTokenIdOfEntry
* @tc.desc: get the accessTokenId
*/
it('bms_AccessTokenId_0100', 0, async function (done) {
it('getAccessTokenIdOfEntry', 0, async function (done) {
await bundle.getApplicationInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId)
.then(applicationInfo => {
console.info('accessTokenId: ' + applicationInfo.accessTokenId);
......@@ -55,11 +55,11 @@ describe('ActsBmsAccessTokenTest', function () {
});
/*
* @tc.number: bms_AccessTokenId_0200
* @tc.name: test reqPermissionStates
* @tc.number: SUB_BMS_APPINFO_QUERYPERMISSION_0001
* @tc.name: getReqPermissionOfEntry
* @tc.desc: get the reqPermissions and reqPermissionStates
*/
it('bms_AccessTokenId_0200', 0, async function (done) {
it('getReqPermissionOfEntry', 0, async function (done) {
await bundle.getBundleInfo(BUNDLE_NAME3, bundle.BundleFlag.GET_BUNDLE_WITH_REQUESTED_PERMISSION)
.then(bundleInfo => {
expect(bundleInfo.name).assertEqual(BUNDLE_NAME3);
......@@ -79,11 +79,11 @@ describe('ActsBmsAccessTokenTest', function () {
});
/*
* @tc.number: bms_AccessTokenId_0300
* @tc.name: test reqPermissionStates
* @tc.number: SUB_BMS_APPINFO_QUERYPERMISSION_0008
* @tc.name: getReqPermissionUpdateEntry
* @tc.desc: get the reqPermissions and reqPermissionStates
*/
it('bms_AccessTokenId_0300', 0, async function (done) {
it('getReqPermissionUpdateEntry', 0, async function (done) {
await bundle.getBundleInfo(BUNDLE_NAME2, bundle.BundleFlag.GET_BUNDLE_WITH_REQUESTED_PERMISSION)
.then(bundleInfo => {
expect(bundleInfo.name).assertEqual(BUNDLE_NAME2);
......@@ -107,11 +107,11 @@ describe('ActsBmsAccessTokenTest', function () {
});
/*
* @tc.number: bms_AccessTokenId_0400
* @tc.name: test reqPermissionStates
* @tc.number: SUB_BMS_APPINFO_QUERYPERMISSION_0003
* @tc.name: getReqPermissionUpdateEntryAndFeature
* @tc.desc: get the reqPermissions and reqPermissionStates
*/
it('bms_AccessTokenId_0400', 0, async function (done) {
it('getReqPermissionUpdateEntryAndFeature', 0, async function (done) {
await bundle.getBundleInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_WITH_REQUESTED_PERMISSION)
.then(bundleInfo => {
expect(bundleInfo.name).assertEqual(BUNDLE_NAME1);
......@@ -137,14 +137,14 @@ describe('ActsBmsAccessTokenTest', function () {
});
/**
* @tc.number bms_AccessTokenId_0500
* @tc.name BUNDLE::getBundleInfos
* @tc.number BMS_SECURITY_INITIALIZE_0013
* @tc.name getAccessTokenIdWithDefault
* @tc.desc Test getBundleInfos interfaces with with a flag
*/
it("bms_AccessTokenId_0500", 0, async function (done) {
it("getAccessTokenIdWithDefault", 0, async function (done) {
await bundle.getApplicationInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_DEFAULT)
.then((applicationInfo) => {
console.info("bms_AccessTokenId_0500 accessTokenId: " + applicationInfo.accessTokenId);
console.info("getAccessTokenIdWithDefault accessTokenId: " + applicationInfo.accessTokenId);
expect(applicationInfo.name).assertEqual(BUNDLE_NAME1);
expect(applicationInfo.accessTokenId).assertLarger(0);
done();
......@@ -155,14 +155,14 @@ describe('ActsBmsAccessTokenTest', function () {
});
/**
* @tc.number bms_AccessTokenId_0600
* @tc.name BUNDLE::getBundleInfos
* @tc.number BMS_SECURITY_INITIALIZE_0014
* @tc.name getAccessTokenIdWithGetAbilities
* @tc.desc Test getBundleInfos interfaces with a flag
*/
it("bms_AccessTokenId_0600", 0, async function (done) {
it("getAccessTokenIdWithGetAbilities", 0, async function (done) {
await bundle.getApplicationInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES)
.then((applicationInfo) => {
console.info("bms_AccessTokenId_0600 accessTokenId: " + applicationInfo.accessTokenId);
console.info("getAccessTokenIdWithGetAbilities accessTokenId: " + applicationInfo.accessTokenId);
expect(applicationInfo.name).assertEqual(BUNDLE_NAME1);
expect(applicationInfo.accessTokenId).assertLarger(0);
done();
......@@ -173,14 +173,14 @@ describe('ActsBmsAccessTokenTest', function () {
});
/**
* @tc.number bms_AccessTokenId_0700
* @tc.name BUNDLE::getBundleInfos
* @tc.number BMS_SECURITY_INITIALIZE_0015
* @tc.name getAccessTokenIdWithGetPermission
* @tc.desc Test getBundleInfos interfaces with a flag
*/
it("bms_AccessTokenId_0700", 0, async function (done) {
it("getAccessTokenIdWithGetPermission", 0, async function (done) {
await bundle.getApplicationInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_APPLICATION_INFO_WITH_PERMISSION)
.then((applicationInfo) => {
console.info("bms_AccessTokenId_0700 accessTokenId: " + applicationInfo.accessTokenId);
console.info("getAccessTokenIdWithGetPermission accessTokenId: " + applicationInfo.accessTokenId);
expect(applicationInfo.name).assertEqual(BUNDLE_NAME1);
expect(applicationInfo.accessTokenId).assertLarger(0);
done();
......
......@@ -44,10 +44,10 @@ export default function actsBmsJsUnPermissionTest() {
/**
* @tc.number getApplicationInfos_1300
* @tc.name getApplicationInfos_1300
* @tc.name getApplicationInfosUnPermission
* @tc.desc test getAllApplicationInfo
*/
it('getApplicationInfos_1300', 0, async function (done) {
it('getApplicationInfosUnPermission', 0, async function (done) {
await bundle.getAllApplicationInfo(DEFAULT_FLAG).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -62,10 +62,10 @@ export default function actsBmsJsUnPermissionTest() {
/**
* @tc.number getBundleInfo_2000
* @tc.name getBundleInfo_2000
* @tc.name getBundleInfoUnPermission
* @tc.desc test getBundleInfo
*/
it('getBundleInfo_2000', 0, async function (done) {
it('getBundleInfoUnPermission', 0, async function (done) {
await bundle.getBundleInfo(BUNDLE_NAME_OTHER, DEFAULT_FLAG, { userId: userId }).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -80,10 +80,10 @@ export default function actsBmsJsUnPermissionTest() {
/**
* @tc.number getApplicationInfo_1800
* @tc.name getApplicationInfo_1800
* @tc.name getApplicationInfoUnPermission
* @tc.desc test getApplicationInfo
*/
it('getApplicationInfo_1800', 0, async function (done) {
it('getApplicationInfoUnPermission', 0, async function (done) {
await bundle.getApplicationInfo(BUNDLE_NAME_OTHER, DEFAULT_FLAG).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -98,10 +98,10 @@ export default function actsBmsJsUnPermissionTest() {
/*
* @tc.number: SUB_BMS_HAP_STATUS_0011
* @tc.name: test hasInstalled
* @tc.name: hasInstalledUnPermissionSelf
* @tc.desc: test hasInstalled without permission
*/
it('SUB_BMS_HAP_STATUS_0011', 0, async function (done) {
it('hasInstalledUnPermissionSelf', 0, async function (done) {
let flag = 0;
pkg.hasInstalled({
bundleName: SELF_BUNDLENAME,
......@@ -124,10 +124,10 @@ export default function actsBmsJsUnPermissionTest() {
/*
* @tc.number: SUB_BMS_HAP_STATUS_0012
* @tc.name: test hasInstalled
* @tc.name: hasInstalledUnPermissionOther
* @tc.desc: test hasInstalled without permission
*/
it('SUB_BMS_HAP_STATUS_0012', 0, async function (done) {
it('hasInstalledUnPermissionOther', 0, async function (done) {
let flag = 0;
pkg.hasInstalled({
bundleName: BUNDLE_NAME_OTHER,
......@@ -150,10 +150,10 @@ export default function actsBmsJsUnPermissionTest() {
/*
* @tc.number: SUB_BMS_APPINFO_GETABILITYICON_0006
* @tc.name: test getAbilityIcon
* @tc.name: getAbilityIconUnPermission
* @tc.desc: test getAbilityIcon without permission
*/
it('SUB_BMS_APPINFO_GETABILITYICON_0006', 0, async function (done) {
it('getAbilityIconUnPermission', 0, async function (done) {
await bundle.getAbilityIcon(BUNDLE_NAME_OTHER, ABILITIY_NAME_OTHER).then(pixelmap => {
expect(pixelmap).assertFail();
}).catch(err => {
......@@ -166,8 +166,8 @@ export default function actsBmsJsUnPermissionTest() {
});
/*
* @tc.number: getAbilityInfo_100
* @tc.name: test getAbilityInfo
* @tc.number: SUB_BMS_APPINFO_GETABILITYINFO_0008
* @tc.name: getAbilityInfoUnPermissionSelf
* @tc.desc: test getAbilityInfo
*/
it('getAbilityInfo_200', 0, async function (done) {
......@@ -199,10 +199,10 @@ export default function actsBmsJsUnPermissionTest() {
/*
* @tc.number: SUB_BMS_APPINFO_EXTENSION_0019
* @tc.name: test queryExtensionAbilityInfos api
* @tc.name: queryExtensionAbilityInfosUnPermission
* @tc.desc: test queryExtensionAbilityInfos no permission
*/
it('SUB_BMS_APPINFO_EXTENSION_0019', 0, async function (done) {
it('queryExtensionAbilityInfosUnPermission', 0, async function (done) {
await bundle.queryExtensionAbilityInfos(
{
"bundleName": BUNDLE_NAME1,
......
......@@ -58,11 +58,11 @@ describe('ActsBmsGetBackGroundModes', function () {
});
/*
* @tc.number: bms_backGroundModes_0100
* @tc.name: Get the backgroundModes information of the application through queryAbilityByWant
* @tc.number: SUB_BMS_APPINFO_QUERY_0085
* @tc.name: getBackgroundModesMultiAbility
* @tc.desc: Get the information of the background modes from multi-ability application
*/
it('bms_backGroundModes_0100', 0, async function (done) {
it('getBackgroundModesMultiAbility', 0, async function (done) {
let dataInfos = await bundle.queryAbilityByWant({
action: 'action.system.home',
entities: ['entity.system.home'],
......@@ -100,12 +100,12 @@ describe('ActsBmsGetBackGroundModes', function () {
});
/*
* @tc.number: bms_backGroundModes_0200
* @tc.name: Get the backgroundModes information of the application through queryAbilityByWant
* @tc.number: SUB_BMS_APPINFO_QUERY_0086
* @tc.name: getBackgroundModesAllModes
* @tc.desc: Get all background modes information, and each ability of the application
* contains one of the background mode
*/
it('bms_backGroundModes_0200', 0, async function (done) {
it('getBackgroundModesAllModes', 0, async function (done) {
let dataInfos = await bundle.queryAbilityByWant({
action: 'action.system.home',
entities: ['entity.system.home'],
......@@ -121,11 +121,11 @@ describe('ActsBmsGetBackGroundModes', function () {
});
/*
* @tc.number: bms_backGroundModes_0300
* @tc.name: Get the backgroundModes information of the application through queryAbilityByWant
* @tc.number: SUB_BMS_APPINFO_QUERY_0087
* @tc.name: getBackgroundModesInvalidModes
* @tc.desc: Read the backgroundModes information of the app's ability and replace invalid attributes
*/
it('bms_backGroundModes_0300', 0, async function (done) {
it('getBackgroundModesInvalidModes', 0, async function (done) {
let dataInfos = await bundle.queryAbilityByWant({
action: 'action.system.home',
entities: ['entity.system.home'],
......@@ -160,11 +160,11 @@ describe('ActsBmsGetBackGroundModes', function () {
});
/*
* @tc.number: bms_backGroundModes_0400
* @tc.name: Get the backgroundModes information of the application through queryAbilityByWant
* @tc.number: SUB_BMS_APPINFO_QUERY_0088
* @tc.name: getBackgroundModesNotModes
* @tc.desc: Read the backgroundModes information of the app's ability and replace invalid attributes
*/
it('bms_backGroundModes_0400', 0, async function (done) {
it('getBackgroundModesNotModes', 0, async function (done) {
let dataInfos = await bundle.queryAbilityByWant({
action: 'action.system.home',
entities: ['entity.system.home'],
......@@ -181,11 +181,11 @@ describe('ActsBmsGetBackGroundModes', function () {
});
/*
* @tc.number: bms_backGroundModes_0500
* @tc.name: Get the backgroundModes information of the application through queryAbilityByWant
* @tc.number: SUB_BMS_APPINFO_QUERY_0089
* @tc.name: getBackgroundModesMultiHap
* @tc.desc: Get the backgroundModes information of the multi-hap package of the application
*/
it('bms_backGroundModes_0500', 0, async function (done) {
it('getBackgroundModesMultiHap', 0, async function (done) {
let dataInfos = await bundle.queryAbilityByWant({
action: 'action.system.home',
entities: ['entity.system.home'],
......
......@@ -38,12 +38,12 @@ describe('ActsBmsQueryAbilityByWant', function () {
});
/*
* @tc.number: bms_queryAbilityByWant_0100
* @tc.name: queryAbilityByWant callback by other callback
* @tc.number: SUB_BMS_APPINFO_QUERYSYS_0008
* @tc.name: queryAbilityByWantThirdApp
* @tc.desc: 1.queryAbilityByWant callback
* 2.queryAbilityByWant for third app
*/
it('bms_queryAbilityByWant_0100', 0, async function (done) {
it('queryAbilityByWantThirdApp', 0, async function (done) {
await bundle.queryAbilityByWant({
action: ACTION_NAME,
entities: [ENTITY_NAME],
......@@ -67,12 +67,12 @@ describe('ActsBmsQueryAbilityByWant', function () {
});
/*
* @tc.number: bms_queryAbilityByWant_0200
* @tc.name: queryAbilityByWant callback by other callback
* @tc.number: SUB_BMS_APPINFO_QUERYSYS_0007
* @tc.name: queryAbilityByWantSystemApp
* @tc.desc: 1.queryAbilityByWant callback
* 2.queryAbilityByWant for systemapp
*/
it('bms_queryAbilityByWant_0200', 0, async function (done) {
it('queryAbilityByWantSystemApp', 0, async function (done) {
await bundle.queryAbilityByWant(
{
action: ACTION_NAME,
......@@ -107,11 +107,11 @@ describe('ActsBmsQueryAbilityByWant', function () {
});
/*
* @tc.number: bms_queryAbilityByEntities_0300
* @tc.name: Use the implicit query method in queryAbilityByWant to get abilityInfos
* @tc.number: SUB_BMS_APPINFO_QUERY_0084
* @tc.name: queryAbilityByWantImplicitByEntities
* @tc.desc: The entities in the parameter want pass in the new field, and use the implicit query to get abilitInfos
*/
it('bms_queryAbilityByEntities_0300', 0, async function (done) {
it('queryAbilityByWantImplicitByEntities', 0, async function (done) {
let dataInfos = await bundle.queryAbilityByWant({
action: ACTION_NAME,
entities: ["entity.app.music",
......
......@@ -38,11 +38,11 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: getApplicationInfoTest_100
* @tc.name: test getApplicationInfo
* @tc.number: getApplicationInfo_1900
* @tc.name: getApplicationInfoUnPermissionUserId
* @tc.desc: test getApplicationInfo
*/
it('getApplicationInfoTest_100', 0, async function (done) {
it('getApplicationInfoUnPermissionUserId', 0, async function (done) {
await bundle.getApplicationInfo(LAUNCHER_BUNDLE_NAME, DEFAULT_FLAG, userId).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -56,11 +56,11 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: getAllApplicationInfoTest_100
* @tc.name: test getAllApplicationInfo
* @tc.number: getApplicationInfos_1500
* @tc.name: getApplicationInfosUnPermissionUserId
* @tc.desc: test getAllApplicationInfo
*/
it('getAllApplicationInfoTest_100', 0, async function (done) {
it('getApplicationInfosUnPermissionUserId', 0, async function (done) {
await bundle.getAllApplicationInfo(DEFAULT_FLAG, userId).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -74,11 +74,11 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: getBundleInfoTest_100
* @tc.name: test getBundleInfo
* @tc.number: getBundleInfo_2300
* @tc.name: getBundleInfoUnPermissionUserId
* @tc.desc: test getBundleInfo
*/
it('getBundleInfoTest_100', 0, async function (done) {
it('getBundleInfoUnPermissionUserId', 0, async function (done) {
await bundle.getBundleInfo(LAUNCHER_BUNDLE_NAME, userId).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -92,11 +92,11 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: getAllBundleInfoTest_100
* @tc.name: test getAllBundleInfo
* @tc.number: getBundleInfos_1000
* @tc.name: getAllBundleInfoUnPermission
* @tc.desc: test getAllBundleInfo
*/
it('getAllBundleInfoTest_100', 0, async function (done) {
it('getAllBundleInfoUnPermission', 0, async function (done) {
await bundle.getAllBundleInfo(DEFAULT_FLAG).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -110,11 +110,11 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: queryAbilityByWantTest_100
* @tc.name: test queryAbilityByWant
* @tc.number: SUB_BMS_APPINFO_QUERY_0015
* @tc.name: queryAbilityByWantUnPermission
* @tc.desc: test queryAbilityByWant
*/
it('queryAbilityByWantTest_100', 0, async function (done) {
it('queryAbilityByWantUnPermission', 0, async function (done) {
await bundle.queryAbilityByWant({
bundleName: LAUNCHER_BUNDLE_NAME,
abilityName: LAUNCHER_MAIN_ABILITY
......@@ -135,11 +135,11 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: getLaunchWantForBundleTest_100
* @tc.name: test getLaunchWantForBundle
* @tc.number: SUB_BMS_APPINFO_QUERY_0010
* @tc.name: getLaunchWantForBundleUnPermission
* @tc.desc: test getLaunchWantForBundle
*/
it('getLaunchWantForBundleTest_100', 0, async function (done) {
it('getLaunchWantForBundleUnPermission', 0, async function (done) {
await bundle.getLaunchWantForBundle(LAUNCHER_BUNDLE_NAME).then(data => {
expect().assertFail();
}).catch(err => {
......@@ -153,12 +153,12 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: getAbilityLabelTest_100
* @tc.name: getAbilityLabel : Gets the specified ability label
* @tc.number: SUB_BMS_APPINFO_GETABILITYLABELP_0006
* @tc.name: getAbilityLabelUnPermission
* @tc.desc: Check the return value of the interface
* @tc.level 0
*/
it('getAbilityLabelTest_100', 0, async function (done) {
it('getAbilityLabelUnPermission', 0, async function (done) {
await bundle.getAbilityLabel(LAUNCHER_BUNDLE_NAME, LAUNCHER_MAIN_ABILITY)
.then((data) => {
expect().assertFail();
......@@ -174,8 +174,8 @@ describe('ActsBmsJsUnPermissionTest', function () {
});
/*
* @tc.number: getAbilityInfo_100
* @tc.name: test getAbilityInfo
* @tc.number: SUB_BMS_APPINFO_GETABILITYINFO_0006
* @tc.name: getAbilityInfoUnPermission
* @tc.desc: test getAbilityInfo
*/
it('getAbilityInfo_100', 0, async function (done) {
......
......@@ -32,7 +32,7 @@ const PROFILE_JSON_STRING = "{\"src\":[\"MainAbility/pages/index/index\",\"MainA
export default function getProfileByAbility() {
describe('getProfileByAbility', function () {
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0021
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0011
* @tc.name: getProfileByAbilityInvalidModulePro
* @tc.desc: Check the invalid moduleName (by promise)
* @tc.level 0
......@@ -50,7 +50,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0031
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0015
* @tc.name: getProfileByAbilityEmptyModulePro
* @tc.desc: Check the empty moduleName (by promise)
* @tc.level 0
......@@ -68,7 +68,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0028
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0017
* @tc.name: getProfileByAbilityInvalidModuleCall
* @tc.desc: Check the invalid moduleName (by callback)
* @tc.level 0
......@@ -87,7 +87,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0037
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0034
* @tc.name: getProfileByAbilityEmptyModuleCall
* @tc.desc: Check the empty moduleName (by callback)
* @tc.level 0
......@@ -106,7 +106,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0013
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0012
* @tc.name: getProfileByAbilityInvalidAbilityPro
* @tc.desc: Check the invalid abilityName (by promise)
* @tc.level 0
......@@ -124,7 +124,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0032
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0029
* @tc.name: getProfileByAbilityEmptyAbilityPro
* @tc.desc: Check the empty abilityName (by promise)
* @tc.level 0
......@@ -142,7 +142,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0023
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0022
* @tc.name: getProfileByAbilityInvalidAbilityCall
* @tc.desc: Check the invalid abilityName (by callback)
* @tc.level 0
......@@ -161,7 +161,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0038
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0029
* @tc.name: getProfileByAbilityEmptyAbilityCall
* @tc.desc: Check the empty abilityName (by callback)
* @tc.level 0
......@@ -180,7 +180,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0025
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0024
* @tc.name: getProfileByAbilityCallback
* @tc.desc: Check the valid metadataName (by callback)
* @tc.level 0
......@@ -200,7 +200,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0027
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0026
* @tc.name: getProfileByAbilityInvalidMetaDataCall
* @tc.desc: Check the invalid metadataName (by callback)
* @tc.level 0
......@@ -219,7 +219,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0039
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0036
* @tc.name: getProfileByAbilityEmptyMetaDataCall
* @tc.desc: Check the empty metadataName (by callback)
* @tc.level 0
......@@ -241,7 +241,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0003
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0002
* @tc.name: getProfileByAbilityPromise
* @tc.desc: Check the valid metadataName (by promise)
* @tc.level 0
......@@ -261,7 +261,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0016
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0004
* @tc.name: getProfileByAbilityInvalidMetaDataPro
* @tc.desc: Check the invalid metadataName (by promise)
* @tc.level 0
......@@ -279,7 +279,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0033
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0030
* @tc.name: getProfileByAbilityEmptyMetaDataPro
* @tc.desc: Check the empty metadataName (by promise)
* @tc.level 0
......@@ -301,7 +301,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0010
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0009
* @tc.name: getProfileByAbilityNoMetaDataPro
* @tc.desc: without metadataName (by promise)
* @tc.level 0
......@@ -323,7 +323,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0049
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0048
* @tc.name: getProfileByAbilityNoProfilePro
* @tc.desc: no profile configured under the ability (by promise)
* @tc.level 0
......@@ -341,7 +341,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0043
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0045
* @tc.name: getProfileByAbilityNotPrefixPro
* @tc.desc: resource has no prefix '$profile:' (by promise)
* @tc.level 0
......@@ -359,7 +359,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0042
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0044
* @tc.name: getProfileByAbilityNotPrefixCall
* @tc.desc: resource has no prefix '$profile:' (by callback)
* @tc.level 0
......@@ -378,7 +378,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0019
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0007
* @tc.name: getProfileByAbilityNotSuffixPro
* @tc.desc: profile is .txt suffix (by promise)
* @tc.level 0
......@@ -397,7 +397,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0041
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0040
* @tc.name: getProfileByAbilityNotSuffixCall
* @tc.desc: profile is .txt suffix (by callback)
* @tc.level 0
......@@ -416,7 +416,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0020
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0008
* @tc.name: getProfileByAbilityNoJsonPro
* @tc.desc: profile is invalid json format (by promise)
* @tc.level 0
......@@ -434,7 +434,7 @@ export default function getProfileByAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0047
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0046
* @tc.name: getProfileByAbilityNoJsonCall
* @tc.desc: profile is invalid json format (by callback)
* @tc.level 0
......
......@@ -32,7 +32,7 @@ const PROFILE_JSON_STRING = "{\"src\":[\"MainAbility/pages/index/index\",\"MainA
export default function getProfileByExtensionAbility() {
describe('getProfileByExtensionAbility', function () {
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0011
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0021
* @tc.name: getProfileByExtensionInvalidModulePro
* @tc.desc: Check the invalid moduleName (by promise)
* @tc.level 0
......@@ -50,7 +50,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0015
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0031
* @tc.name: getProfileByExtensionEmptyModulePro
* @tc.desc: Check the Empty moduleName (by promise)
* @tc.level 0
......@@ -68,7 +68,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0017
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0028
* @tc.name: getProfileByExtensionEmptyModuleCall
* @tc.desc: Check the invalid moduleName (by callback)
* @tc.level 0
......@@ -87,7 +87,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0034
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0037
* @tc.name: getProfileByExtensionEmptyModuleCall
* @tc.desc: Check the Empty moduleName (by callback)
* @tc.level 0
......@@ -106,7 +106,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0012
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0013
* @tc.name: getProfileByExtensionInvalidAbilityPro
* @tc.desc: Check the invalid abilityName (by promise)
* @tc.level 0
......@@ -124,7 +124,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0029
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0032
* @tc.name: getProfileByExtensionEmptyAbilityPro
* @tc.desc: Check the Empty abilityName (by promise)
* @tc.level 0
......@@ -142,7 +142,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0022
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0023
* @tc.name: getProfileByExtensionInvalidAbilityCall
* @tc.desc: Check the invalid abilityName (by callback)
* @tc.level 0
......@@ -161,7 +161,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0035
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0038
* @tc.name: getProfileByExtensionEmptyAbilityCall
* @tc.desc: Check the Empty abilityName (by callback)
* @tc.level 0
......@@ -180,7 +180,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0024
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0025
* @tc.name: getProfileByExtensionAbilityCallback
* @tc.desc: Check the valid metadataName (by callback)
* @tc.level 0
......@@ -200,7 +200,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0026
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0027
* @tc.name: getProfileByExtensionInvalidMetaDataCall
* @tc.desc: Check the invalid metadataName (by callback)
* @tc.level 0
......@@ -219,7 +219,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0036
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0039
* @tc.name: getProfileByExtensionEmptyMetaDataCall
* @tc.desc: Check the empty metadataName (by callback)
* @tc.level 0
......@@ -241,7 +241,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0002
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0003
* @tc.name: getProfileByExtensionAbilityPromise
* @tc.desc: Check the valid metadataName (by promise)
* @tc.level 0
......@@ -261,7 +261,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0004
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0016
* @tc.name: getProfileByExtensionInvalidMetaDataPro
* @tc.desc: Check the invalid metadataName (by promise)
* @tc.level 0
......@@ -279,7 +279,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0030
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0033
* @tc.name: getProfileByExtensionEmptyMetaDataPro
* @tc.desc: Check the empty metadataName (by promise)
* @tc.level 0
......@@ -301,7 +301,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0009
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0010
* @tc.name: getProfileByExtensionAbilityNoMetaDataPro
* @tc.desc: without metadataName (by promise)
* @tc.level 0
......@@ -323,7 +323,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0048
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0049
* @tc.name: getProfileByExtensionAbilityNoProfilePro
* @tc.desc: no profile configured under the ability (by promise)
* @tc.level 0
......@@ -341,7 +341,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0045
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0043
* @tc.name: getProfileByExtensionNotPrefixPro
* @tc.desc: resource has no prefix '$profile:' (by promise)
* @tc.level 0
......@@ -359,7 +359,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0044
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0042
* @tc.name: getProfileByExtensionNotPrefixCall
* @tc.desc: resource has no prefix '$profile:' (by callback)
* @tc.level 0
......@@ -378,7 +378,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0007
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0019
* @tc.name: getProfileByExtensionNotSuffixPro
* @tc.desc: profile is .txt suffix (by promise)
* @tc.level 0
......@@ -397,7 +397,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0040
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0041
* @tc.name: getProfileByExtensionNotSuffixCall
* @tc.desc: profile is .txt suffix (by callback)
* @tc.level 0
......@@ -416,7 +416,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0008
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0020
* @tc.name: getProfileByExtensionNoJsonPro
* @tc.desc: profile is invalid json format (by promise)
* @tc.level 0
......@@ -434,7 +434,7 @@ export default function getProfileByExtensionAbility() {
})
/*
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0046
* @tc.number: SUB_BMS_APPINFO_QUERYMETAFILE_0047
* @tc.name: getProfileByExtensionNoJsonCall
* @tc.desc: profile is invalid json format (by callback)
* @tc.level 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册