提交 c6f7f305 编写于 作者: Z zhaoyuan17@huawei.com
上级 bfe85a4c
...@@ -810,30 +810,6 @@ describe('FMS_FuzzTest', function () { ...@@ -810,30 +810,6 @@ 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.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 * @tc.name fuzzTest
...@@ -870,34 +846,6 @@ describe('FMS_FuzzTest', function () { ...@@ -870,34 +846,6 @@ describe('FMS_FuzzTest', function () {
}, TIMEOUT) }, 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.name fuzzTest
* @tc.number FMS_fuzzTestString_1200 * @tc.number FMS_fuzzTestString_1200
......
...@@ -10,23 +10,10 @@ ...@@ -10,23 +10,10 @@
{ {
"test-file-name": [ "test-file-name": [
"GetAllFormsInfo10.hap", "GetAllFormsInfo10.hap",
"ActsFormSystemTestServiceD" "ActsFormSystemTestServiceD.hap"
], ],
"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"
]
}
]
} }
{ {
"app": { "app": {
"bundleName": "com.example.getallformsinfo10", "bundleName": "com.example.getallformsinfo10",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 5, "compatible": 5,
"target": 5, "target": 5,
"releaseType": "Beta1" "releaseType": "Beta1"
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "com.example.getallformsinfo10", "package": "com.example.getallformsinfo10",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo10.MainAbility", "mainAbility": "com.example.getallformsinfo10.MainAbility",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry",
"installationFree": false "installationFree": false
}, },
"abilities": [ "abilities": [
{ {
"skills": [ "skills": [
{ {
"entities": [ "entities": [
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.home" "action.system.home"
] ]
} }
], ],
"visible": true, "visible": true,
"name": "com.example.getallformsinfo10.MainAbility", "name": "com.example.getallformsinfo10.MainAbility",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
"type": "page", "type": "page",
"launchType": "standard" "launchType": "standard"
} }
], ],
"js": [ "js": [
{ {
"pages": [ "pages": [
"pages/index/index" "pages/index/index"
], ],
"name": "default", "name": "default",
"window": { "window": {
"designWidth": 720, "designWidth": 720,
"autoDesignWidth": true "autoDesignWidth": true
} }
} }
] ]
} }
} }
\ No newline at end of file
{ {
"string": [ "string": [
{ {
"name": "entry_MainAbility", "name": "entry_MainAbility",
"value": "GetAllFormsInfo10" "value": "GetAllFormsInfo10"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Empty Ability" "value": "JS_Empty Ability"
} }
] ]
} }
\ No newline at end of file
...@@ -10,24 +10,11 @@ ...@@ -10,24 +10,11 @@
{ {
"test-file-name": [ "test-file-name": [
"GetAllFormsInfo201.hap", "GetAllFormsInfo201.hap",
"ActsFormSystemTestServiceB", "ActsFormSystemTestServiceB.hap",
"ActsFormSystemTestServiceD" "ActsFormSystemTestServiceD.hap"
], ],
"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"
]
}
]
} }
{ {
"app": { "app": {
"bundleName": "com.example.getallformsinfo201", "bundleName": "com.example.getallformsinfo201",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 5, "compatible": 5,
"target": 5, "target": 5,
"releaseType": "Beta1" "releaseType": "Beta1"
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "com.example.getallformsinfo201", "package": "com.example.getallformsinfo201",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo201.MainAbility", "mainAbility": "com.example.getallformsinfo201.MainAbility",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry",
"installationFree": false "installationFree": false
}, },
"abilities": [ "abilities": [
{ {
"skills": [ "skills": [
{ {
"entities": [ "entities": [
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.home" "action.system.home"
] ]
} }
], ],
"visible": true, "visible": true,
"name": "com.example.getallformsinfo201.MainAbility", "name": "com.example.getallformsinfo201.MainAbility",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
"type": "page", "type": "page",
"launchType": "standard" "launchType": "standard"
} }
], ],
"js": [ "js": [
{ {
"pages": [ "pages": [
"pages/index/index" "pages/index/index"
], ],
"name": "default", "name": "default",
"window": { "window": {
"designWidth": 720, "designWidth": 720,
"autoDesignWidth": true "autoDesignWidth": true
} }
} }
] ]
} }
} }
\ No newline at end of file
{ {
"string": [ "string": [
{ {
"name": "entry_MainAbility", "name": "entry_MainAbility",
"value": "GetAllFormsInfo201" "value": "GetAllFormsInfo201"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Empty Ability" "value": "JS_Empty Ability"
} }
] ]
} }
\ No newline at end of file
...@@ -10,24 +10,11 @@ ...@@ -10,24 +10,11 @@
{ {
"test-file-name": [ "test-file-name": [
"GetAllFormsInfo211.hap", "GetAllFormsInfo211.hap",
"ActsFormSystemTestServiceB", "ActsFormSystemTestServiceB.hap",
"ActsFormSystemTestServiceC" "ActsFormSystemTestServiceC.hap"
], ],
"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"
]
}
]
} }
{ {
"app": { "app": {
"bundleName": "com.example.getallformsinfo211", "bundleName": "com.example.getallformsinfo211",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 5, "compatible": 5,
"target": 5, "target": 5,
"releaseType": "Beta1" "releaseType": "Beta1"
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "com.example.getallformsinfo211", "package": "com.example.getallformsinfo211",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo211.MainAbility", "mainAbility": "com.example.getallformsinfo211.MainAbility",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry",
"installationFree": false "installationFree": false
}, },
"abilities": [ "abilities": [
{ {
"skills": [ "skills": [
{ {
"entities": [ "entities": [
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.home" "action.system.home"
] ]
} }
], ],
"visible": true, "visible": true,
"name": "com.example.getallformsinfo211.MainAbility", "name": "com.example.getallformsinfo211.MainAbility",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
"type": "page", "type": "page",
"launchType": "standard" "launchType": "standard"
} }
], ],
"js": [ "js": [
{ {
"pages": [ "pages": [
"pages/index/index" "pages/index/index"
], ],
"name": "default", "name": "default",
"window": { "window": {
"designWidth": 720, "designWidth": 720,
"autoDesignWidth": true "autoDesignWidth": true
} }
} }
] ]
} }
} }
\ No newline at end of file
{ {
"string": [ "string": [
{ {
"name": "entry_MainAbility", "name": "entry_MainAbility",
"value": "GetAllFormsInfo211" "value": "GetAllFormsInfo211"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Empty Ability" "value": "JS_Empty Ability"
} }
] ]
} }
\ No newline at end of file
...@@ -10,24 +10,11 @@ ...@@ -10,24 +10,11 @@
{ {
"test-file-name": [ "test-file-name": [
"GetAllFormsInfo212.hap", "GetAllFormsInfo212.hap",
"ActsFormSystemTestServiceA", "ActsFormSystemTestServiceA.hap",
"ActsFormSystemTestServiceB" "ActsFormSystemTestServiceB.hap"
], ],
"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"
]
}
]
} }
{ {
"app": { "app": {
"bundleName": "com.example.getallformsinfo", "bundleName": "com.example.getallformsinfo",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 5, "compatible": 5,
"target": 5, "target": 5,
"releaseType": "Beta1" "releaseType": "Beta1"
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "com.example.getallformsinfo", "package": "com.example.getallformsinfo",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "com.example.getallformsinfo.MainAbility", "mainAbility": "com.example.getallformsinfo.MainAbility",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry",
"installationFree": false "installationFree": false
}, },
"abilities": [ "abilities": [
{ {
"skills": [ "skills": [
{ {
"entities": [ "entities": [
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.home" "action.system.home"
] ]
} }
], ],
"visible": true, "visible": true,
"name": "com.example.getallformsinfo.MainAbility", "name": "com.example.getallformsinfo.MainAbility",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
"type": "page", "type": "page",
"launchType": "standard" "launchType": "standard"
} }
], ],
"js": [ "js": [
{ {
"pages": [ "pages": [
"pages/index/index" "pages/index/index"
], ],
"name": "default", "name": "default",
"window": { "window": {
"designWidth": 720, "designWidth": 720,
"autoDesignWidth": true "autoDesignWidth": true
} }
} }
] ]
} }
} }
\ No newline at end of file
{ {
"string": [ "string": [
{ {
"name": "entry_MainAbility", "name": "entry_MainAbility",
"value": "GetAllFormsInfo212" "value": "GetAllFormsInfo212"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Empty Ability" "value": "JS_Empty Ability"
} }
] ]
} }
\ No newline at end of file
{ {
"app": { "app": {
"bundleName": "com.form.formsystemtestserviceb", "bundleName": "com.form.formsystemtestserviceb",
"vendor": "neusoft", "vendor": "ohos",
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
} }
], ],
"visible": true, "visible": true,
"name": "com.form.formmodule001.FormAbility001", "name": "FormStServiceAbilityB",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
} }
] ]
} }
} }
] ]
} }
], ],
......
{ {
"app": { "app": {
"bundleName": "com.form.formsystemtestservicec", "bundleName": "com.form.formsystemtestservicec",
"vendor": "neusoft", "vendor": "ohos",
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
} }
], ],
"visible": true, "visible": true,
"name": "com.form.formmodule001.FormAbility001", "name": "FormStServiceAbilityC",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
} }
], ],
"visible": true, "visible": true,
"name": "FormStServiceAbilityA", "name": "FormStServiceAbilityD",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册