Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
63a22e58
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看板
未验证
提交
63a22e58
编写于
3月 17, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 17, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2596 useriam人脸测试套修改
Merge pull request !2596 from 胡吉翔/useriam0317
上级
f62a5ccb
8c7f772b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
425 deletion
+19
-425
useriam/face_auth/js_api_test/function_test/userauth/entry/src/main/js/test/execute.js
.../function_test/userauth/entry/src/main/js/test/execute.js
+19
-425
未找到文件。
useriam/face_auth/js_api_test/function_test/userauth/entry/src/main/js/test/execute.js
浏览文件 @
63a22e58
...
...
@@ -35,413 +35,48 @@ describe('userAuthTest', function () {
})
/**
* @tc.name execute_authentication_callback_failed
* @tc.number JSAPI_Function_Execute_0100
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0100
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0100 start
"
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0100
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0100 auth.execute:
"
+
data
);
// COMPARE_FAILURE(1)
expect
(
data
).
assertEqual
(
1
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_0100 end
"
);
})
/**
* @tc.name execute_authentication_callback_timeout
* @tc.number JSAPI_Function_Execute_0200
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0200
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0200 start
"
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0200
'
,
'
1
'
,
'
18 6 0 0 0 0 0 0 0 0 0
'
)
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0200 auth.execute:
"
+
data
);
// TIMEOUT (3)
expect
(
data
).
assertEqual
(
3
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_0200 end
"
);
})
/**
* @tc.name execute_authentication_callback_camera_fail
* @tc.number JSAPI_Function_Execute_0300
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0300
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0300 start
"
);
index
.
default
.
fileSaveB
(
'
JSAPI_Function_Execute_0300
'
,
'
903
'
)
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0300 auth.execute:
"
+
data
);
// CAMERA_FAIL(4)
expect
(
data
).
assertEqual
(
4
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_0300 end
"
);
})
/**
* @tc.name execute_authentication_callback_busy
* @tc.number JSAPI_Function_Execute_0400
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0400
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0400 start
"
);
waitFlag
=
true
;
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0400 auth.execute1:
"
+
data
);
})
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0400 auth.execute2:
"
+
data
);
// BUSY(5)
expect
(
data
).
assertEqual
(
5
);
setTimeout
(
function
()
{
done
();
},
3000
);
})
console
.
log
(
"
JSAPI_Function_Execute_0400 end
"
);
})
/**
* @tc.name execute_authentication_callback_LOCKED
* @tc.number JSAPI_Function_Execute_0500
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0500
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0500 start
"
);
const
auth
=
userAuth
.
getAuthenticator
();
// exe 1~5
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
}).
then
(
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0500 auth.execute1:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0500 auth.execute2:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0500 auth.execute3:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0500 auth.execute4:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0500 auth.execute5:
"
+
data
);
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0500 auth.execute6:
"
+
data
);
// LOCKED(7)
expect
(
data
).
assertEqual
(
7
);
setTimeout
(
function
()
{
console
.
log
(
"
JSAPI_Function_Execute_0500 end wait 30m
"
);
done
();
},
1
);
})
})
})
})
})
})
);
console
.
log
(
"
JSAPI_Function_Execute_0500 end
"
);
})
/**
* @tc.name execute_authentication_callback_NOT_ENROLLED
* @tc.number JSAPI_Function_Execute_0600
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0600
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0600 start
"
);
waitFlag
=
false
;
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0800
'
,
'
1
'
,
'
18 9 0 0 0 0 0 0 0 0 0
'
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0600 auth.execute:
"
+
data
);
// NOT_ENROLLED(8)
expect
(
data
).
assertEqual
(
8
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_0600 end
"
);
})
/**
* @tc.name execute_authentication_callback_GENERAL_ERROR
* @tc.number JSAPI_Function_Execute_0700
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0700
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0700 start
"
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0700
'
,
'
1
'
,
'
18 4 0 0 0 0 0 0 0 0 0
'
)
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0700 auth.execute:
"
+
data
);
// GENERAL_ERROR(100)
expect
(
data
).
assertEqual
(
100
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_0700 end
"
);
})
/**
* @tc.name execute_authentication_promise_COMPARE_FAILURE
* @tc.number JSAPI_Function_Execute_0800
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0800
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0800 start
"
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0800
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0800 auth.execute:
"
+
data
);
// COMPARE_FAILURE(1)
expect
(
data
).
assertEqual
(
1
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_0800 end
"
);
})
/**
* @tc.name execute_authentication_promise_TIMEOUT
* @tc.number JSAPI_Function_Execute_0900
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_0900
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_0900 start
"
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0800
'
,
'
1
'
,
'
18 6 0 0 0 0 0 0 0 0 0
'
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_0900 auth.execute:
"
+
data
);
// TIMEOUT (3)
expect
(
data
).
assertEqual
(
3
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_0900 end
"
);
})
/**
* @tc.name execute_authentication_promise_CAMERA_FAIL
* @tc.number JSAPI_Function_Execute_1000
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_1000
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1000 start
"
);
index
.
default
.
fileSaveB
(
'
JSAPI_Function_Execute_1000
'
,
'
903
'
)
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1000 auth.execute:
"
+
data
);
// CAMERA_FAIL(4)
expect
(
data
).
assertEqual
(
4
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_1000 end
"
);
})
/**
* @tc.name execute_authentication_promise_BUSY
* @tc.number JSAPI_Function_Execute_1100
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_1100
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1100 start
"
);
waitFlag
=
true
;
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1100 auth.execute1:
"
+
data
);
});
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1100 auth.execute2:
"
+
data
);
// BUSY(5)
expect
(
data
).
assertEqual
(
5
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_1100 end
"
);
})
/**
* @tc.name execute_authentication_promise_LOCKED
* @tc.number JSAPI_Function_Execute_1200
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_1200
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1200 start
"
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
const
auth
=
userAuth
.
getAuthenticator
();
// exe 1~5
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
}).
then
(
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1200 auth.execute1:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1200 auth.execute2:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1200 auth.execute3:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1200 auth.execute4:
"
+
data
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0500
'
,
'
1
'
,
'
18 0 0 0 0 0 0 0 0 0 0
'
)
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1200 auth.execute5:
"
+
data
);
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1200 auth.execute6:
"
+
data
);
// LOCKED(7)
expect
(
data
).
assertEqual
(
7
);
setTimeout
(
function
()
{
done
();
},
1
);
});
})
})
})
})
})
);
console
.
log
(
"
JSAPI_Function_Execute_1200 end
"
);
})
/**
* @tc.name execute_authentication_promise_NOT_ENROLLED
* @tc.number JSAPI_Function_Execute_1300
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_1300
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1300 start
"
);
waitFlag
=
false
;
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_0800
'
,
'
1
'
,
'
18 9 0 0 0 0 0 0 0 0 0
'
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1300 auth.execute:
"
+
data
);
// NOT_ENROLLED(8)
expect
(
data
).
assertEqual
(
8
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_1300 end
"
);
})
/**
* @tc.name execute_authentication_promise_GENERAL_ERROR
* @tc.number JSAPI_Function_Execute_1400
* @tc.name execute_authentication_callback_ALL_NO_SUPPORT
* @tc.number JSAPI_Function_Execute_1700
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_1400
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1400 start
"
);
index
.
default
.
fileSave
(
'
JSAPI_Function_Execute_1400
'
,
'
1
'
,
'
18 4 0 0 0 0 0 0 0 0 0
'
)
it
(
'
JSAPI_Function_Execute_1700
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1700 start
"
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1
4
00 auth.execute:
"
+
data
);
//
GENERAL_ERROR(100
)
expect
(
data
).
assertEqual
(
100
);
auth
.
execute
(
"
ALL
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1
7
00 auth.execute:
"
+
data
);
//
NO_SUPPORT(-1
)
expect
(
data
).
assertEqual
(
-
1
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_1
4
00 end
"
);
console
.
log
(
"
JSAPI_Function_Execute_1
7
00 end
"
);
})
/**
* @tc.name execute_authentication_callback_FACE_ONLY_SUCCESS
* @tc.number JSAPI_Function_Execute_1600
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_1600
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1600 start
"
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S1
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1600 auth.execute:
"
+
data
);
// SUCCESS(0)
expect
(
data
).
assertEqual
(
0
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_1600 end
"
);
})
/**
* @tc.name execute_authentication_
callback
_ALL_NO_SUPPORT
* @tc.number JSAPI_Function_Execute_
17
00
* @tc.name execute_authentication_
promise
_ALL_NO_SUPPORT
* @tc.number JSAPI_Function_Execute_
20
00
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_
17
00
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_
17
00 start
"
);
it
(
'
JSAPI_Function_Execute_
20
00
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_
20
00 start
"
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
ALL
"
,
"
S2
"
,
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_
17
00 auth.execute:
"
+
data
);
auth
.
execute
(
"
ALL
"
,
"
S2
"
).
catch
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_
20
00 auth.execute:
"
+
data
);
// NO_SUPPORT(-1)
expect
(
data
).
assertEqual
(
-
1
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_
17
00 end
"
);
console
.
log
(
"
JSAPI_Function_Execute_
20
00 end
"
);
})
/**
* @tc.name execute_authentication_callback_Type_is_null
* @tc.number JSAPI_Function_Execute_1800
...
...
@@ -463,47 +98,6 @@ describe('userAuthTest', function () {
console
.
log
(
"
JSAPI_Function_Execute_1800 end
"
);
})
/**
* @tc.name execute_authentication_promise_FACE_ONLY_SUCCESS
* @tc.number JSAPI_Function_Execute_1900
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_1900
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_1900 start
"
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
FACE_ONLY
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_1900 auth.execute:
"
+
data
);
// SUCCESS(0)
expect
(
data
).
assertEqual
(
0
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_1900 end
"
);
})
/**
* @tc.name execute_authentication_promise_ALL_NO_SUPPORT
* @tc.number JSAPI_Function_Execute_2000
* @tc.size MEDIUM
* @tc.type FUNC
* @tc.level Level2
*/
it
(
'
JSAPI_Function_Execute_2000
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_2000 start
"
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
"
ALL
"
,
"
S2
"
).
then
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_2000 auth.execute:
"
+
data
);
// NO_SUPPORT(-1)
expect
(
data
).
assertEqual
(
-
1
);
setTimeout
(
function
()
{
done
();
},
1
);
});
console
.
log
(
"
JSAPI_Function_Execute_2000 end
"
);
})
/**
* @tc.name execute_authentication_promise_Type_is_null
...
...
@@ -515,7 +109,7 @@ describe('userAuthTest', function () {
it
(
'
JSAPI_Function_Execute_2100
'
,
0
,
function
(
done
)
{
console
.
log
(
"
JSAPI_Function_Execute_2100 start
"
);
const
auth
=
userAuth
.
getAuthenticator
();
auth
.
execute
(
""
,
"
S2
"
).
then
(
function
(
data
)
{
auth
.
execute
(
""
,
"
S2
"
).
catch
(
function
(
data
)
{
console
.
log
(
"
JSAPI_Function_Execute_2100 auth.execute:
"
+
data
);
// INVALID_PARAMETERS(6)
expect
(
data
).
assertEqual
(
6
);
...
...
@@ -525,4 +119,4 @@ describe('userAuthTest', function () {
});
console
.
log
(
"
JSAPI_Function_Execute_2100 end
"
);
})
})
\ No newline at end of file
})
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录