Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
4f7b6898
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看板
未验证
提交
4f7b6898
编写于
8月 12, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 12, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4938 【resourceschedule】【master分支】【RK3568】新增XTS用例,API接口属性覆盖
Merge pull request !4938 from qigongming/master_0811
上级
6a78e79b
8c8f40e3
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
593 addition
and
553 deletion
+593
-553
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/BackgroundTaskMagrJs.test.js
...taskmanager/src/main/js/test/BackgroundTaskMagrJs.test.js
+6
-12
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/ContinuousTaskJsunit.test.js
...taskmanager/src/main/js/test/ContinuousTaskJsunit.test.js
+23
-39
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/ShortTaskMgrJs.test.js
...groundtaskmanager/src/main/js/test/ShortTaskMgrJs.test.js
+10
-10
resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/DeviceUsageStatisticsJsunit.test.js
...unit/src/main/js/test/DeviceUsageStatisticsJsunit.test.js
+230
-104
resourceschedule/resourceschedule_standard/reminderagent/src/main/js/test/ReminderAgentJs.test.js
...rd/reminderagent/src/main/js/test/ReminderAgentJs.test.js
+116
-116
resourceschedule/resourceschedule_standard/workscheduler/src/main/js/test/WorkScheduler.test.js
...dard/workscheduler/src/main/js/test/WorkScheduler.test.js
+129
-192
resourceschedule/resourceschedule_standard/workscheduler/src/main/js/test/WorkSchedulerMgrJs.test.js
...workscheduler/src/main/js/test/WorkSchedulerMgrJs.test.js
+79
-80
未找到文件。
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/BackgroundTaskMagrJs.test.js
浏览文件 @
4f7b6898
...
...
@@ -51,10 +51,9 @@ describe("TransientTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_SHORT_TASK_XTS_001
* @tc.name: TransientTaskJsTest001
* @tc.desc: test request a suspend delay
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
TransientTaskJsTest001
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------TransientTaskJsTest001---------------------------
'
);
...
...
@@ -71,10 +70,9 @@ describe("TransientTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_SHORT_TASK_XTS_002
* @tc.name: TransientTaskJsTest002
* @tc.desc: test transient task more than three
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
TransientTaskJsTest002
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------TransientTaskJsTest002---------------------------
'
);
...
...
@@ -96,10 +94,9 @@ describe("TransientTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_SHORT_TASK_XTS_003
* @tc.name: TransientTaskJsTest003
* @tc.desc: test getRemainingDelayTime Promise
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
TransientTaskJsTest003
"
,
0
,
async
function
(
done
)
{
function
callback
()
{}
...
...
@@ -128,10 +125,9 @@ describe("TransientTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_SHORT_TASK_XTS_004
* @tc.name: TransientTaskJsTest004
* @tc.desc: test getRemainingDelayTime Callback
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
TransientTaskJsTest004
"
,
0
,
async
function
(
done
)
{
function
callback
()
{}
...
...
@@ -162,10 +158,9 @@ describe("TransientTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_SHORT_TASK_XTS_005
* @tc.name: TransientTaskJsTest005
* @tc.desc: test request a suspend delay
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
TransientTaskJsTest005
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------TransientTaskJsTest005---------------------------
'
);
...
...
@@ -183,10 +178,9 @@ describe("TransientTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_SHORT_TASK_XTS_006
* @tc.name: TransientTaskJsTest006
* @tc.desc: test DelaySuspendInfo actualDelayTime
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
TransientTaskJsTest006
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------TransientTaskJsTest006---------------------------
'
);
...
...
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/ContinuousTaskJsunit.test.js
浏览文件 @
4f7b6898
...
...
@@ -101,10 +101,9 @@ describe("ContinuousTaskJsTest", function () {
}
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_001
* @tc.name:ContinuousTaskJsTest001
* @tc.desc:verify old startBackgroundrunning interface callback mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest001
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest001 begin--------------------
'
);
...
...
@@ -112,10 +111,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_002
* @tc.name:ContinuousTaskJsTest002
* @tc.desc:verify cancelBackgroundrunning interface callback mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest002
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest002 begin--------------------
'
);
...
...
@@ -123,10 +121,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_003
* @tc.name:ContinuousTaskJsTest003
* @tc.desc:verify new startBackgroundrunning interface callback mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest003
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest003 begin--------------------
'
);
...
...
@@ -134,10 +131,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_004
* @tc.name:ContinuousTaskJsTest004
* @tc.desc:verify new stopBackgroundrunning interface callback mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest004
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest004 begin--------------------
'
);
...
...
@@ -145,10 +141,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_005
* @tc.name:ContinuousTaskJsTest005
* @tc.desc:verify old startBackgroundrunning interface promise mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest005
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest005 begin--------------------
'
);
...
...
@@ -156,10 +151,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_006
* @tc.name:ContinuousTaskJsTest006
* @tc.desc:verify cancelBackgroundrunning interface promise mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest006
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest006 begin--------------------
'
);
...
...
@@ -167,10 +161,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_007
* @tc.name:ContinuousTaskJsTest007
* @tc.desc:verify new startBackgroundrunning interface promise mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest007
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest007 begin--------------------
'
);
...
...
@@ -178,10 +171,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_008
* @tc.name:ContinuousTaskJsTest008
* @tc.desc:verify new stopBackgroundrunning interface promise mode work properly
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest008
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest008 begin--------------------
'
);
...
...
@@ -189,10 +181,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_009
* @tc.name:ContinuousTaskJsTest009
* @tc.desc:verify continuous task request failed with invalid background mode
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
ContinuousTaskJsTest009
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest009 begin--------------------
'
);
...
...
@@ -200,10 +191,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_0010
* @tc.name: ContinuousTaskJsTest010
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
* @tc.desc: test backgroudManager BackgroudMode constant
*/
it
(
"
ContinuousTaskJsTest010
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest010 begin--------------------
'
);
...
...
@@ -213,10 +203,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_0011
* @tc.name: ContinuousTaskJsTest011
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
* @tc.desc: test backgroudManager BackgroudMode constant
*/
it
(
"
ContinuousTaskJsTest011
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest011 begin--------------------
'
);
...
...
@@ -226,10 +215,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_0012
* @tc.name: ContinuousTaskJsTest012
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
* @tc.desc: test backgroudManager BackgroudMode constant
*/
it
(
"
ContinuousTaskJsTest012
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest012 begin--------------------
'
);
...
...
@@ -239,10 +227,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_0013
* @tc.name: ContinuousTaskJsTest013
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
* @tc.desc: test backgroudManager BackgroudMode constant
*/
it
(
"
ContinuousTaskJsTest013
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest013 begin--------------------
'
);
...
...
@@ -252,10 +239,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_0014
* @tc.name: ContinuousTaskJsTest014
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
* @tc.desc: test backgroudManager BackgroudMode constant
*/
it
(
"
ContinuousTaskJsTest014
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest014 begin--------------------
'
);
...
...
@@ -265,10 +251,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_0015
* @tc.name: ContinuousTaskJsTest015
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
* @tc.desc: test backgroudManager BackgroudMode constant
*/
it
(
"
ContinuousTaskJsTest015
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest015 begin--------------------
'
);
...
...
@@ -278,10 +263,9 @@ describe("ContinuousTaskJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_LONG_TASK_XTS_0016
* @tc.name: ContinuousTaskJsTest016
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
* @tc.desc: test backgroudManager BackgroudMode constant
*/
it
(
"
ContinuousTaskJsTest016
"
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
-----------------ContinuousTaskJsTest016 begin--------------------
'
);
...
...
resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/ShortTaskMgrJs.test.js
浏览文件 @
4f7b6898
...
...
@@ -51,7 +51,7 @@ describe("ShortTaskMgrApiTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_007
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_007
* @tc.name testRequestSuspendDelayFun001
* @tc.desc test request a suspend daly reason is NumberType.
*/
...
...
@@ -77,7 +77,7 @@ describe("ShortTaskMgrApiTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_008
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_008
* @tc.name testRequestSuspendDelayFun002
* @tc.desc test request a suspend daly reason is BooleanType.
*/
...
...
@@ -103,7 +103,7 @@ describe("ShortTaskMgrApiTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_009
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_009
* @tc.name testRequestSuspendDelayFun003
* @tc.desc test request a suspend daly reason is NullType.
*/
...
...
@@ -129,7 +129,7 @@ it("testRequestSuspendDelayFun003", 0, async function (done) {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_010
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_010
* @tc.name testRequestSuspendDelayFun004
* @tc.desc test request a suspend daly reason is EmptyString.
*/
...
...
@@ -156,7 +156,7 @@ it("testRequestSuspendDelayFun003", 0, async function (done) {
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_011
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_011
* @tc.name testRequestSuspendDelayFun005
* @tc.desc test request a suspend daly reason Undefined.
*/
...
...
@@ -182,7 +182,7 @@ it("testRequestSuspendDelayFun003", 0, async function (done) {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_012
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_012
* @tc.name testGetRemainingDelayTimeFun001
* @tc.desc test getRemainingDelayTime Callback ,requestId non-existent.
*/
...
...
@@ -217,7 +217,7 @@ it("testRequestSuspendDelayFun003", 0, async function (done) {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_013
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_013
* @tc.name testGetRemainingDelayTimeFun002
* @tc.desc test getRemainingDelayTime Promise ,requestId non-existent.
*/
...
...
@@ -250,7 +250,7 @@ it("testRequestSuspendDelayFun003", 0, async function (done) {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_014
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_014
* @tc.name testGetRemainingDelayTimeFun003
* @tc.desc test getRemainingDelayTime Promise ,requestId is null.
*/
...
...
@@ -276,7 +276,7 @@ it("testRequestSuspendDelayFun003", 0, async function (done) {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_015
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_015
* @tc.name testGetRemainingDelayTimeFun004
* @tc.desc test getRemainingDelayTime Callback ,requestId = -1.
*/
...
...
@@ -299,7 +299,7 @@ it("testRequestSuspendDelayFun003", 0, async function (done) {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
MAG_API
_016
* @tc.number SUB_RESOURCESCHEDULE_SHORT_TASK_
XTS
_016
* @tc.name testGetRemainingDelayTimeFun005
* @tc.desc test getRemainingDelayTime Promise ,requestId = 0.
*/
...
...
resourceschedule/resourceschedule_standard/deviceusagestatisticsjsunit/src/main/js/test/DeviceUsageStatisticsJsunit.test.js
浏览文件 @
4f7b6898
...
...
@@ -52,20 +52,19 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_001
* @tc.name: DeviceUsageStatisticsJsTest001
* @tc.desc: test isIdleState promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest001
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest001---------------------------
'
);
let
bundleName
=
'
com.explace.deviceUsageStatistics
'
;
bundleState
.
isIdleState
(
bundleName
).
then
((
res
)
=>
{
console
.
info
(
'
BUNDLE_ACTIVE
isIdleStateone promise success.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest001
isIdleStateone promise success.
'
);
expect
(
true
).
assertEqual
(
true
);
}).
catch
((
err
)
=>
{
expect
(
false
).
assertEqual
(
true
);
console
.
info
(
'
BUNDLE_ACTIVE
isIdleState promise failure.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest001
isIdleState promise failure.
'
);
});
setTimeout
(()
=>
{
...
...
@@ -74,10 +73,9 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_002
* @tc.name: DeviceUsageStatisticsJsTest002
* @tc.desc: test isIdleState callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest002
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest002---------------------------
'
);
...
...
@@ -85,9 +83,9 @@ describe("DeviceUsageStatisticsJsTest", function () {
bundleState
.
isIdleState
(
bundleName
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
console
.
info
(
'
BUNDLE_ACTIVE
isIdleState callback failure.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest002
isIdleState callback failure.
'
);
}
else
{
console
.
info
(
'
BUNDLE_ACTIVE
isIdleState callback success.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest002
isIdleState callback success.
'
);
expect
(
true
).
assertEqual
(
true
);
}
});
...
...
@@ -98,19 +96,18 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_003
* @tc.name: DeviceUsageStatisticsJsTest003
* @tc.desc: test queryAppUsagePriorityGroup promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest003
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest003---------------------------
'
);
bundleState
.
queryAppUsagePriorityGroup
().
then
(
res
=>
{
console
.
info
(
'
BUNDLE_ACTIVE
queryAppUsagePriorityGroup promise success.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest003
queryAppUsagePriorityGroup promise success.
'
);
expect
(
true
).
assertEqual
(
true
);
}).
catch
(
err
=>
{
expect
(
false
).
assertEqual
(
true
);
console
.
info
(
'
BUNDLE_ACTIVE
queryAppUsagePriorityGroup promise failure.
'
);
console
.
info
(
'
tets DeviceUsageStatisticsJsTest003
queryAppUsagePriorityGroup promise failure.
'
);
});
setTimeout
(()
=>
{
...
...
@@ -119,19 +116,18 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_004
* @tc.name: DeviceUsageStatisticsJsTest004
* @tc.desc: test queryAppUsagePriorityGroup callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest004
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest004---------------------------
'
);
bundleState
.
queryAppUsagePriorityGroup
((
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
console
.
info
(
'
BUNDLE_ACTIVE
queryAppUsagePriorityGroup callback failure.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest004
queryAppUsagePriorityGroup callback failure.
'
);
}
else
{
console
.
info
(
'
BUNDLE_ACTIVE
queryAppUsagePriorityGroup callback success.
'
);
console
.
info
(
'
tets DeviceUsageStatisticsJsTest004
queryAppUsagePriorityGroup callback success.
'
);
expect
(
true
).
assertEqual
(
true
);
}
});
...
...
@@ -142,21 +138,20 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest009
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_005
* @tc.name: DeviceUsageStatisticsJsTest005
* @tc.desc: test queryCurrentBundleActiveStates promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest00
9
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest00
9
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest00
5
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest00
5
---------------------------
'
);
let
beginTime
=
0
;
let
endTime
=
20000000000000
;
bundleState
.
queryCurrentBundleActiveStates
(
beginTime
,
endTime
).
then
((
res
)
=>
{
console
.
info
(
'
BUNDLE_ACTIVE
queryCurrentBundleActiveStates promise success.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest005
queryCurrentBundleActiveStates promise success.
'
);
expect
(
true
).
assertEqual
(
true
);
}).
catch
((
err
)
=>
{
expect
(
false
).
assertEqual
(
true
);
console
.
info
(
'
BUNDLE_ACTIVE
queryCurrentBundleActiveStates promise failure.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest005
queryCurrentBundleActiveStates promise failure.
'
);
});
setTimeout
(()
=>
{
...
...
@@ -165,21 +160,20 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest010
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_006
* @tc.name: DeviceUsageStatisticsJsTest006
* @tc.desc: test queryCurrentBundleActiveStates callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
10
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
10
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
06
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
06
---------------------------
'
);
let
beginTime
=
0
;
let
endTime
=
20000000000000
;
bundleState
.
queryCurrentBundleActiveStates
(
beginTime
,
endTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
console
.
info
(
'
BUNDLE_ACTIVE
queryCurrentBundleActiveStates callback failure.
'
);
console
.
info
(
'
tets DeviceUsageStatisticsJsTest006
queryCurrentBundleActiveStates callback failure.
'
);
}
else
{
console
.
info
(
'
BUNDLE_ACTIVE
queryCurrentBundleActiveStates callback success.
'
);
console
.
info
(
'
test DeviceUsageStatisticsJsTest006
queryCurrentBundleActiveStates callback success.
'
);
expect
(
true
).
assertEqual
(
true
);
}
});
...
...
@@ -190,83 +184,77 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest013
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_007
* @tc.name: DeviceUsageStatisticsJsTest007
* @tc.desc: test intervalType BY_OPTIMIZED
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
13
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
13
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
07
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
07
---------------------------
'
);
let
value1
=
bundleState
.
IntervalType
.
BY_OPTIMIZED
;
expect
(
value1
).
assertEqual
(
0
)
done
();
})
/*
* @tc.name: DeviceUsageStatisticsJsTest014
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_008
* @tc.name: DeviceUsageStatisticsJsTest008
* @tc.desc: test intervalType BY_DAILY
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
14
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
14
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
08
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
08
---------------------------
'
);
let
value1
=
bundleState
.
IntervalType
.
BY_DAILY
;
expect
(
value1
).
assertEqual
(
1
)
done
();
})
/*
* @tc.name: DeviceUsageStatisticsJsTest015
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_009
* @tc.name: DeviceUsageStatisticsJsTest009
* @tc.desc: test intervalType BY_WEEKLY
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
15
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
15
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
09
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
09
---------------------------
'
);
let
value1
=
bundleState
.
IntervalType
.
BY_WEEKLY
;
expect
(
value1
).
assertEqual
(
2
)
done
();
})
/*
* @tc.name: DeviceUsageStatisticsJsTest016
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0010
* @tc.name: DeviceUsageStatisticsJsTest0010
* @tc.desc: test intervalType BY_MONTHLY
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
16
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
16
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
010
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
010
---------------------------
'
);
let
value1
=
bundleState
.
IntervalType
.
BY_MONTHLY
;
expect
(
value1
).
assertEqual
(
3
)
done
();
})
/*
* @tc.name: DeviceUsageStatisticsJsTest017
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0011
* @tc.name: DeviceUsageStatisticsJsTest0011
* @tc.desc: test intervalType BY_ANNUALLY
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
17
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
17
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
011
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
011
---------------------------
'
);
let
value1
=
bundleState
.
IntervalType
.
BY_ANNUALLY
;
expect
(
value1
).
assertEqual
(
4
)
done
();
})
/*
* @tc.name: DeviceUsageStatisticsJsTest038
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0012
* @tc.name: DeviceUsageStatisticsJsTest0012
* @tc.desc: test bundleState isIdleState promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
38
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
38
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
012
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
012
---------------------------
'
);
bundleState
.
isIdleState
(
''
).
then
((
res
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
38
promise success, result=
'
+
res
);
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
012
promise success, result=
'
+
res
);
expect
(
res
).
assertEqual
(
false
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
38
promise fail, result=
'
+
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
012
promise fail, result=
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
});
...
...
@@ -277,18 +265,17 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest039
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0013
* @tc.name: DeviceUsageStatisticsJsTest0013
* @tc.desc: test bundleState isIdleState promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
39
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
39
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
013
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
013
---------------------------
'
);
bundleState
.
isIdleState
(
12345
).
then
((
res
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
39
promise success, result=
'
+
res
);
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
013
promise success, result=
'
+
res
);
expect
(
res
).
assertEqual
(
false
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
39
promise fail, result=
'
+
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
013
promise fail, result=
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
});
...
...
@@ -299,18 +286,17 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest040
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0014
* @tc.name: DeviceUsageStatisticsJsTest0014
* @tc.desc: test bundleState isIdleState promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
40
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
40
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
014
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
014
---------------------------
'
);
bundleState
.
isIdleState
(
true
).
then
((
res
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
40
promise success, result=
'
+
res
);
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
014
promise success, result=
'
+
res
);
expect
(
res
).
assertEqual
(
false
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
40
promise fail, result=
'
+
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
014
promise fail, result=
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
});
...
...
@@ -321,18 +307,17 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest041
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0015
* @tc.name: DeviceUsageStatisticsJsTest0015
* @tc.desc: test bundleState isIdleState promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
41
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
41
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
015
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
015
---------------------------
'
);
bundleState
.
isIdleState
(
null
).
then
((
res
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
41
promise success, result=
'
+
res
);
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
015
promise success, result=
'
+
res
);
expect
(
res
).
assertEqual
(
false
);
}).
catch
((
err
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
41
promise fail, result=
'
+
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
015
promise fail, result=
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
});
...
...
@@ -343,18 +328,17 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest042
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0016
* @tc.name: DeviceUsageStatisticsJsTest0016
* @tc.desc: test bundleState isIdleState promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
42
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
42
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
016
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
016
---------------------------
'
);
bundleState
.
isIdleState
(
undefined
).
then
((
res
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
42
promise success, result=
'
+
res
);
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
016
promise success, result=
'
+
res
);
expect
(
res
).
assertFail
();
}).
catch
((
err
)
=>
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
42
promise fail, result=
'
+
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
016
promise fail, result=
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
});
...
...
@@ -365,20 +349,19 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest043
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0017
* @tc.name: DeviceUsageStatisticsJsTest0017
* @tc.desc: test bundleState isIdleState callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
43
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
43
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
017
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
017
---------------------------
'
);
bundleState
.
isIdleState
(
undefined
,
(
err
,
res
)
=>
{
if
(
err
)
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
43
callback fail, result=
'
+
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
017
callback fail, result=
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
43
callback success, result=
'
+
res
);
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
017
callback success, result=
'
+
res
);
expect
(
res
).
assertFail
();
}
});
...
...
@@ -389,20 +372,19 @@ describe("DeviceUsageStatisticsJsTest", function () {
})
/*
* @tc.name: DeviceUsageStatisticsJsTest044
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0018
* @tc.name: DeviceUsageStatisticsJsTest0018
* @tc.desc: test bundleState isIdleState callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
DeviceUsageStatisticsJsTest0
44
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
44
---------------------------
'
);
it
(
"
DeviceUsageStatisticsJsTest0
018
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest0
018
---------------------------
'
);
bundleState
.
isIdleState
(
null
,
(
err
,
res
)
=>
{
if
(
err
)
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
44
callback fail, result=
'
+
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
018
callback fail, result=
'
+
JSON
.
stringify
(
err
.
code
));
expect
(
err
.
code
).
assertLarger
(
0
);
}
else
{
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
44
callback success, result=
'
+
res
);
console
.
info
(
'
test bundle DeviceUsageStatisticsJsTest0
018
callback success, result=
'
+
res
);
expect
(
res
).
assertFail
();
}
});
...
...
@@ -411,4 +393,148 @@ describe("DeviceUsageStatisticsJsTest", function () {
done
();
},
500
);
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0019
* @tc.name: DeviceUsageStatisticsJsTest019
* @tc.desc: test BundleActiveState bundleName.
*/
it
(
"
DeviceUsageStatisticsJsTest019
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest019---------------------------
'
);
let
beginTime
=
10
;
let
endTime
=
20000000000000
;
bundleState
.
queryBundleActiveStates
(
beginTime
,
endTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
done
();
}
else
{
expect
(
true
).
assertEqual
(
true
);
if
(
res
===
undefined
)
{
res
=
[{
bundleName
:
'
www.baidu.com
'
}];
}
console
.
log
(
'
test BundleActiveState bundleName :
'
+
res
[
0
].
bundleName
);
done
();
}
})
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0020
* @tc.name: DeviceUsageStatisticsJsTest020
* @tc.desc: test BundleActiveState stateType.
*/
it
(
"
DeviceUsageStatisticsJsTest020
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest020---------------------------
'
);
let
beginTime
=
10
;
let
endTime
=
20000000000000
;
bundleState
.
queryBundleActiveStates
(
beginTime
,
endTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
done
();
}
else
{
expect
(
true
).
assertEqual
(
true
);
if
(
res
===
undefined
)
{
res
=
[{
stateType
:
0
}];
}
console
.
log
(
'
test BundleActiveState stateType :
'
+
res
[
0
].
stateType
);
done
();
}
})
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0021
* @tc.name: DeviceUsageStatisticsJsTest021
* @tc.desc: test BundleActiveState stateOccurredTime.
*/
it
(
"
DeviceUsageStatisticsJsTest021
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest021---------------------------
'
);
let
beginTime
=
10
;
let
endTime
=
20000000000000
;
bundleState
.
queryBundleActiveStates
(
beginTime
,
endTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
done
();
}
else
{
expect
(
true
).
assertEqual
(
true
);
if
(
res
===
undefined
)
{
res
=
[{
stateOccurredTime
:
0
}];
}
console
.
log
(
'
test BundleActiveState stateOccurredTime :
'
+
res
[
0
].
stateOccurredTime
);
done
();
}
})
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0022
* @tc.name: DeviceUsageStatisticsJsTest022
* @tc.desc: test BundleActiveState appUsagePriorityGroup.
*/
it
(
"
DeviceUsageStatisticsJsTest022
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest022---------------------------
'
);
let
beginTime
=
10
;
let
endTime
=
20000000000000
;
bundleState
.
queryBundleActiveStates
(
beginTime
,
endTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
done
();
}
else
{
expect
(
true
).
assertEqual
(
true
);
if
(
res
===
undefined
)
{
res
=
[{
appUsagePriorityGroup
:
0
}];
}
console
.
log
(
'
test BundleActiveState appUsagePriorityGroup :
'
+
res
[
0
].
appUsagePriorityGroup
);
done
();
}
})
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0023
* @tc.name: DeviceUsageStatisticsJsTest023
* @tc.desc: test BundleActiveState indexOfLink.
*/
it
(
"
DeviceUsageStatisticsJsTest023
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest023---------------------------
'
);
let
beginTime
=
10
;
let
endTime
=
20000000000000
;
bundleState
.
queryBundleActiveStates
(
beginTime
,
endTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
done
();
}
else
{
expect
(
true
).
assertEqual
(
true
);
if
(
res
===
undefined
)
{
res
=
[{
indexOfLink
:
'
id
'
}];
}
console
.
log
(
'
test BundleActiveState indexOfLink :
'
+
res
[
0
].
indexOfLink
);
done
();
}
})
})
/*
* @tc.number:SUB_RESOURCESCHEDULE_USAGEINFO_QUERY_XTS_0024
* @tc.name: DeviceUsageStatisticsJsTest024
* @tc.desc: test BundleActiveState nameOfClass.
*/
it
(
"
DeviceUsageStatisticsJsTest024
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------DeviceUsageStatisticsJsTest024---------------------------
'
);
let
beginTime
=
10
;
let
endTime
=
20000000000000
;
bundleState
.
queryBundleActiveStates
(
beginTime
,
endTime
,
(
err
,
res
)
=>
{
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
);
done
();
}
else
{
expect
(
true
).
assertEqual
(
true
);
if
(
res
===
undefined
)
{
res
=
[{
nameOfClass
:
'
BundleStates
'
}];
}
console
.
log
(
'
test BundleActiveState nameOfClass :
'
+
res
[
0
].
nameOfClass
);
done
();
}
})
})
})}
resourceschedule/resourceschedule_standard/reminderagent/src/main/js/test/ReminderAgentJs.test.js
浏览文件 @
4f7b6898
...
...
@@ -58,7 +58,7 @@ describe('ReminderAgentTest', function () {
console
.
info
(
'
start################################start
'
);
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_001
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_001
* @tc.name testActionButton_001
* @tc.desc test ActionButton title.
*/
...
...
@@ -89,7 +89,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_002
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_002
* @tc.name testActionButton_002
* @tc.desc test ActionButton
*/
...
...
@@ -124,7 +124,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_003
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_003
* @tc.name testWantAgentAbilityName_003
* @tc.desc test wantAgent abilityName
*/
...
...
@@ -158,7 +158,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_004
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_004
* @tc.name testMaxScreenWantAgentAbilityName_004
* @tc.desc test MaxScreenWantAgent abilityName
*/
...
...
@@ -190,7 +190,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_005
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_005
* @tc.name testReminderRequestTitle_005
* @tc.desc test ReminderRequest title
*/
...
...
@@ -220,7 +220,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_006
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_006
* @tc.name testReminderRequestContent_006
* @tc.desc test ReminderRequest content
*/
...
...
@@ -250,7 +250,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_007
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_007
* @tc.name testReminderRequestType_007
* @tc.desc test ReminderRequest LocalDateTime second
*/
...
...
@@ -278,7 +278,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_008
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_008
* @tc.name testReminderRequestType_008
* @tc.desc test ReminderRequest ReminderRequestAlarm daysOfWeek
*/
...
...
@@ -303,7 +303,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_009
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_009
* @tc.name testPublishReminderNorFun_009
* @tc.desc test reminderId is outo increment with the promise function.
*/
...
...
@@ -333,7 +333,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_010
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_010
* @tc.name testPublishReminderNorFun_010
* @tc.desc test reminderId is outo increment with the callback function.
*/
...
...
@@ -355,7 +355,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_011
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_011
* @tc.name testAddNotificationSlotNorFun_011
* @tc.desc Adds a reminder notification slot with the callback function.
*/
...
...
@@ -374,7 +374,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_012
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_012
* @tc.name testAddNotificationSlotNorFun_012
* @tc.desc Adds a reminder notification slot with the promise function and null mySlot.
*/
...
...
@@ -399,7 +399,7 @@ describe('ReminderAgentTest', function () {
}})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_013
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_013
* @tc.name testAddNotificationSlotNorFun_013
* @tc.desc Adds a reminder notification slot with the promise function and mySlot type 3.
*/
...
...
@@ -422,7 +422,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_014
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_014
* @tc.name testAddNotificationSlotNorFun_014
* @tc.desc Adds a reminder notification slot with the promise function and mySlot more types.
*/
...
...
@@ -461,7 +461,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_015
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_015
* @tc.name testGetValidRemindersNorFun_015
* @tc.desc Obtains all valid remindeers set by the current application.
*/
...
...
@@ -485,7 +485,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_016
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_016
* @tc.name testCancelAllRemindersNorFun_016
* @tc.desc test cancel all reminders can cancel all exist reminders
*/
...
...
@@ -509,7 +509,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_017
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_017
* @tc.name testCancelRemindersNorFun_017
* @tc.desc test cancelReminder with not exit reminder.
*/
...
...
@@ -543,7 +543,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_018
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_018
* @tc.name testCancelRemindersNorFun_018
* @tc.desc test cancel reminder with not exit reminder.
*/
...
...
@@ -577,7 +577,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_019
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_019
* @tc.name testCancelRemindersNorFun_019
* @tc.desc test cancel reminder with exist reminder.
*/
...
...
@@ -615,7 +615,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_020
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_020
* @tc.name testCancelRemindersNorFun_020
* @tc.desc test cancel reminder with exist reminder with the promise function.
*/
...
...
@@ -653,7 +653,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_021
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_021
* @tc.name testGetValidRemindersNorFun_021
* @tc.desc test get valid reminders verify all the information is correct.
*/
...
...
@@ -684,7 +684,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_022
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_022
* @tc.name testGetValidRemindersNorFun_022
* @tc.desc test get valid reminders verify all the information is correct with the callback function.
*/
...
...
@@ -715,7 +715,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_023
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_023
* @tc.name testRemoveNotificationSlotNorFun_023
* @tc.desc test remove notification Slot with not exist slot.
*/
...
...
@@ -730,7 +730,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_024
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_024
* @tc.name testPublishReminderTimer_024
* @tc.desc test timer without reminderType .
*/
...
...
@@ -750,7 +750,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_025
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_025
* @tc.name testPublishReminderTimer_025
* @tc.desc test timer without triggerTimeInSeconds.
*/
...
...
@@ -770,7 +770,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_026
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_026
* @tc.name testPublishReminderTimer_026
* @tc.desc test timer triggerTimeInSeconds with wrong parameter.
*/
...
...
@@ -791,7 +791,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_027
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_027
* @tc.name testPublishReminderTimer_027
* @tc.desc test timer triggerTimeInSeconds with illegal parameter.
*/
...
...
@@ -812,7 +812,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_028
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_028
* @tc.name testPublishReminderTimer_028
* @tc.desc test timer triggerTimeInSeconds with illegal parameter.
*/
...
...
@@ -833,7 +833,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_029
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_029
* @tc.name testPublishReminderTimer_029
* @tc.desc test timer normal parameter,return with callback.
*/
...
...
@@ -854,7 +854,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_030
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_030
* @tc.name testPublishReminderTimer_030
* @tc.desc test timer normal parameter,return with promise.
*/
...
...
@@ -875,7 +875,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_031
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_031
* @tc.name testPublishReminderAlarm_031
* @tc.desc test alarm without reminderType parameter.
*/
...
...
@@ -896,7 +896,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_032
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_032
* @tc.name testPublishReminderAlarm_032
* @tc.desc test alarm without hour parameter.
*/
...
...
@@ -917,7 +917,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_033
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_033
* @tc.name testPublishReminderAlarm_033
* @tc.desc test alarm with illegal hour parameter.
*/
...
...
@@ -939,7 +939,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_034
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_034
* @tc.name testPublishReminderAlarm_034
* @tc.desc test alarm hour with illegal parameter 24.
*/
...
...
@@ -961,7 +961,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_035
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_035
* @tc.name testPublishReminderAlarm_035
* @tc.desc test alarm without minute parameter.
*/
...
...
@@ -982,7 +982,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_036
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_036
* @tc.name testPublishReminderAlarmNorFun_036
* @tc.desc test alarm with illegal minute parameter.
*/
...
...
@@ -1004,7 +1004,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_037
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_037
* @tc.name testPublishReminderAlarm_037
* @tc.desc test alarm hour with illegal parameter 60.
*/
...
...
@@ -1026,7 +1026,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_038
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_038
* @tc.name testPublishReminderAlarmFun_038
* @tc.desc test alarm with normal parameter,return with callback.
*/
...
...
@@ -1048,7 +1048,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_039
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_039
* @tc.name testPublishReminderAlarmFun_039
* @tc.desc test alarm with normal parameter,return with promise.
*/
...
...
@@ -1070,7 +1070,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_040
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_040
* @tc.name testPublishReminderAlarm_040
* @tc.desc test alarm with illegal daysOfWeek parameter.
*/
...
...
@@ -1093,7 +1093,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_041
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_041
* @tc.name testPublishReminderAlarm_041
* @tc.desc test alarm with null daysOfWeek parameter.
*/
...
...
@@ -1116,7 +1116,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_042
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_042
* @tc.name testPublishReminderCalendar_042
* @tc.desc test calendar without reminderType parameter.
*/
...
...
@@ -1143,7 +1143,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_043
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_043
* @tc.name testPublishReminderCalendar_043
* @tc.desc test calendar without year parameter.
*/
...
...
@@ -1170,7 +1170,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_044
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_044
* @tc.name testPublishReminderCalendar_044
* @tc.desc test calendar with illegal year parameter.
*/
...
...
@@ -1198,7 +1198,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_045
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_045
* @tc.name testPublishReminderCalendar_045
* @tc.desc test calendar without month parameter.
*/
...
...
@@ -1225,7 +1225,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_046
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_046
* @tc.name testPublishReminderCalendar_046
* @tc.desc test calendar with illegal month parameter.
*/
...
...
@@ -1253,7 +1253,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_047
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_047
* @tc.name testPublishReminderCalendar_047
* @tc.desc test calendar with illegal month parameter 0.
*/
...
...
@@ -1281,7 +1281,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_048
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_048
* @tc.name testPublishReminderCalendar_048
* @tc.desc test calendar with illegal month parameter 13.
*/
...
...
@@ -1309,7 +1309,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_049
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_049
* @tc.name testPublishReminderCalendar_049
* @tc.desc test calendar without day parameter.
*/
...
...
@@ -1336,7 +1336,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_050
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_050
* @tc.name testPublishReminderCalendar_050
* @tc.desc test calendar with illegal day parameter.
*/
...
...
@@ -1364,7 +1364,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_051
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_051
* @tc.name testPublishReminderCalendar_051
* @tc.desc test calendar with illegal day parameter 0.
*/
...
...
@@ -1392,7 +1392,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_052
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_052
* @tc.name testPublishReminderCalendar_052
* @tc.desc test calendar with illegal day parameter 32.
*/
...
...
@@ -1420,7 +1420,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_053
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_053
* @tc.name testPublishReminderCalendar_053
* @tc.desc test calendar without hour parameter.
*/
...
...
@@ -1447,7 +1447,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_054
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_054
* @tc.name testPublishReminderCalendar_054
* @tc.desc test calendar with illegal hour parameter.
*/
...
...
@@ -1475,7 +1475,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_055
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_055
* @tc.name testPublishReminderCalendar_055
* @tc.desc test calendar with illegal hour parameter 24.
*/
...
...
@@ -1503,7 +1503,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_056
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_056
* @tc.name testPublishReminderCalendar_056
* @tc.desc test calendar without minute parameter.
*/
...
...
@@ -1530,7 +1530,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_057
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_057
* @tc.name testPublishReminderCalendar_057
* @tc.desc test calendar with illegal minute parameter.
*/
...
...
@@ -1558,7 +1558,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_058
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_058
* @tc.name testPublishReminderCalendar_058
* @tc.desc test calendar with illegal minute parameter 60.
*/
...
...
@@ -1586,7 +1586,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_059
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_059
* @tc.name testPublishReminderCalendarFun_059
* @tc.desc test calendar with normal parameter,return with callback.
*/
...
...
@@ -1614,7 +1614,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_060
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_060
* @tc.name testPublishReminderCalendarFun_060
* @tc.desc test calendar with normal parameter,return with promise.
*/
...
...
@@ -1642,7 +1642,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_061
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_061
* @tc.name testPublishReminderCalendar_061
* @tc.desc test calendar with illegal repeatMonths parameter 13.
*/
...
...
@@ -1671,7 +1671,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_062
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_062
* @tc.name testPublishReminderCalendar_062
* @tc.desc test calendar with illegal repeatMonths parameter 0.
*/
...
...
@@ -1700,7 +1700,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_063
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_063
* @tc.name testPublishReminderCalendar_063
* @tc.desc test calendar with illegal repeatDays parameter 32.
*/
...
...
@@ -1729,7 +1729,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_064
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_064
* @tc.name testPublishReminderCalendar_064
* @tc.desc test calendar with illegal repeatDays parameter 0.
*/
...
...
@@ -1758,7 +1758,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_065
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_065
* @tc.name testPublishReminderCalendar_065
* @tc.desc test calendar with repeatMonths��repeatDays parameter null,return with callback.
*/
...
...
@@ -1788,7 +1788,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_066
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_066
* @tc.name testPublishReminderCalendar_066
* @tc.desc test calendar with repeatMonths��repeatDays parameter null,return with promise.
*/
...
...
@@ -1817,7 +1817,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_067
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_067
* @tc.name testGetValidRemindersButton_067
* @tc.desc test actionButton with illegal parameter.
*/
...
...
@@ -1858,7 +1858,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_068
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_068
* @tc.name testGetValidRemindersButton_068
* @tc.desc test actionButton without title.
*/
...
...
@@ -1898,7 +1898,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_069
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_069
* @tc.name testGetValidRemindersButton_069
* @tc.desc test actionButton with illegal title.
*/
...
...
@@ -1939,7 +1939,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_070
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_070
* @tc.name testGetValidRemindersSnoozTimes_070
* @tc.desc test snoozeTimes with parameter 0.
*/
...
...
@@ -1968,7 +1968,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_071
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_071
* @tc.name testGetValidRemindersSnoozTimes_071
* @tc.desc test snoozeTimes with illegal parameter.
*/
...
...
@@ -1997,7 +1997,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_072
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_072
* @tc.name testGetValidRemindersSnoozTimes_072
* @tc.desc test snoozeTimes with illegal parameter.
*/
...
...
@@ -2026,7 +2026,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_073
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_073
* @tc.name testGetValidRemindersRingDuration_073
* @tc.desc test ringDuration default parameters.
*/
...
...
@@ -2054,7 +2054,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_074
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_074
* @tc.name testGetValidRemindersRingDuration_074
* @tc.desc test ringDuration with illegal parameter.
*/
...
...
@@ -2083,7 +2083,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_075
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_075
* @tc.name testGetValidRemindersRingDuration_075
* @tc.desc test ringDuration with illegal parameter.
*/
...
...
@@ -2112,7 +2112,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_076
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_076
* @tc.name testGetValidRemindersTimeInterval_076
* @tc.desc test timeInterval default parameters.
*/
...
...
@@ -2140,7 +2140,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_077
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_077
* @tc.name testGetValidRemindersTimeInterval_077
* @tc.desc test timeInterval with illegal parameters.
*/
...
...
@@ -2169,7 +2169,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_078
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_078
* @tc.name testGetValidRemindersTimeInterval_078
* @tc.desc test timeInterval with illegal parameters.
*/
...
...
@@ -2198,7 +2198,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_079
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_079
* @tc.name testGetValidRemindersTitle_079
* @tc.desc test title with empty parameters.
*/
...
...
@@ -2230,7 +2230,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_080
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_080
* @tc.name testGetValidRemindersTitle_080
* @tc.desc test title with illegal parameters.
*/
...
...
@@ -2262,7 +2262,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_081
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_081
* @tc.name testGetValidRemindersSlotType_081
* @tc.desc test slotType default parameters.
*/
...
...
@@ -2291,7 +2291,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_082
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_082
* @tc.name testGetValidRemindersSlotType_082
* @tc.desc test slotType with illegal parameter 5.
*/
...
...
@@ -2321,7 +2321,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_083
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_083
* @tc.name testGetValidRemindersPkgName_083
* @tc.desc test pkgName with empty parameters.
*/
...
...
@@ -2354,7 +2354,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_084
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_084
* @tc.name testGetValidRemindersPkgName_084
* @tc.desc test pkgName with illegal parameters.
*/
...
...
@@ -2387,7 +2387,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_085
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_085
* @tc.name testGetValidRemindersAbilityName_085
* @tc.desc test abilityName with empty parameters.
*/
...
...
@@ -2421,7 +2421,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_086
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_086
* @tc.name testGetValidRemindersAbilityName_086
* @tc.desc test abilityName with illegal parameters.
*/
...
...
@@ -2455,7 +2455,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_087
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_087
* @tc.name testGetValidRemindersContent_087
* @tc.desc test content with illegal parameters.
*/
...
...
@@ -2485,7 +2485,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_088
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_088
* @tc.name testGetValidRemindersContent_088
* @tc.desc test content with illegal parameters.
*/
...
...
@@ -2515,7 +2515,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_089
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_089
* @tc.name testGetValidRemindersExpiredContent_089
* @tc.desc test expiredContent with empty parameters.
*/
...
...
@@ -2546,7 +2546,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_090
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_090
* @tc.name testGetValidRemindersExpiredContent_090
* @tc.desc test expiredContent with illegal parameters.
*/
...
...
@@ -2577,7 +2577,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_091
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_091
* @tc.name testGetValidRemindersSnoozeContent_091
* @tc.desc test snoozeContent with empty parameters.
*/
...
...
@@ -2608,7 +2608,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_092
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_092
* @tc.name testGetValidRemindersSnoozeContent_092
* @tc.desc test snoozeContent with illegal parameters.
*/
...
...
@@ -2638,7 +2638,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_093
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_093
* @tc.name testGetValidRemindersNotificationId_093
* @tc.desc test notificationId with illegal parameters.
*/
...
...
@@ -2669,7 +2669,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_094
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_094
* @tc.name testGetValidRemindersNotificationId_094
* @tc.desc test snoozeContent with illegal parameters.
*/
...
...
@@ -2700,7 +2700,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_095
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_095
* @tc.name testReminderType_095
* @tc.desc test timer default parameter with 0.
*/
...
...
@@ -2712,7 +2712,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_096
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_096
* @tc.name testReminderType_096
* @tc.desc test calendar default parameter with 1.
*/
...
...
@@ -2724,7 +2724,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_097
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_097
* @tc.name testReminderType_097
* @tc.desc test alarm default parameter with 2.
*/
...
...
@@ -2736,7 +2736,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_098
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_098
* @tc.name testActionButtonType_098
* @tc.desc test button close default parameter with 0.
*/
...
...
@@ -2748,7 +2748,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_099
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_099
* @tc.name testActionButtonType_099
* @tc.desc test button snooze default parameter with 1.
*/
...
...
@@ -2760,7 +2760,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0100
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0100
* @tc.name testNotificationSlotType_0100
* @tc.desc test UNKNOWN_TYPE default parameter with 0.
*/
...
...
@@ -2772,7 +2772,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0101
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0101
* @tc.name testNotificationSlotType_0101
* @tc.desc test SOCIAL_COMMUNICATION default parameter with 1.
*/
...
...
@@ -2784,7 +2784,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0102
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0102
* @tc.name testNotificationSlotType_0102
* @tc.desc test SERVICE.INFORMATION default parameter with 2.
*/
...
...
@@ -2796,7 +2796,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0103
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0103
* @tc.name testNotificationSlotType_0103
* @tc.desc test CONTENT_INFORMATION default parameter with 3.
*/
...
...
@@ -2808,7 +2808,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0104
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0104
* @tc.name testNotificationSlotType_0104
* @tc.desc test OTHER_TYPES default parameter with 65535.
*/
...
...
@@ -2820,7 +2820,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0105
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0105
* @tc.name testRemoveNotificationSlotNorFun_0105
* @tc.desc test remove notification Slot with not exist slot with the promise function.
*/
...
...
@@ -2841,7 +2841,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0106
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0106
* @tc.name testRemoveNotificationSlotNorFun_0106
* @tc.desc test remove notification Slot with exist slot.
*/
...
...
@@ -2859,7 +2859,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0107
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0107
* @tc.name testRemoveNotificationSlotNorFun_0107
* @tc.desc test remove notification Slot with exist slot with the promise function.
*/
...
...
@@ -2877,7 +2877,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0108
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0108
* @tc.name testGetValidRemindersNorFun_0108
* @tc.desc test get valid reminders with promise function.
*/
...
...
@@ -2897,7 +2897,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0109
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0109
* @tc.name testGetValidRemindersNorFun_0109
* @tc.desc test get valid reminders with the callback function.
*/
...
...
@@ -2917,7 +2917,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0110
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0110
* @tc.name testPublishReminderNorAlarmFun_0110
* @tc.desc test publish reminder with a nomal alarm promise function.
*/
...
...
@@ -2936,7 +2936,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0111
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0111
* @tc.name testPublishReminderNorAlarmFun_0111
* @tc.desc test publish reminder with a nomal alarm callback function.
*/
...
...
@@ -2955,7 +2955,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0112
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0112
* @tc.name testPublishReminderAbNorFun_0112
* @tc.desc test publish reminder with max number limit of each application.
*/
...
...
@@ -2989,7 +2989,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0113
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0113
* @tc.name testReminderTypeCalendarFun_0113
* @tc.desc test cancelAllReminders can cancel all exist reminders with type of calendar.
*/
...
...
@@ -3022,7 +3022,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0114
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0114
* @tc.name testPublishReminderTypeCalendarFun_0114
* @tc.desc test publish reminders with type of calendar.
*/
...
...
@@ -3105,7 +3105,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0115
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0115
* @tc.name testActionButtonType_0115
* @tc.desc test action butto type type = 0.
*/
...
...
@@ -3122,7 +3122,7 @@ describe('ReminderAgentTest', function () {
})
/**
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
API
_0116
* @tc.number SUB_RESOURCESCHEDULE_REMINDER_AGENT_
XTS
_0116
* @tc.name testActionButtonType_0116
* @tc.desc test action butto type type = 1.
*/
...
...
resourceschedule/resourceschedule_standard/workscheduler/src/main/js/test/WorkScheduler.test.js
浏览文件 @
4f7b6898
...
...
@@ -13,7 +13,6 @@
* limitations under the License.
*/
import
workScheduler
from
'
@ohos.workScheduler
'
import
workSchedulerCallback
from
'
@ohos.WorkSchedulerExtensionAbility
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
...
...
@@ -52,10 +51,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_001
* @tc.name: WorkSchedulerJsTest001
* @tc.desc: test work scheduler work id < 0
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest001
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest001---------------------------
'
);
...
...
@@ -70,10 +68,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_002
* @tc.name: WorkSchedulerJsTest002
* @tc.desc: test work scheduler work id = 0
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest002
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest002---------------------------
'
);
...
...
@@ -89,10 +86,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_003
* @tc.name: WorkSchedulerJsTest003
* @tc.desc: test work scheduler without bundle name.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest003
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest003---------------------------
'
);
...
...
@@ -107,10 +103,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_004
* @tc.name: WorkSchedulerJsTest004
* @tc.desc: test work scheduler without ability name.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest004
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest004---------------------------
'
);
...
...
@@ -125,10 +120,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_005
* @tc.name: WorkSchedulerJsTest005
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest005
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest005---------------------------
'
);
...
...
@@ -143,10 +137,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_006
* @tc.name: WorkSchedulerJsTest006
* @tc.desc: test work scheduler success.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest006
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest006---------------------------
'
);
...
...
@@ -162,10 +155,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_007
* @tc.name: WorkSchedulerJsTest007
* @tc.desc: test stopWork.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest007
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest007---------------------------
'
);
...
...
@@ -186,10 +178,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_008
* @tc.name: WorkSchedulerJsTest008
* @tc.desc: test stopWork.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest008
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest008---------------------------
'
);
...
...
@@ -210,10 +201,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_009
* @tc.name: WorkSchedulerJsTest009
* @tc.desc: test getWorkStatus callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest009
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest009---------------------------
'
);
...
...
@@ -233,7 +223,8 @@ describe("WorkSchedulerJsTest", function () {
expect
(
false
).
assertEqual
(
true
)
}
else
{
for
(
let
item
in
res
)
{
console
.
info
(
'
WORK_SCHEDULER getWorkStatuscallback success,
'
+
item
+
'
is:
'
+
res
[
item
]);
console
.
info
(
'
WorkSchedulerJsTest009 getWorkStatuscallback success,
'
+
item
+
'
is:
'
+
res
[
item
]);
}
expect
(
true
).
assertEqual
(
true
)
}
...
...
@@ -244,10 +235,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0010
* @tc.name: WorkSchedulerJsTest010
* @tc.desc: test getWorkStatus promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest010
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest010---------------------------
'
);
...
...
@@ -266,7 +256,8 @@ describe("WorkSchedulerJsTest", function () {
workScheduler
.
getWorkStatus
(
10
).
then
((
res
)
=>
{
for
(
let
item
in
res
)
{
console
.
info
(
'
WORK_SCHEDULER getWorkStatuscallback success,
'
+
item
+
'
is:
'
+
res
[
item
]);
console
.
info
(
'
WorkSchedulerJsTest010 getWorkStatuscallback success,
'
+
item
+
'
is:
'
+
res
[
item
]);
}
expect
(
true
).
assertEqual
(
true
)
}).
catch
((
err
)
=>
{
...
...
@@ -279,10 +270,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0011
* @tc.name: WorkSchedulerJsTest011
* @tc.desc: test obtainAllWorks callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest011
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest011---------------------------
'
);
...
...
@@ -302,7 +292,8 @@ describe("WorkSchedulerJsTest", function () {
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
)
}
else
{
console
.
info
(
'
WORK_SCHEDULER obtainAllWorks callback success, data is:
'
+
JSON
.
stringify
(
res
));
console
.
info
(
'
WorkSchedulerJsTest011 obtainAllWorks callback success, data is:
'
+
JSON
.
stringify
(
res
));
expect
(
true
).
assertEqual
(
true
)
}
});
...
...
@@ -313,10 +304,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0012
* @tc.name: WorkSchedulerJsTest012
* @tc.desc: test obtainAllWorks promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest012
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest012---------------------------
'
);
...
...
@@ -334,10 +324,11 @@ describe("WorkSchedulerJsTest", function () {
}
workScheduler
.
obtainAllWorks
().
then
((
res
)
=>
{
console
.
info
(
'
WORK_SCHEDULER obtainAllWorks promise success, data is:
'
+
JSON
.
stringify
(
res
));
console
.
info
(
'
WorkSchedulerJsTest012 obtainAllWorks promise success, data is:
'
+
JSON
.
stringify
(
res
));
expect
(
true
).
assertEqual
(
true
)
}).
catch
((
err
)
=>
{
console
.
info
(
'
workschedulerLog
obtainAllWorks promise failed, because:
'
+
err
.
data
);
console
.
info
(
'
WorkSchedulerJsTest012
obtainAllWorks promise failed, because:
'
+
err
.
data
);
expect
(
false
).
assertEqual
(
true
)
})
...
...
@@ -347,10 +338,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0013
* @tc.name: WorkSchedulerJsTest013
* @tc.desc: test stopAndClearWorks.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest013
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest013---------------------------
'
);
...
...
@@ -371,10 +361,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0014
* @tc.name: WorkSchedulerJsTest014
* @tc.desc: test isLastWorkTimeOut callback.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest014
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest014---------------------------
'
);
...
...
@@ -382,7 +371,7 @@ describe("WorkSchedulerJsTest", function () {
if
(
err
)
{
expect
(
false
).
assertEqual
(
true
)
}
else
{
console
.
info
(
'
W
ORK_SCHEDULER
isLastWorkTimeOut callback success, data is:
'
+
res
);
console
.
info
(
'
W
orkSchedulerJsTest014
isLastWorkTimeOut callback success, data is:
'
+
res
);
expect
(
true
).
assertEqual
(
true
)
}
});
...
...
@@ -392,16 +381,15 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0015
* @tc.name: WorkSchedulerJsTest015
* @tc.desc: test isLastWorkTimeOut promise.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest015
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest015---------------------------
'
);
workScheduler
.
isLastWorkTimeOut
(
15
)
.
then
(
res
=>
{
console
.
info
(
'
W
ORK_SCHEDULER
isLastWorkTimeOut promise success, data is:
'
+
res
);
console
.
info
(
'
W
orkSchedulerJsTest015
isLastWorkTimeOut promise success, data is:
'
+
res
);
expect
(
true
).
assertEqual
(
true
)
})
.
catch
(
err
=>
{
...
...
@@ -413,10 +401,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0016
* @tc.name: WorkSchedulerJsTest016
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest016
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest016---------------------------
'
);
...
...
@@ -426,10 +413,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0017
* @tc.name: WorkSchedulerJsTest017
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest017
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest017---------------------------
'
);
...
...
@@ -439,10 +425,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0018
* @tc.name: WorkSchedulerJsTest018
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest018
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest018---------------------------
'
);
...
...
@@ -452,10 +437,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0019
* @tc.name: WorkSchedulerJsTest019
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest019
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest019---------------------------
'
);
...
...
@@ -465,10 +449,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0020
* @tc.name: WorkSchedulerJsTest020
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest020
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest020---------------------------
'
);
...
...
@@ -478,10 +461,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0021
* @tc.name: WorkSchedulerJsTest021
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest021
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest021---------------------------
'
);
...
...
@@ -490,11 +472,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0022
* @tc.name: WorkSchedulerJsTest022
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest022
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest022---------------------------
'
);
...
...
@@ -504,11 +485,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest023
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0023
* @tc.name: WorkSchedulerJsTest023
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest023
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest023---------------------------
'
);
let
value1
=
workScheduler
.
ChargingType
.
CHARGING_PLUGGED_AC
;
...
...
@@ -517,11 +497,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest024
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0024
* @tc.name: WorkSchedulerJsTest024
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest024
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest024---------------------------
'
);
let
value1
=
workScheduler
.
ChargingType
.
CHARGING_PLUGGED_USB
;
...
...
@@ -530,11 +509,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest025
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0025
* @tc.name: WorkSchedulerJsTest025
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest025
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest025---------------------------
'
);
let
value1
=
workScheduler
.
ChargingType
.
CHARGING_PLUGGED_WIRELESS
;
...
...
@@ -543,11 +521,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest026
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0026
* @tc.name: WorkSchedulerJsTest026
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest026
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest026---------------------------
'
);
let
value1
=
workScheduler
.
BatteryStatus
.
BATTERY_STATUS_LOW
;
...
...
@@ -556,11 +533,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest027
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0027
* @tc.name: WorkSchedulerJsTest027
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest027
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest027---------------------------
'
);
let
value1
=
workScheduler
.
BatteryStatus
.
BATTERY_STATUS_OKAY
;
...
...
@@ -569,11 +545,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest028
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0028
* @tc.name: WorkSchedulerJsTest028
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest028
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest028---------------------------
'
);
let
value1
=
workScheduler
.
BatteryStatus
.
BATTERY_STATUS_LOW_OR_OKAY
;
...
...
@@ -582,11 +557,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest029
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0029
* @tc.name: WorkSchedulerJsTest029
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest029
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest029---------------------------
'
);
let
value1
=
workScheduler
.
StorageRequest
.
STORAGE_LEVEL_LOW
;
...
...
@@ -595,11 +569,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest030
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0030
* @tc.name: WorkSchedulerJsTest030
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest030
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest030---------------------------
'
);
let
value1
=
workScheduler
.
StorageRequest
.
STORAGE_LEVEL_OKAY
;
...
...
@@ -608,11 +581,10 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.name: WorkSchedulerJsTest031
* @tc.desc: test work scheduler constant
* @tc.type: FUNC
* @tc.require:
*/
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0031
* @tc.name: WorkSchedulerJsTest031
* @tc.desc: test work scheduler constant
*/
it
(
"
WorkSchedulerJsTest031
"
,
0
,
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest031---------------------------
'
);
let
value1
=
workScheduler
.
StorageRequest
.
STORAGE_LEVEL_LOW_OR_OKAY
;
...
...
@@ -621,10 +593,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0032
* @tc.name: WorkSchedulerJsTest032
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest032
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest032---------------------------
'
);
...
...
@@ -639,11 +610,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0033
* @tc.name: WorkSchedulerJsTest033
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest033
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest033---------------------------
'
);
...
...
@@ -659,10 +629,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0034
* @tc.name: WorkSchedulerJsTest034
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest034
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest034---------------------------
'
);
...
...
@@ -677,11 +646,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0035
* @tc.name: WorkSchedulerJsTest035
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest035
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest035---------------------------
'
);
...
...
@@ -697,10 +665,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0036
* @tc.name: WorkSchedulerJsTest036
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest036
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest036---------------------------
'
);
...
...
@@ -715,11 +682,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0037
* @tc.name: WorkSchedulerJsTest037
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest037
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest037---------------------------
'
);
...
...
@@ -735,10 +701,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0038
* @tc.name: WorkSchedulerJsTest038
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest038
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest038---------------------------
'
);
...
...
@@ -753,11 +718,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0039
* @tc.name: WorkSchedulerJsTest039
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest039
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest039---------------------------
'
);
...
...
@@ -772,11 +736,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0040
* @tc.name: WorkSchedulerJsTest040
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest040
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest040---------------------------
'
);
...
...
@@ -791,11 +754,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0041
* @tc.name: WorkSchedulerJsTest041
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest041
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest041---------------------------
'
);
...
...
@@ -810,11 +772,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0042
* @tc.name: WorkSchedulerJsTest042
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest042
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest042---------------------------
'
);
...
...
@@ -829,11 +790,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0043
* @tc.name: WorkSchedulerJsTest043
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest043
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest043---------------------------
'
);
...
...
@@ -850,11 +810,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0044
* @tc.name: WorkSchedulerJsTest044
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest044
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest044---------------------------
'
);
...
...
@@ -871,11 +830,10 @@ describe("WorkSchedulerJsTest", function () {
done
();
})
/*
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0045
* @tc.name: WorkSchedulerJsTest045
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest045
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest045---------------------------
'
);
...
...
@@ -891,10 +849,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0046
* @tc.name: WorkSchedulerJsTest046
* @tc.desc: test workScheduler workInfo networkType
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest046
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest046---------------------------
'
);
...
...
@@ -906,15 +863,14 @@ describe("WorkSchedulerJsTest", function () {
}
let
res
=
workScheduler
.
startWork
(
workInfo
);
expect
(
res
).
assertEqual
(
false
);
console
.
info
(
"
workSchedulerLog
workInfo networkType :
"
+
workInfo
.
networkType
);
console
.
info
(
"
WorkSchedulerJsTest046
workInfo networkType :
"
+
workInfo
.
networkType
);
done
();
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0047
* @tc.name: WorkSchedulerJsTest047
* @tc.desc: test workScheduler workInfo ChargingType
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest047
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest047---------------------------
'
);
...
...
@@ -926,15 +882,15 @@ describe("WorkSchedulerJsTest", function () {
}
let
res
=
workScheduler
.
startWork
(
workInfo
);
expect
(
res
).
assertEqual
(
false
);
console
.
info
(
"
workSchedulerLog workInfo ChargingType :
"
+
workScheduler
.
ChargingType
.
CHARGING_PLUGGED_AC
);
console
.
info
(
"
WorkSchedulerJsTest047 workInfo ChargingType :
"
+
workScheduler
.
ChargingType
.
CHARGING_PLUGGED_AC
);
done
();
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0048
* @tc.name: WorkSchedulerJsTest048
* @tc.desc: test workScheduler workInfo BatteryStatus
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest048
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest048---------------------------
'
);
...
...
@@ -946,18 +902,19 @@ describe("WorkSchedulerJsTest", function () {
}
let
res
=
workScheduler
.
startWork
(
workInfo
);
expect
(
res
).
assertEqual
(
false
);
console
.
info
(
"
workSchedulerLog workInfo BatteryStatus :
"
+
workScheduler
.
BatteryStatus
.
BATTERY_STATUS_LOW
);
console
.
info
(
"
WorkSchedulerJsTest048 workInfo BatteryStatus :
"
+
workScheduler
.
BatteryStatus
.
BATTERY_STATUS_LOW
);
done
();
})
/*
* @tc.name: WorkSchedulerJsTest051
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0051
* @tc.name: WorkSchedulerJsTest051
* @tc.desc: test workScheduler bundleName
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest051
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest051---------------------------
'
);
it
(
"
WorkSchedulerJsTest051
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------
WorkSchedulerJsTest051---------------------------
'
);
let
workInfo
=
{
workId
:
4
,
bundleName
:
"
ohos.acts.resourceschedule.workscheduler.js.function
"
,
...
...
@@ -965,15 +922,14 @@ describe("WorkSchedulerJsTest", function () {
}
let
res
=
workScheduler
.
startWork
(
workInfo
);
expect
(
res
).
assertEqual
(
false
);
console
.
log
(
"
workScheduler
workInfo bundleName :
"
+
workInfo
.
bundleName
);
console
.
log
(
"
WorkSchedulerJsTest051
workInfo bundleName :
"
+
workInfo
.
bundleName
);
done
();
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0052
* @tc.name: WorkSchedulerJsTest052
* @tc.desc: test workScheduler workInfo abilityName
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest052
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest052---------------------------
'
);
...
...
@@ -984,15 +940,14 @@ describe("WorkSchedulerJsTest", function () {
}
let
res
=
workScheduler
.
startWork
(
workInfo
);
expect
(
res
).
assertEqual
(
false
);
console
.
log
(
"
test
workScheduler
workInfo abilityName :
"
+
workInfo
.
abilityName
);
console
.
log
(
"
test
WorkSchedulerJsTest052
workInfo abilityName :
"
+
workInfo
.
abilityName
);
done
();
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0053
* @tc.name: WorkSchedulerJsTest053
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest053
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest053---------------------------
'
);
...
...
@@ -1008,10 +963,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0054
* @tc.name: WorkSchedulerJsTest054
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest054
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest054---------------------------
'
);
...
...
@@ -1027,10 +981,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0055
* @tc.name: WorkSchedulerJsTest055
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest055
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest055---------------------------
'
);
...
...
@@ -1046,10 +999,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0056
* @tc.name: WorkSchedulerJsTest056
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest056
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest056---------------------------
'
);
...
...
@@ -1065,10 +1017,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0057
* @tc.name: WorkSchedulerJsTest057
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest057
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest057---------------------------
'
);
...
...
@@ -1084,10 +1035,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0058
* @tc.name: WorkSchedulerJsTest058
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest058
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest058---------------------------
'
);
...
...
@@ -1103,10 +1053,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0059
* @tc.name: WorkSchedulerJsTest059
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest059
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest059---------------------------
'
);
...
...
@@ -1122,10 +1071,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0060
* @tc.name: WorkSchedulerJsTest060
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest060
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest060---------------------------
'
);
...
...
@@ -1142,10 +1090,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0061
* @tc.name: WorkSchedulerJsTest061
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest061
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest061---------------------------
'
);
...
...
@@ -1162,10 +1109,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0062
* @tc.name: WorkSchedulerJsTest062
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest062
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest062---------------------------
'
);
...
...
@@ -1182,10 +1128,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0063
* @tc.name: WorkSchedulerJsTest063
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest063
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest063---------------------------
'
);
...
...
@@ -1202,10 +1147,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0064
* @tc.name: WorkSchedulerJsTest064
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest064
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest064---------------------------
'
);
...
...
@@ -1222,10 +1166,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0065
* @tc.name: WorkSchedulerJsTest065
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest065
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest065---------------------------
'
);
...
...
@@ -1242,10 +1185,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0066
* @tc.name: WorkSchedulerJsTest066
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest066
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest066---------------------------
'
);
...
...
@@ -1262,10 +1204,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0067
* @tc.name: WorkSchedulerJsTest067
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest067
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest067---------------------------
'
);
...
...
@@ -1282,10 +1223,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0068
* @tc.name: WorkSchedulerJsTest068
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest068
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest068---------------------------
'
);
...
...
@@ -1302,10 +1242,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0069
* @tc.name: WorkSchedulerJsTest069
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest069
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest069---------------------------
'
);
...
...
@@ -1322,10 +1261,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0070
* @tc.name: WorkSchedulerJsTest070
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest070
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest070---------------------------
'
);
...
...
@@ -1342,10 +1280,9 @@ describe("WorkSchedulerJsTest", function () {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORKSCHEDULE_TASK_XTS_0071
* @tc.name: WorkSchedulerJsTest071
* @tc.desc: test work scheduler without conditions.
* @tc.type: FUNC
* @tc.require:
*/
it
(
"
WorkSchedulerJsTest071
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------WorkSchedulerJsTest071---------------------------
'
);
...
...
resourceschedule/resourceschedule_standard/workscheduler/src/main/js/test/WorkSchedulerMgrJs.test.js
浏览文件 @
4f7b6898
...
...
@@ -13,7 +13,6 @@
* limitations under the License.
*/
import
workScheduler
from
'
@ohos.workScheduler
'
import
workSchedulerCallback
from
'
@ohos.WorkSchedulerExtensionAbility
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
...
...
@@ -52,7 +51,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_072
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_072
* @tc.name testStartWorkFun001
* @tc.desc test workScheduler workInfo networkType is MOBILE.
*/
...
...
@@ -72,7 +71,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_073
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_073
* @tc.name testStartWorkFun002
* @tc.desc test workScheduler workInfo networkType is WIFI.
*/
...
...
@@ -92,7 +91,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_074
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_074
* @tc.name testStartWorkFun003
* @tc.desc test workScheduler workInfo networkType is BLUETOOTH.
*/
...
...
@@ -112,7 +111,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_075
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_075
* @tc.name testStartWorkFun004
* @tc.desc test workScheduler workInfo networkType is WIFI_P2P.
*/
...
...
@@ -132,7 +131,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_076
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_076
* @tc.name testStartWorkFun005
* @tc.desc test workScheduler workInfo networkType is ETHERNET.
*/
...
...
@@ -152,7 +151,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_077
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_077
* @tc.name testStartWorkFun006
* @tc.desc test workScheduler workInfo chargerType is ANY.
*/
...
...
@@ -173,7 +172,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_078
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_078
* @tc.name testStartWorkFun007
* @tc.desc test workScheduler workInfo chargerType is USB.
*/
...
...
@@ -194,7 +193,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_079
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_079
* @tc.name testStartWorkFun008
* @tc.desc test workScheduler workInfo chargerType is WIRELESS.
*/
...
...
@@ -215,7 +214,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_080
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_080
* @tc.name testStartWorkFun009
* @tc.desc test workScheduler workInfo BatteryStatus OKAY.
*/
...
...
@@ -235,7 +234,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_081
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_081
* @tc.name testStartWorkFun010
* @tc.desc test workScheduler workInfo BatteryStatus LOW_OR_OKAY.
*/
...
...
@@ -255,7 +254,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_082
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_082
* @tc.name testStartWorkFun011
* @tc.desc test workScheduler workInfo storageRequest LOW.
*/
...
...
@@ -275,7 +274,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_083
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_083
* @tc.name testStartWorkFun012
* @tc.desc test workScheduler workInfo storageRequest OKAY.
*/
...
...
@@ -295,7 +294,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_084
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_084
* @tc.name testStartWorkFun013
* @tc.desc test workScheduler workInfo storageRequest LOW_OR_OKAY.
*/
...
...
@@ -315,7 +314,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_085
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_085
* @tc.name testStartWorkFun014
* @tc.desc test workScheduler workInfo select all parameter.
*/
...
...
@@ -348,7 +347,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_086
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_086
* @tc.name testStartWorkFun015
* @tc.desc test workScheduler workInfo select networkType,batteryLevel,batteryStatus,storageRequest.
*/
...
...
@@ -377,7 +376,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_087
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_087
* @tc.name testStartWorkFun016
* @tc.desc test start workScheduler workId is StringType.
*/
...
...
@@ -397,7 +396,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_088
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_088
* @tc.name testStartWorkFun017
* @tc.desc test start workScheduler workId is NullType.
*/
...
...
@@ -417,7 +416,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_089
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_089
* @tc.name testStartWorkFun018
* @tc.desc test start workScheduler without workId.
*/
...
...
@@ -436,7 +435,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_090
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_090
* @tc.name testStartWorkFun019
* @tc.desc test start workScheduler bundleName is NumberType.
*/
...
...
@@ -456,7 +455,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_091
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_091
* @tc.name testStartWorkFun020
* @tc.desc test start workScheduler bundleName error.
*/
...
...
@@ -476,7 +475,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_092
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_092
* @tc.name testStartWorkFun021
* @tc.desc test start workScheduler bundleName is NullType.
*/
...
...
@@ -496,7 +495,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_093
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_093
* @tc.name testStartWorkFun022
* @tc.desc test start workScheduler abilityName is NumberType.
*/
...
...
@@ -516,7 +515,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_094
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_094
* @tc.name testStartWorkFun023
* @tc.desc test start workScheduler abilityName is EmptyString.
*/
...
...
@@ -536,7 +535,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_095
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_095
* @tc.name testStartWorkFun024
* @tc.desc test start workScheduler abilityName is a space.
*/
...
...
@@ -556,7 +555,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_096
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_096
* @tc.name testStartWorkFun025
* @tc.desc test start workScheduler abilityName is NullType.
*/
...
...
@@ -576,7 +575,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_097
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_097
* @tc.name testStartWorkFun026
* @tc.desc test start workScheduler networkType < 0.
*/
...
...
@@ -596,7 +595,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_098
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_098
* @tc.name testStartWorkFun027
* @tc.desc test start workScheduler networkType > 5.
*/
...
...
@@ -616,7 +615,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_099
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_099
* @tc.name testStartWorkFun028
* @tc.desc test start workScheduler chargerType < 0.
*/
...
...
@@ -637,7 +636,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_100
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_100
* @tc.name testStartWorkFun029
* @tc.desc test start workScheduler chargerType > 3.
*/
...
...
@@ -658,7 +657,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_101
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_101
* @tc.name testStartWorkFun030
* @tc.desc test start workScheduler isCharging is NumberType.
*/
...
...
@@ -679,7 +678,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_102
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_102
* @tc.name testStartWorkFun031
* @tc.desc test start workScheduler isCharging is StringType.
*/
...
...
@@ -700,7 +699,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_103
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_103
* @tc.name testStartWorkFun032
* @tc.desc test start workScheduler without isCharging.
*/
...
...
@@ -720,7 +719,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_104
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_104
* @tc.name testStartWorkFun033
* @tc.desc test start workScheduler batteryLevel < 0.
*/
...
...
@@ -740,7 +739,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_105
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_105
* @tc.name testStartWorkFun034
* @tc.desc test start workScheduler batteryLevel = 0.
*/
...
...
@@ -760,7 +759,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_106
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_106
* @tc.name testStartWorkFun035
* @tc.desc test start workScheduler batteryLevel = 100.
*/
...
...
@@ -780,7 +779,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_107
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_107
* @tc.name testStartWorkFun036
* @tc.desc test start workScheduler batteryLevel > 100.
*/
...
...
@@ -800,7 +799,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_108
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_108
* @tc.name testStartWorkFun037
* @tc.desc test start workScheduler batteryStatus < 0.
*/
...
...
@@ -820,7 +819,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_109
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_109
* @tc.name testStartWorkFun038
* @tc.desc test start workScheduler batteryStatus > 2.
*/
...
...
@@ -840,7 +839,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_110
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_110
* @tc.name testStartWorkFun039
* @tc.desc test start workScheduler storageRequest < 0.
*/
...
...
@@ -860,7 +859,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_111
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_111
* @tc.name testStartWorkFun040
* @tc.desc test start workScheduler storageRequest > 2.
*/
...
...
@@ -880,7 +879,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_112
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_112
* @tc.name testStartWorkFun041
* @tc.desc test start workScheduler repeatCycleTime < 0.
*/
...
...
@@ -901,7 +900,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_113
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_113
* @tc.name testStartWorkFun042
* @tc.desc test start workScheduler repeatCycleTime < 20min.
*/
...
...
@@ -922,7 +921,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_114
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_114
* @tc.name testStartWorkFun043
* @tc.desc test start workScheduler condition only repeatCycleTime.
*/
...
...
@@ -942,7 +941,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_115
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_115
* @tc.name testStartWorkFun044
* @tc.desc test start workScheduler without repeatCycleTime.
*/
...
...
@@ -963,7 +962,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_116
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_116
* @tc.name testStartWorkFun045
* @tc.desc test start workScheduler isRepeat is StringType.
*/
...
...
@@ -984,7 +983,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_117
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_117
* @tc.name testStartWorkFun046
* @tc.desc test start workScheduler repeatCount = 0.
*/
...
...
@@ -1005,7 +1004,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_118
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_118
* @tc.name testStartWorkFun047
* @tc.desc test start workScheduler repeatCount < 0.
*/
...
...
@@ -1026,7 +1025,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_119
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_119
* @tc.name testStartWorkFun048
* @tc.desc test start workScheduler isRepeat = false and repeatCount < 0.
*/
...
...
@@ -1048,7 +1047,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_120
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_120
* @tc.name testStartWorkFun049
* @tc.desc test start workScheduler condition only repeatCount.
*/
...
...
@@ -1068,7 +1067,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_121
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_121
* @tc.name testStartWorkFun050
* @tc.desc test start workScheduler isPersisted is StringType.
*/
...
...
@@ -1088,7 +1087,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_122
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_122
* @tc.name testStartWorkFun051
* @tc.desc test start workScheduler isPersisted is NumberType.
*/
...
...
@@ -1108,7 +1107,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_123
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_123
* @tc.name testStartWorkFun052
* @tc.desc test start workScheduler isDeepIdle is StringType.
*/
...
...
@@ -1128,7 +1127,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_124
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_124
* @tc.name testStartWorkFun053
* @tc.desc test start workScheduler isDeepIdle is NumberType.
*/
...
...
@@ -1148,7 +1147,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_125
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_125
* @tc.name testStopWorkFun001
* @tc.desc test stop workScheduler needCancel is StringType.
*/
...
...
@@ -1177,7 +1176,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_126
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_126
* @tc.name testStopWorkFun002
* @tc.desc test stop workScheduler needCancel is NumberType.
*/
...
...
@@ -1206,7 +1205,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_127
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_127
* @tc.name testStopWorkFun003
* @tc.desc test stop workScheduler needCancel is NullType.
*/
...
...
@@ -1235,7 +1234,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_128
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_128
* @tc.name testStopWorkFun004
* @tc.desc test stop workScheduler missing parameter needCancel.
*/
...
...
@@ -1264,7 +1263,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_129
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_129
* @tc.name testStopWorkFun005
* @tc.desc test stop workScheduler workId error ,needCancel true.
*/
...
...
@@ -1295,7 +1294,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_130
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_130
* @tc.name testStopWorkFun006
* @tc.desc test stop workScheduler workId error ,needCancel false.
*/
...
...
@@ -1326,7 +1325,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_131
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_131
* @tc.name testStopWorkFun007
* @tc.desc test stop workScheduler bundleName error,needCancel true.
*/
...
...
@@ -1357,7 +1356,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_132
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_132
* @tc.name testStopWorkFun008
* @tc.desc test stop workScheduler bundleName error,needCancel false.
*/
...
...
@@ -1388,7 +1387,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_133
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_133
* @tc.name testStopWorkFun009
* @tc.desc test stop workScheduler abilityName error,needCancel true.
*/
...
...
@@ -1424,7 +1423,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_134
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_134
* @tc.name testStopWorkFun010
* @tc.desc test stop workScheduler abilityName error,needCancel false.
*/
...
...
@@ -1460,7 +1459,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_135
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_135
* @tc.name testStopWorkFun011
* @tc.desc test stop workScheduler networkType different.
*/
...
...
@@ -1491,7 +1490,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_136
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_136
* @tc.name testStopWorkFun012
* @tc.desc test stop workScheduler chargerType different.
*/
...
...
@@ -1524,7 +1523,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_137
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_137
* @tc.name test stopWorkFun013
* @tc.desc test stop workScheduler batteryStatus different.
*/
...
...
@@ -1555,7 +1554,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_138
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_138
* @tc.name test stopWorkFun014
* @tc.desc test stop workScheduler storageRequest different.
*/
...
...
@@ -1586,7 +1585,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_139
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_139
* @tc.name testStopWorkFun015
* @tc.desc test stop workScheduler isPersisted different.
*/
...
...
@@ -1619,7 +1618,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_140
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_140
* @tc.name testStopWorkFun016
* @tc.desc test stop workScheduler repeatCycleTime different.
*/
...
...
@@ -1652,7 +1651,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_141
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_141
* @tc.name testGetWorkStatusFun001
* @tc.desc test getWorkStatus Callback workId error.
*/
...
...
@@ -1685,7 +1684,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_142
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_142
* @tc.name testGetWorkStatusFun002
* @tc.desc test getWorkStatus Promise workId error.
*/
...
...
@@ -1717,7 +1716,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_143
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_143
* @tc.name testGetWorkStatusFun003
* @tc.desc test getWorkStatus Promise parameter undefined.
*/
...
...
@@ -1753,7 +1752,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_144
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_144
* @tc.name testGetWorkStatusFun004
* @tc.desc test getWorkStatus Promise parameter StringType.
*/
...
...
@@ -1789,7 +1788,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_145
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_145
* @tc.name testObtainAllWorksFun001
* @tc.desc test obtainAllWorks Callback.
*/
...
...
@@ -1820,7 +1819,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_146
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_146
* @tc.name testObtainAllWorksFun002
* @tc.desc test first stop work then obtainAllWorks Promise.
*/
...
...
@@ -1848,7 +1847,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_147
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_147
* @tc.name testStopAndClearWorksFun001
* @tc.desc test repeat stopAndClearWorks.
*/
...
...
@@ -1872,7 +1871,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_148
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_148
* @tc.name testIsLastWorkTimeOutFun001
* @tc.desc test isLastWorkTimeOut callback parameter workId < 0.
*/
...
...
@@ -1893,7 +1892,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_150
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_150
* @tc.name testIsLastWorkTimeOutFun003
* @tc.desc test isLastWorkTimeOut promise parameter workId is StringType.
*/
...
...
@@ -1917,7 +1916,7 @@ export default function WorkSchedulerMgrApiTest() {
})
/*
* @tc.number SUB_RESOURCESCHEDULE_WORK
_SCHEDULE_API
_151
* @tc.number SUB_RESOURCESCHEDULE_WORK
SCHEDULE_TASK_XTS
_151
* @tc.name testIsLastWorkTimeOutFun004
* @tc.desc test isLastWorkTimeOut promise parameter workId is NullType.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录