提交 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.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册