提交 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");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......@@ -20,7 +20,11 @@ function sleep(ms) {
}
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) {
try {
let node = new ddm.FieldNode("root");
......@@ -42,6 +46,11 @@ describe('FieldNodeTest', function() {
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) {
try {
let node = new ddm.FieldNode("root");
......@@ -56,6 +65,11 @@ describe('FieldNodeTest', function() {
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) {
try {
let node = new ddm.FieldNode("root");
......@@ -69,7 +83,11 @@ describe('FieldNodeTest', function() {
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) {
try {
let node = new ddm.FieldNode("root");
......@@ -82,6 +100,11 @@ describe('FieldNodeTest', function() {
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) {
try {
let node = new ddm.FieldNode("root");
......@@ -94,6 +117,11 @@ describe('FieldNodeTest', function() {
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) {
try {
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");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......@@ -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) {
console.log('testKVManagerGetKVStore101');
try {
......@@ -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) {
console.log('testKVManagerGetKVStore102');
try {
......@@ -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) {
console.log('testKVManagerGetKVStore103');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore104');
const optionsInfo = {
createIfMissing : false, // when false getkvstore error
createIfMissing : false,
encrypt : false,
backup : false,
autoSync : true,
......@@ -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) {
console.log('testKVManagerGetKVStore105');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore106');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore107');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore108');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore109');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore110');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore111');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore112');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore113');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore114');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore115');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore116');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore117');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore118');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerGetKVStore119');
const optionsInfo = {
......@@ -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) {
console.log('testKVManagerCloseKVStore101');
try {
......@@ -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) {
console.log('testKVManagerCloseKVStore102');
try {
......@@ -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) {
console.log('testKVManagerCloseKVStore103');
try {
......@@ -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) {
console.log('testKVManagerCloseKVStore104');
try {
......@@ -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) {
console.log('testKVManagerDeleteKVStore101');
try {
......@@ -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) {
console.log('testKVManagerDeleteKVStore102');
try {
......@@ -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) {
console.log('testKVManagerDeleteKVStore103');
try {
......@@ -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) {
console.log('testKVManagerGetAllKVStoreId101');
try {
......@@ -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) {
console.log('testKVManagerGetAllKVStoreId102');
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");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
......@@ -76,6 +76,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore001');
try {
......@@ -91,6 +96,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore002');
try {
......@@ -106,6 +116,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore003');
const optionsInfo = {
......@@ -128,10 +143,15 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore004');
const optionsInfo = {
createIfMissing : false, // when false getkvstore error
createIfMissing : false,
encrypt : false,
backup : false,
autoSync : true,
......@@ -148,6 +168,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore005');
const optionsInfo = {
......@@ -170,6 +195,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore006');
const optionsInfo = {
......@@ -192,6 +222,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore006');
const optionsInfo = {
......@@ -214,6 +249,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore008');
const optionsInfo = {
......@@ -236,6 +276,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore009');
const optionsInfo = {
......@@ -258,6 +303,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore010');
const optionsInfo = {
......@@ -280,6 +330,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore011');
const optionsInfo = {
......@@ -302,6 +357,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore012');
const optionsInfo = {
......@@ -324,6 +384,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore013');
const optionsInfo = {
......@@ -331,7 +396,7 @@ describe('KVManagerPromiseTest', function () {
encrypt : false,
backup : false,
autoSync : true,
kvStoreType : factory.KVStoreType.MULTI_VERSION, // unsupport MULTI_VERSION
kvStoreType : factory.KVStoreType.MULTI_VERSION,
schema : '',
securityLevel : factory.SecurityLevel.S2,
}
......@@ -348,6 +413,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore014');
const optionsInfo = {
......@@ -370,6 +440,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore015');
const optionsInfo = {
......@@ -392,6 +467,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore016');
const optionsInfo = {
......@@ -414,6 +494,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore017');
const optionsInfo = {
......@@ -436,6 +521,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore018');
const optionsInfo = {
......@@ -458,6 +548,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetKVStore019');
const optionsInfo = {
......@@ -480,6 +575,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerCloseKVStore001');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
......@@ -498,6 +598,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerCloseKVStore002');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
......@@ -520,6 +625,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerCloseKVStore003');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
......@@ -542,6 +652,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerCloseKVStore004');
await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(() => {
......@@ -553,6 +668,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerDeleteKVStore001');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
......@@ -571,6 +691,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerDeleteKVStore002');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
......@@ -593,6 +718,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerDeleteKVStore003');
await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => {
......@@ -604,6 +734,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetAllKVStoreId001');
await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME).then((data) => {
......@@ -617,6 +752,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerGetAllKVStoreId002');
await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => {
......@@ -639,6 +779,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOn001');
var deathCallback = function () {
......@@ -649,6 +794,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOn002');
var deathCallback1 = function () {
......@@ -664,6 +814,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOn003');
var deathCallback = function () {
......@@ -675,6 +830,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOff001');
var deathCallback = function () {
......@@ -684,6 +844,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOff002');
var deathCallback = function () {
......@@ -694,6 +859,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOff003');
var deathCallback1 = function () {
......@@ -708,6 +878,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOff004');
var deathCallback = function () {
......@@ -719,6 +894,11 @@ describe('KVManagerPromiseTest', function () {
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) {
console.log('testKVManagerOff001');
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");
* you may not use this file except in compliance with the License.
* 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.
先完成此消息的编辑!
想要评论请 注册