From d750de0a0a04deeff34370c59a700f675af620f9 Mon Sep 17 00:00:00 2001 From: zhangfuzhi Date: Wed, 7 Dec 2022 15:50:44 +0800 Subject: [PATCH] update .p7b Signed-off-by: zhangfuzhi --- .../call_manager_ims2_call/Test.json | 9 + .../signature/openharmony_sx.p7b | Bin 3443 -> 3540 bytes .../src/main/config.json | 48 +- .../src/main/js/test/CallManageAll.test.js | 63 +- .../src/main/js/test/List.test.js | 4 +- .../src/main/js/test/ObjectInterface_test.js | 571 ++++-------------- .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../src/main/config.json | 44 +- .../main/js/test/CellularDataAbnorma.test.js | 4 +- .../netmanager_base/dns/src/main/config.json | 4 +- .../netmanager_base/jshttp/Test.json | 2 +- .../jshttp/src/main/js/test/List.test.js | 12 +- .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../network_nopermission/src/main/config.json | 4 +- .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../network_nowifi/src/main/config.json | 4 +- .../network_wifi/signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../network_wifi/src/main/config.json | 4 +- .../register/signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../register/src/main/config.json | 46 +- .../socket/signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../socket/src/main/config.json | 46 +- .../system_fetch/src/main/config.json | 4 +- .../entry/src/main/config.json | 44 +- .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../entry/src/main/config.json | 40 +- .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../src/main/config.json | 44 +- .../main/js/test/NetworkSearchErrors.test.js | 5 - .../observer/entry/src/main/config.json | 2 +- .../observer/signature/openharmony_sx.p7b | Bin 3443 -> 3425 bytes .../radiostatistic/entry/src/main/config.json | 46 +- .../src/main/ets/test/CallJsunit.test.ets | 115 +--- .../main/ets/test/RadioSecondJsunit.test.ets | 21 - .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../src/main/config.json | 50 +- .../src/main/js/test/SimManager.test.js | 16 - .../signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../sms_mms_error/src/main/config.json | 50 +- .../src/main/js/test/SmsMmsError.test.js | 14 +- .../call_manager/signature/openharmony_sx.p7b | Bin 3443 -> 3427 bytes .../call_manager/src/main/config.json | 42 +- .../src/main/js/test/CallManagerTest.test.js | 19 - .../signature/openharmony_sx.p7b | Bin 3443 -> 3536 bytes .../cellular_data/src/main/config.json | 38 +- .../PdpProfileDataStorageFunction.test.js | 2 +- 48 files changed, 185 insertions(+), 1232 deletions(-) diff --git a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/Test.json b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/Test.json index b6f449333..eeb54779d 100644 --- a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/Test.json +++ b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/Test.json @@ -15,6 +15,15 @@ ], "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/call_manager/call_manager_ims2_call/signature/openharmony_sx.p7b b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..f6d6b16852a2899e31cc7ea0c5ae396f62dacc8a 100644 GIT binary patch delta 416 zcmew?bw%32po#Ya8>d#AN85K^Ms}tJO}qzzLVKAQ84Y<2xY;-p+B_IjnOT?^4VqXB z5egX>G_fYJG_l5QbjV|=&(Fv&)=Nw-DNatz$;nO3OH5BK%FHb`0&z=Hi%XPrloAVa zl&qBU@{4j4bHLmJ-L%xilG377pfFH-JVYu!v7kVy7N|Tqr&!6VS_x=CetBw&E`%Sg z1h%OlwJ0~UxHvOEPcJ;kGsIOp-r3(T#L+n<7-%xOiXc}<7leH5=5H)k>|BlpO^mic zKN@6DPGn7;JfFv@-q6Uv+`!nx$j~6lKp*Z=P8LHY7KP%8bGo9eRU_I?RZGSGXIb=E zSxL{hv-4aItX!gYcX!3o{doyMZf{f>DOvrn0Zg=V@%yOScJp*_!wL z<0{RiDF;F&&Od+3X@87KkzxM>C57D^bB$a>?z3BF3klx&z>yoHY(3+9sz2LeMrVUr E02_mhu>b%7 delta 320 zcmca2{aMPvpour1jZ>@5qwPB{BRkWACf)>~Pz)0zqam*WHydX{n+IbmGYb==K@%%K zLLuXVCRPTPCYC=N9r9Q_{0ma^JQ9m?^Ybe85(^6SN>YnUlysC53v!gKl!_~hOHy;= zlksbTGY>0X^nQv4Ap0c-2n==1s>>lZ8SJN-QCtgulkb0qW%GTUXQyGLG teH3^DR5CAOqv;u@1?xioexABs_&w_?@2&HzRhBazeBN+&+e7v>d;t0IZQcL? diff --git a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json index ffe06738b..8a56d8878 100644 --- a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json +++ b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/config.json @@ -19,8 +19,8 @@ "mainAbility": ".MainAbility", "srcPath":"", "deviceType": [ - "tablet", - "default", + "tablet", + "default", "phone" ], "distro": { @@ -67,53 +67,13 @@ } ], "reqPermissions": [ - { - "name": "ohos.permission.LOCATION", - "reason": "need use ohos.permission.LOCATION" - }, - { - "name":"ohos.permission.SET_TELEPHONY_STATE", - "reason":"need use ohos.permission.SET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.GET_TELEPHONY_STATE", - "reason":"need use ohos.permission.GET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.PLACE_CALL", - "reason":"need use ohos.permission.PLACE_CALL" - }, - { - "name":"ohos.permission.READ_CONTACTS", - "reason":"need use ohos.permission.READ_CONTACTS" - }, { "name":"ohos.permission.WRITE_CONTACTS", "reason":"need use ohos.permission.WRITE_CONTACTS" - }, - { - "name":"ohos.permission.SEND_MESSAGES", - "reason":"need use ohos.permission.SEND_MESSAGES" - }, - { - "name":"ohos.permission.RECEIVE_SMS", - "reason":"need use ohos.permission.RECEIVE_SMS" - }, - { - "name":"ohos.permission.READ_CALL_LOG", - "reason":"need use ohos.permission.READ_CALL_LOG" - }, - { - "name":"ohos.permission.GET_NETWORK_INFO", - "reason":"need use ohos.permission.GET_NETWORK_INFO" - }, - { - "name":"ohos.permission.INTERNET", - "reason":"need use ohos.permission.INTERNET" }, { - "name":"ohos.permission.GRANT_SENSITIVE_PERMISSIONS", - "reason":"need use ohos.permission.GRANT_SENSITIVE_PERMISSIONS" + "name":"ohos.permission.READ_CONTACTS", + "reason":"need use ohos.permission.READ_CONTACTS" } ], "js": [ diff --git a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js index 8397dc532..16bc74665 100644 --- a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js +++ b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js @@ -19,74 +19,27 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from import { AUTO_ACCEPT_NUMBER, - AUTO_ACCEPT_NUMBER2, - PHONE_NUMBER_LENGTH_11, CALL_STATUS_DIALING, - CALL_ID_NOT_EXIST, CALL_STATE_UNKNOWN, CALL_STATE_IDLE, DEFAULT_SLOT_ID, - CALL_MODE_IMS, - SLOT_ID_INVALID, - PHONE_LIST2, - RTT_MSG, - CALL_MODE_SEND_RECEIVE, - POS_700, - POS_10, - POS_LENGTH_300, - POS_LENGTH_600, - DEVICE_EARPIECE, - BOUNDARY_NUMBER_INT, - SENT_STRING_C, - MINUS_VALUE, - PHONE_NUMBER_LONG, - NULL_PHONE_NUMBER, - DIAL_CARRIER_TYPE, - DIAL_SCENCE_CALL_PRIVILEGED, MEDIA_TYPE_VOICE, - ROTATION_MINUS_1, - IMAGE_LOCAL_ERROR_PATH, - POS_Z_ERROR, - RESTRICTION_TYPE_ROAMING_INCOMING, - RESTRICTION_MODE_ACTIVATION, - RIGHT_PASSWORD, - RESTRICTION_TYPE_ALL_INCOMING, - TRANSFER_TYPE_NOT_REACHABLE, - TRANSFER_TYPE_UNCONDITIONAL, - PHONE_NUMBER_AREA_LAND, - CALL_TRANSFER_DISABLE, - TRANSFER_TYPE_NO_REPLY, - COMMAND_CALL_ERROR4, - COMMAND_CALL_ERROR, - CARMER_ID_NOT_EXIT, - ZOOM_RATIO_MINUS_1_0, - DIAL_SCENCE_CALL_NORMAL, DIAL_TYPE_OTT, - EVENT_OTT_FUNCTION_UNSUPPORTED, TEL_CONFERENCE_IDLE } from './lib/Const.js'; import {toString} from './lib/ApiToPromise.js'; import { - scenceInCalling, - hangupCall2, hangupCall, - callDetailsChangeOn, callId as gloabCallId, - reachState, - callDetailsChangeOff, - reachCallEventState + callDetailsChangeOff } from './lib/ScenceInCalling.js'; -const GETMAIN_CALLID_ERRO = -1; -const REJECT_MESSAGE_STR = 'Hi,hello?'; -const REJECT_MESSAGE_NUM = 1234567890123456789012345678901234567890; -const ERR_SLOT_ID = -1; -const SLOTID = 0; -const THE_THREE_NUMBER = '112'; -const DIAL_TYPE_ERR_CALL = 3; -const TIME_OUT = 20000; -const WAITING_TIME = 200; +const ERR_SLOT_ID = -1; +var callState = -1; +var timing = 0; +var endTime = 0; let callId = null; + class RejectMessageOptions { constructor (str) { this.messageContent = str; @@ -126,9 +79,7 @@ const sleep = (time) => { }); }; -var callState = -1; -var timing = 0; -var endTime = 0; + export default function CallManageImsCall() { describe('CallManageImsCall', function () { diff --git a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/List.test.js b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/List.test.js index aff423196..fb2f3e273 100644 --- a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/List.test.js +++ b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/List.test.js @@ -16,6 +16,6 @@ import CallManageImsCall from './CallManageAll.test.js' import ObjectInterfaceTest from './ObjectInterface_test.js' export default function testsuite() { - CallManageImsCall() - ObjectInterfaceTest() + ObjectInterfaceTest(); + CallManageImsCall(); } diff --git a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js index d472204ab..37a379490 100644 --- a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js +++ b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * 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 @@ -15,25 +15,46 @@ import contactsapi from "@ohos.contact"; import sms from '@ohos.telephony.sms'; -import bundle from '@ohos.bundle' -import abilityAccessCtrl from '@ohos.abilityAccessCtrl' -import account from '@ohos.account.osAccount'; -import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from '@ohos/hypium' +import featureAbility from "@ohos.ability.featureAbility"; +import {afterAll, afterEach, beforeAll, describe, expect, it} from '@ohos/hypium'; +import {UiComponent,UiDriver,Component,Driver,UiWindow,ON,BY} from '@ohos.uitest' export default function ObjectInterfaceTest() { describe('ObjectInterfaceTest', function () { - + function sleep(numberMillis) { var now = new Date(); var exitTime = now.getTime() + numberMillis; while (true) { now = new Date(); - if (now.getTime() > exitTime) + if (now.getTime() > exitTime); return; } } + async function driveFn() { + console.info("come in driveFn"); + let driver = await UiDriver.create(); + console.info("driver is " + JSON.stringify(driver)); + sleep(2000); + let button = await driver.findComponent(BY.text('允许')); + console.info("button is " + JSON.stringify(button)); + await button.click(); + sleep(5000); + } + + beforeAll(async function () { + var permissions = ["ohos.permission.WRITE_CONTACTS","ohos.permission.READ_CONTACTS"]; + featureAbility.getContext().requestPermissionsFromUser(permissions, 0, () => { + console.info("start requestPermissionsFromUser"); + }); + for(let i=0; i<2; i++){ + await driveFn(); + console.log("get user_grant permission"); + } + }); + var contactData = { id: 0, key: "0", @@ -323,11 +344,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_insert_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } try { var rawContactId = await contactsapi.addContact(contactData); console.info("contactsApi_insert_test_100 : rawContactId = " + rawContactId); @@ -338,7 +354,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_insert_test_100 : raw_contact insert error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -347,11 +363,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_delete_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var deleteId = gRawContactId; try { var deleteCode = await contactsapi.deleteContact(deleteId); @@ -363,7 +374,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_delete_test_200 : delete error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -372,11 +383,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_update_test_300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var rawContactId = await contactsapi.addContact(contactData); console.info("contactsApi_insert_test_300 : rawContactId = " + rawContactId); gRawContactId = rawContactId; @@ -399,7 +405,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_update_test_300 : update error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -408,22 +414,21 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_contact_test_400", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } - var queryId = gRawContactId; + var queryId = await contactsapi.addContact(contactData); + console.info("contactsApi_query_contact_test_400 : queryId = " + queryId); + expect(queryId > 0).assertTrue(); + try { var resultSet = await contactsapi.queryContact(queryId); console.info("contactsApi_query_contact_test_400 : query resultSet = " + JSON.stringify(resultSet)); - expect(resultSet == undefined).assertTrue(); + expect(resultSet != null).assertTrue(); done(); } catch (error) { console.info("contactsApi_query_contact_test_400 query error = " + error); + expect().assertFalse(); done(); } - sleep(500) + sleep(500); }); /** @@ -432,11 +437,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_contact_test_500", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var queryId = gRawContactId; var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 @@ -454,7 +454,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_contact_test_500 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -463,11 +463,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_contact_test_600", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var queryId = gRawContactId; var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 @@ -485,7 +480,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_contact_test_600 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -494,11 +489,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_contacts_test_700", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } try { var resultSet = await contactsapi.queryContacts(); console.info("contactsApi_query_contacts_test_700 : query resultSet = " + JSON.stringify(resultSet)); @@ -508,7 +498,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_contacts_test_700 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -517,11 +507,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_contacts_test_800", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 } @@ -534,7 +519,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_contacts_test_800 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -543,11 +528,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_contacts_test_900", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var ContactAttributes = { attributes: [1, 5, 6] } @@ -560,7 +540,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_contacts_test_900 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -569,11 +549,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_contacts_test_1000", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 }; @@ -589,7 +564,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_contacts_test_1000 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -598,11 +573,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_email_test_1100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var email = "email"; var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 @@ -616,7 +586,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_email_test_1100 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -625,11 +595,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_email_test_1200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var email = "email"; try { var resultSet = await contactsapi.queryContactsByEmail(email); @@ -640,7 +605,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_email_test_1200 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -649,11 +614,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_email_test_1300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var email = "email"; var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 @@ -670,7 +630,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_email_test_1300 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -679,11 +639,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_email_test_1400", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var email = "email"; var ContactAttributes = { attributes: [1, 5, 6] @@ -697,7 +652,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_email_test_1400 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -706,11 +661,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_phoneNumber_test_1500", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var phoneNumber = "183"; var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 @@ -724,7 +674,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_phoneNumber_test_1500 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -733,11 +683,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_phoneNumber_test_1600", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var phoneNumber = "183"; var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 @@ -754,7 +699,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_phoneNumber_test_1600 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -763,11 +708,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_phoneNumber_test_1700", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var phoneNumber = "183"; try { var resultSet = await contactsapi.queryContactsByPhoneNumber(phoneNumber); @@ -778,7 +718,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_phoneNumber_test_1700 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -787,11 +727,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_phoneNumber_test_1800", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var phoneNumber = "183"; var ContactAttributes = { attributes: [1, 5, 6] @@ -805,7 +740,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_phoneNumber_test_1800 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -814,11 +749,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_group_test_1900", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } try { var resultSet = await contactsapi.queryGroups(); console.info("contactsApi_query_group_test_1900 : query resultSet = " + JSON.stringify(resultSet)); @@ -828,7 +758,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_group_test_1900 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -837,11 +767,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_group_test_2000", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 } @@ -854,7 +779,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_group_test_2000 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -863,11 +788,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_holders_test_2200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } try { var resultSet = await contactsapi.queryHolders(); console.info("contactsApi_query_holders_test_2200 : query resultSet = " + JSON.stringify(resultSet)); @@ -877,7 +797,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_holders_test_2200 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -886,11 +806,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_key_test_2300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var idtest = gRawContactId; var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 @@ -904,7 +819,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_key_test_2300 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -913,11 +828,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_key_test_2400", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var idtest = gRawContactId; console.info("contactsApi_query_key_test_2400 : query gRawContactId = " + idtest); try { @@ -929,7 +839,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_key_test_2400 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -938,11 +848,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_query_mycard_test_2500", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var holder = { bundleName: "com.ohos.contacts", displayName: "phone", holderId: 1 } @@ -955,7 +860,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_mycard_test_2500 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -964,11 +869,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_isMyCard_test_2600", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var id = 1; try { var isExist = await contactsapi.isMyCard(id); @@ -979,7 +879,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_isMyCard_test_2600 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -988,11 +888,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("contactsApi_isLocalContact_test_2700", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var id = gRawContactId; try { var isExist = await contactsapi.isLocalContact(id); @@ -1003,7 +898,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_isLocalContact_test_2700 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1012,11 +907,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_insert_test_2800", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var contactDataError = {}; try { var rawContactId = await contactsapi.addContact(contactDataError); @@ -1027,7 +917,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_insert_test_100 : raw_contact insert error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1036,11 +926,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_update_test_3000", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var rawContactId = -1; var updateValues = { id: rawContactId, name: { @@ -1053,13 +938,13 @@ export default function ObjectInterfaceTest() { try { var updateCode = await contactsapi.updateContact(updateValues, condition); console.info("abnormal_contactsApi_update_test_3000 : updateCode = " + updateCode); - expect(updateCode === -1).assertTrue(); + expect(updateCode === 0).assertTrue(); done(); } catch (error) { console.info("abnormal_contactsApi_update_test_3000 : update error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1068,11 +953,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_query_contact_test_3100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var queryId = "-1"; try { var resultSet = await contactsapi.queryContact(queryId); @@ -1089,7 +969,7 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_query_contact_test_3100 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1098,11 +978,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_query_contacts_test_3200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var ContactAttributes = { attributes: [100] } @@ -1122,7 +997,7 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_query_contacts_test_3200 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1131,11 +1006,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_query_email_test_3300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var email = "email2222"; try { var resultSet = await contactsapi.queryContactsByEmail(email); @@ -1146,7 +1016,7 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_query_email_test_3300 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1155,11 +1025,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_query_phoneNumber_test_3400", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var phoneNumber = "19999999"; try { var resultSet = await contactsapi.queryContactsByPhoneNumber(phoneNumber); @@ -1171,7 +1036,7 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_query_phoneNumber_test_3400 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1180,11 +1045,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_query_group_test_3500", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var holder = { bundleName: "com.ohos.contacts2", displayName: "phone2", holderId: 2 } @@ -1197,7 +1057,7 @@ export default function ObjectInterfaceTest() { console.info("contactsApi_query_group_test_2000 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1206,11 +1066,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_query_key_test_3600", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var idtest = -1; try { var resultSet = await contactsapi.queryKey(idtest); @@ -1221,7 +1076,7 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_query_key_test_3600 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1230,11 +1085,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_query_mycard_test_3700", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var ContactAttributes = { attributes: [100] }; @@ -1248,7 +1098,7 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_query_mycard_test_3700 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1257,11 +1107,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_isMyCard_test_3800", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var id = 999; try { var isExist = await contactsapi.isMyCard(id); @@ -1272,7 +1117,7 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_isMyCard_test_3800 query error = " + error); done(); } - sleep(500) + sleep(500); }); /** @@ -1281,11 +1126,6 @@ export default function ObjectInterfaceTest() { * @tc.desc Function test */ it("abnormal_contactsApi_isLocalContact_test_3900", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } var id = 999; try { var isExist = await contactsapi.isLocalContact(id); @@ -1296,15 +1136,10 @@ export default function ObjectInterfaceTest() { console.info("abnormal_contactsApi_isLocalContact_test_3900 query error = " + error); done(); } - sleep(500) + sleep(500); }); it("contactsApi_addContact_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.addContact(contactData, (err, data) => { if (err) { done(); @@ -1313,15 +1148,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) != -1).assertTrue(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_deleteContact_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.deleteContact('xxx', (err) => { if (err) { expect(JSON.stringify(err) == -1).assertTrue(); @@ -1332,16 +1162,11 @@ export default function ObjectInterfaceTest() { done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContact_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContact('xxx', (err, data) => { if (err) { expect(false).assertTrue(); @@ -1351,15 +1176,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) == undefined).assertTrue(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContact_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContact('xxx', { holderId: 0 }, (err, data) => { @@ -1371,15 +1191,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) == undefined).assertTrue(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContact_test_300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContact('xxx', { attributes: ["ATTR_EMAIL", "ATTR_NAME"] }, (err, data) => { @@ -1391,15 +1206,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) == undefined).assertTrue(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContact_test_400", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContact('xxx', { holderId: 0 }, { @@ -1413,15 +1223,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) == undefined).assertTrue(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContact_test_500", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } let promise = contactsapi.queryContact('xxx', { holderId: 0 }, { @@ -1434,15 +1239,10 @@ export default function ObjectInterfaceTest() { expect(false).assertTrue(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContacts_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContacts((err, data) => { if (err) { expect(JSON.stringify(data) === null).assertFalse(); @@ -1452,15 +1252,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContacts_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContacts({ holderId: 0 }, (err, data) => { @@ -1472,15 +1267,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContacts_test_300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContacts({ attributes: ["ATTR_EMAIL", "ATTR_NAME"] }, (err, data) => { @@ -1492,16 +1282,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContacts_test_400", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContacts({ holderId: 0 }, { @@ -1515,16 +1300,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContacts_test_500", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } let promise = contactsapi.queryContacts({ holderId: 0 }, { @@ -1537,15 +1317,10 @@ export default function ObjectInterfaceTest() { expect(false).assertTrue(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByPhoneNumber_test_000", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByPhoneNumber('138xxxxxxxx', (err, data) => { if (err) { expect(JSON.stringify(data) === null).assertFalse(); @@ -1555,15 +1330,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByPhoneNumber_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByPhoneNumber('138xxxxxxxx', { holderId: 0 }, (err, data) => { @@ -1575,15 +1345,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByPhoneNumber_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByPhoneNumber('138xxxxxxxx', { attributes: ["ATTR_EMAIL", "ATTR_NAME"] }, (err, data) => { @@ -1595,15 +1360,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByPhoneNumber_test_300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByPhoneNumber('138xxxxxxxx', { holderId: 0 }, { @@ -1617,16 +1377,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByEmail_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByEmail('xxx@email.com', (err, data) => { if (err) { expect(JSON.stringify(data) === null).assertFalse(); @@ -1636,15 +1391,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByEmail_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByEmail('xxx@email.com', { holderId: 0 }, (err, data) => { @@ -1656,16 +1406,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByEmail_test_300", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByEmail('xxx@email.com', { attributes: ["ATTR_EMAIL", "ATTR_NAME"] }, (err, data) => { @@ -1677,16 +1422,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryContactsByEmail_test_400", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryContactsByEmail('xxx@email.com', { holderId: 0 }, { @@ -1700,15 +1440,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryGroups_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryGroups((err, data) => { if (err) { expect(JSON.stringify(data) === null).assertFalse(); @@ -1718,15 +1453,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryGroups_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryGroups({ holderId: 0 }, (err, data) => { @@ -1738,16 +1468,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryHolders_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryHolders((err, data) => { if (err) { expect(JSON.stringify(data) === null).assertFalse(); @@ -1757,15 +1482,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryKey_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryKey( /*id*/ 1, (err, data) => { if (err) { @@ -1776,15 +1496,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryKey_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryKey( /*id*/ 1, { holderId: 1 @@ -1797,16 +1512,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryMyCard_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryMyCard((err, data) => { if (err) { expect(JSON.stringify(data) === null).assertFalse(); @@ -1816,16 +1526,11 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_queryMyCard_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.queryMyCard({ attributes: ['ATTR_EMAIL', 'ATTR_NAME'] }, (err, data) => { @@ -1837,15 +1542,10 @@ export default function ObjectInterfaceTest() { expect(JSON.stringify(data) === null).assertFalse(); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_updateContact_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.updateContact({ name: { fullName: 'xxx' @@ -1862,15 +1562,10 @@ export default function ObjectInterfaceTest() { console.info('updateContact success'); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_updateContact_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.updateContact({ fullName: { fullName: 'xxx' @@ -1889,15 +1584,10 @@ export default function ObjectInterfaceTest() { console.info('updateContact success'); done(); }); - sleep(500) + sleep(500); }); it("contactsApi_isLocalContact_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.isLocalContact( /*id*/ 1, (err, data) => { if (err) { @@ -1907,15 +1597,10 @@ export default function ObjectInterfaceTest() { } done(); }); - sleep(500) + sleep(500); }); it("contactsApi_isMyCard_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.isMyCard( /*id*/ 1, (err, data) => { if (err) { @@ -1925,15 +1610,10 @@ export default function ObjectInterfaceTest() { } done(); }); - sleep(500) + sleep(500); }); it("contactsApi_sendMessage_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } let sendCallback = function (err, data) { expect(JSON.stringify(data) === null).assertFalse(); done(); @@ -1958,65 +1638,26 @@ export default function ObjectInterfaceTest() { }; sms.sendMessage(options); done(); - sleep(500) + sleep(500); }); it("contactsApi_selectContact_test_100", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } contactsapi.selectContact((err, data) => { expect(JSON.stringify(data) === null).assertFalse(); done(); - sleep(500) + sleep(500); }); }); it("contactsApi_selectContact_test_200", 0, async function (done) { - checkContactPermission(); - if (!contactPermission) { - done(); - return; - } let promise = contactsapi.selectContact(); promise.then((data) => { expect(JSON.stringify(data) === null).assertFalse(); done(); - sleep(500) + sleep(500); }).catch((err) => { done(); }); }); - - let contactPermission; - let userId; - async function getUserId() { - await account.getAccountManager().getOsAccountLocalIdFromProcess().then(account => { - console.info("getOsAccountLocalIdFromProcess userid ==========" + account); - userId = account; - }).catch(err => { - console.info("getOsAccountLocalIdFromProcess err ==========" + JSON.stringify(err)); - }) - } - - async function checkContactPermission() { - await getUserId(); - let appInfo = await bundle.getApplicationInfo('com.ohos.actscallmanagerims2calltest', 0, userId); - console.info("getOsAccountLocalIdFromProcess appInfo ==========" + JSON.stringify(appInfo) + "userId:" + userId); - let tokenID = appInfo.accessTokenId; - let atManager = abilityAccessCtrl.createAtManager(); - let result1 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.READ_CONTACTS", 1); - let result2 = await atManager.grantUserGrantedPermission(tokenID, "ohos.permission.WRITE_CONTACTS", 1); - console.info("checkContactPermission Log: Perm1:" + result1); - console.info("checkContactPermission Log: Perm2:" + result2); - if (result1 == -1 || result2 == -1) { - contactPermission = false; - done(); - } - contactPermission = true; - done(); - } }); } \ No newline at end of file diff --git a/telephony/telephonyjstest/cellular_data/cellular_data_abnormal/signature/openharmony_sx.p7b b/telephony/telephonyjstest/cellular_data/cellular_data_abnormal/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..36610716a064376bedf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NsaState.NSA_STATE_SA_ATTACHED === 6).assertTrue(); - expect(radio.NetworkInformationState.NETWORK_UNKNOWN === 0).assertTrue(); - expect(radio.NetworkInformationState.NETWORK_CURRENT === 2).assertTrue(); - expect(radio.NetworkInformationState.NETWORK_FORBIDDEN === 3).assertTrue(); - expect(radio.NetworkSelectionMode.NETWORK_SELECTION_UNKNOWN === 0).assertTrue(); expect(radio.NetworkSelectionMode.NETWORK_SELECTION_MANUAL === 2).assertTrue(); } catch (error) { diff --git a/telephony/telephonyjstest/observer/entry/src/main/config.json b/telephony/telephonyjstest/observer/entry/src/main/config.json index 7eab57da2..61e828ea5 100644 --- a/telephony/telephonyjstest/observer/entry/src/main/config.json +++ b/telephony/telephonyjstest/observer/entry/src/main/config.json @@ -68,7 +68,7 @@ } ], "reqPermissions": [ - { + { "name":"ohos.permission.GET_NETWORK_INFO", "reason":"need use ohos.permission.GET_NETWORK_INFO" } diff --git a/telephony/telephonyjstest/observer/signature/openharmony_sx.p7b b/telephony/telephonyjstest/observer/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..5072c5a3eb62f002ada7c3775a660713115a981c 100644 GIT binary patch delta 295 zcmew?^-#*epouq@jZ>@5qwPB{BRkWACSE_FkQWmpqam*WHydX{n+IbmGYb==K@-bA zghIvzO)T$Onpj?MbjV{d%FoCz)=SANR?<;QEXYx^Qp(FO%1z7xa|?9SQWHx`i&BBY zKxOd|sm&i*?Af^-4VoBjfmRu0Pflb_ojjk%sov1Yz}&#h*u=;p%0M4(A18~U5{tr` zM~DAM^p;*IObOkiq_y~H(mcnePvNY~Z!nx)$h%76w*eO$2hb*Fq`G^Rk`Hz%a{~ujjrZ*oYeW!%Prm;yk4mF WjLy`9LQgMNg#Y+ABSQ3qgdzZZmuP@5qwPB{BRkWACf)>~Pz)0zqam*WHydX{n+IbmGYb==K@%%K zLLuXVCRPTPCYC=N9r9S5{R>j_JQ9m?^Ybe85(^6SN>YnUlysC53v!gKl!_~hOHy;= zlkN~MmwP02HBGXSW_qW@i^5R7#Ua? zm>U|I7)KfC!yUlMVyMKT&{rU($0b!Q>SwF8M!RK(>a)Y|%>sSI9xh4$Qjq*({|o~z zHV&ZI&e^gsGqHFWxG^a*JPWc-nSV5Pk94%F>6hOVuP7`?z0f&jYwo7048o5-3cLX- onHRCq^bFI2bs>L0PhBtko^_S?*7?;c%NY+oZ#cW{A^RFW07q48ivR!s diff --git a/telephony/telephonyjstest/radiostatistic/entry/src/main/config.json b/telephony/telephonyjstest/radiostatistic/entry/src/main/config.json index 7c3f303e6..d63dfef67 100644 --- a/telephony/telephonyjstest/radiostatistic/entry/src/main/config.json +++ b/telephony/telephonyjstest/radiostatistic/entry/src/main/config.json @@ -19,8 +19,8 @@ "mainAbility": ".MainAbility", "srcPath": "", "deviceType": [ - "tablet", - "default", + "tablet", + "default", "phone" ], "distro": { @@ -68,49 +68,9 @@ } ], "reqPermissions": [ - { - "name": "ohos.permission.LOCATION", - "reason": "need use ohos.permission.LOCATION" - }, - { - "name":"ohos.permission.SET_TELEPHONY_STATE", - "reason":"need use ohos.permission.SET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.GET_TELEPHONY_STATE", - "reason":"need use ohos.permission.GET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.PLACE_CALL", - "reason":"need use ohos.permission.PLACE_CALL" - }, - { - "name":"ohos.permission.READ_CONTACTS", - "reason":"need use ohos.permission.READ_CONTACTS" - }, - { - "name":"ohos.permission.WRITE_CONTACTS", - "reason":"need use ohos.permission.WRITE_CONTACTS" - }, - { - "name":"ohos.permission.SEND_MESSAGES", - "reason":"need use ohos.permission.SEND_MESSAGES" - }, - { - "name":"ohos.permission.RECEIVE_SMS", - "reason":"need use ohos.permission.RECEIVE_SMS" - }, - { - "name":"ohos.permission.READ_CALL_LOG", - "reason":"need use ohos.permission.READ_CALL_LOG" - }, - { + { "name":"ohos.permission.GET_NETWORK_INFO", "reason":"need use ohos.permission.GET_NETWORK_INFO" - }, - { - "name":"ohos.permission.INTERNET", - "reason":"need use ohos.permission.INTERNET" } ], "js": [ diff --git a/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/CallJsunit.test.ets b/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/CallJsunit.test.ets index bea92d9a2..1e6f3001a 100644 --- a/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/CallJsunit.test.ets +++ b/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/CallJsunit.test.ets @@ -21,8 +21,7 @@ export function toString(data) { } else { return data; } -} -; +}; export default function callJsunit() { describe('callTest', function () { @@ -46,118 +45,6 @@ export default function callJsunit() { done(); }); - /** - * @tc.number Telephony_Call_CallTransferInfo_Type - * @tc.name Interface CallTransferInfo - * @tc.desc Interface value test - */ - it('Telephony_Call_CallTransferInfo_Type', 0, function (done) { - let caseName = 'Telephony_Call_CallTransferInfo_Type'; - console.log(`==========> ${caseName} Test start ==========>`); - let callTransferInfo = { - transferNum: '10000000001', type: 2, settingType: 1 - }; - expect(callTransferInfo.type === 2).assertTrue(); - console.log(`==========> ${caseName} Test end ==========>`); - done(); - }); - - /** - * @tc.number Telephony_Call_CallTransferResult_Status - * @tc.name Interface CallTransferResult - * @tc.desc Interface value test - */ - it('Telephony_Call_CallTransferResult_Status', 0, function (done) { - let caseName = 'Telephony_Call_CallTransferResult_Status'; - console.log(`==========> ${caseName} Test start ==========>`); - let callTransferResult = { - status: 0, number: '10000000001' - }; - expect(callTransferResult.status === 0).assertTrue(); - console.log(`==========> ${caseName} Test end ==========>`); - done(); - }); - - /** - * @tc.number Telephony_Call_CallTransferResult_Number - * @tc.name Interface CallTransferResult - * @tc.desc Interface value test - */ - it('Telephony_Call_CallTransferResult_Number', 0, function (done) { - let caseName = 'Telephony_Call_CallTransferResult_Number'; - console.log(`==========> ${caseName} Test start ==========>`); - let callTransferResult = { - status: 0, number: '10000000001' - }; - expect(callTransferResult.number === '10000000001').assertTrue(); - console.log(`==========> ${caseName} Test end ==========>`); - done(); - }); - - /** - * @tc.number Telephony_Call_CallAttributeOptions_CallId - * @tc.name Interface CallAttributeOptions - * @tc.desc Interface value test - */ - it('Telephony_Call_CallAttributeOptions_CallId', 0, function (done) { - let caseName = 'Telephony_Call_CallAttributeOptions_CallId'; - console.log(`==========> ${caseName} Test start ==========>`); - let callAttributeOptions = { - callId: 1 - }; - expect(callAttributeOptions.callId === 1).assertTrue(); - console.log(`==========> ${caseName} Test end ==========>`); - done(); - }); - - /** - * @tc.number Telephony_Call_CallRestrictionInfo_Type - * @tc.name Interface CallRestrictionInfo - * @tc.desc Interface value test - */ - it('Telephony_Call_CallRestrictionInfo_Type', 0, function (done) { - let caseName = 'Telephony_Call_CallRestrictionInfo_Type'; - console.log(`==========> ${caseName} Test start ==========>`); - let callRestrictionInfo = { - type: 0, password: '123456', mode: 1 - }; - expect(callRestrictionInfo.type === 0).assertTrue(); - console.log(`==========> ${caseName} Test end ==========>`); - done(); - }); - - /** - * @tc.number Telephony_Call_CallRestrictionInfo_Mode - * @tc.name Interface CallRestrictionInfo - * @tc.desc Interface value test - */ - it('Telephony_Call_CallRestrictionInfo_Mode', 0, function (done) { - let caseName = 'Telephony_Call_CallRestrictionInfo_Mode'; - console.log(`==========> ${caseName} Test start ==========>`); - let callRestrictionInfo = { - type: 0, password: '123456', mode: 1 - }; - expect(callRestrictionInfo.mode === 1).assertTrue(); - console.log(`==========> ${caseName} Test end ==========>`); - done(); - }); - - /** - * @tc.number Telephony_Call_CallEventOptions_EventId - * @tc.name Interface CallEventOptions - * @tc.desc Interface value test - */ - it('Telephony_Call_CallEventOptions_EventId', 0, function (done) { - let caseName = 'Telephony_Call_CallEventOptions_EventId'; - console.log(`==========> ${caseName} Test start ==========>`); - let callEventOptions = { - eventId: 1 - }; - expect(callEventOptions.eventId === 1).assertTrue(); - console.log(`==========> ${caseName} Test end ==========>`); - done(); - }); - /** * @tc.number Telephony_Call_Call_MakeCall_0100 * @tc.name Make a call. diff --git a/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/RadioSecondJsunit.test.ets b/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/RadioSecondJsunit.test.ets index 349b56924..7dd043e14 100644 --- a/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/RadioSecondJsunit.test.ets +++ b/telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/RadioSecondJsunit.test.ets @@ -137,27 +137,6 @@ export default function radioSecondJsunit() { } }) - - /** - * @tc.number Telephony_Radio_CdmaCellInformation_sid_0100 - * @tc.name sid - * @tc.desc sid test - */ - it('Telephony_Radio_CdmaCellInformation_sid_0100', 0, async function (done) { - console.log("-----------------------Telephony_Radio_CdmaCellInformation_sid_0100 start-----------------------"); - let cdmaCellInformation = { - baseId: 1, - latitude: 39, - longitude: 116, - nid: 101, - sid: 102 - }; - expect(101).assertEqual(cdmaCellInformation.nid); - expect(102).assertEqual(cdmaCellInformation.sid); - done(); - console.log("-----------------------Telephony_Radio_CdmaCellInformation_sid_0100 end-----------------------"); - }) - /** * @tc.number Telephony_NetworkSearch_getRadioTech_Async_0500 * @tc.name TestGetRadioTech_0500 diff --git a/telephony/telephonyjstest/radiostatistic/signature/openharmony_sx.p7b b/telephony/telephonyjstest/radiostatistic/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..36610716a064376bedf0d6d75ab4dc88519db020 100644 GIT binary patch delta 957 zcmYL|O^D-U7{{lb?2NNI=;GHh;JRiM)ZLjTZ8B*F=J4jDY1&EKbdr8q*-g?k$uv#c zrfJ%aQ0ZY1c3_cS<{-`<6v2a+g@s`~2!gl>DhM6~53&m$L>5tIZ(_!k@$kO9&yVMM zc;1Kq|Id~CD-&e8d~IRr&HeQLqvgnA^wxB_5Tfm9B!Vs@PcAH7-%m&Mc_b=EYup~IW;t7pJb+981B>&Q9+Uxj_&YJ?$<#0ixo^)71Nh3dK_Nq)XLzsqXjte^* zWzAB_;RI-A#u*1$&Kt2V$_I5vWEfK<-s`Xj!KioUr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 961 zcmZ9L;fvdJ7{{-@+}&>ORFv(-2{NmK=+^#{HeM^7^7|!elCEi*Hfft$acP<+*QQCX zNiVtHi%O9LL4;8Ud*$xMKo~<&nXiN);yV>z_zz5Bf(S!4n4p50!U?{4;Q8`-9v&XP z-=8+`ZO*`a!(Cl}@sK-wu#s3x9?dr{#!@GlNZ=dbk=6B!hg`x~#*zszUwQ05FmW_r zS;FSnp9iTuW9;v^&UxMK8L3zBbH{?Cjbb5%r$HK|&ZQ=konG9MfY|C53dVV|AD2tB z2WNySMZvCN!jMPMK_YN1`l5O-rv-=wT!bgy>isAXkw5 zkdjooAxSI~mS}mvC<5YHh${?b3FVF>XOZ0 zZIyy9L6Us2W~)sQUC7gL^e-gH9ft$|!bcN&-S*g@RD-sv;#xUX$$ihALOdk$a$(g`5`Q#Gs0L4DI^G8sEl^)+iFyX`Ssj zrBLYmoTVrQz~pTn$St+)R7R$N`|jSPYe>6Lc5yybXxM*vDOVR5mWE9e$+NCC)^|Ei zF;L2`GRbD^jjc(aDfTr!s7;~x4=&{q?B^K-1q$V0$UXdF4TuP-OtBh7aFH7Y!x38J^J^lAvSHQ{D z6LG}8+s2lY7zc{UXO`~NwtH8 { - if (err) { - console.log(`Telephony_CallManager_startDTMF_Async_1000 finish err = ${err.message}`); - done(); - return; - } - expect().assertFail(); - console.log('Telephony_CallManager_startDTMF_Async_1000 fail'); - done(); - }); - }); - /** * @tc.number Telephony_CallManager_formatPhoneNumber_Async_0100 * @tc.name PhoneNumber is 100000000000. Call formatPhoneNumber() to format the number. diff --git a/telephony/telephonyjstest/telephony_base/cellular_data/signature/openharmony_sx.p7b b/telephony/telephonyjstest/telephony_base/cellular_data/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..5f1655151a18b15f3e79ab5652faf721dfa6aa93 100644 GIT binary patch delta 412 zcmew?bwS#}po#Yk8>d#AN85K^Ms}tJO}u-7LOYol84Y<2xY;-p+B_IjnOT?^4VqZ< z5DFO=G_l6BG_gi+bjV|=&(Fv&)=N&!$tlfAEQ(J_EJ;+-QA#YxQL<9X%P-1J%mH%? zbkkB3OG=AUfx@5qwPB{BRkWACf)>~Pz)0zqam*WHydX{n+IbmGYb==K@%%K zLLuXVCRPTPCYC=N9r9Q-{0ma^JQ9m?^Ybe85(^6SN>YnUlysC53v!gKl!_~hOHy;= zlkXbHzvRbioIT)b+yeSyy>)onNi8obllEhO^rqvajI-02ke82mk;8 diff --git a/telephony/telephonyjstest/telephony_base/cellular_data/src/main/config.json b/telephony/telephonyjstest/telephony_base/cellular_data/src/main/config.json index 9122fe563..d0a893040 100644 --- a/telephony/telephonyjstest/telephony_base/cellular_data/src/main/config.json +++ b/telephony/telephonyjstest/telephony_base/cellular_data/src/main/config.json @@ -66,11 +66,7 @@ "launchType": "standard" } ], - "reqPermissions": [ - { - "name": "ohos.permission.LOCATION", - "reason": "need use ohos.permission.LOCATION" - }, + "reqPermissions":[ { "name":"ohos.permission.SET_TELEPHONY_STATE", "reason":"need use ohos.permission.SET_TELEPHONY_STATE" @@ -78,38 +74,6 @@ { "name":"ohos.permission.GET_TELEPHONY_STATE", "reason":"need use ohos.permission.GET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.PLACE_CALL", - "reason":"need use ohos.permission.PLACE_CALL" - }, - { - "name":"ohos.permission.READ_CONTACTS", - "reason":"need use ohos.permission.READ_CONTACTS" - }, - { - "name":"ohos.permission.WRITE_CONTACTS", - "reason":"need use ohos.permission.WRITE_CONTACTS" - }, - { - "name":"ohos.permission.SEND_MESSAGES", - "reason":"need use ohos.permission.SEND_MESSAGES" - }, - { - "name":"ohos.permission.RECEIVE_SMS", - "reason":"need use ohos.permission.RECEIVE_SMS" - }, - { - "name":"ohos.permission.READ_CALL_LOG", - "reason":"need use ohos.permission.READ_CALL_LOG" - }, - { - "name":"ohos.permission.GET_NETWORK_INFO", - "reason":"need use ohos.permission.GET_NETWORK_INFO" - }, - { - "name":"ohos.permission.INTERNET", - "reason":"need use ohos.permission.INTERNET" } ], "js": [ diff --git a/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/PdpProfileDataStorageFunction.test.js b/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/PdpProfileDataStorageFunction.test.js index 09e9af85f..541d55ed2 100644 --- a/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/PdpProfileDataStorageFunction.test.js +++ b/telephony/telephonyjstest/telephony_base/cellular_data/src/main/js/test/PdpProfileDataStorageFunction.test.js @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021 Huawei Device Co., Ltd. + * 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 -- GitLab