Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
22dbef13
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
22dbef13
编写于
7月 19, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 19, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9390 增加statistic接口用例
Merge pull request !9390 from 高曦/master
上级
054c36d5
2052e395
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
748 addition
and
46 deletion
+748
-46
telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/List.test.ets
...est/netmanager_http/entry/src/main/ets/test/List.test.ets
+3
-1
telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/StatisticsTest.test.ets
...ager_http/entry/src/main/ets/test/StatisticsTest.test.ets
+744
-0
telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js
...earch_errors/src/main/js/test/NetworkSearchErrors.test.js
+1
-45
未找到文件。
telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/List.test.ets
浏览文件 @
22dbef13
/**
* Copyright (c) 2021-202
2
Huawei Device Co., Ltd.
* Copyright (c) 2021-202
3
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
...
...
@@ -19,6 +19,7 @@ import requestMethodJsunit from './RequestMethodJsunit.test';
import httpResponseJsunit from './HttpResponseJsunit.test';
import HttpRequestOptionsJsunit from './HttpRequestOptionsJsunit.test';
import httpRequestJsunit from './HttpRequestJsunit.test';
import StatisticsTest from './StatisticsTest.test';
export default function testsuite() {
httpJsunit();
...
...
@@ -27,4 +28,5 @@ export default function testsuite() {
httpResponseJsunit();
HttpRequestOptionsJsunit();
httpRequestJsunit();
StatisticsTest();
}
\ No newline at end of file
telephony/telephonyjstest/netmanager_http/entry/src/main/ets/test/StatisticsTest.test.ets
0 → 100644
浏览文件 @
22dbef13
此差异已折叠。
点击以展开。
telephony/telephonyjstest/network_search/network_search_errors/src/main/js/test/NetworkSearchErrors.test.js
浏览文件 @
22dbef13
...
...
@@ -235,11 +235,7 @@ describe('ActsNetworkSearchTest', function () {
}
done
();
});
/**
* @tc.number Telephony_NetworkSearch_getNetworkState_Promise_0700
* @tc.name SlotId parameter input is -1, test getNetworkState() query function go to the error
...
...
@@ -441,26 +437,6 @@ describe('ActsNetworkSearchTest', function () {
}
});
/**
* @tc.number Telephony_StateRegistry_on_0200
* @tc.name Add a networkStatus change listen and test observer.on({slotId:0}) to view the callback results
* @tc.desc Function test
*/
it
(
'
Telephony_StateRegistry_on_0200
'
,
0
,
async
function
(
done
)
{
try
{
observer
.
on
(
'
networkStateChange
'
,
{
slotId
:
0
},
NetworkState
=>
{
console
.
log
(
"
on networkStateChange, NetworkState:
"
+
JSON
.
stringify
(
NetworkState
));
expect
(
typeof
NetworkState
===
undefined
).
assertFalse
();
});
done
();
}
catch
(
error
)
{
expect
(
false
).
assertTrue
();
done
();
}
});
/**
* @tc.number Telephony_StateRegistry_off_0200
* @tc.name Add a networkStatus change listen and test observer.off() to view the callback results
...
...
@@ -483,26 +459,6 @@ describe('ActsNetworkSearchTest', function () {
}
});
/**
* @tc.number Telephony_StateRegistry_on_0300
* @tc.name Add a networkStatus change listen and test observer.on({slotId:0}) to view the callback results
* @tc.desc Function test
*/
it
(
'
Telephony_StateRegistry_on_0300
'
,
0
,
async
function
(
done
)
{
try
{
observer
.
on
(
'
signalInfoChange
'
,
{
slotId
:
0
},
SignalInformation
=>
{
console
.
log
(
"
on signalInfoChange, SignalInformation:
"
+
JSON
.
stringify
(
SignalInformation
));
expect
(
typeof
SignalInformation
===
undefined
).
assertFalse
();
});
done
();
}
catch
(
error
)
{
expect
(
false
).
assertTrue
();
done
();
}
});
/**
* @tc.number Telephony_StateRegistry_off_0300
* @tc.name Add a networkStatus change listen and test observer.off() to view the callback results
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录