Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b8a37733
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看板
提交
b8a37733
编写于
11月 23, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 23, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1153 xts
Merge pull request !1153 from blackleon/fms_1123
上级
0dbb0615
402b75e5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
46 deletion
+22
-46
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/Test.json
...ard/formmanager/formsystemtesthost/FormFuzzTest/Test.json
+2
-15
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/entry/src/main/js/test/FormFuzzTestString.test.js
...uzzTest/entry/src/main/js/test/FormFuzzTestString.test.js
+20
-31
未找到文件。
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/Test.json
浏览文件 @
b8a37733
...
@@ -13,19 +13,6 @@
...
@@ -13,19 +13,6 @@
],
],
"type"
:
"AppInstallKit"
,
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
"cleanup-apps"
:
true
},
}
{
]
"type"
:
"ShellKit"
,
"run-command"
:
[
"remount"
,
"mkdir /system/vendor"
]
},
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"chmod 644 /system/vendor/*.hap"
]
}
]
}
}
aafwk/aafwk_standard/formmanager/formsystemtesthost/FormFuzzTest/entry/src/main/js/test/FormFuzzTestString.test.js
浏览文件 @
b8a37733
...
@@ -810,7 +810,7 @@ describe('FMS_FuzzTest', function () {
...
@@ -810,7 +810,7 @@ describe('FMS_FuzzTest', function () {
console
.
info
(
'
=====================FMS_fuzzTestString_0300_param_10_callback==================end
'
);
console
.
info
(
'
=====================FMS_fuzzTestString_0300_param_10_callback==================end
'
);
},
TIMEOUT
)
},
TIMEOUT
)
})
})
/**
/**
* @tc.name fuzzTest
* @tc.name fuzzTest
* @tc.number FMS_fuzzTestString_0300
* @tc.number FMS_fuzzTestString_0300
...
@@ -870,7 +870,7 @@ describe('FMS_FuzzTest', function () {
...
@@ -870,7 +870,7 @@ describe('FMS_FuzzTest', function () {
);
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
"
FMS_fuzzTestString_1200_callback Exception caught:
"
+
e
);
console
.
log
(
"
FMS_fuzzTestString_1200_callback Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
expect
(
e
.
message
.
indexOf
(
"
type of getAllFormsInfo is incorrect
"
)
>
-
1
).
assertTrue
(
);
}
}
console
.
log
(
"
FMS_fuzzTestString_1200_callback getAllFormsInfo end
"
);
console
.
log
(
"
FMS_fuzzTestString_1200_callback getAllFormsInfo end
"
);
...
@@ -899,7 +899,7 @@ describe('FMS_FuzzTest', function () {
...
@@ -899,7 +899,7 @@ describe('FMS_FuzzTest', function () {
done
();
done
();
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
"
FMS_fuzzTestString_1200_promise Exception caught:
"
+
e
);
console
.
log
(
"
FMS_fuzzTestString_1200_promise Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
expect
(
e
.
message
.
indexOf
(
"
type of getAllFormsInfo is incorrect
"
)
>
-
1
).
assertTrue
(
);
}
}
console
.
log
(
"
FMS_fuzzTestString_1200_promise getAllFormsInfo end
"
);
console
.
log
(
"
FMS_fuzzTestString_1200_promise getAllFormsInfo end
"
);
...
@@ -921,21 +921,16 @@ describe('FMS_FuzzTest', function () {
...
@@ -921,21 +921,16 @@ describe('FMS_FuzzTest', function () {
var
bundleName
=
stringTest
();
var
bundleName
=
stringTest
();
console
.
log
(
"
FMS_fuzzTestString_1300_callback getFormsInfoByApp bundleName typeof:
"
+
typeof
(
bundleName
));
console
.
log
(
"
FMS_fuzzTestString_1300_callback getFormsInfoByApp bundleName typeof:
"
+
typeof
(
bundleName
));
try
{
formManager
.
getFormsInfo
(
formManager
.
getFormsInfo
(
bundleName
,
bundleName
,
(
err
,
data
)
=>
{
(
err
,
data
)
=>
{
console
.
log
(
"
FMS_fuzzTestString_1300_callback async::callbak return!!!
"
)
console
.
log
(
"
FMS_fuzzTestString_1300_callback async::callbak return!!!
"
)
console
.
log
(
"
FMS_fuzzTestString_1300_callback async::sucess data:
"
+
data
);
console
.
log
(
"
FMS_fuzzTestString_1300_callback async::sucess data:
"
+
data
);
console
.
log
(
"
FMS_fuzzTestString_1300_callback async::error err:
"
+
err
);
console
.
log
(
"
FMS_fuzzTestString_1300_callback async::error err:
"
+
err
);
expect
(
err
).
assertEqual
(
0
);
expect
(
err
).
assertEqual
(
0
);
done
();
done
();
}
}
);
);
}
catch
(
e
)
{
console
.
log
(
"
FMS_fuzzTestString_1300_callback Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
}
console
.
log
(
"
FMS_fuzzTestString_1300_callback getFormsInfoByApp end
"
);
console
.
log
(
"
FMS_fuzzTestString_1300_callback getFormsInfoByApp end
"
);
done
();
done
();
...
@@ -950,25 +945,19 @@ describe('FMS_FuzzTest', function () {
...
@@ -950,25 +945,19 @@ describe('FMS_FuzzTest', function () {
* @tc.desc Check whether the form configuration information query interface of the specified package
* @tc.desc Check whether the form configuration information query interface of the specified package
* can pass the fuzzy test (by Promise)
* can pass the fuzzy test (by Promise)
*/
*/
it
(
'
FMS_fuzzTestString_1300_promise
'
,
0
,
async
function
(
done
)
{
it
(
'
FMS_fuzzTestString_1300_promise
'
,
0
,
async
function
(
done
)
{
console
.
log
(
"
FMS_fuzzTestString_1300_promise getFormsInfoByApp begin
"
);
console
.
log
(
"
FMS_fuzzTestString_1300_promise getFormsInfoByApp begin
"
);
var
bundleName
=
stringTest
();
var
bundleName
=
stringTest
();
console
.
log
(
"
FMS_fuzzTestString_1300_promise getFormsInfoByApp bundleName typeof:
"
+
typeof
(
bundleName
));
console
.
log
(
"
FMS_fuzzTestString_1300_promise getFormsInfoByApp bundleName typeof:
"
+
typeof
(
bundleName
));
var
retResult
;
formManager
.
getFormsInfo
(
bundleName
).
then
((
err
)
=>
{
try
{
console
.
log
(
"
FMS_fuzzTestString_1300_promise async::sucess err:
"
+
err
);
retResult
=
await
Promise
.
all
(
await
formManager
.
getFormsInfo
(
bundleName
));
expect
(
err
).
assertEqual
(
0
);
console
.
log
(
"
FMS_fuzzTestString_1300_promise async::sucess retResult:
"
+
retResult
);
console
.
log
(
"
FMS_fuzzTestString_1300_promise getFormsInfoByApp end
"
);
expect
(
retResult
).
assertEqual
(
0
);
done
();
done
();
}
catch
(
e
)
{
});
console
.
log
(
"
FMS_fuzzTestString_1300_promise Exception caught:
"
+
e
);
expect
(
0
).
assertEqual
(
0
);
}
console
.
log
(
"
FMS_fuzzTestString_1300_promise getFormsInfoByApp end
"
);
done
();
setTimeout
(
function
()
{
setTimeout
(
function
()
{
console
.
info
(
'
=====================FMS_fuzzTestString_1300_promise==================end
'
);
console
.
info
(
'
=====================FMS_fuzzTestString_1300_promise==================end
'
);
},
TIMEOUT
)
},
TIMEOUT
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录