Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c2ddca5d
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看板
未验证
提交
c2ddca5d
编写于
5月 28, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 28, 2022
浏览文件
操作
浏览文件
下载
差异文件
!3312 EDM框架支持多用户XTS用例新增
Merge pull request !3312 from 蔡明港/master
上级
5c0ebeec
1d954a09
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
283 addition
and
18 deletion
+283
-18
customization/enterprise_device_management/Test.json
customization/enterprise_device_management/Test.json
+9
-0
customization/enterprise_device_management/src/main/js/default/test/EnterpriseDeviceManager.test.js
.../src/main/js/default/test/EnterpriseDeviceManager.test.js
+274
-18
未找到文件。
customization/enterprise_device_management/Test.json
浏览文件 @
c2ddca5d
...
@@ -7,6 +7,15 @@
...
@@ -7,6 +7,15 @@
"shell-timeout"
:
"60000"
"shell-timeout"
:
"60000"
},
},
"kits"
:
[
"kits"
:
[
{
"type"
:
"ShellKit"
,
"run-command"
:
[
"acm create -n edmuser -t normal"
],
"teardown-command"
:
[
"acm delete -i 101"
]
},
{
{
"test-file-name"
:
[
"test-file-name"
:
[
"ActsEdmJsTest.hap"
,
"ActsEdmJsTest.hap"
,
...
...
customization/enterprise_device_management/src/main/js/default/test/EnterpriseDeviceManager.test.js
浏览文件 @
c2ddca5d
...
@@ -38,12 +38,16 @@ const ENTINFO2 = {
...
@@ -38,12 +38,16 @@ const ENTINFO2 = {
description
:
"
edm demo2
"
description
:
"
edm demo2
"
};
};
const
DEFAULT_USER_ID
=
100
;
const
TEST_USER_ID
=
101
;
const
ERR_USER_ID
=
102
;
describe
(
'
EnterpriseDeviceManagerTest
'
,
function
()
{
describe
(
'
EnterpriseDeviceManagerTest
'
,
function
()
{
console
.
log
(
'
*************start EnterpriseDeviceManagerTest*************
'
);
console
.
log
(
'
*************start EnterpriseDeviceManagerTest*************
'
);
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
100
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
001
* @tc.name test activateAdmin method in promise mode
* @tc.name test activateAdmin method in promise mode
without user id
* @tc.desc activate admin in promise mode
* @tc.desc activate admin in promise mode
*/
*/
it
(
'
activateAdmin_test_001
'
,
0
,
async
function
(
done
)
{
it
(
'
activateAdmin_test_001
'
,
0
,
async
function
(
done
)
{
...
@@ -67,8 +71,8 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -67,8 +71,8 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
200
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
001
* @tc.name test activateAdmin method in callback mode
* @tc.name test activateAdmin method in callback mode
without user id
* @tc.desc activate admin in callback mode
* @tc.desc activate admin in callback mode
*/
*/
it
(
'
activateAdmin_test_002
'
,
0
,
async
function
(
done
)
{
it
(
'
activateAdmin_test_002
'
,
0
,
async
function
(
done
)
{
...
@@ -95,8 +99,8 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -95,8 +99,8 @@ describe('EnterpriseDeviceManagerTest', function () {
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
300
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
003
* @tc.name test activateAdmin method in promise mode with ADMIN_TYPE_SUPER param
* @tc.name test activateAdmin method in promise mode with ADMIN_TYPE_SUPER param
without user id
* @tc.desc activate super admin in promise mode
* @tc.desc activate super admin in promise mode
*/
*/
it
(
'
activateAdmin_test_003
'
,
0
,
async
function
(
done
)
{
it
(
'
activateAdmin_test_003
'
,
0
,
async
function
(
done
)
{
...
@@ -126,8 +130,8 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -126,8 +130,8 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
400
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
004
* @tc.name test activateAdmin method in callback mode with ADMIN_TYPE_SUPER param
* @tc.name test activateAdmin method in callback mode with ADMIN_TYPE_SUPER param
without user id
* @tc.desc activate super admin in callback mode
* @tc.desc activate super admin in callback mode
*/
*/
it
(
'
activateAdmin_test_004
'
,
0
,
async
function
(
done
)
{
it
(
'
activateAdmin_test_004
'
,
0
,
async
function
(
done
)
{
...
@@ -153,8 +157,8 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -153,8 +157,8 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
500
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
005
* @tc.name test activateAdmin method in promise mode
* @tc.name test activateAdmin method in promise mode
without user id
* @tc.desc activate admin in promise mode
* @tc.desc activate admin in promise mode
*/
*/
it
(
'
activateAdmin_test_005
'
,
0
,
async
function
(
done
)
{
it
(
'
activateAdmin_test_005
'
,
0
,
async
function
(
done
)
{
...
@@ -180,8 +184,8 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -180,8 +184,8 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
600
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
006
* @tc.name test activateAdmin method in callback mode
* @tc.name test activateAdmin method in callback mode
without user id
* @tc.desc activate admin in callback mode
* @tc.desc activate admin in callback mode
*/
*/
it
(
'
activateAdmin_test_006
'
,
0
,
async
function
(
done
)
{
it
(
'
activateAdmin_test_006
'
,
0
,
async
function
(
done
)
{
...
@@ -208,9 +212,261 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -208,9 +212,261 @@ describe('EnterpriseDeviceManagerTest', function () {
}
}
})
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0007
* @tc.name test activateAdmin method in promise mode with default user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_007
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.activateAdmin ADMIN_TYPE_NORMAL :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
var
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
done
();
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0008
* @tc.name test activateAdmin method with user id in callback mode with default user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_008
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
DEFAULT_USER_ID
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
console
.
log
(
'
enterpriseDeviceManager.activateAdmin ADMIN_TYPE_NORMAL :
'
+
datainfo
);
expect
(
datainfo
).
assertTrue
();
var
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
done
();
}
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0009
* @tc.name test activateAdmin method with user id in callback mode with error user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_009
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
SELFWANT
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_SUPER
,
TEST_USER_ID
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
expect
(
err
!=
null
).
assertTrue
();
if
(
err
)
{
// user exsit but super admin can only be activated in user 100
console
.
log
(
"
activateAdmin_test_009 throw error code :
"
+
err
.
code
+
"
message :
"
+
err
.
message
);
}
done
();
}
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0010
* @tc.name test activateAdmin method with user id in callback mode with error user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_010
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
SELFWANT
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_SUPER
,
ERR_USER_ID
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
expect
(
err
!=
null
).
assertTrue
();
if
(
err
)
{
// user does not exsit
console
.
log
(
"
activateAdmin_test_010 throw error code :
"
+
err
.
code
+
"
message :
"
+
err
.
message
);
}
done
();
}
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0011
* @tc.name test activateAdmin method in promise mode with test user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_011
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.activateAdmin ADMIN_TYPE_NORMAL :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
var
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
done
();
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0012
* @tc.name test activateAdmin method in callback mode with test user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_012
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
TEST_USER_ID
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
console
.
log
(
'
enterpriseDeviceManager.activateAdmin ADMIN_TYPE_NORMAL :
'
+
datainfo
);
expect
(
datainfo
).
assertTrue
();
var
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
done
();
}
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0013
* @tc.name test activateAdmin method in promise mode and query with error user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_013
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
DEFAULT_USER_ID
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
console
.
log
(
'
enterpriseDeviceManager.activateAdmin ADMIN_TYPE_NORMAL :
'
+
datainfo
);
expect
(
datainfo
).
assertTrue
();
var
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
done
();
}
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0014
* @tc.name test activateAdmin method in callback mode and deactive with error user id
* @tc.desc activate and deactive admin in multi-user
*/
it
(
'
activateAdmin_test_014
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
TEST_USER_ID
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
console
.
log
(
'
enterpriseDeviceManager.activateAdmin ADMIN_TYPE_NORMAL :
'
+
datainfo
);
expect
(
datainfo
).
assertTrue
();
var
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
try
{
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin over
'
);
}
catch
(
error
)
{
expect
(
error
!=
null
).
assertTrue
();
console
.
log
(
"
activateAdmin_test_014 throw error code :
"
+
error
.
code
+
"
message :
"
+
error
.
message
);
}
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
done
();
}
})
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0015
* @tc.name test activateAdmin method in promise mode and deactive with test user id
* @tc.desc activate admin in multi-user
*/
it
(
'
activateAdmin_test_015
'
,
0
,
async
function
(
done
)
{
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
DEFAULT_USER_ID
);
var
retValue
=
await
enterpriseDeviceManager
.
activateAdmin
(
WANT1
,
ENTINFO1
,
enterpriseDeviceManager
.
AdminType
.
ADMIN_TYPE_NORMAL
,
TEST_USER_ID
,
OnReceiveEvent
);
async
function
OnReceiveEvent
(
err
,
datainfo
)
{
console
.
log
(
'
enterpriseDeviceManager.activateAdmin ADMIN_TYPE_NORMAL :
'
+
datainfo
);
expect
(
datainfo
).
assertTrue
();
var
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
DEFAULT_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertTrue
();
retValue
=
await
enterpriseDeviceManager
.
deactivateAdmin
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.deactivateAdmin :
'
+
retValue
);
expect
(
retValue
).
assertTrue
();
isActive
=
await
enterpriseDeviceManager
.
isAdminAppActive
(
WANT1
,
TEST_USER_ID
);
console
.
log
(
'
enterpriseDeviceManager.isAdminAppActive :
'
+
isActive
);
expect
(
isActive
).
assertFalse
();
done
();
}
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
700
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
016
* @tc.name test setEnterpriseInfo method in promise mode
* @tc.name test setEnterpriseInfo method in promise mode
* @tc.desc set enterprise info in promise mode
* @tc.desc set enterprise info in promise mode
*/
*/
...
@@ -244,7 +500,7 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -244,7 +500,7 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
800
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
017
* @tc.name test setEnterpriseInfo method in callback mode
* @tc.name test setEnterpriseInfo method in callback mode
* @tc.desc set enterprise info in callback mode
* @tc.desc set enterprise info in callback mode
*/
*/
...
@@ -278,7 +534,7 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -278,7 +534,7 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
900
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_0
018
* @tc.name test getDeviceSettingsManager method in callback mode
* @tc.name test getDeviceSettingsManager method in callback mode
* @tc.desc get the device settings manager in callback mode
* @tc.desc get the device settings manager in callback mode
*/
*/
...
@@ -291,7 +547,7 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -291,7 +547,7 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_
1000
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_
0019
* @tc.name test getDeviceSettingsManager method in promise mode
* @tc.name test getDeviceSettingsManager method in promise mode
* @tc.desc get the device settings manager in promise mode
* @tc.desc get the device settings manager in promise mode
*/
*/
...
@@ -304,7 +560,7 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -304,7 +560,7 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_
110
0
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_
002
0
* @tc.name test setDateTime method in promise mode
* @tc.name test setDateTime method in promise mode
* @tc.desc set system date time in promise mode
* @tc.desc set system date time in promise mode
*/
*/
...
@@ -321,7 +577,7 @@ describe('EnterpriseDeviceManagerTest', function () {
...
@@ -321,7 +577,7 @@ describe('EnterpriseDeviceManagerTest', function () {
})
})
/**
/**
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_
1200
* @tc.number SUB_CUSTOMIZATION_ENTERPRISE_DEVICE_MANAGER_JS_
0021
* @tc.name test setDateTime method in callback mode
* @tc.name test setDateTime method in callback mode
* @tc.desc set system date time in callback mode
* @tc.desc set system date time in callback mode
*/
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录