提交 8c8f40e3 编写于 作者: Q qigongming

新增XTS用例,API接口属性覆盖

Signed-off-by: Nqigongming <qigongming@huawei.com>
Change-Id: Iaf649b21296f10687599bfbe916a485fb3b5ea17
上级 4afaac66
......@@ -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---------------------------');
......
......@@ -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--------------------');
......
......@@ -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.
*/
......
......@@ -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("DeviceUsageStatisticsJsTest009", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest009---------------------------');
it("DeviceUsageStatisticsJsTest005", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest005---------------------------');
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("DeviceUsageStatisticsJsTest010", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest010---------------------------');
it("DeviceUsageStatisticsJsTest006", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest006---------------------------');
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("DeviceUsageStatisticsJsTest013", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest013---------------------------');
it("DeviceUsageStatisticsJsTest007", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest007---------------------------');
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("DeviceUsageStatisticsJsTest014", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest014---------------------------');
it("DeviceUsageStatisticsJsTest008", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest008---------------------------');
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("DeviceUsageStatisticsJsTest015", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest015---------------------------');
it("DeviceUsageStatisticsJsTest009", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest009---------------------------');
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("DeviceUsageStatisticsJsTest016", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest016---------------------------');
it("DeviceUsageStatisticsJsTest0010", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0010---------------------------');
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("DeviceUsageStatisticsJsTest017", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest017---------------------------');
it("DeviceUsageStatisticsJsTest0011", 0, function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0011---------------------------');
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("DeviceUsageStatisticsJsTest038", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest038---------------------------');
it("DeviceUsageStatisticsJsTest0012", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0012---------------------------');
bundleState.isIdleState('').then((res) => {
console.info('test bundle DeviceUsageStatisticsJsTest038 promise success, result= ' + res );
console.info('test bundle DeviceUsageStatisticsJsTest0012 promise success, result= ' + res );
expect(res).assertEqual(false);
}).catch((err) => {
console.info('test bundle DeviceUsageStatisticsJsTest038 promise fail, result= ' +
console.info('test bundle DeviceUsageStatisticsJsTest0012 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("DeviceUsageStatisticsJsTest039", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest039---------------------------');
it("DeviceUsageStatisticsJsTest0013", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0013---------------------------');
bundleState.isIdleState(12345).then((res) => {
console.info('test bundle DeviceUsageStatisticsJsTest039 promise success, result= ' + res );
console.info('test bundle DeviceUsageStatisticsJsTest0013 promise success, result= ' + res );
expect(res).assertEqual(false);
}).catch((err) => {
console.info('test bundle DeviceUsageStatisticsJsTest039 promise fail, result= ' +
console.info('test bundle DeviceUsageStatisticsJsTest0013 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("DeviceUsageStatisticsJsTest040", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest040---------------------------');
it("DeviceUsageStatisticsJsTest0014", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0014---------------------------');
bundleState.isIdleState(true).then((res) => {
console.info('test bundle DeviceUsageStatisticsJsTest040 promise success, result= ' + res );
console.info('test bundle DeviceUsageStatisticsJsTest0014 promise success, result= ' + res );
expect(res).assertEqual(false);
}).catch((err) => {
console.info('test bundle DeviceUsageStatisticsJsTest040 promise fail, result= ' +
console.info('test bundle DeviceUsageStatisticsJsTest0014 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("DeviceUsageStatisticsJsTest041", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest041---------------------------');
it("DeviceUsageStatisticsJsTest0015", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0015---------------------------');
bundleState.isIdleState(null).then((res) => {
console.info('test bundle DeviceUsageStatisticsJsTest041 promise success, result= ' + res );
console.info('test bundle DeviceUsageStatisticsJsTest0015 promise success, result= ' + res );
expect(res).assertEqual(false);
}).catch((err) => {
console.info('test bundle DeviceUsageStatisticsJsTest041 promise fail, result= ' +
console.info('test bundle DeviceUsageStatisticsJsTest0015 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("DeviceUsageStatisticsJsTest042", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest042---------------------------');
it("DeviceUsageStatisticsJsTest0016", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0016---------------------------');
bundleState.isIdleState(undefined).then((res) => {
console.info('test bundle DeviceUsageStatisticsJsTest042 promise success, result= ' + res );
console.info('test bundle DeviceUsageStatisticsJsTest0016 promise success, result= ' + res );
expect(res).assertFail();
}).catch((err) => {
console.info('test bundle DeviceUsageStatisticsJsTest042 promise fail, result= ' +
console.info('test bundle DeviceUsageStatisticsJsTest0016 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("DeviceUsageStatisticsJsTest043", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest043---------------------------');
it("DeviceUsageStatisticsJsTest0017", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0017---------------------------');
bundleState.isIdleState(undefined, (err, res) => {
if(err) {
console.info('test bundle DeviceUsageStatisticsJsTest043 callback fail, result= ' +
console.info('test bundle DeviceUsageStatisticsJsTest0017 callback fail, result= ' +
JSON.stringify(err.code));
expect(err.code).assertLarger(0);
} else {
console.info('test bundle DeviceUsageStatisticsJsTest043 callback success, result= ' + res );
console.info('test bundle DeviceUsageStatisticsJsTest0017 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("DeviceUsageStatisticsJsTest044", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest044---------------------------');
it("DeviceUsageStatisticsJsTest0018", 0, async function (done) {
console.info('----------------------DeviceUsageStatisticsJsTest0018---------------------------');
bundleState.isIdleState(null, (err, res) => {
if(err) {
console.info('test bundle DeviceUsageStatisticsJsTest044 callback fail, result= ' +
console.info('test bundle DeviceUsageStatisticsJsTest0018 callback fail, result= ' +
JSON.stringify(err.code));
expect(err.code).assertLarger(0);
} else {
console.info('test bundle DeviceUsageStatisticsJsTest044 callback success, result= ' + res );
console.info('test bundle DeviceUsageStatisticsJsTest0018 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();
}
})
})
})}
......@@ -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.
*/
......
......@@ -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('WORK_SCHEDULER isLastWorkTimeOut callback success, data is:' + res);
console.info('WorkSchedulerJsTest014 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('WORK_SCHEDULER isLastWorkTimeOut promise success, data is:' + res);
console.info('WorkSchedulerJsTest015 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---------------------------');
......
......@@ -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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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_WORKSCHEDULE_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.
先完成此消息的编辑!
想要评论请 注册