Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4b475674
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,发现更多精彩内容 >>
未验证
提交
4b475674
编写于
12月 02, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 02, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6774 电话用例整改
Merge pull request !6774 from zhangfuzhi/monthly_20221018
上级
9d809a17
6dbe98f4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
19 deletion
+18
-19
telephony/telephonyjstest/netmanager_base/jshttp/Test.json
telephony/telephonyjstest/netmanager_base/jshttp/Test.json
+2
-1
telephony/telephonyjstest/netmanager_base/jshttp/src/main/js/test/Http2Test.js
...test/netmanager_base/jshttp/src/main/js/test/Http2Test.js
+4
-5
telephony/telephonyjstest/netmanager_base/jshttp/src/main/js/test/HttpCacheTest.js
.../netmanager_base/jshttp/src/main/js/test/HttpCacheTest.js
+4
-5
telephony/telephonyjstest/netmanager_base/jshttp/src/main/js/test/NetworkManagerHttp.test.js
...r_base/jshttp/src/main/js/test/NetworkManagerHttp.test.js
+7
-7
telephony/telephonyjstest/netmanager_base/system_fetch/Test.json
...ny/telephonyjstest/netmanager_base/system_fetch/Test.json
+1
-1
未找到文件。
telephony/telephonyjstest/netmanager_base/jshttp/Test.json
浏览文件 @
4b475674
...
...
@@ -5,7 +5,8 @@
"test-timeout"
:
"900000"
,
"bundle-name"
:
"com.ohos.jshttp"
,
"package-name"
:
"com.ohos.jshttp"
,
"shell-timeout"
:
"900000"
"shell-timeout"
:
"900000"
,
"testcase-timeout"
:
"100000"
},
"kits"
:
[
{
...
...
telephony/telephonyjstest/netmanager_base/jshttp/src/main/js/test/Http2Test.js
浏览文件 @
4b475674
...
...
@@ -29,10 +29,9 @@ export default function Http2Test() {
http
.
request
(
"
https://www.zhihu.com
"
,
{
usingProtocol
:
net_Http
.
HttpProtocol
.
HTTP1_1
}).
then
(
function
(
data
)
{
console
.
info
(
"
Telephony_NETSTACK_Http2TestBasicGet_0100
"
+
JSON
.
stringify
(
data
));
expect
(
data
.
responseCode
===
net_Http
.
ResponseCode
.
OK
).
assertTrue
();
done
();
})
})
;
});
/**
...
...
@@ -48,7 +47,7 @@ export default function Http2Test() {
console
.
info
(
"
Telephony_NETSTACK_Http2TestBasicGet_0200
"
+
JSON
.
stringify
(
data
));
expect
(
data
.
responseCode
===
net_Http
.
ResponseCode
.
OK
).
assertTrue
();
done
();
})
})
;
});
/**
...
...
@@ -62,7 +61,7 @@ export default function Http2Test() {
console
.
info
(
"
Telephony_NETSTACK_Http2TestBasicGet_0300
"
+
JSON
.
stringify
(
data
));
expect
(
data
.
responseCode
===
net_Http
.
ResponseCode
.
OK
).
assertTrue
();
done
();
})
})
;
});
/**
...
...
@@ -112,6 +111,6 @@ export default function Http2Test() {
done
();
return
;
}
})
})
;
});
}
\ No newline at end of file
telephony/telephonyjstest/netmanager_base/jshttp/src/main/js/test/HttpCacheTest.js
浏览文件 @
4b475674
...
...
@@ -31,7 +31,6 @@ export default function HttpCacheTest() {
http
.
request
(
'
https://httpbin.org/anything
'
,
{
usingCache
:
true
}).
then
(
function
(
data
){
console
.
info
(
CaseName
+
JSON
.
stringify
(
data
));
expect
(
data
.
responseCode
===
net_http
.
ResponseCode
.
OK
).
assertTrue
();
done
();
return
;
...
...
@@ -75,7 +74,7 @@ export default function HttpCacheTest() {
expect
(
data
===
undefined
).
assertTrue
();
done
();
return
;
})
})
;
});
});
...
...
@@ -97,7 +96,7 @@ export default function HttpCacheTest() {
expect
(
data
===
undefined
).
assertTrue
();
done
();
return
;
})
})
;
});
});
...
...
@@ -119,7 +118,7 @@ export default function HttpCacheTest() {
expect
(
data
===
undefined
).
assertTrue
();
done
();
return
;
})
})
;
});
});
...
...
@@ -141,7 +140,7 @@ export default function HttpCacheTest() {
expect
(
data
===
undefined
).
assertTrue
();
done
();
return
;
})
})
;
});
});
});
...
...
telephony/telephonyjstest/netmanager_base/jshttp/src/main/js/test/NetworkManagerHttp.test.js
浏览文件 @
4b475674
...
...
@@ -30,7 +30,7 @@ describe('Telephony_NETSTACK_HTTPTest',function(){
http
.
request
(
"
https://httpbin.org/anything
"
).
then
(
function
(
data
){
expect
(
data
.
responseCode
===
netHttp
.
ResponseCode
.
OK
).
assertTrue
();
done
();
})
})
;
});
/**
...
...
@@ -46,7 +46,7 @@ describe('Telephony_NETSTACK_HTTPTest',function(){
console
.
info
(
JSON
.
stringify
(
data
));
expect
(
JSON
.
parse
(
data
.
result
)[
"
user-agent
"
]
===
"
libcurl-agent/1.0
"
).
assertTrue
();
done
();
})
})
;
});
/**
...
...
@@ -62,7 +62,7 @@ describe('Telephony_NETSTACK_HTTPTest',function(){
console
.
info
(
"
NETSTACK ####
"
+
JSON
.
stringify
(
JSON
.
parse
(
data
.
result
)))
expect
(
JSON
.
parse
(
data
.
result
)[
"
headers
"
][
"
Content-Type
"
]
===
"
application/json
"
).
assertTrue
()
done
()
})
})
;
});
/**
...
...
@@ -80,7 +80,7 @@ describe('Telephony_NETSTACK_HTTPTest',function(){
expect
(
data
.
responseCode
===
netHttp
.
ResponseCode
.
OK
).
assertTrue
()
expect
(
JSON
.
parse
(
data
.
result
)[
"
data
"
]
===
"
MineMine
"
).
assertTrue
()
done
();
})
})
;
});
/**
...
...
@@ -98,7 +98,7 @@ describe('Telephony_NETSTACK_HTTPTest',function(){
expect
(
data
.
responseCode
===
netHttp
.
ResponseCode
.
OK
).
assertTrue
()
expect
(
JSON
.
parse
(
data
.
result
)[
"
data
"
]
===
"
MineMine
"
).
assertTrue
()
done
();
})
})
;
});
/**
...
...
@@ -113,7 +113,7 @@ describe('Telephony_NETSTACK_HTTPTest',function(){
expect
(
data
.
responseCode
===
netHttp
.
ResponseCode
.
OK
).
assertTrue
()
expect
(
data
.
cookies
!==
""
).
assertTrue
()
done
();
})
})
;
});
/**
...
...
@@ -136,7 +136,7 @@ describe('Telephony_NETSTACK_HTTPTest',function(){
expect
(
JSON
.
parse
(
data
.
result
)[
"
name1
"
]
===
"
mine1
"
).
assertTrue
()
expect
(
JSON
.
parse
(
data
.
result
)[
"
name2
"
]
===
"
mine2
"
).
assertTrue
()
done
();
})
})
;
});
});
}
telephony/telephonyjstest/netmanager_base/system_fetch/Test.json
浏览文件 @
4b475674
...
...
@@ -6,7 +6,7 @@
"bundle-name"
:
"com.ohos.system_fetch"
,
"package-name"
:
"com.ohos.system_fetch"
,
"shell-timeout"
:
"900000"
,
"testcase-timeout"
:
"
4
0000"
"testcase-timeout"
:
"
6
0000"
},
"kits"
:
[
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录