Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ad6fb8e4
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看板
提交
ad6fb8e4
编写于
2月 25, 2022
作者:
高
高曦
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
电话子系统接口覆盖率提升
Signed-off-by:
N
高曦
<
gaoxi785@huawei.com
>
上级
2ac2e301
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
48 addition
and
23 deletion
+48
-23
telephony/telephonyjstest/call_manager/call_manager_ims2_call/Test.json
...phonyjstest/call_manager/call_manager_ims2_call/Test.json
+2
-3
telephony/telephonyjstest/call_manager/call_manager_ims2_call/entry/src/main/js/default/pages/index/index.js
..._ims2_call/entry/src/main/js/default/pages/index/index.js
+1
-1
telephony/telephonyjstest/cellular_data/cellular_data_abnormal/Test.json
...honyjstest/cellular_data/cellular_data_abnormal/Test.json
+2
-3
telephony/telephonyjstest/cellular_data/cellular_data_abnormal/entry/src/main/js/default/pages/index/index.js
...a_abnormal/entry/src/main/js/default/pages/index/index.js
+1
-1
telephony/telephonyjstest/network_search/network_search_errors/Test.json
...honyjstest/network_search/network_search_errors/Test.json
+2
-3
telephony/telephonyjstest/network_search/network_search_errors/entry/src/main/js/default/pages/index/index.js
...rch_errors/entry/src/main/js/default/pages/index/index.js
+1
-1
telephony/telephonyjstest/network_search/network_search_errors/entry/src/main/js/test/NetworkSearchErrors.test.js
...errors/entry/src/main/js/test/NetworkSearchErrors.test.js
+16
-3
telephony/telephonyjstest/sim/sim_manager_function_test/Test.json
...y/telephonyjstest/sim/sim_manager_function_test/Test.json
+2
-3
telephony/telephonyjstest/sim/sim_manager_function_test/entry/src/main/js/default/pages/index/index.js
...ction_test/entry/src/main/js/default/pages/index/index.js
+1
-1
telephony/telephonyjstest/sms_mms/sms_mms_error/Test.json
telephony/telephonyjstest/sms_mms/sms_mms_error/Test.json
+2
-3
telephony/telephonyjstest/sms_mms/sms_mms_error/entry/src/main/js/default/pages/index/index.js
..._mms_error/entry/src/main/js/default/pages/index/index.js
+1
-1
telephony/telephonyjstest/sms_mms/sms_mms_error/entry/src/main/js/test/SmsMmsError.test.js
.../sms_mms_error/entry/src/main/js/test/SmsMmsError.test.js
+17
-0
未找到文件。
telephony/telephonyjstest/call_manager/call_manager_ims2_call/Test.json
浏览文件 @
ad6fb8e4
...
...
@@ -2,10 +2,9 @@
"description"
:
"Configuration for ActsCallManagerIms2CallTest Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"1
2
00000"
,
"test-timeout"
:
"1
8
00000"
,
"package"
:
"com.ohos.actscallmanagerims2calltest"
,
"shell-timeout"
:
"1200000"
,
"native-test-timeout"
:
"1200000"
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
...
...
telephony/telephonyjstest/call_manager/call_manager_ims2_call/entry/src/main/js/default/pages/index/index.js
浏览文件 @
ad6fb8e4
...
...
@@ -38,7 +38,7 @@ export default {
core
.
addService
(
'
expect
'
,
expectExtend
)
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
timeout
=
8
000
;
this
.
timeout
=
30
000
;
configService
.
setConfig
(
this
)
require
(
'
../../../test/List.test
'
)
core
.
execute
()
...
...
telephony/telephonyjstest/cellular_data/cellular_data_abnormal/Test.json
浏览文件 @
ad6fb8e4
...
...
@@ -2,10 +2,9 @@
"description"
:
"Configuration for callmanager Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"18000"
,
"test-timeout"
:
"18000
00
"
,
"package"
:
"com.ohos.cellulardata"
,
"shell-timeout"
:
"18000"
,
"native-test-timeout"
:
"18000"
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
...
...
telephony/telephonyjstest/cellular_data/cellular_data_abnormal/entry/src/main/js/default/pages/index/index.js
浏览文件 @
ad6fb8e4
...
...
@@ -37,7 +37,7 @@ export default {
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
timeout
=
8
000
this
.
timeout
=
30
000
configService
.
setConfig
(
this
)
require
(
'
../../../test/List.test
'
)
core
.
execute
()
...
...
telephony/telephonyjstest/network_search/network_search_errors/Test.json
浏览文件 @
ad6fb8e4
...
...
@@ -2,10 +2,9 @@
"description"
:
"Configuration for NetworkSearch Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"1800"
,
"test-timeout"
:
"1800
000
"
,
"package"
:
"com.ohos.networksearch"
,
"shell-timeout"
:
"1800"
,
"native-test-timeout"
:
"1800"
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
...
...
telephony/telephonyjstest/network_search/network_search_errors/entry/src/main/js/default/pages/index/index.js
浏览文件 @
ad6fb8e4
...
...
@@ -37,7 +37,7 @@ export default {
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
timeout
=
8
000
this
.
timeout
=
30
000
configService
.
setConfig
(
this
)
require
(
'
../../../test/List.test
'
)
core
.
execute
()
...
...
telephony/telephonyjstest/network_search/network_search_errors/entry/src/main/js/test/NetworkSearchErrors.test.js
浏览文件 @
ad6fb8e4
...
...
@@ -106,6 +106,13 @@ describe('ActsNetworkSearchTest', function () {
radio
.
getNetworkState
(
SLOT_2
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`Telephony_NetworkSearch_getNetworkState_Async_0700 finish err:
${
err
}
`
);
expect
(
data
.
longOperatorName
!=
'
longOperatorName
'
).
assertTrue
();
expect
(
data
.
shortOperatorName
!=
'
shortOperatorName
'
).
assertTrue
();
expect
(
data
.
plmnNumeric
!=
'
plmnNumeric
'
).
assertTrue
();
expect
(
data
.
isRoaming
!=
true
).
assertTrue
();
expect
(
data
.
regState
!=
radio
.
REG_STATE_IN_SERVICE
).
assertTrue
();
expect
(
data
.
nsaState
!=
radio
.
NSA_STATE_SA_ATTACHED
).
assertTrue
();
expect
(
data
.
isCaActive
!=
true
).
assertTrue
();
done
();
return
;
}
...
...
@@ -147,6 +154,10 @@ describe('ActsNetworkSearchTest', function () {
return
;
}
console
.
log
(
`Telephony_NetworkSearch_getSignalInformation_Async_0400 finish data:
${
JSON
.
stringify
(
data
)}
`
);
if
(
data
.
length
>
0
)
{
expect
(
data
[
0
].
signalLevel
!=
-
1
).
assertTrue
();
expect
(
data
[
0
].
signalType
!=
radio
.
NETWORK_TYPE_WCDMA
).
assertTrue
();
}
expect
(
data
.
length
===
0
).
assertTrue
();
done
();
});
...
...
@@ -262,11 +273,11 @@ describe('ActsNetworkSearchTest', function () {
});
/**
* @tc.number Telephony_NetworkSearch_setNetworkSelectionMode_
Async
_0700
* @tc.number Telephony_NetworkSearch_setNetworkSelectionMode_
Promise
_0700
* @tc.name SlotId parameter input is -1, test setNetworkSelectionMode() query function go to the error
* @tc.desc Function test
*/
it
(
'
Telephony_NetworkSearch_setNetworkSelectionMode_
Async
_0700
'
,
0
,
async
function
(
done
)
{
it
(
'
Telephony_NetworkSearch_setNetworkSelectionMode_
Promise
_0700
'
,
0
,
async
function
(
done
)
{
let
networkSMode
=
{
slotId
:
55
,
//set the error slot id is 55
selectMode
:
radio
.
NETWORK_SELECTION_AUTOMATIC
,
...
...
@@ -279,7 +290,7 @@ describe('ActsNetworkSearchTest', function () {
resumeSelection
:
false
,
};
console
.
log
(
`Telephony_NetworkSearch_setNetworkSelectionMode_
Async
_0700 networkSMode:
${
JSON
.
stringify
(
networkSMode
)}
`
)
`Telephony_NetworkSearch_setNetworkSelectionMode_
Promise
_0700 networkSMode:
${
JSON
.
stringify
(
networkSMode
)}
`
)
try
{
await
radio
.
setNetworkSelectionMode
(
networkSMode
);
console
.
log
(
'
Telephony_NetworkSearch_setNetworkSelectionMode_Promise_0200 set fail
'
);
...
...
@@ -299,6 +310,8 @@ describe('ActsNetworkSearchTest', function () {
it
(
'
Telephony_NetworkSearch_getNetworkSearchInformation_Async_0400
'
,
0
,
async
function
(
done
)
{
radio
.
getNetworkSearchInformation
(
SLOT_2
,
(
err
,
data
)
=>
{
if
(
err
)
{
expect
(
data
.
isNetworkSearchSuccess
!=
true
).
assertTrue
();
expect
(
data
.
networkSearchResult
!=
undefined
).
assertTrue
();
console
.
log
(
'
Telephony_NetworkSearch_getNetworkSearchInformation_Async_0400 finish
'
);
done
();
}
else
{
...
...
telephony/telephonyjstest/sim/sim_manager_function_test/Test.json
浏览文件 @
ad6fb8e4
...
...
@@ -2,10 +2,9 @@
"description"
:
"Function test of sim manager interface"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"
54
0000"
,
"test-timeout"
:
"
180
0000"
,
"package"
:
"com.ohos.simmanagertest"
,
"shell-timeout"
:
"540000"
,
"native-test-timeout"
:
"540000"
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
...
...
telephony/telephonyjstest/sim/sim_manager_function_test/entry/src/main/js/default/pages/index/index.js
浏览文件 @
ad6fb8e4
...
...
@@ -39,7 +39,7 @@ export default {
core
.
init
();
const
configService
=
core
.
getDefaultService
(
'
config
'
);
configService
.
timeout
=
8
000
this
.
timeout
=
30
000
configService
.
setConfig
(
this
);
require
(
'
../../../test/List.test
'
);
...
...
telephony/telephonyjstest/sms_mms/sms_mms_error/Test.json
浏览文件 @
ad6fb8e4
...
...
@@ -2,10 +2,9 @@
"description"
:
"Configuration for sms_mms demo Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"
24
0000"
,
"test-timeout"
:
"
180
0000"
,
"package"
:
"com.ohos.smsmms"
,
"shell-timeout"
:
"240000"
,
"native-test-timeout"
:
"240000"
"shell-timeout"
:
"60000"
},
"kits"
:
[
{
...
...
telephony/telephonyjstest/sms_mms/sms_mms_error/entry/src/main/js/default/pages/index/index.js
浏览文件 @
ad6fb8e4
...
...
@@ -42,7 +42,7 @@ export default {
core
.
init
()
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
timeout
=
6
0000
this
.
timeout
=
3
0000
configService
.
setConfig
(
this
)
require
(
'
../../../test/List.test
'
)
...
...
telephony/telephonyjstest/sms_mms/sms_mms_error/entry/src/main/js/test/SmsMmsError.test.js
浏览文件 @
ad6fb8e4
...
...
@@ -354,6 +354,10 @@ describe('SmsMmsErrorTest', function () {
done
();
return
;
}
if
(
result
.
length
>
0
)
{
except
(
result
[
0
].
shortMessage
!=
null
).
assertTrue
();
except
(
result
[
0
].
indexOnSim
!=
-
1
).
assertTrue
();
}
expect
(
result
===
undefined
||
result
.
length
===
0
).
assertTrue
();
console
.
log
(
'
Telephony_SmsMms_getAllSIMMessages_Async_0200 finish
'
);
done
();
...
...
@@ -389,6 +393,16 @@ describe('SmsMmsErrorTest', function () {
sms
.
createMessage
(
rawArrayNull
,
'
3gpp
'
,
(
err
,
shortMessage
)
=>
{
if
(
err
)
{
console
.
log
(
'
Telephony_SmsMms_createMessage_Async_0200 finish
'
);
except
(
shortMessage
.
visibleMessageBody
!=
'
visibleMessageBody
'
).
assertTrue
();
except
(
shortMessage
.
visibleRawAddress
!=
'
visibleRawAddress
'
).
assertTrue
();
except
(
shortMessage
.
messageClass
!=
'
sms.FORWARD_MESSAGE
'
).
assertTrue
();
except
(
shortMessage
.
protocolId
!=
-
1
).
assertTrue
();
except
(
shortMessage
.
scAddress
!=
'
scAddress
'
).
assertTrue
();
except
(
shortMessage
.
scTimestamp
!=
-
1
).
assertTrue
();
except
(
shortMessage
.
isReplaceMessage
!=
true
).
assertTrue
();
except
(
shortMessage
.
hasReplyPath
!=
true
).
assertTrue
();
except
(
shortMessage
.
status
!=
-
1
).
assertTrue
();
except
(
shortMessage
.
isSmsStatusReportMessage
!=
true
).
assertTrue
();
done
();
return
;
}
...
...
@@ -408,7 +422,9 @@ describe('SmsMmsErrorTest', function () {
sms
.
sendMessage
({
slotId
:
FALSE_SLOT_ID
,
destinationHost
:
SMS_SEND_DST_NUMBER
,
serviceCenter
:
''
,
content
:
'
hello
'
,
destinationPort
:
0
,
sendCallback
:
(
err
,
value
)
=>
{
if
(
err
)
{
expect
().
assertFail
();
...
...
@@ -418,6 +434,7 @@ describe('SmsMmsErrorTest', function () {
}
console
.
log
(
`sendCallback success sendResult =
${
value
.
result
}
`
);
expect
(
value
.
result
===
sms
.
SEND_SMS_FAILURE_UNKNOWN
).
assertTrue
();
expect
(
value
.
isLastPart
!=
true
).
assertTrue
();
console
.
log
(
'
Telephony_SmsMms_sendMessage_0200 finish
'
);
done
();
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录