提交 ce8a60a1 编写于 作者: 高曦

电话服务用例整改

Signed-off-by: N高曦 <gaoxi785@huawei.com>
上级 a66199d6
......@@ -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
......
......@@ -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();
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册