From 7b27cea61cbdb2686c440d76aac21f77c6f6dd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E6=9B=A6?= Date: Mon, 21 Mar 2022 09:58:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=BB=E8=A9=B1=E6=96=B0=E5=A2=9E=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=A6=86=E8=93=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高曦 --- .../test/ResponseCodeJsunit.test.ets | 18 ++++++++++++++ .../ets/MainAbility/test/CallJsunit.test.ets | 3 +++ .../test/RadioSecondJsunit.test.ets | 24 +++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/MainAbility/test/ResponseCodeJsunit.test.ets b/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/MainAbility/test/ResponseCodeJsunit.test.ets index 04ff1a79b..473614c51 100644 --- a/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/MainAbility/test/ResponseCodeJsunit.test.ets +++ b/telephony/telephonyjstest/netmanager_http/entry/src/main/ets/MainAbility/test/ResponseCodeJsunit.test.ets @@ -18,6 +18,24 @@ import http from '@ohos.net.http'; export default function responseCodeJsunit() { describe("responseCodeJsunitTest", function () { + /** + * @tc.number Telephony_Http_ResponseCode_OK_0100 + * @tc.name ResponseCode::OK + * @tc.desc Test ResponseCode property. + */ + + it("Telephony_Http_ResponseCode_OK_0100", 0, async function (done) { + console.log("-----------------------Telephony_Http_ResponseCode_OK_0100 start-----------------------"); + try { + expect(200).assertEqual(http.ResponseCode.OK); + console.log("-----------------------Telephony_Http_ResponseCode_OK_0100 OK assertEqual SUCCESS-----------------------"); + } catch (error) { + console.log("Telephony_Http_ResponseCode_OK_0100 : error = " + error); + } + done(); + console.log("-----------------------Telephony_Http_ResponseCode_OK_0100 end-----------------------"); + }); + /** * @tc.number Telephony_Http_ResponseCode_ACCEPTED_0100 * @tc.name ResponseCode::ACCEPTED diff --git a/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/CallJsunit.test.ets b/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/CallJsunit.test.ets index e2c0f5c9a..744b261c0 100644 --- a/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/CallJsunit.test.ets +++ b/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/CallJsunit.test.ets @@ -295,6 +295,9 @@ export default function callJsunit(){ console.log(`${caseName} error,error :${toString(err)}`); done(); return; + } else { + let callAttributeOptions = data; + console.log(`${caseName} success, startTime = :` + callAttributeOptions.startTime); } expect(true).assertTrue(); done(); diff --git a/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/RadioSecondJsunit.test.ets b/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/RadioSecondJsunit.test.ets index 674085a97..c4a9207ba 100644 --- a/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/RadioSecondJsunit.test.ets +++ b/telephony/telephonyjstest/new_add/entry/src/main/ets/MainAbility/test/RadioSecondJsunit.test.ets @@ -154,6 +154,30 @@ 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-----------------------"); + if (utils.notCheck) { + expect(true).assertTrue(); + done(); + return; + } + let cdmaCellInformatio = { + baseId: 1, + latitude: 39, + longitude: 116, + nid: 101, + sid: 102 + } + expect(101).assertEqual(cdmaCellInformatio.nid); + expect(102).assertEqual(cdmaCellInformatio.sid); + console.log("-----------------------Telephony_Radio_CdmaCellInformation_sid_0100 end-----------------------"); + }) + /** * @tc.number Telephony_NetworkSearch_getNetworkSearchInformation_Async_0100 -- GitLab