提交 b8a37733 编写于 作者: O openharmony_ci 提交者: Gitee

!1153 xts

Merge pull request !1153 from blackleon/fms_1123
...@@ -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"
]
}
]
} }
...@@ -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.
先完成此消息的编辑!
想要评论请 注册