未验证 提交 dfd465f8 编写于 作者: O openharmony_ci 提交者: Gitee

!7397 新增电话用例

Merge pull request !7397 from zhangfuzhi/master
/**
* Copyright (c) 2021-2022 Huawei Device Co., Ltd.
* Copyright (c) 2021-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
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
import convertOptionsJsunit from './ConvertOptionsJsunit.test';
import radioJsunit from './RadioJsunit.test';
import radioSecondJsunit from './RadioSecondJsunit.test';
import smsUiJsunit from './SmsMmsJsunit.test';
......@@ -23,7 +23,6 @@ import dataJsunit from './DataJsunit.test';
export default function testsuite() {
dataJsunit();
smsUiJsunit();
convertOptionsJsunit();
radioJsunit();
radioSecondJsunit();
callJsunit();
......
/**
* Copyright (c) 2021-2022 Huawei Device Co., Ltd.
* Copyright (c) 2021-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
......@@ -64,17 +64,41 @@ export default function radioJsunit() {
* @tc.desc Function test
*/
it('Telephony_NetworkSearch_isNrSupported_Promise_0400', 0, async function (done) {
let CaseName = "Telephony_NetworkSearch_isNrSupported_Promise_0400 ";
try {
let result = radio.isNrSupported();
console.log("Result: " + result);
console.info("Result: " + result);
let result0 = radio.isNrSupported(SLOT_0);
console.log("Result0: " + result0);
console.info("Result0: " + result0);
console.info(CaseName + "is complete!");
done();
} catch (err) {
console.log("Telephony_NetworkSearch_isNrSupported_Promise_0400 err" + JSON.stringify(err));
console.info(CaseName + "err " + JSON.stringify(err));
expect(false).assertTrue();
done();
}
});
/**
* @tc.number Telephony_NetworkSearch_isNRSupported_Async_0100
* @tc.name Test The function isNRSupported(soltId)
* @tc.desc Function test
*/
it('Telephony_NetworkSearch_isNRSupported_Async_0100', 0, async function (done) {
let CaseName = "Telephony_NetworkSearch_isNRSupported_Async_0100 ";
try {
let result = radio.isNRSupported();
console.info("Result: " + result);
let result0 = radio.isNRSupported(SLOT_0);
console.info("Result0: " + result0);
console.info(CaseName + "is complete!");
done();
} catch (err) {
console.info(CaseName + "err " + JSON.stringify(err));
expect(false).assertTrue();
done();
}
});
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册