From ac82c21bae50138f93d95d7e4cdd0be3178fc964 Mon Sep 17 00:00:00 2001 From: chengxingzhen Date: Sat, 11 Mar 2023 10:15:11 +0800 Subject: [PATCH] =?UTF-8?q?xts-API=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengxingzhen --- ability/ability_runtime/BUILD.gn | 1 + .../actsrequestdialogtest/BUILD.gn | 23 ++++ .../actsrequestdialog/AppScope/app.json | 21 +++ .../resources/base/element/string.json | 8 ++ .../resources/base/media/app_icon.png | Bin 0 -> 15458 bytes .../actsrequestdialog/BUILD.gn | 44 ++++++ .../actsrequestdialog/Test.json | 39 ++++++ .../src/main/ets/Application/AbilityStage.ts | 22 +++ .../src/main/ets/MainAbility/MainAbility.ts | 64 +++++++++ .../ets/MainAbility/pages/index/index.ets | 58 ++++++++ .../ets/MainAbility/pages/second/second.ets | 43 ++++++ .../src/main/ets/MainAbility2/MainAbility2.ts | 100 ++++++++++++++ .../src/main/ets/TestAbility/TestAbility.ts | 50 +++++++ .../src/main/ets/TestAbility/pages/index.ets | 48 +++++++ .../ets/TestRunner/OpenHarmonyTestRunner.ts | 78 +++++++++++ .../entry/src/main/ets/test/Ability.test.ets | 95 +++++++++++++ .../entry/src/main/ets/test/List.test.ets | 22 +++ .../entry/src/main/module.json | 48 +++++++ .../main/resources/base/element/string.json | 32 +++++ .../src/main/resources/base/media/icon.png | Bin 0 -> 15458 bytes .../resources/base/profile/main_pages.json | 6 + .../signature/openharmony_sx.p7b | Bin 0 -> 3645 bytes .../main/ets/test/ApiCoverAbility.test.ets | 126 ++++++++++++++++-- .../src/main/ets/test/WantAgentCover.test.ets | 3 + 24 files changed, 921 insertions(+), 10 deletions(-) create mode 100644 ability/ability_runtime/actsrequestdialogtest/BUILD.gn create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/app.json create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/resources/base/element/string.json create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/resources/base/media/app_icon.png create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/BUILD.gn create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/Test.json create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/Application/AbilityStage.ts create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/MainAbility.ts create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/index/index.ets create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/second/second.ets create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility2/MainAbility2.ts create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/TestAbility.ts create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/pages/index.ets create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/Ability.test.ets create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/List.test.ets create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/module.json create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/element/string.json create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/media/icon.png create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/profile/main_pages.json create mode 100644 ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/signature/openharmony_sx.p7b diff --git a/ability/ability_runtime/BUILD.gn b/ability/ability_runtime/BUILD.gn index 5b9daed00..c1ff89137 100644 --- a/ability/ability_runtime/BUILD.gn +++ b/ability/ability_runtime/BUILD.gn @@ -30,6 +30,7 @@ group("ability_runtime") { "actsdataabilityaccessdatasharetest:dataabilityaccessdatashare", "actsfwkdataaccessortest:dataability", "actsqueryfunctiontest:actsqueryfunctiontest", + "actsrequestdialogtest:actsrequestdialogtest", "actsserviceabilityclienttest:serviceability", "actsshellcommandfunctionalitytest:actsshellcommandfunctionalitytest", "actsstartrunnertest:ActsStartRunnerTest", diff --git a/ability/ability_runtime/actsrequestdialogtest/BUILD.gn b/ability/ability_runtime/actsrequestdialogtest/BUILD.gn new file mode 100644 index 000000000..90f6e31ab --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/BUILD.gn @@ -0,0 +1,23 @@ +# 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("//test/xts/tools/build/suite.gni") + +group("actsrequestdialogtest") { + testonly = true + if (is_standard_system) { + deps = [ + "actsrequestdialog:ActsRequestDialog", + ] + } +} diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/app.json b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/app.json new file mode 100644 index 000000000..bbc803a38 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/app.json @@ -0,0 +1,21 @@ +{ + "app":{ + "bundleName":"com.acts.example.requestdialog", + "vendor":"huawei", + "versionCode":1000000, + "versionName":"1.0.0", + "debug":false, + "icon":"$media:icon", + "label":"$string:app_name", + "description":"$string:description_application", + "distributedNotificationEnabled":true, + "keepAlive":true, + "singleUser":true, + "minAPIVersion":9, + "targetAPIVersion":9, + "car":{ + "apiCompatibleVersion":9, + "singleUser":false + } + } +} diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/resources/base/element/string.json b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..ee69f9a86 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string":[ + { + "name":"app_name", + "value":"ohosProject" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/resources/base/media/app_icon.png b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..474a55588fd7216113dd42073aadf254d4dba023 GIT binary patch literal 15458 zcmV-oJe|XdP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXfJNHRMK~#8N)t$?W zZ`*d)f6uD@IOn2&LJ;lP6@!gHh#>Y1!r&0HL_gDqb&`3X(Z=GaQp8SP` z92In5!tr>lHv4nxKS1{J@p1P!+F4$_JksuYcRrnVr_*tFKEi|jF}%m8r`_Y_l6p^% z@+LnCznqL`mDBrry9$FzRWuxkQF=}GpwhbiR|yW zmfjQNx4tFelhpeM=s1qPZ}7VBtuHUqIh+_+IvN7$>(jXIa?55SEAd6rfw_FG^Ciq> zUAOb*d;6XH7UwzzrTnE1QtLJmPK4||=GS#JMbf8dX;2o^T+5qYx7QF%t86tY^M!6V zrngTY z1udv}ju^g5nNRXGgh*Bp3Mrd$sWa|p#az3e^Glh~4OYDwx?a*KW72*IFc`5a72{iM zp*N~%>#A7GyQ5CGc@5sreOI4Vr-jh46-ty$UgtlNS4u^>BKcJpW(i@*S9!$UCqmcd z(U6LQx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d+4%SsK_oWS!)h$X)7Iw5YwMUI%|DP($<}KZ+-u>XG?b9I5f47B0;%?P3__l;YH& z`92CVO`RCVP#y-H@nJZgr1<2a{xBQ-lIK~pAH?^`km{I01IzdD7@r|t*_4y`9@NA5 zq$<1;c6}R8!%NJeZ{_C?c;3;(Bhvgl9`1TUrhJs+)3eHTVN^Wtf9v1;w`bk-!U80# zPb4Nai`;Q4VyWJmBm(HGVb%x!$o9g(m z@BNm8)L5LW41ks^%nDsO9dc#n{!ihj%?OK8jS5s)q|ox6AsyuMaEws?(61<4>Dl&% z(AowWE}sZbd2$Fpd3X!W{44-|eRU%5z)~*gA?R**Vyu2$E5~BWM~PgBBq$=kqGE67 z`@|=dDkKs@MXyRk(q=Sb__5!7i&kaqd|~>q`yW64akf!;YC=W70<8l5tW13-+~|Y; zkOj7m+O z!5pPf&u5hW8I_=fD zD*;20N{)BIOQ{tj;NRl5w-|ch2}M5c{wK!f>CfqKoBq&WEM66PqkaN5`Y)t8TRI`--F?$f7FyF2*vpx(dgmuRWV_Q&1- Y0jIQKqpXab7ytkO07*qoM6N<$f;yQ2zW@LL literal 0 HcmV?d00001 diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/BUILD.gn b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/BUILD.gn new file mode 100644 index 000000000..7aa770139 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/BUILD.gn @@ -0,0 +1,44 @@ +# 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("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsRequestDialog") { + hap_profile = "entry/src/main/module.json" + js_build_mode = "debug" + deps = [ + ":actsrequestdialog_js_assets", + ":actsrequestrecent_resources", + ] + ets2abc = true + certificate_profile = "signature/openharmony_sx.p7b" + hap_name = "ActsRequestDialog" + + subsystem_name = "ability" + part_name = "ability_runtime" +} + +ohos_app_scope("actsrequestdialog_app_profile") { + app_profile = "AppScope/app.json" + sources = [ "AppScope/resources" ] +} + +ohos_js_assets("actsrequestdialog_js_assets") { + source_dir = "entry/src/main/ets" +} + +ohos_resources("actsrequestrecent_resources") { + sources = [ "entry/src/main/resources" ] + deps = [ ":actsrequestdialog_app_profile" ] + hap_profile = "entry/src/main/module.json" +} diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/Test.json b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/Test.json new file mode 100644 index 000000000..a64309978 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/Test.json @@ -0,0 +1,39 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "OHJSUnitTest", + "test-timeout": "180000", + "bundle-name": "com.acts.example.requestdialog", + "module-name": "phone", + "shell-timeout": "600000", + "testcase-timeout": 70000 + }, + "kits": [ + { + "test-file-name": [ + "ActsRequestDialog.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "remount", + "mkdir /data/test" + ] + }, + { + "type": "PushKit", + "push": [ + "ActsRequestDialog.hap->/data/test/ActsRequestDialog.hap" + ] + }, + { + "type": "ShellKit", + "run-command": [ + "chmod 644 /data/test/*.hap" + ] + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/Application/AbilityStage.ts b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/Application/AbilityStage.ts new file mode 100644 index 000000000..08ad8c28e --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/Application/AbilityStage.ts @@ -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 AbilityStage from "@ohos.app.ability.AbilityStage" + +export default class MyAbilityStage extends AbilityStage { + onCreate() { + console.log("MyAbilityStage onCreate"); + globalThis.stageContext = this.context; + } +} diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/MainAbility.ts b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/MainAbility.ts new file mode 100644 index 000000000..17cd974c3 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/MainAbility.ts @@ -0,0 +1,64 @@ +/* + * 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 Ability from '@ohos.app.ability.UIAbility' + +export default class MainAbility extends Ability { + onCreate(want,launchParam){ + // Ability is creating, initialize resources for this ability + console.log("MainAbility onCreate"); + globalThis.abilityWant = want; + globalThis.abilityContext = this.context; + globalThis.applicationContext = this.context.getApplicationContext(); + globalThis.requestDialogSuccess = false; + globalThis.validRequestInfo = false; + globalThis.validRequestCallback = false; + } + + onDestroy() { + // Ability is destroying, release resources for this ability + console.log("MainAbility onDestroy"); + globalThis.applicationContext.killAllProcesses().then((data)=>{ + console.log(`MainAbility getRunningProcessInformation data ${JSON.stringify(data)}`); + }).catch((err)=>{ + console.log(`MainAbility getRunningProcessInformation err ${JSON.stringify(err)}`); + }) + + globalThis.applicationContext.killAllProcesses((err, data)=>{ + console.log(`MainAbility getRunningProcessInformation data ${JSON.stringify(data)} + err: ${JSON.stringify(err)}`); + }) + } + + onWindowStageCreate(windowStage) { + // Main window is created, set main page for this ability + console.log("MainAbility onWindowStageCreate"); + windowStage.setUIContent(this.context, "MainAbility/pages/index/index", null) + } + + onWindowStageDestroy() { + //Main window is destroyed, release UI related resources + console.log("MainAbility onWindowStageDestroy"); + } + + onForeground() { + // Ability has brought to foreground + console.log("MainAbility onForeground"); + } + + onBackground() { + // Ability has back to background + console.log("MainAbility onBackground"); + } +}; \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/index/index.ets b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/index/index.ets new file mode 100644 index 000000000..102626507 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/index/index.ets @@ -0,0 +1,58 @@ +/* + * 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 router from '@ohos.router'; +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +import { Hypium } from '@ohos/hypium' +import testsuite from '../../../test/List.test' +var testTime = 0; + +@Entry +@Component +struct Index { + + aboutToAppear(){ + console.info("start run testcase!!!!") + if(testTime++==0){ + var abilityDelegator: any + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() + var abilityDelegatorArguments: any + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() + console.info('start run testcase!!!') + Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) + } + } + + build() { + Flex({ direction:FlexDirection.Column, alignItems:ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text('Hello World') + .fontSize(50) + .fontWeight(FontWeight.Bold) + Button() { + Text('next page') + .fontSize(25) + .fontWeight(FontWeight.Bold) + }.type(ButtonType.Capsule) + .margin({ + top: 20 + }) + .backgroundColor('#0D9FFB') + .onClick(() => { + + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/second/second.ets b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/second/second.ets new file mode 100644 index 000000000..f9009a3e8 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility/pages/second/second.ets @@ -0,0 +1,43 @@ +/* + * 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 router from '@system.router'; + +@Entry +@Component +struct Second { + private content: string = "Second Page" + + build() { + Flex({ direction: FlexDirection.Column,alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(`${this.content}`) + .fontSize(50) + .fontWeight(FontWeight.Bold) + Button() { + Text('back to index') + .fontSize(20) + .fontWeight(FontWeight.Bold) + }.type(ButtonType.Capsule) + .margin({ + top: 20 + }) + .backgroundColor('#0D9FFB') + .onClick(() => { + router.back() + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility2/MainAbility2.ts b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility2/MainAbility2.ts new file mode 100644 index 000000000..3b9e42318 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/MainAbility2/MainAbility2.ts @@ -0,0 +1,100 @@ +/* + * 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 Ability from '@ohos.app.ability.UIAbility' +import commonEvent from '@ohos.commonEvent' +import dialogRequest from '@ohos.app.ability.dialogRequest' + +async function publishEvent() { + var event = 'ACTS_REQUEST_DIALOG_EVENT1'; + + var commonEventPublishData = { + parameters: { + instanceCount: 1, + } + }; + + commonEvent.publish(event, commonEventPublishData, () => { + console.log('============>publish event success.==========>>') + }); + +} + +export default class MainAbility2 extends Ability { + + onCreate(want, launchParam) { + // Ability is creating, initialize resources for this ability + console.log("MainAbility2 onCreate"); + globalThis.abilityWant2 = want; + globalThis.requestDialogSuccess = true; + + try { + let requestInfo = dialogRequest.getRequestInfo(want); + if (requestInfo) { + globalThis.validRequestInfo = true; + console.log("MainAbility2 requestInfo is valid"); + } else { + console.log("MainAbility2 requestInfo is invalid"); + } + + let requestCallback = dialogRequest.getRequestCallback(want); + if (requestCallback) { + console.log("MainAbility2 requestCallback is valid"); + globalThis.validRequestCallback = true; + let resultCode = { + result : dialogRequest.ResultCode.RESULT_CANCEL, + }; + let resultCode2 ={ + result : dialogRequest.ResultCode.RESULT_OK, + }; + console.log(`resultCjode2 is ${JSON.stringify(resultCode2)}`); + requestCallback.setRequestResult(resultCode); + } else { + console.log("MainAbility2 requestCallback is invalid"); + } + publishEvent(); + } catch { + console.log("MainAbility2 testRequest fail"); + } + + console.log("AbilityMultiInstanceAppA abilityWant = " + JSON.stringify( globalThis.abilityWant2)); + } + + onDestroy() { + // Ability is destroying, release resources for this ability + console.log("MainAbility2 onDestroy"); + } + + onWindowStageCreate(windowStage) { + // Main window is created, set main page for this ability + console.log("MainAbility2 onWindowStageCreate") + globalThis.abilityContext2 = this.context; + windowStage.setUIContent(this.context, "MainAbility/pages/second/second", null); + } + + onWindowStageDestroy() { + // Main window is destroyed, release UI related resources + console.log("MainAbility onWindowStageDestroy"); + } + + onForeground() { + // Ability has brought to foreground + console.log("MainAbility onForeground"); + } + + onBackground() { + // Ability has back to background + console.log("MainAbility onBackground"); + } +}; diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/TestAbility.ts b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/TestAbility.ts new file mode 100644 index 000000000..0139025da --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/TestAbility.ts @@ -0,0 +1,50 @@ +/* + * 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 Ability from '@ohos.app.ability.UIAbility' + +export default class TestAbility extends Ability { + onCreate(want, launchParam) { + console.log('TestAbility onCreate'); + } + + onDestroy() { + console.log('TestAbility onDestroy'); + } + + onWindowStageCreate(windowStage) { + console.log('TestAbility onWindowStageCreate'); + windowStage.loadContent("TestAbility/pages/index", (err, data) => { + if (err.code) { + console.error('Failed to load the content. Cause:' + JSON.stringify(err)); + return; + } + console.info('Succeeded in loading the content. Data: ' + JSON.stringify(data)) + }); + + globalThis.abilityContext = this.context; + } + + onWindowStageDestroy() { + console.log('TestAbility onWindowStageDestroy'); + } + + onForeground() { + console.log('TestAbility onForeground'); + } + + onBackground() { + console.log('TestAbility onBackground'); + } +}; \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/pages/index.ets b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/pages/index.ets new file mode 100644 index 000000000..b93567f96 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestAbility/pages/index.ets @@ -0,0 +1,48 @@ +/* + * 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 router from '@ohos.router'; + +@Entry +@Component +struct Index { + aboutToAppear() { + console.info('TestAbility index aboutToAppear') + } + @State message: string = 'Hello World' + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + Button() { + Text('next page') + .fontSize(20) + .fontWeight(FontWeight.Bold) + }.type(ButtonType.Capsule) + .margin({ + top: 20 + }) + .backgroundColor('#0D9FFB') + .width('35%') + .height('5%') + .onClick(()=>{ + }) + } + .width('100%') + } + .height('100%') + } + } \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts new file mode 100644 index 000000000..f6f779205 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts @@ -0,0 +1,78 @@ +/* + * 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 TestRunner from '@ohos.application.testRunner' +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' + +var abilityDelegator = undefined; +var abilityDelegatorArguments = undefined; + +function translateParamsToString(parameters) { + const keySet = new Set([ + '-s class', '-s notClass', '-s suite', '-s it', + '-s level', '-s testType', '-s size', '-s timeout', + '-s dryRun' + ]); + let targetParams = ''; + for (const key in parameters) { + if (keySet.has(key)) { + targetParams = `${targetParams} ${key} ${parameters[key]}`; + } + } + return targetParams.trim(); +} + +async function onAbilityCreateCallback() { + console.log("onAbilityCreateCallback"); +} + +async function addAbilityMonitorCallback(err: any) { + console.info("addAbilityMonitorCallback : " + JSON.stringify(err)); +} + +export default class OpenHarmonyTestRunner implements TestRunner { + constructor() { + } + + onPrepare() { + console.info("OpenHarmonyTestRunner OnPrepare "); + } + + async onRun() { + console.log('OpenHarmonyTestRunner onRun run') + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments(); + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + var testAbilityName = abilityDelegatorArguments.bundleName + '.MainAbility'; + let lMonitor = { + abilityName: testAbilityName, + onAbilityCreate: onAbilityCreateCallback, + }; + abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback); + var cmd = 'aa start -d 0 -a com.acts.example.requestdialog.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName; + cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters); + var debug = abilityDelegatorArguments.parameters["-D"]; + if (debug == 'true') + { + cmd += ' -D' + } + console.info('cmd : '+cmd); + abilityDelegator.executeShellCommand(cmd, + (err: any, d: any) => { + console.info('executeShellCommand : err : ' + JSON.stringify(err)); + console.info('executeShellCommand : data : ' + d.stdResult); + console.info('executeShellCommand : data : ' + d.exitCode); + }) + console.info('OpenHarmonyTestRunner onRun end'); + } +}; \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/Ability.test.ets new file mode 100644 index 000000000..a0a3b0e1c --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/Ability.test.ets @@ -0,0 +1,95 @@ +/* + * 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 { describe, it, expect } from "@ohos/hypium" +import commonEvent from '@ohos.commonEvent' + +var subscriberInfo = { + events: ["ACTS_REQUEST_DIALOG_EVENT1", "ACTS_REQUEST_DIALOG_EVENT2"] +}; + +const CASE_TIMEOUT = 3000; +console.info("====>in Ability.test====>"); + +export default function abilityTest() { + describe('ActsRequestDialogTest', function () { + console.info("====>in ActsRequestDialogTest====>"); + + function sleep(time) { + return new Promise((resolve) => setTimeout(resolve, time)); + } + + /* + * @tc.number: ACTS_requestDialog_0100 + * @tc.name: Start Recent Ability with no permission. + * @tc.desc: reguest dialog service + */ + it('ACTS_requestDialog_0100', 0, async function (done) { + console.log('ACTS_requestDialog_0100====ACTS_requestDialog_0100 Subscribe CallBack data:====>" + JSON.stringify(data)); + + async function processInfoCheck(data) { + console.info('====> ACTS_requestDialog_0100 processInfoCheck=====>'); + expect(globalThis.requestDialogSuccess).assertTrue(); + expect(globalThis.validRequestInfo).assertTrue(); + expect(globalThis.validRequestCallback).assertTrue(); + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + done(); + } + + if (data.event == "ACTS_REQUEST_DIALOG_EVENT1") { + console.info('====> ACTS_startRecent_0100 ACTS_StartAbility_CommonEvent1 success=====>'); + + await sleep(500); + processInfoCheck(data); + } + } + + commonEvent.createSubscriber(subscriberInfo).then(async (data) => { + console.info("====>ACTS_requestDialog_0100 Create Subscriber====>"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + try { + await globalThis.abilityContext.requestDialogService( + { + bundleName: 'com.acts.example.requestdialog', + abilityName: 'com.acts.example.requestdialog.MainAbility2', + }).then((data) => { + console.info("====>ACTS_requestDialog_0100 request end + data:" + JSON.stringify(data)); + resultCode = data.result; + }) + } catch (paramError) { + console.info("====>ACTS_requestDialog_0100 requestDialogSerivce paramError====>"); + } + }) + + function unSubscribeCallback() { + console.info("====>UnSubscribe0100 CallBack====>"); + } + + function timeout() { + console.log('ACTS_requestDialog_0100 timeout.'); + done(); + } + + id = setTimeout(timeout, CASE_TIMEOUT); + console.log('Start ACTS_requestDialog_0100 timer id : ' + id); + }) + }) +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/List.test.ets b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/List.test.ets new file mode 100644 index 000000000..f6a5bd8d9 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/ets/test/List.test.ets @@ -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 abilityTest from './Ability.test.ets' + + +export default function testsuite() { + + abilityTest() + +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/module.json b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/module.json new file mode 100644 index 000000000..9024cf9a6 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/module.json @@ -0,0 +1,48 @@ +{ + "module": { + "name": "phone", + "type": "entry", + "srcEntrance": "./ets/Application/AbilityStage.ts", + "description": "$string:phone_entry_dsc", + "mainElement": "MainAbility", + "deviceTypes": [ + "default", + "tablet" + ], + "deliveryWithInstall": true, + "installationFree": false, + "uiSyntax": "ets", + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "com.acts.example.requestdialog.MainAbility", + "srcEntrance": "./ets/MainAbility/MainAbility.ts", + "description": "$string:phone_entry_main", + "icon": "$media:icon", + "label": "$string:entry_label", + "visible": true, + "orientation": "portrait", + "skills": [ + { + "actions": [ + "action.system.home" + ], + "entities": [ + "entity.system.home" + ] + } + ] + }, + { + "name": "com.acts.example.requestdialog.MainAbility2", + "srcEntrance": "./ets/MainAbility2/MainAbility2.ts", + "description": "$string:phone_entry_main", + "icon": "$media:icon", + "label": "$string:entry_label", + "visible": true, + "launchType":"standard", + "orientation": "portrait" + } + ] + } +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..2977b612e --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/element/string.json @@ -0,0 +1,32 @@ +{ + "string": [ + { + "name": "phone_entry_dsc", + "value": "i am an entry for phone" + }, + { + "name": "phone_entry_main", + "value": "the phone entry ability" + }, + { + "name": "entry_label", + "value": "ActsContextTest" + }, + { + "name": "form_description", + "value": "my form" + }, + { + "name": "serviceability_description", + "value": "my whether" + }, + { + "name": "description_application", + "value": "demo for test" + }, + { + "name": "app_name", + "value": "Demo" + } + ] +} diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..474a55588fd7216113dd42073aadf254d4dba023 GIT binary patch literal 15458 zcmV-oJe|XdP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXfJNHRMK~#8N)t$?W zZ`*d)f6uD@IOn2&LJ;lP6@!gHh#>Y1!r&0HL_gDqb&`3X(Z=GaQp8SP` z92In5!tr>lHv4nxKS1{J@p1P!+F4$_JksuYcRrnVr_*tFKEi|jF}%m8r`_Y_l6p^% z@+LnCznqL`mDBrry9$FzRWuxkQF=}GpwhbiR|yW zmfjQNx4tFelhpeM=s1qPZ}7VBtuHUqIh+_+IvN7$>(jXIa?55SEAd6rfw_FG^Ciq> zUAOb*d;6XH7UwzzrTnE1QtLJmPK4||=GS#JMbf8dX;2o^T+5qYx7QF%t86tY^M!6V zrngTY z1udv}ju^g5nNRXGgh*Bp3Mrd$sWa|p#az3e^Glh~4OYDwx?a*KW72*IFc`5a72{iM zp*N~%>#A7GyQ5CGc@5sreOI4Vr-jh46-ty$UgtlNS4u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ysV$w#X1$JZl72G@wkTCr@<`VBT++f{`d+4%SsK_oWS!)h$X)7Iw5YwMUI%|DP($<}KZ+-u>XG?b9I5f47B0;%?P3__l;YH& z`92CVO`RCVP#y-H@nJZgr1<2a{xBQ-lIK~pAH?^`km{I01IzdD7@r|t*_4y`9@NA5 zq$<1;c6}R8!%NJeZ{_C?c;3;(Bhvgl9`1TUrhJs+)3eHTVN^Wtf9v1;w`bk-!U80# zPb4Nai`;Q4VyWJmBm(HGVb%x!$o9g(m z@BNm8)L5LW41ks^%nDsO9dc#n{!ihj%?OK8jS5s)q|ox6AsyuMaEws?(61<4>Dl&% z(AowWE}sZbd2$Fpd3X!W{44-|eRU%5z)~*gA?R**Vyu2$E5~BWM~PgBBq$=kqGE67 z`@|=dDkKs@MXyRk(q=Sb__5!7i&kaqd|~>q`yW64akf!;YC=W70<8l5tW13-+~|Y; zkOj7m+O z!5pPf&u5hW8I_=fD zD*;20N{)BIOQ{tj;NRl5w-|ch2}M5c{wK!f>CfqKoBq&WEM66PqkaN5`Y)t8TRI`--F?$f7FyF2*vpx(dgmuRWV_Q&1- Y0jIQKqpXab7ytkO07*qoM6N<$f;yQ2zW@LL literal 0 HcmV?d00001 diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/profile/main_pages.json b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 000000000..02221db61 --- /dev/null +++ b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,6 @@ +{ + "src": [ + "MainAbility/pages/index/index", + "MainAbility/pages/second/second" + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/signature/openharmony_sx.p7b b/ability/ability_runtime/actsrequestdialogtest/actsrequestdialog/signature/openharmony_sx.p7b new file mode 100644 index 0000000000000000000000000000000000000000..0c39397c9a7062da0f1b279c2163c8b98ff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BhHyu48;QCKe2Vw!Lftl_TnX*z9@Ddy*8cyoI(?G797?WZR&jeLMZgXqZ_wA zlKu9Tk3w3<3c|5LScmP{(|zf1>(#){;U&G)Q>*{%7`g4q;$%a)aX^}&Y8%dR~B*rAz|u3UKM+^TQ&!EF>EhltY; za^(Nu*bj=^kQ+u5&jYj?B+mTIyyVx?7mxq;N?pA5#bY(kpMRtD*r~Gf3!|mpK4<)%GvuUl987JGm1nC$rPo;vGU zDfX=*&kG@GW$az!3-_O{Lb56plI%hF&;jkYrHunO>fkq3Hv`7rcvBT>5E#4u5>tWk zH;lr3WCXkvs{yCydB;rd zE&lDwMe`lt&KozmTI&F~x|Jvwq*P-vHPrG!a>cqWYue<#1{{Z;kpr`-< literal 0 HcmV?d00001 diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets index 0bbb4d3a5..3704455b9 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/ApiCoverAbility.test.ets @@ -12,16 +12,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import { describe, afterEach, it, expect } from '@ohos/hypium' -import formProvider from '@ohos.application.formProvider'; import FormInfo from '@ohos.application.formInfo'; import formInfoNew from '@ohos.app.form.formInfo'; import formError from '@ohos.application.formError'; import formHost from '@ohos.application.formHost'; -import errorManager from '@ohos.app.ability.errorManager'; import abilityConstant from '@ohos.app.ability.AbilityConstant' -import appManager from '@ohos.application.appManager' import appManagerNew from '@ohos.app.ability.appManager' import commonEvent from '@ohos.commonEvent'; import ability from '@ohos.ability.ability'; @@ -29,12 +26,11 @@ import abilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry import common from '@ohos.app.ability.common'; import contextConstant from "@ohos.app.ability.contextConstant" -var EXTENSION_INFO_ERR = 16000001 -var INNER_ERROR = 16000050 -var CROSS_USER_DENY = 201 -var INVALID_PARAM = 401 -var trueInfo; -var array = new Array(); +let EXTENSION_INFO_ERR = 16000001; +let INNER_ERROR = 16000050; +let CROSS_USER_DENY = 201; +let array = new Array(); +let TAG = ''; function sleep(time) { return new Promise((resolve)=>setTimeout(resolve,time)); } @@ -661,5 +657,115 @@ export default function ApiCoverTest() { done() }) }) + + /* + * @tc.number SUB_AA_AbilityAppManager_0100 + * @tc.name The form of a promise getRunningProcessInformation + * @tc.desc Function test + * @tc.level 3 + */ + it('SUB_AA_AbilityAppManager_0100', 0, async function (done) { + TAG = 'SUB_AA_AbilityAppManager_0100'; + await appManagerNew.getRunningProcessInformation().then((data)=>{ + console.log(`${TAG} getRunningProcessInformation data ${JSON.stringify(data.length)}`); + for (let i = 0; i < data.length; i++) { + console.log(`${TAG} getRunningProcessInformation${i} : JSON.stringify(data[i])`); + expect(typeof (data[i].pid)).assertEqual("number"); + expect(data[i].pid).assertLarger(0); + expect(typeof (data[i].uid)).assertEqual("number"); + expect(data[i].uid).assertLarger(0); + expect(typeof (data[i].processName)).assertEqual("string"); + expect(data[i].processName.length).assertLarger(0); + expect(Array.isArray(data[i].bundleNames)).assertEqual(true); + expect(data[i].bundleNames.length).assertLarger(0); + } + done(); + }).catch((err)=>{ + console.log(`${TAG} getRunningProcessInformation err ${JSON.stringify(err)}`); + expect().assertFail(); + done(); + }) + }) + + /* + * @tc.number SUB_AA_AbilityAppManager_0200 + * @tc.name The form of a callback getRunningProcessInformation + * @tc.desc Function test + * @tc.level 3 + */ + it('SUB_AA_AbilityAppManager_0200', 0, async function (done) { + TAG = 'SUB_AA_AbilityAppManager_0100'; + appManagerNew.getRunningProcessInformation((err, data) => { + console.log(`${TAG} getRunningProcessInformation data ${JSON.stringify(data.length)} + err: ${JSON.stringify(err)}`); + for (let i = 0; i < data.length; i++) { + console.log(`${TAG} getRunningProcessInformation${i} : JSON.stringify(data[i])`); + expect(typeof (data[i].pid)).assertEqual("number"); + expect(data[i].pid).assertLarger(0); + expect(typeof (data[i].uid)).assertEqual("number"); + expect(data[i].uid).assertLarger(0); + expect(typeof (data[i].processName)).assertEqual("string"); + expect(data[i].processName.length).assertLarger(0); + expect(Array.isArray(data[i].bundleNames)).assertEqual(true); + expect(data[i].bundleNames.length).assertLarger(0); + } + done(); + }) + }) + + /* + * @tc.number SUB_AA_ApplicationContext_0100 + * @tc.name The form of a promise getRunningProcessInformation + * @tc.desc Function test + * @tc.level 3 + */ + it('SUB_AA_ApplicationContext_0100', 0, async function (done) { + TAG = 'SUB_AA_ApplicationContext_0100'; + await globalThis.applicationContext.getRunningProcessInformation().then((data)=>{ + console.log(`${TAG} getRunningProcessInformation data ${JSON.stringify(data.length)}`); + for (let i = 0; i < data.length; i++) { + console.log(`${TAG} getRunningProcessInformation${i} : JSON.stringify(data[i])`); + expect(typeof (data[i].pid)).assertEqual("number"); + expect(data[i].pid).assertLarger(0); + expect(typeof (data[i].uid)).assertEqual("number"); + expect(data[i].uid).assertLarger(0); + expect(typeof (data[i].processName)).assertEqual("string"); + expect(data[i].processName.length).assertLarger(0); + expect(Array.isArray(data[i].bundleNames)).assertEqual(true); + expect(data[i].bundleNames.length).assertLarger(0); + } + done(); + }).catch((err)=>{ + console.log(`${TAG} getRunningProcessInformation err ${JSON.stringify(err)}`); + expect().assertFail(); + done(); + }) + }) + + /* + * @tc.number SUB_AA_ApplicationContext_0200 + * @tc.name The form of a callback getRunningProcessInformation + * @tc.desc Function test + * @tc.level 3 + */ + it('SUB_AA_ApplicationContext_0200', 0, async function (done) { + TAG = 'SUB_AA_ApplicationContext_0200'; + globalThis.applicationContext.getRunningProcessInformation((err, data) => { + console.log(`${TAG} getRunningProcessInformation data ${JSON.stringify(data.length)} + err: ${JSON.stringify(err)}`); + for (let i = 0; i < data.length; i++) { + console.log(`${TAG} getRunningProcessInformation${i} : JSON.stringify(data[i])`); + expect(typeof (data[i].pid)).assertEqual("number"); + expect(data[i].pid).assertLarger(0); + expect(typeof (data[i].uid)).assertEqual("number"); + expect(data[i].uid).assertLarger(0); + expect(typeof (data[i].processName)).assertEqual("string"); + expect(data[i].processName.length).assertLarger(0); + expect(Array.isArray(data[i].bundleNames)).assertEqual(true); + expect(data[i].bundleNames.length).assertLarger(0); + } + done(); + }) + }) }) } diff --git a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/WantAgentCover.test.ets b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/WantAgentCover.test.ets index 7d9270e77..82f674b08 100644 --- a/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/WantAgentCover.test.ets +++ b/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/test/WantAgentCover.test.ets @@ -14,6 +14,7 @@ */ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import wantAgent from '@ohos.app.ability.wantAgent'; +import wantConstant from '@ohos.app.ability.wantConstant' var TAG export default function wantAgentCoverTest() { @@ -60,6 +61,8 @@ export default function wantAgentCoverTest() { }); setTimeout(() => { + expect(wantConstant.Params.ABILITY_BACK_TO_OTHER_MISSION_STACK) + .assertEqual('ability.params.backToOtherMissionStack'); expect(status).assertTrue(); expect(code1).assertEqual(2); done() -- GitLab