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 04ff1a79bc8dbd02d6f7bdf496898b4d76f34c3e..473614c51651ab05d7cc25fbe78570253e828361 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 e2c0f5c9af36956471b1adbf5a84aa8e86ec1eb8..744b261c0f27b7de980d7feda1e1f19d3f0ed25c 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 674085a97169c5d69e0143e525bb04f773756cf5..c4a9207ba62ee1ebc996590591d209abeebc4c26 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