提交 49fb8ae9 编写于 作者: S smartltt

master用例修

Signed-off-by: Nsmartltt <litingting86@huawei.com>
Change-Id: I9a256ff4b482348c21721be670a068345650824b
上级 b0ca8538
......@@ -393,148 +393,4 @@ 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();
}
})
})
})}
})}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册