提交 e062a614 编写于 作者: K kirl.liu

Supplementary meta-ability test cases.

Signed-off-by: Nkirl.liu <kirl.liu@huawei.com>
上级 29949fd5
# Copyright (c) 2021 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsAbilityDelegatorCaseTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsAbilityDelegatorCaseTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for hjunit demo Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "60000",
"package": "com.amsst.actsabilitydelegatorcasetest",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAbilityDelegatorCaseTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"bundleName": "com.amsst.actsabilitydelegatorcasetest",
"vendor": "amsst",
"version": {
"code": 1,
"name": "1.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Beta1"
}
},
"deviceConfig": {},
"module": {
"package": "com.amsst.actsabilitydelegatorcasetest",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.amsst.actsabilitydelegatorcasetest.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard",
"visible": true
}
],
"reqPermissions": [
{
"name": "ohos.permission.INSTALL_BUNDLE",
"reason": "need use ohos.permission.INSTALL_BUNDLE"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO",
"reason":"need use ohos.permission.GET_BUNDLE_INFO"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE",
"reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
},
{
"name":"ohos.permission.REMOVE_CACHE_FILES",
"reason":"need use ohos.permission.REMOVE_CACHE_FILES"
},
{
"name":"ohos.permission.LISTEN_BUNDLE_CHANGE",
"reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE"
},
{
"name":"ohos.permission.MANAGE_LOCAL_ACCOUNTS",
"reason":"need use ohos.permission.MANAGE_LOCAL_ACCOUNTS"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
/*
* 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');
}
};
{
"strings": {
"hello": "Hello",
"world": "World"
}
}
\ No newline at end of file
{
"strings": {
"hello": "您好",
"world": "世界"
}
}
\ No newline at end of file
.container {
flex-direction: column;
justify-content: center;
align-items: center;
}
.title {
font-size: 100px;
}
.titleST {
font-size: 32px;
}
<div class="container">
<text class="title">
{{ $t('strings.hello') }} {{ title }}
</text>
<text class="titleST">
ActsAbilityDelegatorCaseTest
</text>
</div>
/*
* 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 file from '@system.file'
import app from '@system.app'
import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
export default {
data: {
title: ""
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('====onShow finish====<')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
const reportExtend = new ReportExtend(file)
core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.init()
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "StSeAbClient"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
/*
* 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.
*/
require('./ActsAbilityDelegatorCaseTest.test.js')
\ No newline at end of file
...@@ -17,6 +17,7 @@ group("aafwk_standard") { ...@@ -17,6 +17,7 @@ group("aafwk_standard") {
testonly = true testonly = true
if (is_standard_system) { if (is_standard_system) {
deps = [ deps = [
"ActsAbilityDelegatorCaseTest:ActsAbilityDelegatorCaseTest",
"ActsAbilityLifecycleStateNewTest:ActsAbilityLifecycleStateNewTest", "ActsAbilityLifecycleStateNewTest:ActsAbilityLifecycleStateNewTest",
"ActsDataAbilityJsTest:ActsDataAbilityJsTest", "ActsDataAbilityJsTest:ActsDataAbilityJsTest",
"ActsKillProcessWithAccountApi7:ActsKillProcessWithAccountApi7", "ActsKillProcessWithAccountApi7:ActsKillProcessWithAccountApi7",
......
...@@ -15,3 +15,4 @@ ...@@ -15,3 +15,4 @@
require('./ActsBmsFormsInfoTest.test.js') require('./ActsBmsFormsInfoTest.test.js')
require('./ActsBmsQueryAbilityByWant.test.js') require('./ActsBmsQueryAbilityByWant.test.js')
require('./ActsBmsCleanCacheTest.test.js') require('./ActsBmsCleanCacheTest.test.js')
require('./ActsBmsGetBackGroundModes.test.js')
\ No newline at end of file
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.third5A" "action.system.home"
] ]
} }
], ],
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.third5B" "action.system.home"
] ]
} }
], ],
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
"app": { "app": {
"bundleName": "com.example.third1", "bundleName": "com.example.third1",
"vendor": "example", "vendor": "example",
"singleUser":true,
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
...@@ -14,13 +13,12 @@ ...@@ -14,13 +13,12 @@
} }
}, },
"deviceConfig": { "deviceConfig": {
"default":{ "default":{}
"keepAlive":true
}
}, },
"module": { "module": {
"package": "com.example.third1.entry", "package": "com.example.third1.entry",
"name": "com.example.third1.BmsThirdBundle1", "name": "com.example.third1.BmsThirdBundle1",
"colorMode": "light",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
...@@ -87,20 +85,6 @@ ...@@ -87,20 +85,6 @@
"launchType": "standard", "launchType": "standard",
"visible": true, "visible": true,
"metaData": { "metaData": {
"parameters": [
{
"name": "Data1",
"type": "float",
"description": "$string:mainability_description"
}
],
"results": [
{
"name": "Data1",
"type": "float",
"description": "$string:mainability_description"
}
],
"customizeData": [ "customizeData": [
{ {
"name": "Data1", "name": "Data1",
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
"app": { "app": {
"bundleName": "com.example.third1", "bundleName": "com.example.third1",
"vendor": "example", "vendor": "example",
"singleUser":false,
"version": { "version": {
"code": 2, "code": 2,
"name": "2.0" "name": "2.0"
...@@ -14,14 +13,13 @@ ...@@ -14,14 +13,13 @@
} }
}, },
"deviceConfig": { "deviceConfig": {
"default":{ "default":{}
"keepAlive":false
}
}, },
"module": { "module": {
"package": "com.example.third1.entry", "package": "com.example.third1.entry",
"name": "com.example.third1.BmsThirdBundle1", "name": "com.example.third1.BmsThirdBundle1",
"mainAbility": "com.example.third1.AMainAbility", "mainAbility": "com.example.third1.AMainAbility",
"colorMode": "dark",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
"app": { "app": {
"bundleName": "com.example.system2", "bundleName": "com.example.system2",
"vendor": "example", "vendor": "example",
"singleUser":true,
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
...@@ -14,9 +13,7 @@ ...@@ -14,9 +13,7 @@
} }
}, },
"deviceConfig": { "deviceConfig": {
"default":{ "default":{}
"keepAlive":false
}
}, },
"module": { "module": {
"package": "com.example.system2", "package": "com.example.system2",
...@@ -35,7 +32,15 @@ ...@@ -35,7 +32,15 @@
"skills": [ "skills": [
{ {
"entities": [ "entities": [
"entity.system.home" "entity.app.music",
"entity.app.email",
"entity.app.contacts",
"entity.app.maps",
"entity.app.browser",
"entity.app.calendar",
"entity.app.messaging",
"entity.app.files",
"entity.app.gallery"
], ],
"actions": [ "actions": [
"action.system.home" "action.system.home"
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
"app": { "app": {
"bundleName": "com.example.third1", "bundleName": "com.example.third1",
"vendor": "example", "vendor": "example",
"singleUser":true,
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
...@@ -14,13 +13,12 @@ ...@@ -14,13 +13,12 @@
} }
}, },
"deviceConfig": { "deviceConfig": {
"default":{ "default":{}
"keepAlive":true
}
}, },
"module": { "module": {
"package": "com.example.third3", "package": "com.example.third3",
"name": ".BmsThirdBundle3", "name": ".BmsThirdBundle3",
"colorMode": "auto",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
...@@ -87,20 +85,6 @@ ...@@ -87,20 +85,6 @@
], ],
"launchType": "standard", "launchType": "standard",
"metaData": { "metaData": {
"parameters": [
{
"name": "Data3",
"type": "float",
"description": "$string:mainability_description"
}
],
"results": [
{
"name": "Data3",
"type": "float",
"description": "$string:mainability_description"
}
],
"customizeData": [ "customizeData": [
{ {
"name": "Data3", "name": "Data3",
...@@ -132,7 +116,7 @@ ...@@ -132,7 +116,7 @@
"voip", "voip",
"taskKeeping" "taskKeeping"
], ],
"name": "com.example.third1.MainAbilityA", "name": "com.example.third3.MainAbilityA",
"icon": "$media:icon", "icon": "$media:icon",
"form": { "form": {
"formEntity": [ "formEntity": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册