提交 c6f7f305 编写于 作者: Z zhaoyuan17@huawei.com
上级 bfe85a4c
......@@ -810,30 +810,6 @@ describe('FMS_FuzzTest', function () {
console.info('=====================FMS_fuzzTestString_0300_param_10_callback==================end');
}, TIMEOUT)
})
/**
* @tc.name fuzzTest
* @tc.number FMS_fuzzTestString_0300
* @tc.desc Check whether the releaseForm interface can pass the fuzzy test (by Promise)
*/
it('FMS_fuzzTestString_0300_param_10_promise', 0, async function (done) {
console.log("FMS_fuzzTestString_0300_param_10_promise releaseForm begin");
var formId = numberTest() + "";
console.log("FMS_fuzzTestString_0300_param_10_promise releaseForm formId typeof:"
+ typeof(formId) + ",formId:" + formId);
formManager.releaseForm(formId).then((err) => {
console.log("FMS_fuzzTestString_0300_param_10_promise async::sucess err:" + err);
expect(err).assertEqual(0);
console.log("FMS_fuzzTestString_0300_param_10_promise deleteForm end");
done();
});
setTimeout(function () {
console.info('=====================FMS_fuzzTestString_0300_param_10_promise==================end');
}, TIMEOUT)
})
/**
* @tc.name fuzzTest
......@@ -870,34 +846,6 @@ describe('FMS_FuzzTest', function () {
}, TIMEOUT)
})
/**
* @tc.name fuzzTest
* @tc.number FMS_fuzzTestString_0300
* @tc.desc Check whether the releaseForm interface can pass the fuzzy test (by Promise)
*/
it('FMS_fuzzTestString_0300_param_11_promise', 0, async function (done) {
console.log("FMS_fuzzTestString_0300_param_11_promise releaseForm begin");
var formId = numberTest() + "";
console.log("FMS_fuzzTestString_0300_param_11_promise releaseForm formId typeof:"
+ typeof(formId) + ",formId:" + formId);
var isReleaseCache = booleanTest();
console.log("FMS_fuzzTestString_0300_param_11_promise releaseForm isReleaseCache typeof:"
+ typeof(isReleaseCache));
formManager.releaseForm(formId, isReleaseCache).then((err) => {
console.log("FMS_fuzzTestString_0300_param_11_promise async::sucess err:" + err);
expect(err).assertEqual(0);
console.log("FMS_fuzzTestString_0300_param_11_promise deleteForm end");
done();
});
setTimeout(function () {
console.info('=====================FMS_fuzzTestString_0300_param_11_promise==================end');
}, TIMEOUT)
})
/**
* @tc.name fuzzTest
* @tc.number FMS_fuzzTestString_1200
......
......@@ -10,23 +10,10 @@
{
"test-file-name": [
"GetAllFormsInfo10.hap",
"ActsFormSystemTestServiceD"
"ActsFormSystemTestServiceD.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /system/vendor"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 644 /system/vendor/*.hap"
]
}
]
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo10",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo10",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo10.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo10.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo10",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo10",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo10.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo10.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo10"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo10"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
}
\ No newline at end of file
......@@ -10,24 +10,11 @@
{
"test-file-name": [
"GetAllFormsInfo201.hap",
"ActsFormSystemTestServiceB",
"ActsFormSystemTestServiceD"
"ActsFormSystemTestServiceB.hap",
"ActsFormSystemTestServiceD.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /system/vendor"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 644 /system/vendor/*.hap"
]
}
]
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo201",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo201",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo201.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo201.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo201",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo201",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo201.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo201.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo201"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo201"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
}
\ No newline at end of file
......@@ -10,24 +10,11 @@
{
"test-file-name": [
"GetAllFormsInfo211.hap",
"ActsFormSystemTestServiceB",
"ActsFormSystemTestServiceC"
"ActsFormSystemTestServiceB.hap",
"ActsFormSystemTestServiceC.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /system/vendor"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 644 /system/vendor/*.hap"
]
}
]
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo211",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo211",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo211.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo211.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo211",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo211",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo211.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo211.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo211"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo211"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
}
\ No newline at end of file
......@@ -10,24 +10,11 @@
{
"test-file-name": [
"GetAllFormsInfo212.hap",
"ActsFormSystemTestServiceA",
"ActsFormSystemTestServiceB"
"ActsFormSystemTestServiceA.hap",
"ActsFormSystemTestServiceB.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{
"type": "ShellKit",
"run-command": [
"remount",
"mkdir /system/vendor"
]
},
{
"type": "ShellKit",
"run-command": [
"chmod 644 /system/vendor/*.hap"
]
}
]
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
{
"app": {
"bundleName": "com.example.getallformsinfo",
"vendor": "example",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.getallformsinfo",
"name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"visible": true,
"name": "com.example.getallformsinfo.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo212"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
{
"string": [
{
"name": "entry_MainAbility",
"value": "GetAllFormsInfo212"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
}
\ No newline at end of file
{
"app": {
"bundleName": "com.form.formsystemtestserviceb",
"vendor": "neusoft",
"vendor": "ohos",
"version": {
"code": 1,
"name": "1.0"
......@@ -37,7 +37,7 @@
}
],
"visible": true,
"name": "com.form.formmodule001.FormAbility001",
"name": "FormStServiceAbilityB",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
......@@ -66,7 +66,7 @@
}
]
}
}
}
]
}
],
......
{
"app": {
"bundleName": "com.form.formsystemtestservicec",
"vendor": "neusoft",
"vendor": "ohos",
"version": {
"code": 1,
"name": "1.0"
......@@ -37,7 +37,7 @@
}
],
"visible": true,
"name": "com.form.formmodule001.FormAbility001",
"name": "FormStServiceAbilityC",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
......
......@@ -37,7 +37,7 @@
}
],
"visible": true,
"name": "FormStServiceAbilityA",
"name": "FormStServiceAbilityD",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册