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