提交 24459f98 编写于 作者: H huangjiaqi 提交者: xsterling

distrubuteddatamgr js api8 xts testcases.

Signed-off-by: Nxsterling <huangjiaqi19@huawei.com>
上级 a6066edd
/* /*
* Copyright (c) 2021 Huawei Device Co., Ltd. * Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -20,7 +20,11 @@ function sleep(ms) { ...@@ -20,7 +20,11 @@ function sleep(ms) {
} }
describe('FieldNodeTest', function() { describe('FieldNodeTest', function() {
// appendChild(child: FieldNode): boolean /**
* @tc.number SUB_DISTRIBUTEDDATAMGR_FIELDNODE_APPENDCHILD_0100
* @tc.name [JS-API8]FieldNode.AppendChild().
* @tc.desc Test Js Api FieldNode.AppendChild() testcase 001
*/
it('testAppendChild001', 0, async function(done) { it('testAppendChild001', 0, async function(done) {
try { try {
let node = new ddm.FieldNode("root"); let node = new ddm.FieldNode("root");
...@@ -42,6 +46,11 @@ describe('FieldNodeTest', function() { ...@@ -42,6 +46,11 @@ describe('FieldNodeTest', function() {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_FIELDNODE_APPENDCHILD_0200
* @tc.name [JS-API8]FieldNode.AppendChild().
* @tc.desc Test Js Api FieldNode.AppendChild() testcase 002
*/
it('testAppendChild002', 0, async function(done) { it('testAppendChild002', 0, async function(done) {
try { try {
let node = new ddm.FieldNode("root"); let node = new ddm.FieldNode("root");
...@@ -56,6 +65,11 @@ describe('FieldNodeTest', function() { ...@@ -56,6 +65,11 @@ describe('FieldNodeTest', function() {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_FIELDNODE_APPENDCHILD_0300
* @tc.name [JS-API8]FieldNode.AppendChild().
* @tc.desc Test Js Api FieldNode.AppendChild() testcase 003
*/
it('testAppendChild003', 0, async function(done) { it('testAppendChild003', 0, async function(done) {
try { try {
let node = new ddm.FieldNode("root"); let node = new ddm.FieldNode("root");
...@@ -69,7 +83,11 @@ describe('FieldNodeTest', function() { ...@@ -69,7 +83,11 @@ describe('FieldNodeTest', function() {
done(); done();
}) })
// toJson(): string /**
* @tc.number SUB_DISTRIBUTEDDATAMGR_FIELDNODE_TOJSON_0100
* @tc.name [JS-API8]FieldNode.ToJson().
* @tc.desc Test Js Api FieldNode.ToJson() testcase 001
*/
it('testToJson001', 0, async function(done) { it('testToJson001', 0, async function(done) {
try { try {
let node = new ddm.FieldNode("root"); let node = new ddm.FieldNode("root");
...@@ -82,6 +100,11 @@ describe('FieldNodeTest', function() { ...@@ -82,6 +100,11 @@ describe('FieldNodeTest', function() {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_FIELDNODE_TOJSON_0200
* @tc.name [JS-API8]FieldNode.ToJson().
* @tc.desc Test Js Api FieldNode.ToJson() testcase 002
*/
it('testToJson002', 0, async function(done) { it('testToJson002', 0, async function(done) {
try { try {
let node = new ddm.FieldNode("root"); let node = new ddm.FieldNode("root");
...@@ -94,6 +117,11 @@ describe('FieldNodeTest', function() { ...@@ -94,6 +117,11 @@ describe('FieldNodeTest', function() {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_FIELDNODE_TOJSON_0300
* @tc.name [JS-API8]FieldNode.ToJson().
* @tc.desc Test Js Api FieldNode.ToJson() testcase 003
*/
it('testToJson003', 0, async function(done) { it('testToJson003', 0, async function(done) {
try { try {
let node = new ddm.FieldNode(); let node = new ddm.FieldNode();
......
/* /*
* Copyright (c) 2021 Huawei Device Co., Ltd. * Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -69,6 +69,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -69,6 +69,11 @@ describe('KVManagerCallbackTest', function () {
}); });
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1100
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 101
*/
it('testKVManagerGetKVStore101', 0, async function (done) { it('testKVManagerGetKVStore101', 0, async function (done) {
console.log('testKVManagerGetKVStore101'); console.log('testKVManagerGetKVStore101');
try { try {
...@@ -84,6 +89,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -84,6 +89,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1200
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 102
*/
it('testKVManagerGetKVStore102', 0, async function (done) { it('testKVManagerGetKVStore102', 0, async function (done) {
console.log('testKVManagerGetKVStore102'); console.log('testKVManagerGetKVStore102');
try { try {
...@@ -102,6 +112,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -102,6 +112,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1300
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 103
*/
it('testKVManagerGetKVStore103', 0, async function (done) { it('testKVManagerGetKVStore103', 0, async function (done) {
console.log('testKVManagerGetKVStore103'); console.log('testKVManagerGetKVStore103');
const optionsInfo = { const optionsInfo = {
...@@ -128,10 +143,15 @@ describe('KVManagerCallbackTest', function () { ...@@ -128,10 +143,15 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1400
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 104
*/
it('testKVManagerGetKVStore104', 0, async function (done) { it('testKVManagerGetKVStore104', 0, async function (done) {
console.log('testKVManagerGetKVStore104'); console.log('testKVManagerGetKVStore104');
const optionsInfo = { const optionsInfo = {
createIfMissing : false, // when false getkvstore error createIfMissing : false,
encrypt : false, encrypt : false,
backup : false, backup : false,
autoSync : true, autoSync : true,
...@@ -155,6 +175,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -155,6 +175,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1500
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 105
*/
it('testKVManagerGetKVStore105', 0, async function (done) { it('testKVManagerGetKVStore105', 0, async function (done) {
console.log('testKVManagerGetKVStore105'); console.log('testKVManagerGetKVStore105');
const optionsInfo = { const optionsInfo = {
...@@ -180,6 +205,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -180,6 +205,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1600
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 106
*/
it('testKVManagerGetKVStore106', 0, async function (done) { it('testKVManagerGetKVStore106', 0, async function (done) {
console.log('testKVManagerGetKVStore106'); console.log('testKVManagerGetKVStore106');
const optionsInfo = { const optionsInfo = {
...@@ -205,6 +235,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -205,6 +235,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1700
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 107
*/
it('testKVManagerGetKVStore107', 0, async function (done) { it('testKVManagerGetKVStore107', 0, async function (done) {
console.log('testKVManagerGetKVStore107'); console.log('testKVManagerGetKVStore107');
const optionsInfo = { const optionsInfo = {
...@@ -230,6 +265,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -230,6 +265,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1800
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 108
*/
it('testKVManagerGetKVStore108', 0, async function (done) { it('testKVManagerGetKVStore108', 0, async function (done) {
console.log('testKVManagerGetKVStore108'); console.log('testKVManagerGetKVStore108');
const optionsInfo = { const optionsInfo = {
...@@ -255,6 +295,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -255,6 +295,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1900
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 109
*/
it('testKVManagerGetKVStore109', 0, async function (done) { it('testKVManagerGetKVStore109', 0, async function (done) {
console.log('testKVManagerGetKVStore109'); console.log('testKVManagerGetKVStore109');
const optionsInfo = { const optionsInfo = {
...@@ -280,6 +325,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -280,6 +325,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1100
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 110
*/
it('testKVManagerGetKVStore110', 0, async function (done) { it('testKVManagerGetKVStore110', 0, async function (done) {
console.log('testKVManagerGetKVStore110'); console.log('testKVManagerGetKVStore110');
const optionsInfo = { const optionsInfo = {
...@@ -305,6 +355,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -305,6 +355,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1110
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 111
*/
it('testKVManagerGetKVStore111', 0, async function (done) { it('testKVManagerGetKVStore111', 0, async function (done) {
console.log('testKVManagerGetKVStore111'); console.log('testKVManagerGetKVStore111');
const optionsInfo = { const optionsInfo = {
...@@ -330,6 +385,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -330,6 +385,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1120
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 112
*/
it('testKVManagerGetKVStore112', 0, async function (done) { it('testKVManagerGetKVStore112', 0, async function (done) {
console.log('testKVManagerGetKVStore112'); console.log('testKVManagerGetKVStore112');
const optionsInfo = { const optionsInfo = {
...@@ -355,6 +415,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -355,6 +415,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1130
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 113
*/
it('testKVManagerGetKVStore113', 0, async function (done) { it('testKVManagerGetKVStore113', 0, async function (done) {
console.log('testKVManagerGetKVStore113'); console.log('testKVManagerGetKVStore113');
const optionsInfo = { const optionsInfo = {
...@@ -382,6 +447,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -382,6 +447,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1140
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 114
*/
it('testKVManagerGetKVStore114', 0, async function (done) { it('testKVManagerGetKVStore114', 0, async function (done) {
console.log('testKVManagerGetKVStore114'); console.log('testKVManagerGetKVStore114');
const optionsInfo = { const optionsInfo = {
...@@ -407,6 +477,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -407,6 +477,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1150
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 115
*/
it('testKVManagerGetKVStore115', 0, async function (done) { it('testKVManagerGetKVStore115', 0, async function (done) {
console.log('testKVManagerGetKVStore115'); console.log('testKVManagerGetKVStore115');
const optionsInfo = { const optionsInfo = {
...@@ -432,6 +507,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -432,6 +507,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1160
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 116
*/
it('testKVManagerGetKVStore116', 0, async function (done) { it('testKVManagerGetKVStore116', 0, async function (done) {
console.log('testKVManagerGetKVStore116'); console.log('testKVManagerGetKVStore116');
const optionsInfo = { const optionsInfo = {
...@@ -457,6 +537,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -457,6 +537,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1170
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 117
*/
it('testKVManagerGetKVStore117', 0, async function (done) { it('testKVManagerGetKVStore117', 0, async function (done) {
console.log('testKVManagerGetKVStore117'); console.log('testKVManagerGetKVStore117');
const optionsInfo = { const optionsInfo = {
...@@ -482,6 +567,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -482,6 +567,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1180
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 118
*/
it('testKVManagerGetKVStore118', 0, async function (done) { it('testKVManagerGetKVStore118', 0, async function (done) {
console.log('testKVManagerGetKVStore118'); console.log('testKVManagerGetKVStore118');
const optionsInfo = { const optionsInfo = {
...@@ -507,6 +597,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -507,6 +597,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1190
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 119
*/
it('testKVManagerGetKVStore119', 0, async function (done) { it('testKVManagerGetKVStore119', 0, async function (done) {
console.log('testKVManagerGetKVStore119'); console.log('testKVManagerGetKVStore119');
const optionsInfo = { const optionsInfo = {
...@@ -532,6 +627,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -532,6 +627,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_1100
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 101
*/
it('testKVManagerCloseKVStore101', 0, async function (done) { it('testKVManagerCloseKVStore101', 0, async function (done) {
console.log('testKVManagerCloseKVStore101'); console.log('testKVManagerCloseKVStore101');
try { try {
...@@ -551,6 +651,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -551,6 +651,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_1200
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 102
*/
it('testKVManagerCloseKVStore102', 0, async function (done) { it('testKVManagerCloseKVStore102', 0, async function (done) {
console.log('testKVManagerCloseKVStore102'); console.log('testKVManagerCloseKVStore102');
try { try {
...@@ -579,6 +684,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -579,6 +684,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_1300
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 103
*/
it('testKVManagerCloseKVStore103', 0, async function (done) { it('testKVManagerCloseKVStore103', 0, async function (done) {
console.log('testKVManagerCloseKVStore103'); console.log('testKVManagerCloseKVStore103');
try { try {
...@@ -607,6 +717,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -607,6 +717,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_1400
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 104
*/
it('testKVManagerCloseKVStore104', 0, async function (done) { it('testKVManagerCloseKVStore104', 0, async function (done) {
console.log('testKVManagerCloseKVStore104'); console.log('testKVManagerCloseKVStore104');
try { try {
...@@ -622,6 +737,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -622,6 +737,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_DELETEKVSTORE_1100
* @tc.name [JS-API8]KVManager.DeleteKVStore.
* @tc.desc Test Js Api KVManager.DeleteKVStore testcase 101
*/
it('testKVManagerDeleteKVStore101', 0, async function (done) { it('testKVManagerDeleteKVStore101', 0, async function (done) {
console.log('testKVManagerDeleteKVStore101'); console.log('testKVManagerDeleteKVStore101');
try { try {
...@@ -641,6 +761,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -641,6 +761,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_DELETEKVSTORE_1200
* @tc.name [JS-API8]KVManager.DeleteKVStore.
* @tc.desc Test Js Api KVManager.DeleteKVStore testcase 102
*/
it('testKVManagerDeleteKVStore102', 0, async function (done) { it('testKVManagerDeleteKVStore102', 0, async function (done) {
console.log('testKVManagerDeleteKVStore102'); console.log('testKVManagerDeleteKVStore102');
try { try {
...@@ -669,6 +794,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -669,6 +794,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_DELETEKVSTORE_1300
* @tc.name [JS-API8]KVManager.DeleteKVStore.
* @tc.desc Test Js Api KVManager.DeleteKVStore testcase 103
*/
it('testKVManagerDeleteKVStore103', 0, async function (done) { it('testKVManagerDeleteKVStore103', 0, async function (done) {
console.log('testKVManagerDeleteKVStore103'); console.log('testKVManagerDeleteKVStore103');
try { try {
...@@ -687,6 +817,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -687,6 +817,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETALLKVSTOREID_1100
* @tc.name [JS-API8]KVManager.GetAllKVStoreId.
* @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 101
*/
it('testKVManagerGetAllKVStoreId101', 0, async function (done) { it('testKVManagerGetAllKVStoreId101', 0, async function (done) {
console.log('testKVManagerGetAllKVStoreId101'); console.log('testKVManagerGetAllKVStoreId101');
try { try {
...@@ -703,6 +838,11 @@ describe('KVManagerCallbackTest', function () { ...@@ -703,6 +838,11 @@ describe('KVManagerCallbackTest', function () {
} }
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETALLKVSTOREID_1200
* @tc.name [JS-API8]KVManager.GetAllKVStoreId.
* @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 102
*/
it('testKVManagerGetAllKVStoreId102', 0, async function (done) { it('testKVManagerGetAllKVStoreId102', 0, async function (done) {
console.log('testKVManagerGetAllKVStoreId102'); console.log('testKVManagerGetAllKVStoreId102');
try { try {
......
/* /*
* Copyright (c) 2021 Huawei Device Co., Ltd. * Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
...@@ -76,6 +76,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -76,6 +76,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1000
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 001
*/
it('testKVManagerGetKVStore001', 0, async function (done) { it('testKVManagerGetKVStore001', 0, async function (done) {
console.log('testKVManagerGetKVStore001'); console.log('testKVManagerGetKVStore001');
try { try {
...@@ -91,6 +96,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -91,6 +96,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_2000
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 002
*/
it('testKVManagerGetKVStore002', 0, async function (done) { it('testKVManagerGetKVStore002', 0, async function (done) {
console.log('testKVManagerGetKVStore002'); console.log('testKVManagerGetKVStore002');
try { try {
...@@ -106,6 +116,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -106,6 +116,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_0300
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 003
*/
it('testKVManagerGetKVStore003', 0, async function (done) { it('testKVManagerGetKVStore003', 0, async function (done) {
console.log('testKVManagerGetKVStore003'); console.log('testKVManagerGetKVStore003');
const optionsInfo = { const optionsInfo = {
...@@ -128,10 +143,15 @@ describe('KVManagerPromiseTest', function () { ...@@ -128,10 +143,15 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_0400
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 004
*/
it('testKVManagerGetKVStore004', 0, async function (done) { it('testKVManagerGetKVStore004', 0, async function (done) {
console.log('testKVManagerGetKVStore004'); console.log('testKVManagerGetKVStore004');
const optionsInfo = { const optionsInfo = {
createIfMissing : false, // when false getkvstore error createIfMissing : false,
encrypt : false, encrypt : false,
backup : false, backup : false,
autoSync : true, autoSync : true,
...@@ -148,6 +168,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -148,6 +168,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_0500
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 005
*/
it('testKVManagerGetKVStore005', 0, async function (done) { it('testKVManagerGetKVStore005', 0, async function (done) {
console.log('testKVManagerGetKVStore005'); console.log('testKVManagerGetKVStore005');
const optionsInfo = { const optionsInfo = {
...@@ -170,6 +195,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -170,6 +195,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_0600
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 006
*/
it('testKVManagerGetKVStore006', 0, async function (done) { it('testKVManagerGetKVStore006', 0, async function (done) {
console.log('testKVManagerGetKVStore006'); console.log('testKVManagerGetKVStore006');
const optionsInfo = { const optionsInfo = {
...@@ -192,6 +222,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -192,6 +222,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_0700
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 007
*/
it('testKVManagerGetKVStore007', 0, async function (done) { it('testKVManagerGetKVStore007', 0, async function (done) {
console.log('testKVManagerGetKVStore006'); console.log('testKVManagerGetKVStore006');
const optionsInfo = { const optionsInfo = {
...@@ -214,6 +249,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -214,6 +249,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_0800
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 008
*/
it('testKVManagerGetKVStore008', 0, async function (done) { it('testKVManagerGetKVStore008', 0, async function (done) {
console.log('testKVManagerGetKVStore008'); console.log('testKVManagerGetKVStore008');
const optionsInfo = { const optionsInfo = {
...@@ -236,6 +276,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -236,6 +276,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_0900
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 009
*/
it('testKVManagerGetKVStore009', 0, async function (done) { it('testKVManagerGetKVStore009', 0, async function (done) {
console.log('testKVManagerGetKVStore009'); console.log('testKVManagerGetKVStore009');
const optionsInfo = { const optionsInfo = {
...@@ -258,6 +303,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -258,6 +303,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1000
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 010
*/
it('testKVManagerGetKVStore010', 0, async function (done) { it('testKVManagerGetKVStore010', 0, async function (done) {
console.log('testKVManagerGetKVStore010'); console.log('testKVManagerGetKVStore010');
const optionsInfo = { const optionsInfo = {
...@@ -280,6 +330,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -280,6 +330,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1100
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 011
*/
it('testKVManagerGetKVStore011', 0, async function (done) { it('testKVManagerGetKVStore011', 0, async function (done) {
console.log('testKVManagerGetKVStore011'); console.log('testKVManagerGetKVStore011');
const optionsInfo = { const optionsInfo = {
...@@ -302,6 +357,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -302,6 +357,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1200
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 012
*/
it('testKVManagerGetKVStore012', 0, async function (done) { it('testKVManagerGetKVStore012', 0, async function (done) {
console.log('testKVManagerGetKVStore012'); console.log('testKVManagerGetKVStore012');
const optionsInfo = { const optionsInfo = {
...@@ -324,6 +384,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -324,6 +384,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1300
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 013
*/
it('testKVManagerGetKVStore013', 0, async function (done) { it('testKVManagerGetKVStore013', 0, async function (done) {
console.log('testKVManagerGetKVStore013'); console.log('testKVManagerGetKVStore013');
const optionsInfo = { const optionsInfo = {
...@@ -331,7 +396,7 @@ describe('KVManagerPromiseTest', function () { ...@@ -331,7 +396,7 @@ describe('KVManagerPromiseTest', function () {
encrypt : false, encrypt : false,
backup : false, backup : false,
autoSync : true, autoSync : true,
kvStoreType : factory.KVStoreType.MULTI_VERSION, // unsupport MULTI_VERSION kvStoreType : factory.KVStoreType.MULTI_VERSION,
schema : '', schema : '',
securityLevel : factory.SecurityLevel.S2, securityLevel : factory.SecurityLevel.S2,
} }
...@@ -348,6 +413,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -348,6 +413,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1400
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 014
*/
it('testKVManagerGetKVStore014', 0, async function (done) { it('testKVManagerGetKVStore014', 0, async function (done) {
console.log('testKVManagerGetKVStore014'); console.log('testKVManagerGetKVStore014');
const optionsInfo = { const optionsInfo = {
...@@ -370,6 +440,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -370,6 +440,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1500
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 015
*/
it('testKVManagerGetKVStore015', 0, async function (done) { it('testKVManagerGetKVStore015', 0, async function (done) {
console.log('testKVManagerGetKVStore015'); console.log('testKVManagerGetKVStore015');
const optionsInfo = { const optionsInfo = {
...@@ -392,6 +467,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -392,6 +467,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1600
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 016
*/
it('testKVManagerGetKVStore016', 0, async function (done) { it('testKVManagerGetKVStore016', 0, async function (done) {
console.log('testKVManagerGetKVStore016'); console.log('testKVManagerGetKVStore016');
const optionsInfo = { const optionsInfo = {
...@@ -414,6 +494,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -414,6 +494,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1700
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 017
*/
it('testKVManagerGetKVStore017', 0, async function (done) { it('testKVManagerGetKVStore017', 0, async function (done) {
console.log('testKVManagerGetKVStore017'); console.log('testKVManagerGetKVStore017');
const optionsInfo = { const optionsInfo = {
...@@ -436,6 +521,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -436,6 +521,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1800
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 018
*/
it('testKVManagerGetKVStore018', 0, async function (done) { it('testKVManagerGetKVStore018', 0, async function (done) {
console.log('testKVManagerGetKVStore018'); console.log('testKVManagerGetKVStore018');
const optionsInfo = { const optionsInfo = {
...@@ -458,6 +548,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -458,6 +548,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETKVSTORE_1900
* @tc.name [JS-API8]KVManager.GetKVStore.
* @tc.desc Test Js Api KVManager.GetKVStore testcase 019
*/
it('testKVManagerGetKVStore019', 0, async function (done) { it('testKVManagerGetKVStore019', 0, async function (done) {
console.log('testKVManagerGetKVStore019'); console.log('testKVManagerGetKVStore019');
const optionsInfo = { const optionsInfo = {
...@@ -480,6 +575,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -480,6 +575,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_0100
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 001
*/
it('testKVManagerCloseKVStore001', 0, async function (done) { it('testKVManagerCloseKVStore001', 0, async function (done) {
console.log('testKVManagerCloseKVStore001'); console.log('testKVManagerCloseKVStore001');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
...@@ -498,6 +598,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -498,6 +598,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_0200
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 002
*/
it('testKVManagerCloseKVStore002', 0, async function (done) { it('testKVManagerCloseKVStore002', 0, async function (done) {
console.log('testKVManagerCloseKVStore002'); console.log('testKVManagerCloseKVStore002');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
...@@ -520,6 +625,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -520,6 +625,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_0300
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 003
*/
it('testKVManagerCloseKVStore003', 0, async function (done) { it('testKVManagerCloseKVStore003', 0, async function (done) {
console.log('testKVManagerCloseKVStore003'); console.log('testKVManagerCloseKVStore003');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
...@@ -542,6 +652,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -542,6 +652,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_CLOSEKVSTORE_0400
* @tc.name [JS-API8]KVManager.CloseKVStore.
* @tc.desc Test Js Api KVManager.CloseKVStore testcase 004
*/
it('testKVManagerCloseKVStore004', 0, async function (done) { it('testKVManagerCloseKVStore004', 0, async function (done) {
console.log('testKVManagerCloseKVStore004'); console.log('testKVManagerCloseKVStore004');
await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(() => { await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(() => {
...@@ -553,6 +668,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -553,6 +668,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_DELETEKVSTORE_0100
* @tc.name [JS-API8]KVManager.DeleteKVStore.
* @tc.desc Test Js Api KVManager.DeleteKVStore testcase 001
*/
it('testKVManagerDeleteKVStore001', 0, async function (done) { it('testKVManagerDeleteKVStore001', 0, async function (done) {
console.log('testKVManagerDeleteKVStore001'); console.log('testKVManagerDeleteKVStore001');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
...@@ -571,6 +691,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -571,6 +691,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_DELETEKVSTORE_0200
* @tc.name [JS-API8]KVManager.DeleteKVStore.
* @tc.desc Test Js Api KVManager.DeleteKVStore testcase 002
*/
it('testKVManagerDeleteKVStore002', 0, async function (done) { it('testKVManagerDeleteKVStore002', 0, async function (done) {
console.log('testKVManagerDeleteKVStore002'); console.log('testKVManagerDeleteKVStore002');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
...@@ -593,6 +718,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -593,6 +718,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_DELETEKVSTORE_0300
* @tc.name [JS-API8]KVManager.DeleteKVStore.
* @tc.desc Test Js Api KVManager.DeleteKVStore testcase 003
*/
it('testKVManagerDeleteKVStore003', 0, async function (done) { it('testKVManagerDeleteKVStore003', 0, async function (done) {
console.log('testKVManagerDeleteKVStore003'); console.log('testKVManagerDeleteKVStore003');
await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => { await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
...@@ -604,6 +734,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -604,6 +734,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETALLKVSTOREID_0100
* @tc.name [JS-API8]KVManager.GetAllKVStoreId.
* @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 001
*/
it('testKVManagerGetAllKVStoreId001', 0, async function (done) { it('testKVManagerGetAllKVStoreId001', 0, async function (done) {
console.log('testKVManagerGetAllKVStoreId001'); console.log('testKVManagerGetAllKVStoreId001');
await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME).then((data) => { await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME).then((data) => {
...@@ -617,6 +752,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -617,6 +752,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_GETALLKVSTOREID_0200
* @tc.name [JS-API8]KVManager.GetAllKVStoreId.
* @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 002
*/
it('testKVManagerGetAllKVStoreId002', 0, async function (done) { it('testKVManagerGetAllKVStoreId002', 0, async function (done) {
console.log('testKVManagerGetAllKVStoreId002'); console.log('testKVManagerGetAllKVStoreId002');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
...@@ -639,6 +779,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -639,6 +779,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_ON_0100
* @tc.name [JS-API8]KVManager.On.
* @tc.desc Test Js Api KVManager.On testcase 001
*/
it('testKVManagerOn001', 0, function (done) { it('testKVManagerOn001', 0, function (done) {
console.log('testKVManagerOn001'); console.log('testKVManagerOn001');
var deathCallback = function () { var deathCallback = function () {
...@@ -649,6 +794,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -649,6 +794,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_ON_0200
* @tc.name [JS-API8]KVManager.On.
* @tc.desc Test Js Api KVManager.On testcase 002
*/
it('testKVManagerOn002', 0, function (done) { it('testKVManagerOn002', 0, function (done) {
console.log('testKVManagerOn002'); console.log('testKVManagerOn002');
var deathCallback1 = function () { var deathCallback1 = function () {
...@@ -664,6 +814,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -664,6 +814,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_ON_0300
* @tc.name [JS-API8]KVManager.On.
* @tc.desc Test Js Api KVManager.On testcase 003
*/
it('testKVManagerOn003', 0, function (done) { it('testKVManagerOn003', 0, function (done) {
console.log('testKVManagerOn003'); console.log('testKVManagerOn003');
var deathCallback = function () { var deathCallback = function () {
...@@ -675,6 +830,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -675,6 +830,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_OFF_0100
* @tc.name [JS-API8]KVManager.Off.
* @tc.desc Test Js Api KVManager.Off testcase 001
*/
it('testKVManagerOff001', 0, function (done) { it('testKVManagerOff001', 0, function (done) {
console.log('testKVManagerOff001'); console.log('testKVManagerOff001');
var deathCallback = function () { var deathCallback = function () {
...@@ -684,6 +844,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -684,6 +844,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_OFF_0200
* @tc.name [JS-API8]KVManager.Off.
* @tc.desc Test Js Api KVManager.Off testcase 002
*/
it('testKVManagerOff002', 0, function (done) { it('testKVManagerOff002', 0, function (done) {
console.log('testKVManagerOff002'); console.log('testKVManagerOff002');
var deathCallback = function () { var deathCallback = function () {
...@@ -694,6 +859,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -694,6 +859,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_OFF_0300
* @tc.name [JS-API8]KVManager.Off.
* @tc.desc Test Js Api KVManager.Off testcase 003
*/
it('testKVManagerOff003', 0, function (done) { it('testKVManagerOff003', 0, function (done) {
console.log('testKVManagerOff003'); console.log('testKVManagerOff003');
var deathCallback1 = function () { var deathCallback1 = function () {
...@@ -708,6 +878,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -708,6 +878,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_OFF_0400
* @tc.name [JS-API8]KVManager.Off.
* @tc.desc Test Js Api KVManager.Off testcase 004
*/
it('testKVManagerOff004', 0, function (done) { it('testKVManagerOff004', 0, function (done) {
console.log('testKVManagerOff004'); console.log('testKVManagerOff004');
var deathCallback = function () { var deathCallback = function () {
...@@ -719,6 +894,11 @@ describe('KVManagerPromiseTest', function () { ...@@ -719,6 +894,11 @@ describe('KVManagerPromiseTest', function () {
done(); done();
}) })
/**
* @tc.number SUB_DISTRIBUTEDDATAMGR_KVMANAGER_OFF_0500
* @tc.name [JS-API8]KVManager.Off.
* @tc.desc Test Js Api KVManager.Off testcase 005
*/
it('testKVManagerOff005', 0, function (done) { it('testKVManagerOff005', 0, function (done) {
console.log('testKVManagerOff001'); console.log('testKVManagerOff001');
var deathCallback = function () { var deathCallback = function () {
......
/* /*
* Copyright (c) 2021 Huawei Device Co., Ltd. * Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册