From 332652e020674ac85699614cc31f9be70b28e314 Mon Sep 17 00:00:00 2001 From: gaoxi785 Date: Fri, 18 Aug 2023 15:57:46 +0800 Subject: [PATCH] contact Signed-off-by: gaoxi785 --- telephony/telephonyjstest/BUILD.gn | 1 + .../actscontactstageapitest/AppScope/app.json | 16 + .../resources/base/element/string.json | 8 + .../resources/base/media/app_icon.png | Bin 0 -> 15458 bytes .../actscontactstageapitest/BUILD.gn | 43 + .../actscontactstageapitest/Test.json | 29 + .../src/main/ets/TestAbility/TestAbility.ets | 65 + .../src/main/ets/TestAbility/pages/Index.ets | 49 + .../ets/TestRunner/OpenHarmonyTestRunner.ts | 49 + .../entry/src/main/ets/test/List.test.ets | 20 + .../src/main/ets/test/contactstage.test.ets | 1638 +++++++++++++++++ .../entry/src/main/module.json | 46 + .../main/resources/base/element/color.json | 8 + .../main/resources/base/element/string.json | 16 + .../src/main/resources/base/media/icon.png | Bin 0 -> 15458 bytes .../resources/base/profile/test_pages.json | 5 + .../signature/openharmony_sx.p7b | Bin 0 -> 3540 bytes .../src/main/js/test/SmsMmsError.test.js | 3 - 18 files changed, 1993 insertions(+), 3 deletions(-) create mode 100644 telephony/telephonyjstest/actscontactstageapitest/AppScope/app.json create mode 100644 telephony/telephonyjstest/actscontactstageapitest/AppScope/resources/base/element/string.json create mode 100644 telephony/telephonyjstest/actscontactstageapitest/AppScope/resources/base/media/app_icon.png create mode 100644 telephony/telephonyjstest/actscontactstageapitest/BUILD.gn create mode 100644 telephony/telephonyjstest/actscontactstageapitest/Test.json create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/TestAbility.ets create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/pages/Index.ets create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/List.test.ets create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/contactstage.test.ets create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/module.json create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/color.json create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/string.json create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/media/icon.png create mode 100644 telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/profile/test_pages.json create mode 100644 telephony/telephonyjstest/actscontactstageapitest/signature/openharmony_sx.p7b diff --git a/telephony/telephonyjstest/BUILD.gn b/telephony/telephonyjstest/BUILD.gn index 5fcf47d4f..3f4f81dab 100644 --- a/telephony/telephonyjstest/BUILD.gn +++ b/telephony/telephonyjstest/BUILD.gn @@ -14,6 +14,7 @@ group("telephonyjstest") { testonly = true deps = [ + "actscontactstageapitest:ActsContactStageAPITest", "call_manager:call_manager", "cellular_data:cellular_data", "netmanager_base:netmanager_base", diff --git a/telephony/telephonyjstest/actscontactstageapitest/AppScope/app.json b/telephony/telephonyjstest/actscontactstageapitest/AppScope/app.json new file mode 100644 index 000000000..97725aa72 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/AppScope/app.json @@ -0,0 +1,16 @@ +{ + "app": { + "bundleName": "com.example.actscontactstageapitest", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:icon", + "label": "$string:app_name", + "minAPIVersion": 10, + "targetAPIVersion": 10, + "car": { + "apiCompatibleVersion": 10, + "singleUser": false + } + } +} diff --git a/telephony/telephonyjstest/actscontactstageapitest/AppScope/resources/base/element/string.json b/telephony/telephonyjstest/actscontactstageapitest/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..0d1f12ea9 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string":[ + { + "name":"app_name", + "value":"LifecycleTest" + } + ] +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/AppScope/resources/base/media/app_icon.png b/telephony/telephonyjstest/actscontactstageapitest/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(U6LQxPK-@LYcI@ROQlUqYfv9)@pP1D z^PGd_#Bn=j?h;(A2YP*^zO{q!-impmO*sshM)pxC{aRnxpLI$OVz(ElViw;?d~N$q$^VbIP>sa0q0)N~6iq!!fI>IcRGDdADCq?$^K61=g>C{IY# z;~=ksR37V9Yzp%@sRJ8ebxt7()agtNj zFX-#JY(~NHNecrS7DT}|J>yQfr$J*Ww>;PMMSj|?ifs>m;mOpS;hB2QJtAw(Aw2S_ zSHe`NtQeUBZN(O=rgRoV{J5F+Ft*YQkw zwtwkXsI}a&=y|SSZxEX3H8VG5pvDb*DypGrx7RHOJ0i^ra2-P!NRFO4D{+Ry>|JXL zGjQaB$9omq%IUE9OgQbqtQMtUxwo448O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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/telephony/telephonyjstest/actscontactstageapitest/BUILD.gn b/telephony/telephonyjstest/actscontactstageapitest/BUILD.gn new file mode 100644 index 000000000..fc2cbc0e4 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/BUILD.gn @@ -0,0 +1,43 @@ +# Copyright (c) 2023 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("ActsContactStageAPITest") { + hap_profile = "entry/src/main/module.json" + js_build_mode = "debug" + deps = [ + ":ActsTest_js_assets", + ":ActsTest_resources", + ] + ets2abc = true + certificate_profile = "signature/openharmony_sx.p7b" + hap_name = "ActsContactStageAPITest" + subsystem_name = "telephony" + part_name = "call_manager" +} + +ohos_app_scope("ActsTest_app_profile") { + app_profile = "AppScope/app.json" + sources = [ "AppScope/resources" ] +} + +ohos_js_assets("ActsTest_js_assets") { + source_dir = "entry/src/main/ets" +} + +ohos_resources("ActsTest_resources") { + sources = [ "entry/src/main/resources" ] + deps = [ ":ActsTest_app_profile" ] + hap_profile = "entry/src/main/module.json" +} diff --git a/telephony/telephonyjstest/actscontactstageapitest/Test.json b/telephony/telephonyjstest/actscontactstageapitest/Test.json new file mode 100644 index 000000000..26f815918 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/Test.json @@ -0,0 +1,29 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "OHJSUnitTest", + "test-timeout": "600000", + "bundle-name": "com.example.actscontactstageapitest", + "module-name": "entry_test", + "shell-timeout": "600000", + "testcase-timeout": 70000 + }, + "kits": [ + { + "test-file-name": [ + "ActsContactStageAPITest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "power-shell wakeup", + "power-shell setmode 602", + "uinput -T -m 200 1000 200 200 200", + "param set persist.ace.testmode.enabled 1" + ] + } + ] +} diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/TestAbility.ets b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/TestAbility.ets new file mode 100644 index 000000000..6875e6870 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/TestAbility.ets @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2023 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 UIAbility from '@ohos.app.ability.UIAbility'; +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; +import hilog from '@ohos.hilog'; +import { Hypium } from '@ohos/hypium'; +import testsuite from '../test/List.test'; +import window from '@ohos.window'; + +export default class TestAbility extends UIAbility { + onCreate(want, launchParam) { + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onCreate'); + hilog.info(0x0000, 'testTag', '%{public}s', 'want param:' + JSON.stringify(want) ?? ''); + hilog.info(0x0000, 'testTag', '%{public}s', 'launchParam:' + JSON.stringify(launchParam) ?? ''); + + var abilityDelegator: any + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + var abilityDelegatorArguments: any + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments(); + hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!'); + Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite); + globalThis.context = this.context; + } + + onDestroy() { + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onDestroy'); + } + + onWindowStageCreate(windowStage: window.WindowStage) { + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); + windowStage.loadContent('TestAbility/pages/Index', (err, data) => { + if (err.code) { + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + return; + } + hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s', + JSON.stringify(data) ?? ''); + }); + } + + onWindowStageDestroy() { + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageDestroy'); + } + + onForeground() { + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onForeground'); + } + + onBackground() { + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onBackground'); + } +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/pages/Index.ets b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/pages/Index.ets new file mode 100644 index 000000000..f8e493a1b --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/pages/Index.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2023 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 hilog from '@ohos.hilog'; + +@Entry +@Component +struct Index { + aboutToAppear() { + hilog.info(0x0000, 'testTag', '%{public}s', '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/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts new file mode 100644 index 000000000..31dba8e37 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts @@ -0,0 +1,49 @@ +import hilog from '@ohos.hilog'; +import TestRunner from '@ohos.application.testRunner'; +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; + +var abilityDelegator = undefined; +var abilityDelegatorArguments = undefined; + +async function onAbilityCreateCallback() { + hilog.info(0x0000, 'testTag', '%{public}s', 'onAbilityCreateCallback'); +} + +async function addAbilityMonitorCallback(err: any) { + hilog.info(0x0000, 'testTag', 'addAbilityMonitorCallback : %{public}s', JSON.stringify(err) ?? ''); +} + +export default class OpenHarmonyTestRunner implements TestRunner { + constructor() { + } + + onPrepare() { + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner OnPrepare '); + } + + async onRun() { + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun run'); + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments(); + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + let testAbilityName = abilityDelegatorArguments.bundleName + '.TestAbility'; + let lMonitor = { + abilityName: testAbilityName, + onAbilityCreate: onAbilityCreateCallback, + }; + abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback); + let cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName; + let debug = abilityDelegatorArguments.parameters['-D']; + if (debug == 'true') + { + cmd += ' -D'; + } + hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd); + abilityDelegator.executeShellCommand(cmd, + (err: any, d: any) => { + hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? ''); + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.stdResult ?? ''); + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.exitCode ?? ''); + }); + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun end'); + } +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/List.test.ets b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/List.test.ets new file mode 100644 index 000000000..83835cc8d --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/List.test.ets @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2023 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 contactStage from './contactstage.test'; + +export default function testsuite() { + contactStage(); +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/contactstage.test.ets b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/contactstage.test.ets new file mode 100644 index 000000000..2ffef4484 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/test/contactstage.test.ets @@ -0,0 +1,1638 @@ +/* + * Copyright (c) 2023 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 contact from '@ohos.contact'; +import { afterAll, beforeAll, describe, expect, it } from '@ohos/hypium'; +import uitest from '@ohos.UiTest'; +import abilityAccessCtrl from '@ohos.abilityAccessCtrl' + +export default function ContactInterfaceStageTest() { + + describe('ContactInterfaceStageTest', function () { + + function sleep(numberMillis) { + var now = new Date(); + var exitTime = now.getTime() + numberMillis; + while (true) { + now = new Date(); + if (now.getTime() > exitTime) return; + } + } + + beforeAll( async function () { + console.info("beforeAll case"); + try { + let permissions = ["ohos.permission.WRITE_CONTACTS", "ohos.permission.READ_CONTACTS"]; + let atManager = abilityAccessCtrl.createAtManager(); + atManager.requestPermissionsFromUser(globalThis.context, permissions, (err, result) => { + if (err) { + console.info('getPermission failed: ' + JSON.stringify(err)); + } else { + console.info('getPermission suc: ' + JSON.stringify(result)); + } + }); + + let driver = await uitest.Driver.create(); + sleep(500); + + for (let i = 0; i < 5; i++) { + await sleep(500); + console.info("driver is " + JSON.stringify(driver)); + let button = await driver.findComponent(uitest.ON.text('允许')); + if (button != undefined) { + console.info("button is " + JSON.stringify(button)); + await button.click(); + } + } + console.info("getPermission end"); + } catch (error) { + console.info(`getPermission failed, error: ${error}`); + } + sleep(3000); + }); + + afterAll(async function () { + contact.queryContacts(globalThis.context, (err, data) => { + if (err) { + console.info("afterAll queryContacts err = " + JSON.stringify(err)); + expect(false).assertTrue(); + return; + } + console.info("afterAll queryContacts data = " + JSON.stringify(data)); + if (data.length == 0) { + return; + } + for (var i = 0;i < data.length; i++) { + let promise = contact.deleteContact(globalThis.context, data[i].key); + promise.then(() => { + console.info("afterAll deleteContact success"); + }).catch((err) => { + console.info("afterAll deleteContact err = " + JSON.stringify(err)); + }); + } + sleep(3000); + }); + }); + + var contactData = { + id: 0, + key: "0", + contactAttributes: { + attributes: [contact.Attribute.ATTR_CONTACT_EVENT, contact.Attribute.ATTR_EMAIL, + contact.Attribute.ATTR_GROUP_MEMBERSHIP, + contact.Attribute.ATTR_IM, contact.Attribute.ATTR_NAME, contact.Attribute.ATTR_NICKNAME, + contact.Attribute.ATTR_NOTE, contact.Attribute.ATTR_ORGANIZATION, contact.Attribute.ATTR_PHONE, + contact.Attribute.ATTR_PORTRAIT, contact.Attribute.ATTR_POSTAL_ADDRESS, + contact.Attribute.ATTR_RELATION, + contact.Attribute.ATTR_SIP_ADDRESS, contact.Attribute.ATTR_WEBSITE] + }, + emails: [{ + email: "13800000000@email.com", labelName: "自定义邮箱", labelId: 1, displayName: "emailDisplayName" + }], + events: [{ + eventDate: "event", labelName: "自定义event", labelId: 2 + }], + groups: [{ + groupId: 1, title: "群组" + }], + imAddresses: [{ + imAddress: "imAddress", labelName: "自定义", labelId: 3 + }], + phoneNumbers: [{ + phoneNumber: "13800000000", labelName: "自定义phoneNumbers", labelId: 4 + }], + portrait: { + uri: "content://head/0" + }, + postalAddresses: [{ + city: "南京", + country: "中国", + labelName: "labelName", + neighborhood: "neighborhood", + pobox: "pobox", + postalAddress: "postalAddress", + postcode: "postcode", + region: "region", + street: "street", + labelId: 5 + }], + relations: [{ + relationName: "relationName", labelName: "自定义relationName", labelId: 6 + }], + sipAddresses: [{ + sipAddress: "sipAddress", labelName: "自定义sipAddress", labelId: 6 + }], + websites: [{ + website: "website" + }], + name: { + familyName: "familyName", + familyNamePhonetic: "familyNamePhonetic", + fullName: "小李", + givenName: "givenName", + givenNamePhonetic: "givenNamePhonetic", + middleName: "middleName", + middleNamePhonetic: "middleNamePhonetic", + namePrefix: "namePrefix", + nameSuffix: "nameSuffix" + }, + nickName: { + nickName: "nickName" + }, + note: { + noteContent: "note" + }, + organization: { + name: "TT", title: "开发" + } + }; + + var holder = { + holderId: 1, + bundleName: "com.ohos.contacts", + displayName: "phone" + }; + var attr = { + attributes: [contact.Attribute.ATTR_CONTACT_EVENT, contact.Attribute.ATTR_EMAIL, + contact.Attribute.ATTR_GROUP_MEMBERSHIP, + contact.Attribute.ATTR_IM, contact.Attribute.ATTR_NAME, contact.Attribute.ATTR_NICKNAME, + contact.Attribute.ATTR_NOTE, contact.Attribute.ATTR_ORGANIZATION, contact.Attribute.ATTR_PHONE, + contact.Attribute.ATTR_PORTRAIT, contact.Attribute.ATTR_POSTAL_ADDRESS, + contact.Attribute.ATTR_RELATION, + contact.Attribute.ATTR_SIP_ADDRESS, contact.Attribute.ATTR_WEBSITE] + }; + + /** + * @tc.number SUB_Telephony_ContactsApi_query_key_test_0100 + * @tc.name Query key information + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_query_key_test_0100", 0, async function (done) { + var rawContactId = await contact.addContact(globalThis.context, contactData); + expect(rawContactId > 0).assertTrue(); + var holder = { + bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 + } + try { + var resultSet = await contact.queryKey(globalThis.context, rawContactId, holder); + console.info("SUB_Telephony_ContactsApi_query_key_test_0100 : query resultSet = " + JSON.stringify(resultSet)); + expect(JSON.stringify(resultSet) === null).assertFalse(); + done(); + } catch (error) { + console.info("SUB_Telephony_ContactsApi_query_key_test_0100 query error = " + error); + done(); + } + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_query_key_test_0200 + * @tc.name Query key information + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_query_key_test_0200", 0, async function (done) { + var rawContactId = await contact.addContact(globalThis.context, contactData); + expect(rawContactId > 0).assertTrue(); + console.info("SUB_Telephony_ContactsApi_query_key_test_0200 : query gRawContactId = " + rawContactId); + try { + var resultSet = await contact.queryKey(globalThis.context, rawContactId); + console.info("SUB_Telephony_ContactsApi_query_key_test_0200 : query resultSet = " + JSON.stringify(resultSet)); + expect(JSON.stringify(resultSet) === null).assertFalse(); + done(); + } catch (error) { + console.info("SUB_Telephony_ContactsApi_query_key_test_0200 query error = " + error); + done(); + } + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_insert_test_0100 + * @tc.name contactsApi_insert error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_insert_test_0100", 0, async function (done) { + var contactDataError = {}; + try { + var rawContactId = await contact.addContact(globalThis.context, contactDataError); + console.info("SUB_Telephony_ContactsApi_insert_test_0100 : rawContactId = " + rawContactId); + expect(rawContactId == -1).assertTrue(); + done(); + } catch (error) { + console.info("SUB_Telephony_ContactsApi_insert_test_0100 : raw_contact insert error = " + error); + done(); + } + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_query_contact_test_0300 + * @tc.name contactsApi_query_contact error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_query_contact_test_0300", 0, async function (done) { + var queryId = "-1"; + try { + var resultSet = await contact.queryContact(globalThis.context, queryId); + if (resultSet == null) { + console.info("SUB_Telephony_ContactsApi_query_contact_test_0300 is null"); + } + if (resultSet == undefined) { + console.info("SUB_Telephony_ContactsApi_query_contact_test_0300 is undefined"); + } + console.info("SUB_Telephony_ContactsApi_query_contact_test_0300 : updateCode = " + JSON.stringify(resultSet)); + expect(resultSet == undefined).assertTrue(); + done(); + } catch (error) { + console.info("SUB_Telephony_ContactsApi_query_contact_test_0300 query error = " + error); + done(); + } + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_query_email_test_0400 + * @tc.name contactsApi_query_email error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_query_email_test_0400", 0, async function (done) { + var email = "email2222"; + try { + var resultSet = await contact.queryContactsByEmail(globalThis.context, email); + console.info("SUB_Telephony_ContactsApi_query_email_test_0400 : query resultSet = " + JSON.stringify(resultSet)); + expect(resultSet.length == 0).assertTrue(); + done(); + } catch (error) { + console.info("SUB_Telephony_ContactsApi_query_email_test_0400 query error = " + error); + done(); + } + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_query_phoneNumber_test_0500 + * @tc.name contactsApi_query_phoneNumber error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_query_phoneNumber_test_0500", 0, async function (done) { + var phoneNumber = "19999999"; + try { + var resultSet = await contact.queryContactsByPhoneNumber(globalThis.context, phoneNumber); + console.info( + "SUB_Telephony_ContactsApi_query_phoneNumber_test_0500 : query resultSet = " + JSON.stringify(resultSet)); + expect(resultSet.length == 0).assertTrue(); + done(); + } catch (error) { + console.info("SUB_Telephony_ContactsApi_query_phoneNumber_test_0500 query error = " + error); + done(); + } + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_query_key_test_0600 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_query_key_test_0600", 0, async function (done) { + var idTest = -1; + try { + var resultSet = await contact.queryKey(globalThis.context, idTest); + console.info("SUB_Telephony_ContactsApi_query_key_test_0600 : query resultSet = " + JSON.stringify(resultSet)); + expect(resultSet.length == 0).assertTrue(); + done(); + } catch (error) { + console.info("SUB_Telephony_ContactsApi_query_key_test_0600 query error = " + error); + done(); + } + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_addContact_test_0100 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_addContact_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_addContact_test_0100 addContact err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_addContact_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_addContact_test_0100 queryKey err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_addContact_test_0100 keyData = " + JSON.stringify(keyData)); + contact.deleteContact(globalThis.context, keyData, (keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_addContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.log('deleteContact success ' + JSON.stringify(keyData)); + done(); + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_addContact_test_0200 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_addContact_test_0200", 0, async function (done) { + let promise = contact.addContact(globalThis.context, contactData); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_addContact_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("v err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_addContact_test_0200 keyData = " + JSON.stringify(keyData)); + let promise = contact.deleteContact(globalThis.context, keyData); + promise.then(() => { + console.log(`deleteContact success`); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_addContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_addContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContact_test_0100 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContact_test_0100", 0, async function (done) { + var holder = { + bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 + } + expect(holder.bundleName === null).assertFalse(); + expect(holder.displayName === null).assertFalse(); + expect(holder.holderId != 0).assertTrue(); + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0100 keyData = " + JSON.stringify(keyData)); + contact.queryContact(globalThis.context, keyData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0100 data = " + JSON.stringify(data)); + expect(data.emails[0].email != '').assertTrue(); + done(); + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContact_test_0200 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContact_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0200 keyData = " + JSON.stringify(keyData)); + contact.queryContact(globalThis.context, keyData, holder, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0200 data = " + JSON.stringify(data)); + done(); + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContact_test_0300 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContact_test_0300", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0300 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0300 keyData = " + JSON.stringify(keyData)); + contact.queryContact(globalThis.context, keyData, attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0300 data = " + JSON.stringify(data)); + expect(data.emails[0].email != '').assertTrue(); + done(); + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContact_test_0400 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContact_test_0400", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0400 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0400 keyData = " + JSON.stringify(keyData)); + contact.queryContact(globalThis.context, keyData, holder, attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0400 data = " + JSON.stringify(data)); + done(); + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContact_test_0500 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContact_test_0500", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0500 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContact_test_0500 keyData = " + JSON.stringify(keyData)); + let promise = contact.queryContact(globalThis.context, keyData, holder, attr); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0500 data = " + JSON.stringify(data)); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryContact_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContacts_test_0100 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContacts_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContacts(globalThis.context, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0100 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContacts_test_0200 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContacts_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContacts(globalThis.context, holder, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0200 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContacts_test_0300 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContacts_test_0300", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0300 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContacts(globalThis.context, attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0300 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContacts_test_0400 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContacts_test_0400", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0400 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContacts(globalThis.context, holder, attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0400 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContacts_test_0500 + * @tc.name contactsApi_query_key error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContacts_test_0500", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0500 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + let promise = contact.queryContacts(globalThis.context, holder, attr); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0500 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryContacts_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0100 + * @tc.name contactsApi_query_ContactsByPhoneNumber error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByPhoneNumber(globalThis.context, '13800000000', (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0100 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0200 + * @tc.name contactsApi_query_ContactsByPhoneNumber error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByPhoneNumber(globalThis.context, '13800000000', holder, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0200 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0300 + * @tc.name contactsApi_query_ContactsByPhoneNumber error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0300", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0300 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByPhoneNumber(globalThis.context, '13800000000', attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0300 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0400 + * @tc.name contactsApi_query_ContactsByPhoneNumber error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0400", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0400 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByPhoneNumber(globalThis.context, '13800000000', holder, attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0400 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0500 + * @tc.name contactsApi_query_ContactsByPhoneNumber error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0500", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0500 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + let promise = contact.queryContactsByPhoneNumber(globalThis.context, '13800000000', holder, attr); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0500 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryContactsByPhoneNumber_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByEmail_test_0100 + * @tc.name contactsApi_query_queryContactsByEmail error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByEmail(globalThis.context, '13800000000@email.com', (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("v data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByEmail_test_0200 + * @tc.name contactsApi_query_queryContactsByEmail error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByEmail(globalThis.context, '13800000000@email.com', holder, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0200 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByEmail_test_0300 + * @tc.name contactsApi_query_queryContactsByEmail error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0300", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0300 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByEmail(globalThis.context, '13800000000@email.com', attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0300 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByEmail_test_0400 + * @tc.name contactsApi_query_queryContactsByEmail error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0400", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0400 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryContactsByEmail(globalThis.context, '13800000000@email.com', holder, attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0400 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryContactsByEmail_test_0500 + * @tc.name contactsApi_query_queryContactsByEmail error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0500", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0500 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + let promise = contact.queryContactsByEmail(globalThis.context, '13800000000@email.com', holder, attr); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0500 data = " + JSON.stringify(data)); + expect(data.length > 0).assertTrue(); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryContactsByEmail_test_0500 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryGroups_test_0100 + * @tc.name contactsApi_query_queryGroups error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryGroups_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryGroups(globalThis.context, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0100 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryGroups_test_0200 + * @tc.name contactsApi_query_queryGroups error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryGroups_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryGroups(globalThis.context, holder, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0200 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryGroups_test_0300 + * @tc.name contactsApi_query_queryGroups error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryGroups_test_0300", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0300 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + let promise = contact.queryGroups(globalThis.context, holder); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0300 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryGroups_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryHolders_test_0100 + * @tc.name contactsApi_query_queryHolders error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryHolders_test_0100", 0, async function (done) { + contact.queryHolders(globalThis.context, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryHolders_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryHolders_test_0100 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryHolders_test_0200 + * @tc.name contactsApi_query_queryHolders error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryHolders_test_0200", 0, async function (done) { + let promise = contact.queryHolders(globalThis.context as Context); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_queryHolders_test_0200 data = " + JSON.stringify(data)); + expect(data.length >= 0).assertTrue(); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryHolders_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryKey_test_0100 + * @tc.name contactsApi_query_queryKey error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryKey_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryKey_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryKey_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryKey_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryKey_test_0100 keyData = " + JSON.stringify(keyData)); + expect(keyData != '').assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryKey_test_0200 + * @tc.name contactsApi_query_queryKey error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryKey_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryKey_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryKey_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, holder, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryKey_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryKey_test_0200 keyData = " + JSON.stringify(keyData)); + expect(keyData != '').assertTrue(); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryKey_test_0300 + * @tc.name contactsApi_query_queryKey error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryKey_test_0300", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryKey_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryKey_test_0300 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + let promise = contact.queryKey(globalThis.context, data, holder); + promise.then((keyData) => { + console.info("SUB_Telephony_ContactsApi_queryKey_test_0300 keyData = " + JSON.stringify(keyData)); + expect(keyData != '').assertTrue(); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryKey_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryMyCard_test_0100 + * @tc.name contactsApi_query_queryMyCard error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryMyCard_test_0100", 0, async function (done) { + contact.queryMyCard(globalThis.context, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryMyCard_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryMyCard_test_0100 data = " + JSON.stringify(data)); + done(); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryMyCard_test_0200 + * @tc.name contactsApi_query_queryMyCard error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryMyCard_test_0200", 0, async function (done) { + contact.queryMyCard(globalThis.context, attr, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_queryMyCard_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_queryMyCard_test_0200 data = " + JSON.stringify(data)); + done(); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_queryMyCard_test_0300 + * @tc.name contactsApi_query_queryMyCard error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_queryMyCard_test_0300", 0, async function (done) { + let promise = contact.queryMyCard(globalThis.context, attr); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_queryMyCard_test_0300 data = " + JSON.stringify(data)); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_queryMyCard_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_updateContact_test_0100 + * @tc.name contactsApi_query_updateContact error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_updateContact_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 keyData = " + JSON.stringify(keyData)); + contact.updateContact(globalThis.context, { + id: data, + key: keyData, + emails: [{ + email: "13800000001@email.com", + labelName: "自定义邮箱", + labelId: 1, + displayName: "emailDisplayName" + }] + }, (err) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.log('updateContact success'); + contact.queryKey(globalThis.context, data, (err, newKey) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 newKey = " + JSON.stringify(newKey)); + contact.queryContact(globalThis.context, newKey, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0100 data = " + JSON.stringify(data)); + expect(data.emails[0].email == "13800000001@email.com").assertTrue(); + done(); + }); + }); + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_updateContact_test_0200 + * @tc.name contactsApi_query_updateContact error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_updateContact_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 keyData = " + JSON.stringify(keyData)); + contact.updateContact(globalThis.context, { + id: data, + key: keyData, + emails: [{ + email: "13800000001@email.com", + labelName: "自定义邮箱", + labelId: 1, + displayName: "emailDisplayName" + }] + }, attr, (err) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.log('updateContact success'); + contact.queryKey(globalThis.context, data, (err, newKey) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 newKey = " + JSON.stringify(newKey)); + contact.queryContact(globalThis.context, newKey, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0200 data = " + JSON.stringify(data)); + expect(data.emails[0].email == "13800000001@email.com").assertTrue(); + done(); + }); + }); + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_updateContact_test_0300 + * @tc.name contactsApi_query_updateContact error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_updateContact_test_0300", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.queryKey(globalThis.context, data, (err, keyData) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 keyData = " + JSON.stringify(keyData)); + let promise = contact.updateContact(globalThis.context, { + id: data, + key: keyData, + emails: [{ + email: "13800000001@email.com", + labelName: "自定义邮箱", + labelId: 1, + displayName: "emailDisplayName" + }] + }, attr); + promise.then(() => { + console.log('updateContact success'); + contact.queryKey(globalThis.context, data, (err, newKey) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 newKey = " + JSON.stringify(newKey)); + contact.queryContact(globalThis.context, newKey, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 data = " + JSON.stringify(data)); + expect(data.emails[0].email == "13800000001@email.com").assertTrue(); + done(); + }); + }); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0300 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_updateContact_test_0400 + * @tc.name contactsApi_query_updateContact error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_updateContact_test_0400", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0400 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.isLocalContact(globalThis.context, data, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_updateContact_test_0400 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_updateContact_test_0400 data = " + JSON.stringify(data)); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_isLocalContact_test_0200 + * @tc.name contactsApi_query_isLocalContact error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_isLocalContact_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_isLocalContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_isLocalContact_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + let promise = contact.isLocalContact(globalThis.context, data); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_isLocalContact_test_0200 data = " + JSON.stringify(data)); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_isLocalContact_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_isMyCard_test_0100 + * @tc.name contactsApi_query_isMyCard error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_isMyCard_test_0100", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0100 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + contact.isMyCard(globalThis.context, data, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0100 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0100 data = " + JSON.stringify(data)); + done(); + }); + }); + sleep(500); + }); + + /** + * @tc.number SUB_Telephony_ContactsApi_isMyCard_test_0200 + * @tc.name contactsApi_query_isMyCard error + * @tc.desc Function test + */ + it("SUB_Telephony_ContactsApi_isMyCard_test_0200", 0, async function (done) { + contact.addContact(globalThis.context, contactData, (err, data) => { + if (err) { + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + } + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0200 data = " + JSON.stringify(data)); + expect(data > 0).assertTrue(); + let promise = contact.isMyCard(globalThis.context, data); + promise.then((data) => { + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0200 data = " + JSON.stringify(data)); + done(); + }).catch((err) => { + console.info("SUB_Telephony_ContactsApi_isMyCard_test_0200 err = " + JSON.stringify(err)); + expect(false).assertTrue(); + done(); + return; + }); + }); + sleep(500); + }); + }); +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/module.json b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/module.json new file mode 100644 index 000000000..8747757bc --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/module.json @@ -0,0 +1,46 @@ +{ + "module": { + "name": "entry_test", + "type": "feature", + "description": "$string:module_test_desc", + "mainElement": "TestAbility", + "deviceTypes": [ + "tablet", + "default", + "phone" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:test_pages", + "uiSyntax": "ets", + "abilities": [ + { + "name": "TestAbility", + "srcEntrance": "./ets/TestAbility/TestAbility.ets", + "description": "$string:TestAbility_desc", + "icon": "$media:icon", + "label": "$string:TestAbility_label", + "exported": true, + "startWindowIcon": "$media:icon", + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ], + "requestPermissions": [ + { + "name": "ohos.permission.WRITE_CONTACTS" + }, + { + "name": "ohos.permission.READ_CONTACTS" + } + ] + } +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/color.json b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/color.json new file mode 100644 index 000000000..1bbc9aa96 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "white", + "value": "#FFFFFF" + } + ] +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/string.json b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..65d8fa5a7 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "module_test_desc", + "value": "test ability description" + }, + { + "name": "TestAbility_desc", + "value": "the test ability" + }, + { + "name": "TestAbility_label", + "value": "test label" + } + ] +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/media/icon.png b/telephony/telephonyjstest/actscontactstageapitest/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^>BKcJpW(i@*S9!$UCqmcd z(U6LQxPK-@LYcI@ROQlUqYfv9)@pP1D z^PGd_#Bn=j?h;(A2YP*^zO{q!-impmO*sshM)pxC{aRnxpLI$OVz(ElViw;?d~N$q$^VbIP>sa0q0)N~6iq!!fI>IcRGDdADCq?$^K61=g>C{IY# z;~=ksR37V9Yzp%@sRJ8ebxt7()agtNj zFX-#JY(~NHNecrS7DT}|J>yQfr$J*Ww>;PMMSj|?ifs>m;mOpS;hB2QJtAw(Aw2S_ zSHe`NtQeUBZN(O=rgRoV{J5F+Ft*YQkw zwtwkXsI}a&=y|SSZxEX3H8VG5pvDb*DypGrx7RHOJ0i^ra2-P!NRFO4D{+Ry>|JXL zGjQaB$9omq%IUE9OgQbqtQMtUxwo448OTeE6JEO(GROhuciWZ5BouJ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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/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/profile/test_pages.json b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/profile/test_pages.json new file mode 100644 index 000000000..9896fb184 --- /dev/null +++ b/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/resources/base/profile/test_pages.json @@ -0,0 +1,5 @@ +{ + "src": [ + "TestAbility/pages/Index" + ] +} \ No newline at end of file diff --git a/telephony/telephonyjstest/actscontactstageapitest/signature/openharmony_sx.p7b b/telephony/telephonyjstest/actscontactstageapitest/signature/openharmony_sx.p7b new file mode 100644 index 0000000000000000000000000000000000000000..aa986c1fbf951cfb116547cd7fe87a56c98779ee GIT binary patch literal 3540 zcmcgvd2kcg9kx#6fWTldgaS6=Fa>1Z>aZoJN!XQE7hcJdSGHwL%}QDw_G))6t-P`* zgouU&2vA51BwXe)&=}GJiE(E_NYX&bL7IfnP6|mK>S>`g7vy9@yK6gOGsz#F%%DHC z^E=*q-}}Aq_q}-_tNODtZ}v+2$}d%tTxok&^&-fso|j4_kO~Y}<}F@nmyj~KR06UJ z_I9GAJ*yz(S;e9y>Q*w5j4`w($b?9B1vK}TgC^pFLk*RJQlOrzPNiZY!88DEdB9{M zHHNV8r!O;vG$sQuY6uevAe}xOCLyDc&9$-O-~>sLM3NL71j}kdu_Tv>1yY>2-arPE zY>d$y8A%YLS4eCns8}e*wW%wXsA-1N1jsOx5Rn;7dSjVEYcS63^All?ObG5Wqe)+` z6WmMZsskxHM3I^p9cIMgA+nXE7?wkI)CBokaL919Yhh*~55 z5Y*;y6`N5n?yx${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zqeP+8&4 zEb5$=>m9py?e+G@f%CyO%hxHim)+aCecN@gxy8Mq?fm}n=jL>rwM|&55O_ogJn9|b z(G>FJ{X>!5#nT%kMvy_L9n2%qygQ2c0~DINp! zZTqgRT9tq8tu0emef7}dV{?kWx^kvx-8UNFo**EGh|~9S9QS{PUN3HUvOz@IN#lC_kFNx`MuFD$7koRbd7ua%K6cP zSe+Wi@CPdryS!a9H8-BE>wIO?ru>(v`z{t{Cw=?a`>wT#-gU$!*3YetysF=M-+QG{ zR)Pp5dq8-8fabe$i~~37;FnH&3{1H7(#exSLhQTukpxV-W#lQKQNpFD14hUI%5?^< zt{%+09hF0Bd2#prbq_0ND3sT>O|JW3jP7Xa+?ta(n|G|Gi0=8lTp;EVwe#x@3p*b@ Z)xOL&>6wkM&+ZsGY)X4+=O>q!{tpPGbR_@) literal 0 HcmV?d00001 diff --git a/telephony/telephonyjstest/sms_mms/sms_mms_error/src/main/js/test/SmsMmsError.test.js b/telephony/telephonyjstest/sms_mms/sms_mms_error/src/main/js/test/SmsMmsError.test.js index db24e2d6d..845c22391 100644 --- a/telephony/telephonyjstest/sms_mms/sms_mms_error/src/main/js/test/SmsMmsError.test.js +++ b/telephony/telephonyjstest/sms_mms/sms_mms_error/src/main/js/test/SmsMmsError.test.js @@ -126,7 +126,6 @@ describe('SmsMmsErrorTest', function () { it('Telephony_SmsMms_sendMessage_Promise_0100', 0, async function (done) { try { let sendCallback = function (err, data) { - expect(data.isLastPart).assertEqual(false); console.log(`sendCallback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); } let deliveryCallback = function (err, data) { @@ -162,7 +161,6 @@ describe('SmsMmsErrorTest', function () { it('Telephony_SmsMms_sendShortMessage_Promise_0100', 0, async function (done) { try { let sendCallback = function (err, data) { - expect(data.isLastPart).assertEqual(false); console.log(`sendCallback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); } let deliveryCallback = function (err, data) { @@ -204,7 +202,6 @@ describe('SmsMmsErrorTest', function () { it('Telephony_SmsMms_sendShortMessage_Async_0100', 0, async function (done) { try { let sendCallback = function (err, data) { - expect(data.isLastPart).assertEqual(false); console.log(`sendCallback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`); } let deliveryCallback = function (err, data) { -- GitLab