Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7191d1d9
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看板
提交
7191d1d9
编写于
1月 10, 2023
作者:
Z
zwx1016320
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add request property 1
Signed-off-by:
N
zwx1016320
<
zhangyushuai1@huawei-partners.com
>
上级
5e6727d2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
12 deletion
+14
-12
request/RequestTest_ets/entry/src/main/ets/test/requestUpload.test.ets
...stTest_ets/entry/src/main/ets/test/requestUpload.test.ets
+14
-12
未找到文件。
request/RequestTest_ets/entry/src/main/ets/test/requestUpload.test.ets
浏览文件 @
7191d1d9
...
...
@@ -99,7 +99,7 @@ export default function requestUploadJSUnit() {
console.info("====>SUB_REQUEST_UPLOAD_API_0001 request.ERROR_DEVICE_NOT_FOUND:" + request.ERROR_DEVICE_NOT_FOUND);
expect(request.ERROR_DEVICE_NOT_FOUND).assertEqual(1);
} catch (err) {
expect(
true).assertEqual(true
);
expect(
).assertFail(
);
console.error("====>SUB_REQUEST_UPLOAD_API_0001 error: " + err);
}
console.info("====>-----------------------SUB_REQUEST_UPLOAD_API_0001 end-----------------------");
...
...
@@ -126,7 +126,7 @@ export default function requestUploadJSUnit() {
console.info("====>SUB_REQUEST_UPLOAD_API_0002 request.ERROR_INSUFFICIENT_SPACE:" + request.ERROR_INSUFFICIENT_SPACE);
expect(request.ERROR_INSUFFICIENT_SPACE).assertEqual(5);
} catch (err) {
expect(
true).assertEqual(true
);
expect(
).assertFail(
);
console.error("====>SUB_REQUEST_UPLOAD_API_0002 error: " + err);
}
console.info("====>-----------------------SUB_REQUEST_UPLOAD_API_0002 end-----------------------");
...
...
@@ -153,7 +153,7 @@ export default function requestUploadJSUnit() {
console.info("====>SUB_REQUEST_UPLOAD_API_0003 request.PAUSED_QUEUED_FOR_WIFI:" + request.PAUSED_QUEUED_FOR_WIFI);
expect(request.PAUSED_QUEUED_FOR_WIFI).assertEqual(0);
} catch (err) {
expect(
true).assertEqual(true
);
expect(
).assertFail(
);
console.error("====>SUB_REQUEST_UPLOAD_API_0003 error: " + err);
}
console.info("====>-----------------------SUB_REQUEST_UPLOAD_API_0003 end-----------------------");
...
...
@@ -177,10 +177,10 @@ export default function requestUploadJSUnit() {
expect(request.PAUSED_WAITING_FOR_NETWORK).assertEqual(1);
console.info("====>SUB_REQUEST_UPLOAD_API_0004 request.PAUSED_WAITING_TO_RETRY:" + request.PAUSED_WAITING_TO_RETRY);
expect(request.PAUSED_WAITING_TO_RETRY).assertEqual(2);
console.info("====>SUB_REQUEST_UPLOAD_API_0004 request.
SESSION_FAILED:" + request.SESSION_FAILED
);
expect(request.
SESSION_FAILED).assertEqual(4
);
console.info("====>SUB_REQUEST_UPLOAD_API_0004 request.
PAUSED_BY_USER:" + request.PAUSED_BY_USER
);
expect(request.
PAUSED_BY_USER).assertEqual(3
);
} catch (err) {
expect(
true).assertEqual(true
);
expect(
).assertFail(
);
console.error("====>SUB_REQUEST_UPLOAD_API_0004 error: " + err);
}
console.info("====>-----------------------SUB_REQUEST_UPLOAD_API_0004 end-----------------------");
...
...
@@ -198,16 +198,18 @@ export default function requestUploadJSUnit() {
it('SUB_REQUEST_UPLOAD_API_0005', 0, async function (done) {
console.info("====>-----------------------SUB_REQUEST_UPLOAD_API_0005 is starting-----------------------");
try {
console.info("====>SUB_REQUEST_UPLOAD_API_0004 request.SESSION_PAUSED:" + request.SESSION_PAUSED);
console.info("====>SUB_REQUEST_UPLOAD_API_0005 request.SESSION_FAILED:" + request.SESSION_FAILED);
expect(request.SESSION_FAILED).assertEqual(4);
console.info("====>SUB_REQUEST_UPLOAD_API_0005 request.SESSION_PAUSED:" + request.SESSION_PAUSED);
expect(request.SESSION_PAUSED).assertEqual(3);
console.info("====>SUB_REQUEST_UPLOAD_API_000
4
request.SESSION_PENDING:" + request.SESSION_PENDING);
console.info("====>SUB_REQUEST_UPLOAD_API_000
5
request.SESSION_PENDING:" + request.SESSION_PENDING);
expect(request.SESSION_PENDING).assertEqual(2);
console.info("====>SUB_REQUEST_UPLOAD_API_000
4
request.SESSION_RUNNING:" + request.SESSION_RUNNING);
console.info("====>SUB_REQUEST_UPLOAD_API_000
5
request.SESSION_RUNNING:" + request.SESSION_RUNNING);
expect(request.SESSION_RUNNING).assertEqual(1);
console.info("====>SUB_REQUEST_UPLOAD_API_000
4
request.SESSION_SUCCESSFUL:" + request.SESSION_SUCCESSFUL);
console.info("====>SUB_REQUEST_UPLOAD_API_000
5
request.SESSION_SUCCESSFUL:" + request.SESSION_SUCCESSFUL);
expect(request.SESSION_SUCCESSFUL).assertEqual(0);
} catch (err) {
expect(
true).assertEqual(true
);
expect(
).assertFail(
);
console.error("====>SUB_REQUEST_UPLOAD_API_0005 error: " + err);
}
console.info("====>-----------------------SUB_REQUEST_UPLOAD_API_0005 end-----------------------");
...
...
@@ -244,7 +246,7 @@ export default function requestUploadJSUnit() {
console.info("====>SUB_REQUEST_UPLOAD_API_0006 request.ERROR_UNSUPPORTED_NETWORK_TYPE:" + request.ERROR_UNSUPPORTED_NETWORK_TYPE);
expect(request.ERROR_UNSUPPORTED_NETWORK_TYPE).assertEqual(10);
} catch (err) {
expect(
true).assertEqual(true
);
expect(
).assertFail(
);
console.error("====>SUB_REQUEST_UPLOAD_API_0006 error: " + err);
}
console.info("====>-----------------------SUB_REQUEST_UPLOAD_API_0006 end-----------------------");
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
2aef75bf
·
1月 17, 2023
mentioned in commit
2aef75bf
mentioned in commit 2aef75bfb5f6abe17492c50774c2174d691b9ac1
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录