Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1a51305b
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1a51305b
编写于
9月 08, 2021
作者:
O
openharmony_ci
提交者:
Gitee
9月 08, 2021
浏览文件
操作
浏览文件
下载
差异文件
!543 修改GetBundleSize接口测试用例
Merge pull request !543 from jiyong/master
上级
fe2eb8f0
555c973d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
24 deletion
+10
-24
appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp
appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp
+10
-24
未找到文件。
appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp
浏览文件 @
1a51305b
...
...
@@ -863,28 +863,14 @@ HWTEST_F(BundleMgrTest, testGetBundleSizeWithLegal_0001, Function | MediumTest |
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_0002
* @tc.name :
Test the GetBundleSize of the system hap can be obtained normally
* @tc.name :
GetBundleSize parameter legal and bundleName length equal to 127 test
* @tc.desc : [C- SOFTWARE -0200]
*/
HWTEST_F
(
BundleMgrTest
,
testGetBundleSizeWithLegal_0002
,
Function
|
MediumTest
|
Level1
)
{
printf
(
"------start testGetBundleSizeWithLegal_0002------
\n
"
);
char
*
bundleName
=
(
char
*
)
"com.huawei.launcher"
;
uint32_t
resultCode
=
GetBundleSize
(
bundleName
);
EXPECT_GT
(
resultCode
,
0
);
printf
(
"------end testGetBundleSizeWithLegal_0002------
\n
"
);
}
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_0003
* @tc.name : GetBundleSize parameter legal and bundleName length equal to 127 test
* @tc.desc : [C- SOFTWARE -0200]
*/
HWTEST_F
(
BundleMgrTest
,
testGetBundleSizeWithLegal_0003
,
Function
|
MediumTest
|
Level1
)
{
printf
(
"------start testGetBundleSizeWithLegal_0003------
\n
"
);
char
*
bundleName
=
(
char
*
)
"com.huawei.testjsdemoBundleNameLengt"
\
"hEqualTo127testjsdemoBundleNameLengthEqualTo127testjsdemoBundleNameLengthEqualTo127testjsde"
;
char
*
bundleName
=
(
char
*
)
"com.huawei.testjsdemoBundleNamelengthequalto127"
\
"testjsdemoBundleNamelengthequalto127testjsdemoBundleNamelengthequalto127testjsde"
;
sem_init
(
&
g_sem
,
0
,
0
);
InstallParam
installParam
=
{.
installLocation
=
1
,.
keepData
=
false
};
string
hapPath
=
g_testPath
+
"testGetBundleNameWithLegal127.hap"
;
...
...
@@ -897,11 +883,11 @@ HWTEST_F(BundleMgrTest, testGetBundleSizeWithLegal_0003, Function | MediumTest |
sem_init
(
&
g_sem
,
0
,
0
);
Uninstall
(
bundleName
,
&
installParam
,
TestBundleStateCallback
);
sem_wait
(
&
g_sem
);
printf
(
"------end testGetBundleSizeWithLegal_000
3
------
\n
"
);
printf
(
"------end testGetBundleSizeWithLegal_000
2
------
\n
"
);
}
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
4
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
3
* @tc.name : GetBundleSize parameter illegal and bundleName length equal to 128 test
* @tc.desc : [C- SOFTWARE -0200]
*/
...
...
@@ -917,7 +903,7 @@ HWTEST_F(BundleMgrTest, testGetBundleSizeWithIllegal_0001, Function | MediumTest
}
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
5
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
4
* @tc.name : GetBundleSize parameter illegal and bundleName nullptr test
* @tc.desc : [C- SOFTWARE -0200]
*/
...
...
@@ -932,7 +918,7 @@ HWTEST_F(BundleMgrTest, testGetBundleSizeWithIllegal_0002, Function | MediumTest
}
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
6
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
5
* @tc.name : GetBundleSize parameter illegal and bundleName error test
* @tc.desc : [C- SOFTWARE -0200]
*/
...
...
@@ -947,7 +933,7 @@ HWTEST_F(BundleMgrTest, testGetBundleSizeWithIllegal_0003, Function | MediumTest
}
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
7
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
6
* @tc.name : GetBundleSize parameter illegal and bundleName " " test
* @tc.desc : [C- SOFTWARE -0200]
*/
...
...
@@ -962,7 +948,7 @@ HWTEST_F(BundleMgrTest, testGetBundleSizeWithIllegal_0004, Function | MediumTest
}
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
8
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
7
* @tc.name : stress test of the same application
* @tc.desc : [C- SOFTWARE -0200]
*/
...
...
@@ -978,7 +964,7 @@ HWTEST_F(BundleMgrTest, testStressConfig_0001, Function | MediumTest | Level2)
}
/**
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
9
* @tc.number : SUB_APPEXECFWK_BMS_SIZE_000
8
* @tc.name : stress test of the difference application
* @tc.desc : [C- SOFTWARE -0200]
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录