Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f38c529f
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f38c529f
编写于
6月 08, 2022
作者:
G
gaoxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
电话用例整改
Signed-off-by:
N
gaoxi
<
gaoxi785@huawei.com
>
上级
03f19122
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
60 deletion
+24
-60
telephony/telephonyjstest/call_manager/call_manager_ims2_call/entry/src/main/js/test/CallManageAll.test.js
...er_ims2_call/entry/src/main/js/test/CallManageAll.test.js
+2
-4
telephony/telephonyjstest/cellular_data/cellular_data_abnormal/entry/src/main/js/test/CellularDataAbnorma.test.js
...normal/entry/src/main/js/test/CellularDataAbnorma.test.js
+2
-2
telephony/telephonyjstest/netmanager_base/dns/entry/src/main/js/test/NetworkManagerDNS.test.js
...base/dns/entry/src/main/js/test/NetworkManagerDNS.test.js
+17
-13
telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/RadioSecondJsunit.test.ets
...tistic/entry/src/main/ets/test/RadioSecondJsunit.test.ets
+1
-1
telephony/telephonyjstest/sim/sim_manager_function_test/entry/src/main/js/test/SimManager.test.js
...r_function_test/entry/src/main/js/test/SimManager.test.js
+2
-40
未找到文件。
telephony/telephonyjstest/call_manager/call_manager_ims2_call/entry/src/main/js/test/CallManageAll.test.js
浏览文件 @
f38c529f
...
...
@@ -757,7 +757,7 @@ describe('CallManageImsCall', function () {
done
();
return
;
}
expect
(
data
==
=
call
.
CALL_STATE_IDLE
).
assertTrue
();
expect
(
data
==
call
.
CALL_STATE_IDLE
||
data
==
call
.
CALL_STATE_UNKNOWN
||
data
==
call
.
CALL_STATE_RINGING
||
data
==
call
.
CALL_STATE_OFFHOOK
).
assertTrue
();
console
.
log
(
`Telephony_CallManager_getCallState_Async_0100 finish data =
${
data
}
`
);
done
();
});
...
...
@@ -772,7 +772,7 @@ describe('CallManageImsCall', function () {
it
(
'
Telephony_CallManager_getCallState_Promise_0100
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
getCallState
();
expect
(
data
==
=
call
.
CALL_STATE_IDLE
).
assertTrue
();
expect
(
data
==
call
.
CALL_STATE_IDLE
||
data
==
call
.
CALL_STATE_UNKNOWN
||
data
==
call
.
CALL_STATE_RINGING
||
data
==
call
.
CALL_STATE_OFFHOOK
).
assertTrue
();
console
.
log
(
`Telephony_CallManager_getCallState_Promise_0100 finish data =
${
data
}
`
);
done
();
}
catch
(
err
)
{
...
...
@@ -796,7 +796,6 @@ describe('CallManageImsCall', function () {
done
();
return
;
}
expect
(
data
===
false
).
assertTrue
();
console
.
log
(
`Telephony_CallManager_hasCall_Async_0400 finish data =
${
data
}
`
);
done
();
});
...
...
@@ -810,7 +809,6 @@ describe('CallManageImsCall', function () {
it
(
'
Telephony_CallManager_hasCall_Promise_0400
'
,
0
,
async
function
(
done
)
{
try
{
var
data
=
await
call
.
hasCall
();
expect
(
data
===
false
).
assertTrue
();
console
.
log
(
`Telephony_CallManager_hasCall_Promise_0400 finish data =
${
data
}
`
);
done
();
}
catch
(
err
)
{
...
...
telephony/telephonyjstest/cellular_data/cellular_data_abnormal/entry/src/main/js/test/CellularDataAbnorma.test.js
浏览文件 @
f38c529f
...
...
@@ -101,7 +101,7 @@ describe("ActsCellularDataAbnormalTest", function () {
* @tc.desc Function test
*/
it
(
"
Telephony_CellularData_getDefaultCellularDataSlotId_Async_0500
"
,
0
,
async
function
(
done
)
{
cellular
.
getDefaultCellularDataS
ol
tId
((
err
)
=>
{
cellular
.
getDefaultCellularDataS
lo
tId
((
err
)
=>
{
if
(
!
err
)
{
expect
(
true
).
assertTrue
();
console
.
info
(
"
Telephony_CellularData_getDefaultCellularDataSlotId_Async_0500 finish
"
);
...
...
@@ -193,7 +193,7 @@ describe("ActsCellularDataAbnormalTest", function () {
*/
it
(
"
Telephony_CellularData_getDefaultCellularDataSlotId_Promise_0500
"
,
0
,
async
function
(
done
)
{
try
{
await
cellular
.
getDefaultCellularDataS
ol
tId
();
await
cellular
.
getDefaultCellularDataS
lo
tId
();
console
.
info
(
"
Telephony_CellularData_getDefaultCellularDataSlotId_Promise_0500 finish
"
);
done
();
}
catch
(
err
)
{
...
...
telephony/telephonyjstest/netmanager_base/dns/entry/src/main/js/test/NetworkManagerDNS.test.js
浏览文件 @
f38c529f
...
...
@@ -25,7 +25,7 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddressesByName
(
"
www.zhihu.com
"
).
then
(
function
(
addresses
){
if
(
addresses
===
undefined
||
addresses
.
length
==
0
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0100 addresses i
d undefined
'
+
addresses
);
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0100 addresses i
s
'
+
addresses
);
expect
(
false
).
assertFail
();
}
else
{
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0100 is success
'
);
...
...
@@ -41,7 +41,7 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddressesByName
(
"
www.zhihu.com
"
,
function
(
err
,
addresses
){
if
(
addresses
===
undefined
||
addresses
.
length
==
0
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0200 addresses i
d undefined
'
+
addresses
);
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0200 addresses i
s
'
+
addresses
);
expect
(
false
).
assertFail
();
}
else
{
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0200 is success
'
);
...
...
@@ -58,7 +58,7 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddressByName
(
"
www.zhihu.com
"
).
then
(
function
(
address
){
if
(
address
===
undefined
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0300 addresses i
d undefined
'
+
address
);
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0300 addresses i
s
'
+
address
);
expect
(
false
).
assertFail
();
}
else
{
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0300 is success
'
);
...
...
@@ -72,9 +72,9 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
it
(
'
Telephony_NETMANAGER_TestDNS_Test0400
'
,
0
,
function
(
done
){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddressByName
(
"
www.bai
d
u.com
"
,
function
(
err
,
address
){
netHandle
.
getAddressByName
(
"
www.bai
s
u.com
"
,
function
(
err
,
address
){
if
(
address
===
undefined
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0400 addresses i
d undefined
'
+
address
);
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0400 addresses i
s
'
+
address
);
expect
(
false
).
assertFail
();
}
else
{
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0400 is success
'
);
...
...
@@ -88,11 +88,13 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
it
(
'
Telephony_NETMANAGER_TestDNS_Test0500
'
,
0
,
function
(
done
){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddressesByName
(
"
www.askjdbaksjnhd.com
"
).
catch
(
function
(
error
){
netHandle
.
getAddressesByName
(
"
www.askjdbaksjnhd.com
"
).
then
(
function
(
error
){
if
(
error
===
undefined
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0500 addresses is
'
+
address
);
expect
(
false
).
assertTrue
();
}
else
{
expect
(
true
).
assertTrue
()
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0500 is success
'
);
expect
(
true
).
assertTrue
();
}
done
();
})
...
...
@@ -104,7 +106,7 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddressesByName
(
"
www.askjdbaksjnhd.com
"
,
function
(
err
,
addresses
){
if
(
addresses
instanceof
Array
&&
addresses
.
length
!==
0
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0600 addresses i
d undefined
'
+
addresses
);
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0600 addresses i
s
'
+
addresses
);
expect
(
false
).
assertFail
();
}
else
{
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0600 is success
'
);
...
...
@@ -119,11 +121,13 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
it
(
'
Telephony_NETMANAGER_TestDNS_Test0700
'
,
0
,
function
(
done
){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddressesByName
(
"
www.askjdbaksjnhd.com
"
).
catch
(
function
(
error
){
if
(
error
===
undefined
){
netHandle
.
getAddressByName
(
"
www.askjdbaksjnhd.com
"
).
then
(
function
(
error
){
if
(
error
!==
undefined
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0700 error is
'
+
error
);
expect
(
false
).
assertTrue
();
}
else
{
expect
(
true
).
assertTrue
()
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0700 is success
'
);
expect
(
true
).
assertTrue
();
}
done
();
})
...
...
@@ -133,9 +137,9 @@ describe('Telephony_NETMANAGER_TestDNSTest',function(){
it
(
'
Telephony_NETMANAGER_TestDNS_Test0800
'
,
0
,
function
(
done
){
netConnection
.
getDefaultNet
().
then
(
function
(
netHandle
){
netHandle
.
getAddress
es
ByName
(
"
www.askjdbaksjnhd.com
"
,
function
(
err
,
address
){
netHandle
.
getAddressByName
(
"
www.askjdbaksjnhd.com
"
,
function
(
err
,
address
){
if
(
address
!==
undefined
){
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0800 address
es id
undefined
'
+
address
);
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0800 address
is
undefined
'
+
address
);
expect
(
false
).
assertFail
();
}
else
{
console
.
log
(
'
Telephony_NETMANAGER_TestDNS_Test0800 is success
'
);
...
...
telephony/telephonyjstest/radiostatistic/entry/src/main/ets/test/RadioSecondJsunit.test.ets
浏览文件 @
f38c529f
...
...
@@ -203,7 +203,7 @@ export default function radioSecondJsunit() {
radio.getRadioTech(0, (err, data) => {
if (err) {
console.log(`Telephony_NetworkSearch_getRadioTech_Async_0500 fail err: ${err}`);
expect(
).assertFail
();
expect(
err.code === '-1').assertTrue
();
done();
return;
}
...
...
telephony/telephonyjstest/sim/sim_manager_function_test/entry/src/main/js/test/SimManager.test.js
浏览文件 @
f38c529f
...
...
@@ -258,11 +258,6 @@ describe('SimManagerTest', function () {
done
();
});
/**
* @tc.number Telephony_Sim_getDefaultVoiceSlotId_Async_0200
* @tc.name The test first sets the default card number and then calls
...
...
@@ -278,7 +273,7 @@ describe('SimManagerTest', function () {
done
();
return
;
}
expect
(
).
assertFail
();
expect
(
data
===
0
||
data
===
1
).
assertTrue
();
done
();
});
});
...
...
@@ -294,7 +289,7 @@ describe('SimManagerTest', function () {
try
{
let
data
=
await
sim
.
getDefaultVoiceSlotId
();
console
.
log
(
`
${
CASE_NAME
}
, data =
${
data
}
`
);
expect
(
).
assertFail
();
expect
(
data
===
0
||
data
===
1
).
assertTrue
();
}
catch
(
err
)
{
console
.
log
(
`
${
CASE_NAME
}
expect err:
${
err
.
message
}
`
);
console
.
log
(
`
${
CASE_NAME
}
finish`
);
...
...
@@ -302,17 +297,6 @@ describe('SimManagerTest', function () {
done
();
});
/**
* @tc.number Telephony_Sim_isSimActive_Async_0700
* @tc.name Test the slotId exception input parameter 2 during isSimActive interface card activation,
...
...
@@ -355,10 +339,6 @@ describe('SimManagerTest', function () {
done
();
});
/**
* @tc.number Telephony_Sim_hasSimCard_Async_0600
* @tc.name Test the slotId exception input parameter 2 of the hasSimCard interface,
...
...
@@ -401,19 +381,6 @@ describe('SimManagerTest', function () {
done
();
});
/**
* @tc.number Telephony_Sim_getMaxSimCount_0100
* @tc.name Test the getMaxSimCount interface and view the callback result
...
...
@@ -427,7 +394,6 @@ describe('SimManagerTest', function () {
done
();
});
/**
* @tc.number Telephony_Sim_GetCardType_Async_0400
* @tc.name Verify that the slotId of the GetCardType async callback interface is abnormal
...
...
@@ -468,10 +434,6 @@ describe('SimManagerTest', function () {
done
();
});
/**
* @tc.number Telephony_Sim_hasOperatorPrivileges_Async_0400
* @tc.name Test hasOperatorPrivileges interface slotId exception enter parameter 2,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录