diff --git a/test/BUILD.gn b/test/BUILD.gn index 03d81d71a970cdc3c62123e4e0e0bbfc8e1ee376..76ea3cac5490f1e3335c17c5919b890c664c8ac5 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -15,6 +15,10 @@ group("systemtest") { testonly = true deps = [ "systemtest/bm:systemtest" ] + + deps += [ + "sceneProject:test_hap", + ] } group("moduletest") { diff --git a/test/sceneProject/BUILD.gn b/test/sceneProject/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..e1973ee864d0ea47d92cb93a00d88363e18aa79c --- /dev/null +++ b/test/sceneProject/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +group("test_hap") { + testonly = true + deps = [] + + deps += [ + # deps file + "tools:tooltest_hap", + ] +} diff --git a/test/sceneProject/tools/BUILD.gn b/test/sceneProject/tools/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..4de478dd7d55cbbac6fe27f43f4785d317a947af --- /dev/null +++ b/test/sceneProject/tools/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +group("tooltest_hap") { + testonly = true + deps = [] + + deps += [ + # deps file + "bm:bm_tool", + ] +} diff --git a/test/sceneProject/tools/bm/BUILD.gn b/test/sceneProject/tools/bm/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..765917d1a5112a6c6fec2a16f0531c84eff156ee --- /dev/null +++ b/test/sceneProject/tools/bm/BUILD.gn @@ -0,0 +1,23 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +group("bm_tool") { + testonly = true + deps = [] + + deps += [ + # deps file + "pageAbilityBundleForInstall:pageAbilityBundleForInstall", + "pageAbilityBundleForUninstall:pageAbilityBundleForUninstall", + ] +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/BUILD.gn b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..bb520b24a96156c1ddbb07e4d8dba2a018309a31 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/BUILD.gn @@ -0,0 +1,34 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +ohos_hap("pageAbilityBundleForInstall") { + hap_profile = "./src/main/config.json" + hap_name = "pageAbilityBundleForInstall" + subsystem_name = "bundlemanager" + final_hap_path = "$root_out_dir/tests/systemtest/bundle_tool/tools/resource/bm/${hap_name}.hap" + testonly = true + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "com.ohos.tools.pageAbilityBundleForInstall.p7b" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./src/main/js/resources" ] + hap_profile = "./src/main/config.json" +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/com.ohos.tools.pageAbilityBundleForInstall.p7b b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/com.ohos.tools.pageAbilityBundleForInstall.p7b new file mode 100644 index 0000000000000000000000000000000000000000..01f28f6ced074e14438ad5d1d78ee06ac8d3e240 Binary files /dev/null and b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/com.ohos.tools.pageAbilityBundleForInstall.p7b differ diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/config.json b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/config.json new file mode 100644 index 0000000000000000000000000000000000000000..f957b7648e5c39daaed22e439e6f0ecb596f927a --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/config.json @@ -0,0 +1,69 @@ +{ + "app": { + "apiVersion": { + "compatible": 4, + "releaseType": "Beta1", + "target": 5 + }, + "vendor": "ohos", + "bundleName": "com.ohos.tools.pageAbilityBundleForInstall", + "version": { + "code": 1, + "name": "1.0" + } + }, + "deviceConfig": { + "default": { + "debug": true + } + }, + "module": { + "abilities": [ + { + "iconId": 16777218, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "descriptionId": 16777217, + "labelId": 16777216, + "icon": "$media:icon", + "name": "com.ohos.tools.pageAbilityForInstall.MainAbility", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard" + } + ], + "deviceType": [ + "2in1", + "tablet", + "default" + ], + "distro": { + "moduleType": "entry", + "deliveryWithInstall": true, + "moduleName": "entry" + }, + "package": "com.ohos.tools.pageAbilityForInstall", + "name": ".MyApplication", + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/app.js b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/app.js new file mode 100644 index 0000000000000000000000000000000000000000..2d316a0a089b332c5c28729be9ff937aa46618c5 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/i18n/en-US.json b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/i18n/en-US.json new file mode 100644 index 0000000000000000000000000000000000000000..e63c70d978a3a53be988388c87182f81785e170c --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/i18n/zh-CN.json b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 0000000000000000000000000000000000000000..de6ee5748322f44942c1b003319d8e66c837675f --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.css b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.css new file mode 100644 index 0000000000000000000000000000000000000000..01ad739b27f208ff04f21924695104bd27c59df0 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.css @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2022 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.hml b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..8d0e2061b88c99c91488405f0f2ead0c77de1a9e --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.hml @@ -0,0 +1,20 @@ + + +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.js b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.js new file mode 100644 index 0000000000000000000000000000000000000000..eb5be916aa414adb35cf8541635725d702a893dc --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/resources/base/element/string.json b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..226a4d8d2d7c7fc737f22ec14b2cd236253fbd28 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "mainability_description", + "value": "mainability_description" + }, + { + "name": "app_name", + "value": "demo" + } + ] +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/resources/base/media/icon.png b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..8966a1e3de00956d251d5c1497aa251ea7b5c49f Binary files /dev/null and b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/src/main/js/resources/base/media/icon.png differ diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/BUILD.gn b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..2689e30c5c65a8cd68b70c04df327db429b29926 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/BUILD.gn @@ -0,0 +1,34 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +ohos_hap("pageAbilityBundleForUninstall") { + hap_profile = "./src/main/config.json" + hap_name = "pageAbilityBundleForUninstall" + subsystem_name = "bundlemanager" + final_hap_path = "$root_out_dir/tests/systemtest/bundle_tool/tools/resource/bm/${hap_name}.hap" + testonly = true + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "com.ohos.tools.pageAbilityBundleForUninstall.p7b" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./src/main/js/resources" ] + hap_profile = "./src/main/config.json" +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/com.ohos.tools.pageAbilityBundleForUninstall.p7b b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/com.ohos.tools.pageAbilityBundleForUninstall.p7b new file mode 100644 index 0000000000000000000000000000000000000000..fca0adb91ee5861dd07ce84fe31ae144582a1664 Binary files /dev/null and b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/com.ohos.tools.pageAbilityBundleForUninstall.p7b differ diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/config.json b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/config.json new file mode 100644 index 0000000000000000000000000000000000000000..2dd6104ca1c8dd97ef240913404452b4ff763c97 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/config.json @@ -0,0 +1,69 @@ +{ + "app": { + "apiVersion": { + "compatible": 4, + "releaseType": "Beta1", + "target": 5 + }, + "vendor": "ohos", + "bundleName": "com.ohos.tools.pageAbilityBundleForUninstall", + "version": { + "code": 1, + "name": "1.0" + } + }, + "deviceConfig": { + "default": { + "debug": true + } + }, + "module": { + "abilities": [ + { + "iconId": 16777218, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "descriptionId": 16777217, + "labelId": 16777216, + "icon": "$media:icon", + "name": "com.ohos.tools.pageAbilityForUninstall.MainAbility", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard" + } + ], + "deviceType": [ + "2in1", + "tablet", + "default" + ], + "distro": { + "moduleType": "entry", + "deliveryWithInstall": true, + "moduleName": "entry" + }, + "package": "com.ohos.tools.pageAbilityForUninstall", + "name": ".MyApplication", + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/app.js b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/app.js new file mode 100644 index 0000000000000000000000000000000000000000..2d316a0a089b332c5c28729be9ff937aa46618c5 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/i18n/en-US.json b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/i18n/en-US.json new file mode 100644 index 0000000000000000000000000000000000000000..e63c70d978a3a53be988388c87182f81785e170c --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/i18n/zh-CN.json b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 0000000000000000000000000000000000000000..de6ee5748322f44942c1b003319d8e66c837675f --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.css b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.css new file mode 100644 index 0000000000000000000000000000000000000000..01ad739b27f208ff04f21924695104bd27c59df0 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.css @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2022 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.hml b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.hml new file mode 100644 index 0000000000000000000000000000000000000000..8d0e2061b88c99c91488405f0f2ead0c77de1a9e --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.hml @@ -0,0 +1,20 @@ + + +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.js b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.js new file mode 100644 index 0000000000000000000000000000000000000000..eb5be916aa414adb35cf8541635725d702a893dc --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/element/string.json b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..226a4d8d2d7c7fc737f22ec14b2cd236253fbd28 --- /dev/null +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "mainability_description", + "value": "mainability_description" + }, + { + "name": "app_name", + "value": "demo" + } + ] +} \ No newline at end of file diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/media/icon.png b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..8966a1e3de00956d251d5c1497aa251ea7b5c49f Binary files /dev/null and b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/media/icon.png differ diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/media/icon_entry.png b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/media/icon_entry.png new file mode 100644 index 0000000000000000000000000000000000000000..8966a1e3de00956d251d5c1497aa251ea7b5c49f Binary files /dev/null and b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/src/main/js/resources/base/media/icon_entry.png differ diff --git a/test/sceneProject/tools/ohos_test/BUILD.gn b/test/sceneProject/tools/ohos_test/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..bba404b6b25d85a48094955d93ff7b29f95d90f5 --- /dev/null +++ b/test/sceneProject/tools/ohos_test/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright (c) 2022 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") +import("../../../../appexecfwk.gni") + +ohos_copy("copy_ohos_test") { + sources = [ "./ohos_test.xml" ] + outputs = [ + "$root_out_dir/tests/systemtest/bundle_tool/tools/resource/ohos_test.xml", + ] +} diff --git a/test/sceneProject/tools/ohos_test/ohos_test.xml b/test/sceneProject/tools/ohos_test/ohos_test.xml new file mode 100644 index 0000000000000000000000000000000000000000..e27e2e7eeabb23bd20fb9e11315bf57a29ffc95f --- /dev/null +++ b/test/sceneProject/tools/ohos_test/ohos_test.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + \ No newline at end of file