mirror of
https://gitee.com/openharmony/distributeddatamgr_relational_store
synced 2024-11-23 07:00:41 +00:00
commit
e771efef5a
@ -51,9 +51,10 @@ describe('rdbStoreDeleteTest', function () {
|
||||
|
||||
console.log(TAG + "*************Unit Test Begin*************");
|
||||
/**
|
||||
* @tc.name rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0010
|
||||
* @tc.desc rdb delete test
|
||||
* @tc.name Normal test case of delete
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Execute delete
|
||||
*/
|
||||
it('testRdbStoreDelete0001', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreDelete0001 start *************");
|
||||
@ -101,9 +102,11 @@ describe('rdbStoreDeleteTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0020
|
||||
* @tc.desc rdb delete test
|
||||
* @tc.name Normal test case of delete, "name" is "zhangsan"
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Configure predicates ("name": "zhangsan")
|
||||
* 3.Execute delete
|
||||
*/
|
||||
it('testRdbStoreDelete0002', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreDelete0002 start *************");
|
||||
@ -152,9 +155,12 @@ describe('rdbStoreDeleteTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0030
|
||||
* @tc.desc rdb delete test
|
||||
* @tc.name Normal test case of query and delete, "age" is 28
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Query data ("age", 28)
|
||||
* 3.Execute delete ("age", 28)
|
||||
* 4.Query data ("age", 28)
|
||||
*/
|
||||
it('testRdbStoreDelete0003', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreDelete0003 start *************");
|
||||
@ -208,9 +214,11 @@ describe('rdbStoreDeleteTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0040
|
||||
* @tc.desc rdb delete test
|
||||
* @tc.name Abnormal test case of delete, if column is invalid
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Configure predicates ("aaa id", 1)
|
||||
* 3.Execute delete
|
||||
*/
|
||||
it('testRdbStoreDelete0004', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreDelete0004 start *************");
|
||||
@ -258,9 +266,11 @@ describe('rdbStoreDeleteTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0050
|
||||
* @tc.desc rdb delete test
|
||||
* @tc.name Normal test case of delete, "name" is "lisi"
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Configure predicates ("name", "lisi")
|
||||
* 3.Execute delete
|
||||
*/
|
||||
it('testRdbStoreDelete0005', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreDelete0005 start *************");
|
||||
@ -309,9 +319,10 @@ describe('rdbStoreDeleteTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0060
|
||||
* @tc.desc rdb delete test
|
||||
* @tc.name Abnormal test case of delete, if TABLE "name" is ""
|
||||
* @tc.desc 1.Configure predicates ("name", "")
|
||||
* 2.Execute delete
|
||||
*/
|
||||
it('testRdbStoreDelete0006', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreDelete0006 start *************");
|
||||
@ -335,9 +346,10 @@ describe('rdbStoreDeleteTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0060
|
||||
* @tc.desc rdb delete test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0070
|
||||
* @tc.name Abnormal test case of delete, if non system application calls
|
||||
* @tc.desc 1.Configure predicates (Calling system application)
|
||||
* 2.Execute delete
|
||||
*/
|
||||
it('testRdbStoreDelete0007', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreDelete0007 start *************");
|
||||
|
95
test/js/relationalstore/unittest/src/RdbstoreInsertJsunit.test.js
Normal file → Executable file
95
test/js/relationalstore/unittest/src/RdbstoreInsertJsunit.test.js
Normal file → Executable file
@ -54,9 +54,10 @@ describe('rdbStoreInsertTest', function () {
|
||||
console.log(TAG + "*************Unit Test Begin*************");
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0001
|
||||
* @tc.desc rdb insert test
|
||||
* @tc.name Normal test case of insert
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Query data
|
||||
*/
|
||||
it('testRdbStoreInsert0001', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0001 start *************");
|
||||
@ -119,9 +120,10 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0002
|
||||
* @tc.desc rdb insert test
|
||||
* @tc.name Abnormal test case of insert, if TABLE name is wrong
|
||||
* @tc.desc 1.Create value
|
||||
* 2.Execute insert (with wrong table)
|
||||
*/
|
||||
it('testRdbStoreInsert0002', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0002 start *************");
|
||||
@ -147,9 +149,10 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0003
|
||||
* @tc.desc rdb insert test
|
||||
* @tc.name Abnormal test case of insert, if TABLE name is null
|
||||
* @tc.desc 1.Create value
|
||||
* 2.Execute insert (with null table)
|
||||
*/
|
||||
it('testRdbStoreInsert0003', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0003 start *************");
|
||||
@ -182,9 +185,11 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert Extra long character test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0004
|
||||
* @tc.desc rdb insert Extra long character test
|
||||
* @tc.name Normal test case of insert (long string and special characters)
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Configure predicates
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreInsert0004', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0004 start *************");
|
||||
@ -216,9 +221,11 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert Extra long character test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0005
|
||||
* @tc.desc rdb insert Extra long character test
|
||||
* @tc.name Normal test case of insert (Chinese and long string)
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Configure predicates
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreInsert0005', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0005 start *************");
|
||||
@ -250,9 +257,11 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert Extra long character test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0006
|
||||
* @tc.desc rdb insert Extra long character test
|
||||
* @tc.name Normal test case of insert (Chinese and long string)
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Configure predicates
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreInsert0006', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0006 start *************");
|
||||
@ -284,9 +293,11 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0007
|
||||
* @tc.desc rdb insert test
|
||||
* @tc.name Normal test case of insert boundary value
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Configure predicates
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreInsert0007', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0007 start *************");
|
||||
@ -337,9 +348,13 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0008
|
||||
* @tc.desc rdb insert test
|
||||
* @tc.name Normal test case of insert null value
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Query data
|
||||
* 3.Create value
|
||||
* 4.Execute update
|
||||
* 5.Query data
|
||||
*/
|
||||
it('testRdbStoreInsert0008', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0008 start *************");
|
||||
@ -403,9 +418,10 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb insert test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Insert_0009
|
||||
* @tc.desc rdb insert test
|
||||
* @tc.name Abnormal test case of insert, if value invalid
|
||||
* @tc.desc 1.Create value ("age": new Date())
|
||||
* 2.Execute insert
|
||||
*/
|
||||
it('testRdbStoreInsert0009', 0, async function (done) {
|
||||
console.log(TAG + "************* testRdbStoreInsert0009 start *************");
|
||||
@ -437,9 +453,10 @@ describe('rdbStoreInsertTest', function () {
|
||||
|
||||
|
||||
/**
|
||||
* @tc.name rdb inserttWithConflictResolution test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_InsertWithConflictResolution_0001
|
||||
* @tc.desc rdb insertWithConflictResolution test
|
||||
* @tc.name Abnormal test case of insert, if primary key conflict
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Insert data (conflict "id")
|
||||
*/
|
||||
it('InsertWithConflictResolution0001', 0, async function (done) {
|
||||
console.log(TAG + "************* InsertWithConflictResolution0001 start *************");
|
||||
@ -484,9 +501,14 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb inserttWithConflictResolution test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_InsertWithConflictResolution_0002
|
||||
* @tc.desc rdb insertWithConflictResolution test
|
||||
* @tc.name Abnormal test case of insert with ON_CONFLICT_ROLLBACK, if primary key conflict
|
||||
* @tc.desc 1.Insert data with ON_CONFLICT_ROLLBACK
|
||||
* 2.Create value (conflict "id")
|
||||
* 3.Begin Transaction
|
||||
* 4.Insert data
|
||||
* 5.Insert data with ON_CONFLICT_ROLLBACK (conflict "id")
|
||||
* 6.Query data
|
||||
*/
|
||||
it('InsertWithConflictResolution0002', 0, async function (done) {
|
||||
console.log(TAG + "************* InsertWithConflictResolution0002 start *************");
|
||||
@ -542,9 +564,12 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb inserttWithConflictResolution test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_InsertWithConflictResolution_0003
|
||||
* @tc.desc rdb insertWithConflictResolution test
|
||||
* @tc.name Normal test case of insert with ON_CONFLICT_IGNORE, if primary key conflict
|
||||
* @tc.desc 1.Insert data with ON_CONFLICT_IGNORE
|
||||
* 2.Insert data with ON_CONFLICT_IGNORE (conflict "id")
|
||||
* 3.Configure predicates ("name" is "zhangsan")
|
||||
* 4.Query data
|
||||
*/
|
||||
it('InsertWithConflictResolution0003', 0, async function (done) {
|
||||
console.log(TAG + "************* InsertWithConflictResolution0003 start *************");
|
||||
@ -590,9 +615,12 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb inserttWithConflictResolution test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_InsertWithConflictResolution_0004
|
||||
* @tc.desc rdb insertWithConflictResolution test
|
||||
* @tc.name Normal test case of insert with ON_CONFLICT_REPLACE, if primary key conflict
|
||||
* @tc.desc 1.Insert data with ON_CONFLICT_REPLACE
|
||||
* 2.Query data ("name" is "zhangsan")
|
||||
* 3.Insert data with ON_CONFLICT_REPLACE (conflict "id")
|
||||
* 4.Query data
|
||||
*/
|
||||
it('InsertWithConflictResolution0004', 0, async function (done) {
|
||||
console.log(TAG + "************* InsertWithConflictResolution0004 start *************");
|
||||
@ -661,9 +689,10 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb inserttWithConflictResolution test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_InsertWithConflictResolution_0005
|
||||
* @tc.desc rdb insertWithConflictResolution test
|
||||
* @tc.name Abnormal test case of insert, if param conflict is invalid
|
||||
* @tc.desc 1.Create value
|
||||
* 2.Execute insert (param conflict is 6)
|
||||
*/
|
||||
it('InsertWithConflictResolution0005', 0, async function (done) {
|
||||
console.log(TAG + "************* InsertWithConflictResolution0005 start *************");
|
||||
@ -690,10 +719,12 @@ describe('rdbStoreInsertTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name: rdb batchInsert test
|
||||
* @tc.number: SUB_DDM_AppDataFWK_JSRDB_batchInsert_0001
|
||||
* @tc.desc: rdb batchInsert test
|
||||
* @tc.require: issueI5GZGX
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_batchInsert_0001
|
||||
* @tc.name Normal test case of batchInsert
|
||||
* @tc.desc 1.Create valueBucket
|
||||
* 2.Execute push
|
||||
* 3.BatchInsert data
|
||||
* 4.Query data
|
||||
*/
|
||||
it('testRdbStorebatchInsert001', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStorebatchInsert001 start *************");
|
||||
|
@ -215,7 +215,7 @@ describe('rdbStorePromiseTest', function () {
|
||||
/**
|
||||
* @tc.number testRdbStorePromiseTest0006
|
||||
* @tc.name Abnormal test case of getRdbStore, if configure dataGroupId in FA mode
|
||||
* @tc.desc 1.configure dataGroupId in FA mode
|
||||
* @tc.desc 1.Configure dataGroupId in FA mode
|
||||
* 2.Execute getRdbStore
|
||||
*/
|
||||
it('testRdbStorePromiseTest0006', 0, async function (done) {
|
||||
|
0
test/js/relationalstore/unittest/src/RdbstoreStoreExcuteSqlJsunit.test.js
Normal file → Executable file
0
test/js/relationalstore/unittest/src/RdbstoreStoreExcuteSqlJsunit.test.js
Normal file → Executable file
0
test/js/relationalstore/unittest/src/RdbstoreTransactionJsunit.test.js
Normal file → Executable file
0
test/js/relationalstore/unittest/src/RdbstoreTransactionJsunit.test.js
Normal file → Executable file
105
test/js/relationalstore/unittest/src/RdbstoreUpdateJsunit.test.js
Normal file → Executable file
105
test/js/relationalstore/unittest/src/RdbstoreUpdateJsunit.test.js
Normal file → Executable file
@ -50,9 +50,11 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0001
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Normal test case of update
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Update data
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdate0001', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0001 start *************");
|
||||
@ -115,9 +117,15 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0002
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Abnormal test case of update, if TABLE name or Bucket is empty and column invalid
|
||||
* @tc.desc 1.Create value
|
||||
* 2.Configure predicates (TABLE name: "")
|
||||
* 3.Execute update
|
||||
* 4.Configure predicates (emptyBucket)
|
||||
* 5.Execute update
|
||||
* 6.Configure predicates (column: "aaa")
|
||||
* 7.Execute update
|
||||
*/
|
||||
it('testRdbStoreUpdate0002', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0002 start *************");
|
||||
@ -158,9 +166,13 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0003
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Abnormal test case of update, if TABLE name or Column is invalid
|
||||
* @tc.desc 1.Create value
|
||||
* 2.Configure predicates (TABLE name: "wrongTable")
|
||||
* 3.Execute update
|
||||
* 4.Configure predicates (column: "wrongColumn")
|
||||
* 5.Execute update
|
||||
*/
|
||||
it('testRdbStoreUpdate0003', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0003 start *************");
|
||||
@ -192,9 +204,13 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0004
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Abnormal test case of update, if column is invalid
|
||||
* @tc.desc 1.Create value
|
||||
* 2.Configure predicates (column: "aaa")
|
||||
* 3.Execute update
|
||||
* 4.Configure predicates (column: "null")
|
||||
* 5.Execute update
|
||||
*/
|
||||
it('testRdbStoreUpdate0004', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0004 start *************");
|
||||
@ -229,9 +245,11 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update Extra long character test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0005
|
||||
* @tc.desc resultSet Update Extra long character test
|
||||
* @tc.name Normal test case of update, value is long string and special characters
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Update data
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdate0005', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0005 start *************");
|
||||
@ -282,9 +300,11 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update Extra long character test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0006
|
||||
* @tc.desc resultSet Update Extra long character test
|
||||
* @tc.name Normal test case of update, value is Chinese and long string
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Update data
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdate0006', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0006 start *************");
|
||||
@ -334,9 +354,11 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update Extra long character test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0007
|
||||
* @tc.desc resultSet Update Extra long character test
|
||||
* @tc.name Normal test case of update, value is Chinese and long string
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Update data
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdate0007', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0007 start *************");
|
||||
@ -386,9 +408,10 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name rdb update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_Update_0008
|
||||
* @tc.desc rdb update test
|
||||
* @tc.name Abnormal test case of update, if non system application calls
|
||||
* @tc.desc 1.Create value (calling system application)
|
||||
* 2.Execute update
|
||||
*/
|
||||
it('testRdbStoreUpdate0008', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdate0008 start *************");
|
||||
@ -410,9 +433,11 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_UpdateWithConflictResolution_0001
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Normal test case of update
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Execute update
|
||||
* 3.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdateWithConflictResolution0001', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0001 start *************");
|
||||
@ -509,9 +534,12 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_UpdateWithConflictResolution_0002
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Abnormal test case of update with ON_CONFLICT_NONE, if conflict is none
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Create value
|
||||
* 3.Execute update with ON_CONFLICT_NONE
|
||||
* 4.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdateWithConflictResolution0002', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0002 start *************");
|
||||
@ -609,9 +637,12 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_UpdateWithConflictResolution_0003
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Normal test case of update with ON_CONFLICT_ROLLBACK
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Create value
|
||||
* 3.Execute update with ON_CONFLICT_ROLLBACK
|
||||
* 4.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdateWithConflictResolution0003', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0003 start *************");
|
||||
@ -707,9 +738,14 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_UpdateWithConflictResolution_0004
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Abnormal test case of update with ON_CONFLICT_ROLLBACK
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Create value
|
||||
* 3.Begin Transaction
|
||||
* 4.Insert data
|
||||
* 5.Update data with ON_CONFLICT_ROLLBACK
|
||||
* 6.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdateWithConflictResolution0004', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0004 start *************");
|
||||
@ -823,9 +859,12 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_UpdateWithConflictResolution_0005
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Normal test case of insert with ON_CONFLICT_REPLACE
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Create value
|
||||
* 3.Execute update with ON_CONFLICT_REPLACE
|
||||
* 4.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdateWithConflictResolution0005', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0005 start *************");
|
||||
@ -920,6 +959,14 @@ describe('rdbStoreUpdateTest', function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0005 end *************");
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_UpdateWithConflictResolution_0006
|
||||
* @tc.name Normal test case of update partial data with ON_CONFLICT_REPLACE
|
||||
* @tc.desc 1.Insert data
|
||||
* 2.Create partial value
|
||||
* 3.Execute update with ON_CONFLICT_REPLACE
|
||||
* 4.Query data
|
||||
*/
|
||||
it('testRdbStoreUpdateWithConflictResolution0006', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0006 start *************");
|
||||
try {
|
||||
@ -995,9 +1042,11 @@ describe('rdbStoreUpdateTest', function () {
|
||||
})
|
||||
|
||||
/**
|
||||
* @tc.name resultSet Update test
|
||||
* @tc.number SUB_DDM_AppDataFWK_JSRDB_UpdateWithConflictResolution_0007
|
||||
* @tc.desc resultSet Update test
|
||||
* @tc.name Abnormal test case of update, if value of "age" is invalid
|
||||
* @tc.desc 1.Create value
|
||||
* 2.Configure predicates
|
||||
* 3.Execute update
|
||||
*/
|
||||
it('testRdbStoreUpdateWithConflictResolution0007', 0, async function () {
|
||||
console.log(TAG + "************* testRdbStoreUpdateWithConflictResolution0007 start *************");
|
||||
|
Loading…
Reference in New Issue
Block a user