diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataAbilityPredicatesJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataAbilityPredicatesJsunit.test.js index 37216674c1b4dd7cfe1cb73f84ea410692573dc6..0ab5f1f4a97acccec81e862a14d9af46d93cd414 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataAbilityPredicatesJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataAbilityPredicatesJsunit.test.js @@ -68,7 +68,7 @@ describe('dataAbilityPredicatesTest', function () { } async function buildAllDataType1() { - console.log(TAG + "buildAllDataType1 start"); + console.info(TAG + "buildAllDataType1 start"); { var u8 = new Uint8Array([1, 2, 3]) const valueBucket = { @@ -88,7 +88,7 @@ describe('dataAbilityPredicatesTest', function () { } async function buildAllDataType2() { - console.log(TAG + "buildAllDataType2 start"); + console.info(TAG + "buildAllDataType2 start"); { var u8 = new Uint8Array([1, 2, 3]) const valueBucket = { @@ -108,7 +108,7 @@ describe('dataAbilityPredicatesTest', function () { } async function buildAllDataType3() { - console.log(TAG + "buildAllDataType3 start"); + console.info(TAG + "buildAllDataType3 start"); { var u8 = new Uint8Array([1, 2, 3]) const valueBucket = { @@ -127,7 +127,7 @@ describe('dataAbilityPredicatesTest', function () { } } - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name predicates equalTo normal test @@ -135,7 +135,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testEqualTo0001 start *************"); + console.info(TAG + "************* testEqualTo0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("booleanValue", true); @@ -146,7 +146,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0001 end *************"); + console.info(TAG + "************* testEqualTo0001 end *************"); }) /** @@ -155,7 +155,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testEqualTo0002 start *************"); + console.info(TAG + "************* testEqualTo0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("byteValue", -128).or().equalTo("byteValue", 1); @@ -166,7 +166,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0002 end *************"); + console.info(TAG + "************* testEqualTo0002 end *************"); }) /** @@ -175,7 +175,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testEqualTo0003 start *************"); + console.info(TAG + "************* testEqualTo0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN"); @@ -186,7 +186,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0003 end *************"); + console.info(TAG + "************* testEqualTo0003 end *************"); }) /** @@ -195,7 +195,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testEqualTo0004 start *************"); + console.info(TAG + "************* testEqualTo0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("doubleValue", DOUBLE_MAX); @@ -206,7 +206,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0004 end *************"); + console.info(TAG + "************* testEqualTo0004 end *************"); }) /** @@ -215,7 +215,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0005', 0, async function (done) { - console.log(TAG + "************* testEqualTo0005 start *************"); + console.info(TAG + "************* testEqualTo0005 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("shortValue", -32768.0); @@ -226,7 +226,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0005 end *************"); + console.info(TAG + "************* testEqualTo0005 end *************"); }) /** @@ -235,7 +235,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0006', 0, async function (done) { - console.log(TAG + "************* testEqualTo0006 start *************"); + console.info(TAG + "************* testEqualTo0006 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("integerValue", 1); @@ -246,7 +246,7 @@ describe('dataAbilityPredicatesTest', function () { expect(2).assertEqual(result.getLong(0)); } done(); - console.log(TAG + "************* testEqualTo0006 end *************"); + console.info(TAG + "************* testEqualTo0006 end *************"); }) /** @@ -255,7 +255,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0007', 0, async function (done) { - console.log(TAG + "************* testEqualTo0007 start *************"); + console.info(TAG + "************* testEqualTo0007 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("longValue", 1); @@ -266,7 +266,7 @@ describe('dataAbilityPredicatesTest', function () { expect(2).assertEqual(result.getLong(0)) } done(); - console.log(TAG + "************* testEqualTo0007 end *************"); + console.info(TAG + "************* testEqualTo0007 end *************"); }) /** @@ -275,7 +275,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0008', 0, async function (done) { - console.log(TAG + "************* testEqualTo0008 start *************"); + console.info(TAG + "************* testEqualTo0008 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("floatValue", -0.123); @@ -287,7 +287,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0008 end *************"); + console.info(TAG + "************* testEqualTo0008 end *************"); }) /** @@ -296,7 +296,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0001 start *************"); + console.info(TAG + "************* testNotEqualTo0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("booleanValue", true); @@ -307,7 +307,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0001 end *************"); + console.info(TAG + "************* testNotEqualTo0001 end *************"); }) /** @@ -316,7 +316,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0002 start *************"); + console.info(TAG + "************* testNotEqualTo0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("byteValue", -128); @@ -328,7 +328,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0002 end *************"); + console.info(TAG + "************* testNotEqualTo0002 end *************"); }) /** @@ -337,7 +337,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0003 start *************"); + console.info(TAG + "************* testNotEqualTo0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("stringValue", "ABCDEFGHIJKLMN"); @@ -348,7 +348,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0003 end *************"); + console.info(TAG + "************* testNotEqualTo0003 end *************"); }) /** @@ -357,7 +357,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0004 start *************"); + console.info(TAG + "************* testNotEqualTo0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("doubleValue", DOUBLE_MAX); @@ -368,7 +368,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0004 end *************"); + console.info(TAG + "************* testNotEqualTo0004 end *************"); }) /** @@ -377,7 +377,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0005', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0005 start *************"); + console.info(TAG + "************* testNotEqualTo0005 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("shortValue", -32768); @@ -388,7 +388,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0005 end *************"); + console.info(TAG + "************* testNotEqualTo0005 end *************"); }) /** @@ -397,7 +397,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0006', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0006 start *************"); + console.info(TAG + "************* testNotEqualTo0006 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("integerValue", 1); @@ -408,7 +408,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0006 end *************"); + console.info(TAG + "************* testNotEqualTo0006 end *************"); }) /** @@ -417,7 +417,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0007', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0007 start *************"); + console.info(TAG + "************* testNotEqualTo0007 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("longValue", 1); @@ -428,7 +428,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0007 end *************"); + console.info(TAG + "************* testNotEqualTo0007 end *************"); }) /** @@ -437,7 +437,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0008', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0008 start *************"); + console.info(TAG + "************* testNotEqualTo0008 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notEqualTo("floatValue", -0.123); @@ -448,7 +448,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0008 end *************"); + console.info(TAG + "************* testNotEqualTo0008 end *************"); }) /** @@ -457,7 +457,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc resultSet isNull normal test */ it('testIsNull0001', 0, async function (done) { - console.log(TAG + "************* testIsNull001 start *************"); + console.info(TAG + "************* testIsNull001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNull("primLongValue"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -466,7 +466,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0001 end *************"); + console.info(TAG + "************* testIsNull0001 end *************"); }) /** @@ -475,7 +475,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates isNull normal test */ it('testIsNull0002', 0, async function (done) { - console.log(TAG + "************* testIsNull0002 start *************"); + console.info(TAG + "************* testIsNull0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNull("longValue"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -484,7 +484,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0002 end *************"); + console.info(TAG + "************* testIsNull0002 end *************"); }) /** @@ -493,7 +493,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates isNull normal test */ it('testIsNull0003', 0, async function (done) { - console.log(TAG + "************* testIsNull0003 start *************"); + console.info(TAG + "************* testIsNull0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNull("stringValue"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -502,7 +502,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0003 end *************"); + console.info(TAG + "************* testIsNull0003 end *************"); }) /** @@ -511,7 +511,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates isNull normal test */ it('testIsNull0004', 0, async function (done) { - console.log(TAG + "************* testIsNull0004 start *************"); + console.info(TAG + "************* testIsNull0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNull("stringValueX"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -520,7 +520,7 @@ describe('dataAbilityPredicatesTest', function () { expect(-1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0004 end *************"); + console.info(TAG + "************* testIsNull0004 end *************"); }) /** @@ -529,7 +529,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0001', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0001 start *************"); + console.info(TAG + "************* testIsNotNull0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNotNull("primLongValue"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -538,7 +538,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0001 end *************"); + console.info(TAG + "************* testIsNotNull0001 end *************"); }) /** @@ -547,7 +547,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0002', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0002 start *************"); + console.info(TAG + "************* testIsNotNull0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNotNull("longValue"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -556,7 +556,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0002 end *************"); + console.info(TAG + "************* testIsNotNull0002 end *************"); }) /** @@ -565,7 +565,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0003', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0003 start *************"); + console.info(TAG + "************* testIsNotNull0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNotNull("stringValue"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -574,7 +574,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0003 end *************"); + console.info(TAG + "************* testIsNotNull0003 end *************"); }) /** @@ -583,7 +583,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0004', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0004 start *************"); + console.info(TAG + "************* testIsNotNull0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.isNotNull("stringValueX"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -592,7 +592,7 @@ describe('dataAbilityPredicatesTest', function () { expect(-1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0004 end *************"); + console.info(TAG + "************* testIsNotNull0004 end *************"); }) /** @@ -601,7 +601,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0001', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0001 start *************"); + console.info(TAG + "************* testGreaterThan0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("stringValue", "ABC"); @@ -612,7 +612,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0001 end *************"); + console.info(TAG + "************* testGreaterThan0001 end *************"); }) /** @@ -621,7 +621,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0002', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0002 start *************"); + console.info(TAG + "************* testGreaterThan0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("doubleValue", 0.0); @@ -632,7 +632,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0002 end *************"); + console.info(TAG + "************* testGreaterThan0002 end *************"); }) /** @@ -641,7 +641,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0003', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0003 start *************"); + console.info(TAG + "************* testGreaterThan0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("integerValue", 1); @@ -652,7 +652,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0003 end *************"); + console.info(TAG + "************* testGreaterThan0003 end *************"); }) /** @@ -661,7 +661,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0004', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0004 start *************"); + console.info(TAG + "************* testGreaterThan0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("longValue", 1); @@ -672,7 +672,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0004 end *************"); + console.info(TAG + "************* testGreaterThan0004 end *************"); }) @@ -682,7 +682,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0005', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0005 start *************"); + console.info(TAG + "************* testGreaterThan0005 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("stringValue", "ZZZ"); @@ -693,7 +693,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0005 end *************"); + console.info(TAG + "************* testGreaterThan0005 end *************"); }) /** @@ -702,7 +702,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0006', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0006 start *************"); + console.info(TAG + "************* testGreaterThan0006 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("doubleValue", 999.0); @@ -713,7 +713,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0006 end *************"); + console.info(TAG + "************* testGreaterThan0006 end *************"); }) /** @@ -722,7 +722,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0007', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0007 start *************"); + console.info(TAG + "************* testGreaterThan0007 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("integerValue", -999); @@ -733,7 +733,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0007 end *************"); + console.info(TAG + "************* testGreaterThan0007 end *************"); }) /** @@ -742,7 +742,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0008', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0008 start *************"); + console.info(TAG + "************* testGreaterThan0008 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThan("longValue", -999); @@ -753,7 +753,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0008 end *************"); + console.info(TAG + "************* testGreaterThan0008 end *************"); }) /** @@ -762,7 +762,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0001 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThanOrEqualTo("stringValue", "ABC"); @@ -773,7 +773,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0001 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0001 end *************"); }) /** @@ -782,7 +782,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0002 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThanOrEqualTo("doubleValue", 0.0); @@ -793,7 +793,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0002 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0002 end *************"); }) /** @@ -802,7 +802,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0003 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThanOrEqualTo("integerValue", 1); @@ -813,7 +813,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0003 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0003 end *************"); }) /** @@ -822,7 +822,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0004 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.greaterThanOrEqualTo("longValue", 1); @@ -833,7 +833,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0004 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0004 end *************"); }) /** @@ -842,7 +842,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0001', 0, async function (done) { - console.log(TAG + "************* testLessThan0001 start *************"); + console.info(TAG + "************* testLessThan0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("stringValue", "ABD"); @@ -853,7 +853,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0001 end *************"); + console.info(TAG + "************* testLessThan0001 end *************"); }) /** @@ -862,7 +862,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0002', 0, async function (done) { - console.log(TAG + "************* testLessThan0002 start *************"); + console.info(TAG + "************* testLessThan0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("doubleValue", 0.0); @@ -873,7 +873,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0002 end *************"); + console.info(TAG + "************* testLessThan0002 end *************"); }) /** @@ -882,7 +882,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0003', 0, async function (done) { - console.log(TAG + "************* testLessThan0003 start *************"); + console.info(TAG + "************* testLessThan0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("integerValue", 1); @@ -893,7 +893,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0003 end *************"); + console.info(TAG + "************* testLessThan0003 end *************"); }) /** @@ -902,7 +902,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0004', 0, async function (done) { - console.log(TAG + "************* testLessThan0004 start *************"); + console.info(TAG + "************* testLessThan0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("longValue", 1); @@ -913,7 +913,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0004 end *************"); + console.info(TAG + "************* testLessThan0004 end *************"); }) @@ -923,7 +923,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0005', 0, async function (done) { - console.log(TAG + "************* testLessThan0005 start *************"); + console.info(TAG + "************* testLessThan0005 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("stringValue", "ABD"); @@ -934,7 +934,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0005 end *************"); + console.info(TAG + "************* testLessThan0005 end *************"); }) /** @@ -943,7 +943,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0006', 0, async function (done) { - console.log(TAG + "************* testLessThan0006 start *************"); + console.info(TAG + "************* testLessThan0006 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("doubleValue", 1.0); @@ -954,7 +954,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0006 end *************"); + console.info(TAG + "************* testLessThan0006 end *************"); }) /** @@ -963,7 +963,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0007', 0, async function (done) { - console.log(TAG + "************* testLessThan0007 start *************"); + console.info(TAG + "************* testLessThan0007 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("integerValue", -2147483648); @@ -974,7 +974,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0007 end *************"); + console.info(TAG + "************* testLessThan0007 end *************"); }) /** @@ -983,7 +983,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0008', 0, async function (done) { - console.log(TAG + "************* testLessThan0008 start *************"); + console.info(TAG + "************* testLessThan0008 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThan("longValue", -9223372036854775808); @@ -994,7 +994,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0008 end *************"); + console.info(TAG + "************* testLessThan0008 end *************"); }) @@ -1004,7 +1004,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0001 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThanOrEqualTo("stringValue", "ABD"); @@ -1015,7 +1015,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0001 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0001 end *************"); }) /** @@ -1024,7 +1024,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0002 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThanOrEqualTo("doubleValue", 0.0); @@ -1035,7 +1035,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0002 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0002 end *************"); }) /** @@ -1044,7 +1044,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0003 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThanOrEqualTo("integerValue", 1); @@ -1055,7 +1055,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0003 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0003 end *************"); }) /** @@ -1064,7 +1064,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0004 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.lessThanOrEqualTo("longValue", 1); @@ -1075,7 +1075,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0004 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0004 end *************"); }) /** @@ -1084,7 +1084,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0001', 0, async function (done) { - console.log(TAG + "************* testBetween0001 start *************"); + console.info(TAG + "************* testBetween0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("stringValue", "ABB", "ABD"); @@ -1095,7 +1095,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0001 end *************"); + console.info(TAG + "************* testBetween0001 end *************"); }) /** @@ -1104,7 +1104,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0002', 0, async function (done) { - console.log(TAG + "************* testBetween0002 start *************"); + console.info(TAG + "************* testBetween0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("doubleValue", 0.0, DOUBLE_MAX); @@ -1115,7 +1115,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0002 end *************"); + console.info(TAG + "************* testBetween0002 end *************"); }) /** @@ -1124,7 +1124,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0003', 0, async function (done) { - console.log(TAG + "************* testBetween0003 start *************"); + console.info(TAG + "************* testBetween0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("integerValue", 0, 1); @@ -1135,7 +1135,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0003 end *************"); + console.info(TAG + "************* testBetween0003 end *************"); }) /** @@ -1144,7 +1144,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0004', 0, async function (done) { - console.log(TAG + "************* testBetween0004 start *************"); + console.info(TAG + "************* testBetween0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("longValue", 0, 2); @@ -1155,7 +1155,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0004 end *************"); + console.info(TAG + "************* testBetween0004 end *************"); }) /** @@ -1164,7 +1164,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0005', 0, async function (done) { - console.log(TAG + "************* testBetween0005 start *************"); + console.info(TAG + "************* testBetween0005 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("stringValue", "ABB", "ABB"); @@ -1175,7 +1175,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0005 end *************"); + console.info(TAG + "************* testBetween0005 end *************"); }) /** @@ -1184,7 +1184,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0006', 0, async function (done) { - console.log(TAG + "************* testBetween0006 start *************"); + console.info(TAG + "************* testBetween0006 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("doubleValue", DOUBLE_MAX, DOUBLE_MAX); @@ -1195,7 +1195,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0006 end *************"); + console.info(TAG + "************* testBetween0006 end *************"); }) /** @@ -1204,7 +1204,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0007', 0, async function (done) { - console.log(TAG + "************* testBetween0007 start *************"); + console.info(TAG + "************* testBetween0007 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("integerValue", 1, 0); @@ -1215,7 +1215,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0007 end *************"); + console.info(TAG + "************* testBetween0007 end *************"); }) /** @@ -1224,7 +1224,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0008', 0, async function (done) { - console.log(TAG + "************* testBetween0008 start *************"); + console.info(TAG + "************* testBetween0008 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.between("longValue", 2, -1); @@ -1235,7 +1235,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0008 end *************"); + console.info(TAG + "************* testBetween0008 end *************"); }) /** @@ -1244,7 +1244,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc test string value with notBetween. */ it('testNotBetween0001', 0, async function (done) { - console.log(TAG + "************* testNotBetween0001 start *************"); + console.info(TAG + "************* testNotBetween0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notBetween("stringValue", "ABB", "ABD"); @@ -1256,7 +1256,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0001 end *************"); + console.info(TAG + "************* testNotBetween0001 end *************"); }) /** @@ -1265,7 +1265,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc test double value with notBetween. */ it('testNotBetween0002', 0, async function (done) { - console.log(TAG + "************* testNotBetween0002 start *************"); + console.info(TAG + "************* testNotBetween0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notBetween("doubleValue", 0.0, DOUBLE_MAX); @@ -1277,7 +1277,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0002 end *************"); + console.info(TAG + "************* testNotBetween0002 end *************"); }) /** @@ -1286,7 +1286,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc test integer value with notBetween. */ it('testNotBetween0003', 0, async function (done) { - console.log(TAG + "************* testNotBetween0003 start *************"); + console.info(TAG + "************* testNotBetween0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notBetween("integerValue", 0, 1); @@ -1298,7 +1298,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0003 end *************"); + console.info(TAG + "************* testNotBetween0003 end *************"); }) /** @@ -1307,7 +1307,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc test long value with notBetween. */ it('testNotBetween0004', 0, async function (done) { - console.log(TAG + "************* testNotBetween0004 start *************"); + console.info(TAG + "************* testNotBetween0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notBetween("longValue", 0, 2); @@ -1319,7 +1319,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0004 end *************"); + console.info(TAG + "************* testNotBetween0004 end *************"); }) /** @@ -1328,7 +1328,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc end with ? by glob. */ it('testGlob0001', 0, async function (done) { - console.log(TAG + "************* testGlob0001 start *************"); + console.info(TAG + "************* testGlob0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.glob("stringValue", "ABC*"); @@ -1340,7 +1340,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0001 end *************"); + console.info(TAG + "************* testGlob0001 end *************"); }) /** @@ -1349,7 +1349,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc begin with * by glob. */ it('testGlob0002', 0, async function (done) { - console.log(TAG + "************* testGlob0002 start *************"); + console.info(TAG + "************* testGlob0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.glob("stringValue", "*LMN"); @@ -1361,7 +1361,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0002 end *************"); + console.info(TAG + "************* testGlob0002 end *************"); }) /** @@ -1370,7 +1370,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc end with ? by glob. */ it('testGlob0003', 0, async function (done) { - console.log(TAG + "************* testGlob0003 start *************"); + console.info(TAG + "************* testGlob0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.glob("stringValue", "ABCDEFGHIJKLM?"); @@ -1382,7 +1382,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0003 end *************"); + console.info(TAG + "************* testGlob0003 end *************"); }) /** @@ -1391,7 +1391,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc begin with ? by glob. */ it('testGlob0004', 0, async function (done) { - console.log(TAG + "************* testGlob0004 start *************"); + console.info(TAG + "************* testGlob0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.glob("stringValue", "?BCDEFGHIJKLMN"); @@ -1403,7 +1403,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0004 end *************"); + console.info(TAG + "************* testGlob0004 end *************"); }) /** @@ -1412,7 +1412,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc begin and end with * by glob. */ it('testGlob0005', 0, async function (done) { - console.log(TAG + "************* testGlob0005 start *************"); + console.info(TAG + "************* testGlob0005 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.glob("stringValue", "*FGHI*"); @@ -1424,7 +1424,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0005 end *************"); + console.info(TAG + "************* testGlob0005 end *************"); }) /** @@ -1433,7 +1433,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc begin and end with ? by glob. */ it('testGlob0006', 0, async function (done) { - console.log(TAG + "************* testGlob0006 start *************"); + console.info(TAG + "************* testGlob0006 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.glob("stringValue", "?BCDEFGHIJKLM?"); @@ -1445,7 +1445,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0006 end *************"); + console.info(TAG + "************* testGlob0006 end *************"); }) /** @@ -1454,7 +1454,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0001', 0, async function (done) { - console.log(TAG + "************* testContains0001 start *************"); + console.info(TAG + "************* testContains0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.contains("stringValue", "DEF"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1463,7 +1463,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0001 end *************"); + console.info(TAG + "************* testContains0001 end *************"); }) /** @@ -1472,7 +1472,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0002', 0, async function (done) { - console.log(TAG + "************* testContains0002 start *************"); + console.info(TAG + "************* testContains0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.contains("stringValue", "DEFX"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1481,7 +1481,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0002 end *************"); + console.info(TAG + "************* testContains0002 end *************"); }) /** @@ -1490,7 +1490,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0003', 0, async function (done) { - console.log(TAG + "************* testContains0003 start *************"); + console.info(TAG + "************* testContains0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.contains("characterValue", "中"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1499,7 +1499,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0003 end *************"); + console.info(TAG + "************* testContains0003 end *************"); }) /** @@ -1508,7 +1508,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0004', 0, async function (done) { - console.log(TAG + "************* testContains0004 start *************"); + console.info(TAG + "************* testContains0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.contains("characterValue", "#"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1517,7 +1517,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0004 end *************"); + console.info(TAG + "************* testContains0004 end *************"); }) /** @@ -1526,7 +1526,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0001', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0001 start *************"); + console.info(TAG + "************* testBeginsWith0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.beginsWith("stringValue", "ABC"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1535,7 +1535,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0001 end *************"); + console.info(TAG + "************* testBeginsWith0001 end *************"); }) /** @@ -1544,7 +1544,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0002', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0002 start *************"); + console.info(TAG + "************* testBeginsWith0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.beginsWith("stringValue", "ABCX"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1553,7 +1553,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0002 end *************"); + console.info(TAG + "************* testBeginsWith0002 end *************"); }) /** @@ -1562,7 +1562,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0003', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0003 start *************"); + console.info(TAG + "************* testBeginsWith0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.beginsWith("characterValue", "中"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1571,7 +1571,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0003 end *************"); + console.info(TAG + "************* testBeginsWith0003 end *************"); }) /** @@ -1580,7 +1580,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0004', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0004 start *************"); + console.info(TAG + "************* testBeginsWith0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.beginsWith("characterValue", "#"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1589,7 +1589,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0004 end *************"); + console.info(TAG + "************* testBeginsWith0004 end *************"); }) /** @@ -1598,7 +1598,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0001', 0, async function (done) { - console.log(TAG + "************* testEndsWith0001 start *************"); + console.info(TAG + "************* testEndsWith0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.endsWith("stringValue", "LMN"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1607,7 +1607,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0001 end *************"); + console.info(TAG + "************* testEndsWith0001 end *************"); }) /** @@ -1616,7 +1616,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0002', 0, async function (done) { - console.log(TAG + "************* testEndsWith0002 start *************"); + console.info(TAG + "************* testEndsWith0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.endsWith("stringValue", "LMNX"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1625,7 +1625,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0002 end *************"); + console.info(TAG + "************* testEndsWith0002 end *************"); }) /** @@ -1634,7 +1634,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0003', 0, async function (done) { - console.log(TAG + "************* testEndsWith0003 start *************"); + console.info(TAG + "************* testEndsWith0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.endsWith("characterValue", "中"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1643,7 +1643,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0003 end *************"); + console.info(TAG + "************* testEndsWith0003 end *************"); }) /** @@ -1652,7 +1652,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0004', 0, async function (done) { - console.log(TAG + "************* testEndsWith0004 start *************"); + console.info(TAG + "************* testEndsWith0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.endsWith("characterValue", "#"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1661,7 +1661,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0004 end *************"); + console.info(TAG + "************* testEndsWith0004 end *************"); }) /** @@ -1670,7 +1670,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0001', 0, async function (done) { - console.log(TAG + "************* testLike0001 start *************"); + console.info(TAG + "************* testLike0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "%LMN%"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1679,7 +1679,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0001 end *************"); + console.info(TAG + "************* testLike0001 end *************"); }) /** @@ -1688,7 +1688,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0002', 0, async function (done) { - console.log(TAG + "************* testLike0002 start *************"); + console.info(TAG + "************* testLike0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "%LMNX%"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1697,7 +1697,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0002 end *************"); + console.info(TAG + "************* testLike0002 end *************"); }) /** @@ -1706,7 +1706,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0003', 0, async function (done) { - console.log(TAG + "************* testLike0003 start *************"); + console.info(TAG + "************* testLike0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("characterValue", "%中%"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1715,7 +1715,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0003 end *************"); + console.info(TAG + "************* testLike0003 end *************"); }) /** @@ -1724,7 +1724,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0004', 0, async function (done) { - console.log(TAG + "************* testLike0004 start *************"); + console.info(TAG + "************* testLike0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("characterValue", "%#%"); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -1733,7 +1733,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0004 end *************"); + console.info(TAG + "************* testLike0004 end *************"); }) /** @@ -1742,7 +1742,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0001', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0001 start *************"); + console.info(TAG + "************* testBeginWrap0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1758,7 +1758,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0001 end *************"); + console.info(TAG + "************* testBeginWrap0001 end *************"); }) /** @@ -1767,7 +1767,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0002', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0002 start *************"); + console.info(TAG + "************* testBeginWrap0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1781,7 +1781,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0002 end *************"); + console.info(TAG + "************* testBeginWrap0002 end *************"); }) /** @@ -1790,7 +1790,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0003', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0003 start *************"); + console.info(TAG + "************* testBeginWrap0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1804,7 +1804,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0003 end *************"); + console.info(TAG + "************* testBeginWrap0003 end *************"); }) /** @@ -1813,7 +1813,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0004', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0004 start *************"); + console.info(TAG + "************* testBeginWrap0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1826,7 +1826,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0004 end *************"); + console.info(TAG + "************* testBeginWrap0004 end *************"); }) /** @@ -1835,7 +1835,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0005', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0005 start *************"); + console.info(TAG + "************* testBeginWrap0005 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1848,7 +1848,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0005 end *************"); + console.info(TAG + "************* testBeginWrap0005 end *************"); }) /** @@ -1857,7 +1857,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates and normal test */ it('testAnd0001', 0, async function (done) { - console.log(TAG + "************* testAnd0001 start *************"); + console.info(TAG + "************* testAnd0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1870,7 +1870,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testAnd0001 end *************"); + console.info(TAG + "************* testAnd0001 end *************"); }) /** @@ -1879,7 +1879,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates or normal test */ it('testAnd0002', 0, async function (done) { - console.log(TAG + "************* testAnd0002 start *************"); + console.info(TAG + "************* testAnd0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1895,7 +1895,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testAnd0002 end *************"); + console.info(TAG + "************* testAnd0002 end *************"); }) /** @@ -1904,16 +1904,16 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates and normal test */ it('testAnd0003', 0, async function (done) { - console.log(TAG + "************* testAnd0003 start *************"); + console.info(TAG + "************* testAnd0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN").or().and().equalTo("integerValue", 1); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); - console.log(TAG + "you should not start a request" + " with \"and\" or use or() before this function"); + console.info(TAG + "you should not start a request" + " with \"and\" or use or() before this function"); } done(); - console.log(TAG + "************* testAnd0003 end *************"); + console.info(TAG + "************* testAnd0003 end *************"); }) /** @@ -1922,17 +1922,17 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates and normal test */ it('testAnd0004', 0, async function (done) { - console.log(TAG + "************* testAnd0004 start *************"); + console.info(TAG + "************* testAnd0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN").or().or().equalTo("integerValue", 1); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); - console.log(TAG + "you are starting a sql request with predicate or or," + console.info(TAG + "you are starting a sql request with predicate or or," + "using function or() immediately after another or(). that is ridiculous."); } done(); - console.log(TAG + "************* testAnd0004 end *************"); + console.info(TAG + "************* testAnd0004 end *************"); }) /** @@ -1941,7 +1941,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0001', 0, async function (done) { - console.log(TAG + "************* testOrder0001 start *************"); + console.info(TAG + "************* testOrder0001 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByAsc("integerValue").distinct(); @@ -1958,7 +1958,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0001 end *************"); + console.info(TAG + "************* testOrder0001 end *************"); }) /** @@ -1967,7 +1967,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0002', 0, async function (done) { - console.log(TAG + "************* testOrder0002 start *************"); + console.info(TAG + "************* testOrder0002 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByDesc("integerValue").distinct(); @@ -1984,7 +1984,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0002 end *************"); + console.info(TAG + "************* testOrder0002 end *************"); }) /** @@ -1993,7 +1993,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0003', 0, async function (done) { - console.log(TAG + "************* testOrder0003 start *************"); + console.info(TAG + "************* testOrder0003 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByDesc("integerValueX").distinct(); @@ -2004,7 +2004,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0003 end *************"); + console.info(TAG + "************* testOrder0003 end *************"); }) /** @@ -2013,7 +2013,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0004', 0, async function (done) { - console.log(TAG + "************* testOrder0004 start *************"); + console.info(TAG + "************* testOrder0004 start *************"); { let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByAsc("integerValueX").distinct(); @@ -2024,7 +2024,7 @@ describe('dataAbilityPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0004 end *************"); + console.info(TAG + "************* testOrder0004 end *************"); }) /** @@ -2033,7 +2033,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0001', 0, async function (done) { - console.log(TAG + "************* testLimit0001 start *************"); + console.info(TAG + "************* testLimit0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(1); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2042,7 +2042,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0001 end *************"); + console.info(TAG + "************* testLimit0001 end *************"); }) /** @@ -2051,7 +2051,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0002', 0, async function (done) { - console.log(TAG + "************* testLimit0002 start *************"); + console.info(TAG + "************* testLimit0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2060,7 +2060,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0002 end *************"); + console.info(TAG + "************* testLimit0002 end *************"); }) /** @@ -2069,7 +2069,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0003', 0, async function (done) { - console.log(TAG + "************* testLimit0003 start *************"); + console.info(TAG + "************* testLimit0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(100); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2078,7 +2078,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0003 end *************"); + console.info(TAG + "************* testLimit0003 end *************"); }) /** @@ -2087,7 +2087,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0004', 0, async function (done) { - console.log(TAG + "************* testLimit0004 start *************"); + console.info(TAG + "************* testLimit0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "中").limitAs(1); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2096,7 +2096,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0004 end *************"); + console.info(TAG + "************* testLimit0004 end *************"); }) /** @@ -2105,7 +2105,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0005', 0, async function (done) { - console.log(TAG + "************* testLimit0005 start *************"); + console.info(TAG + "************* testLimit0005 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(0); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2114,7 +2114,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0005 end *************"); + console.info(TAG + "************* testLimit0005 end *************"); }) /** @@ -2123,7 +2123,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0006', 0, async function (done) { - console.log(TAG + "************* testLimit0006 start *************"); + console.info(TAG + "************* testLimit0006 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(-1); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2132,7 +2132,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0006 end *************"); + console.info(TAG + "************* testLimit0006 end *************"); }) /** @@ -2141,7 +2141,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0001', 0, async function (done) { - console.log(TAG + "************* testOffset0001 start *************"); + console.info(TAG + "************* testOffset0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(1); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2150,7 +2150,7 @@ describe('dataAbilityPredicatesTest', function () { expect(2).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0001 end *************"); + console.info(TAG + "************* testOffset0001 end *************"); }) /** @@ -2159,7 +2159,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0002', 0, async function (done) { - console.log(TAG + "************* testOffset0002 start *************"); + console.info(TAG + "************* testOffset0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(0); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2168,7 +2168,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0002 end *************"); + console.info(TAG + "************* testOffset0002 end *************"); }) /** @@ -2177,7 +2177,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0003', 0, async function (done) { - console.log(TAG + "************* testOffset0003 start *************"); + console.info(TAG + "************* testOffset0003 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(5); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2186,7 +2186,7 @@ describe('dataAbilityPredicatesTest', function () { expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0003 end *************"); + console.info(TAG + "************* testOffset0003 end *************"); }) /** @@ -2195,7 +2195,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0004', 0, async function (done) { - console.log(TAG + "************* testOffset0004 start *************"); + console.info(TAG + "************* testOffset0004 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(-1); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2204,7 +2204,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0004 end *************"); + console.info(TAG + "************* testOffset0004 end *************"); }) /** @@ -2213,13 +2213,13 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates constructor test */ it('testCreate0001', 0, async function (done) { - console.log(TAG + "************* testCreate0001 start *************"); + console.info(TAG + "************* testCreate0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testCreate0001 end *************"); + console.info(TAG + "************* testCreate0001 end *************"); }) /** @@ -2228,13 +2228,13 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates constructor test */ it('testCreate0002', 0, async function (done) { - console.log(TAG + "************* testCreate0002 start *************"); + console.info(TAG + "************* testCreate0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); let predicates = dataAbility.createRdbPredicates("test", dataAbilityPredicates); let result = await rdbStore.query(predicates); expect(-1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testCreate0002 end *************"); + console.info(TAG + "************* testCreate0002 end *************"); }) @@ -2244,7 +2244,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates groupBy test */ it('testGroupBy0001', 0, async function (done) { - console.log(TAG + "************* testGroupBy0001 start *************"); + console.info(TAG + "************* testGroupBy0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").groupBy(["characterValue"]); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2253,7 +2253,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testGroupBy0001 end *************"); + console.info(TAG + "************* testGroupBy0001 end *************"); }) /** @@ -2262,7 +2262,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates groupBy test */ it('testGroupBy0002', 0, async function (done) { - console.log(TAG + "************* testGroupBy0002 start *************"); + console.info(TAG + "************* testGroupBy0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").groupBy(["characterValueX"]); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2271,7 +2271,7 @@ describe('dataAbilityPredicatesTest', function () { expect(-1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testGroupBy0002 end *************"); + console.info(TAG + "************* testGroupBy0002 end *************"); }) /** @@ -2280,7 +2280,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates indexedBy test */ it('testIndexedBy0001', 0, async function (done) { - console.log(TAG + "************* testIndexedBy0001 start *************"); + console.info(TAG + "************* testIndexedBy0001 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").indexedBy(["characterValue"]); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2289,7 +2289,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIndexedBy0001 end *************"); + console.info(TAG + "************* testIndexedBy0001 end *************"); }) /** @@ -2298,7 +2298,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates indexedBy test */ it('testIndexedBy0002', 0, async function (done) { - console.log(TAG + "************* testIndexedBy0002 start *************"); + console.info(TAG + "************* testIndexedBy0002 start *************"); let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.like("stringValue", "ABCDEFGHIJKLMN").indexedBy(["characterValueX"]); let predicates = dataAbility.createRdbPredicates("AllDataType", dataAbilityPredicates); @@ -2306,7 +2306,7 @@ describe('dataAbilityPredicatesTest', function () { expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIndexedBy0002 end *************"); + console.info(TAG + "************* testIndexedBy0002 end *************"); }) /** @@ -2315,7 +2315,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc the common and min value test with notin. */ it('testNotIn0001', 0, async function (done) { - console.log(TAG + "************* testNotIn0001 start *************"); + console.info(TAG + "************* testNotIn0001 start *************"); var values = [1, -2147483648]; let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notIn("integerValue", values); @@ -2325,7 +2325,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result.close(); done(); - console.log(TAG + "************* testNotIn0001 end *************"); + console.info(TAG + "************* testNotIn0001 end *************"); }) /** @@ -2334,7 +2334,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc the common and max value test with notin. */ it('testNotIn0002', 0, async function (done) { - console.log(TAG + "************* testNotIn0002 start *************"); + console.info(TAG + "************* testNotIn0002 start *************"); let values = [1, 2147483647]; let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notIn("integerValue", values); @@ -2344,7 +2344,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result.close(); done(); - console.log(TAG + "************* testNotIn0002 end *************"); + console.info(TAG + "************* testNotIn0002 end *************"); }) /** @@ -2353,7 +2353,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc the min and max value test with notin. */ it('testNotIn0003', 0, async function (done) { - console.log(TAG + "************* testNotIn0003 start *************"); + console.info(TAG + "************* testNotIn0003 start *************"); var values = [-2147483648, 2147483647]; let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.notIn("integerValue", values); @@ -2363,7 +2363,7 @@ describe('dataAbilityPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result.close(); done(); - console.log(TAG + "************* testNotIn0003 end *************"); + console.info(TAG + "************* testNotIn0003 end *************"); }) /** @@ -2372,7 +2372,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0001', 0, async function (done) { - console.log(TAG + "************* testIn0001 start *************"); + console.info(TAG + "************* testIn0001 start *************"); var values = [Number.MIN_VALUE.toString()]; let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.in("doubleValue", values); @@ -2380,7 +2380,7 @@ describe('dataAbilityPredicatesTest', function () { let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0001 end *************"); + console.info(TAG + "************* testIn0001 end *************"); }) /** @@ -2389,7 +2389,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0002', 0, async function (done) { - console.log(TAG + "************* testIn0002 start *************"); + console.info(TAG + "************* testIn0002 start *************"); var values = ["1.0"]; let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.in("doubleValue", values); @@ -2397,7 +2397,7 @@ describe('dataAbilityPredicatesTest', function () { let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0002 end *************"); + console.info(TAG + "************* testIn0002 end *************"); }) /** @@ -2406,7 +2406,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0003', 0, async function (done) { - console.log(TAG + "************* testIn0003 start *************"); + console.info(TAG + "************* testIn0003 start *************"); var values = [DOUBLE_MAX.toString()]; let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.in("doubleValue", values); @@ -2414,7 +2414,7 @@ describe('dataAbilityPredicatesTest', function () { let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0003 end *************"); + console.info(TAG + "************* testIn0003 end *************"); }) /** @@ -2423,7 +2423,7 @@ describe('dataAbilityPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0004', 0, async function (done) { - console.log(TAG + "************* testIn0004 start *************"); + console.info(TAG + "************* testIn0004 start *************"); var values = [Number.MIN_VALUE.toString(), "1.0", DOUBLE_MAX.toString()]; let dataAbilityPredicates = await new dataAbility.DataAbilityPredicates(); dataAbilityPredicates.in("doubleValue", values); @@ -2431,7 +2431,7 @@ describe('dataAbilityPredicatesTest', function () { let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0004 end *************"); + console.info(TAG + "************* testIn0004 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataShareJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataShareJsunit.test.js index 439e711b12141e7473193185fdf0a26937f1baf2..f99f9ea044c3388998b6dd62c4cc927434988953 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataShareJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataShareJsunit.test.js @@ -41,7 +41,7 @@ describe('dataShareTest', function () { console.info(TAG + 'afterAll') }) - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); function onChangeNotify() { console.info("==========================>onChangeNotify=======================>"); @@ -53,17 +53,17 @@ describe('dataShareTest', function () { * @tc.desc data share createDataShareHelper test */ it('createDataShareHelper_0000', 0, async function (done) { - console.log(TAG + ":createDataShareHelper_0000 start"); + console.info(TAG + ":createDataShareHelper_0000 start"); try { let helper = dataShare.createDataShareHelper(this.context, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":createDataShareHelper_0000 end"); + console.info(TAG + ":createDataShareHelper_0000 end"); }) /** @@ -72,17 +72,17 @@ describe('dataShareTest', function () { * @tc.desc data share createDataShareHelper test */ it('createDataShareHelper_0010', 0, async function (done) { - console.log(TAG + ":createDataShareHelper_0010 start"); + console.info(TAG + ":createDataShareHelper_0010 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":createDataShareHelper_0010 end"); + console.info(TAG + ":createDataShareHelper_0010 end"); }) /** @@ -91,17 +91,17 @@ describe('dataShareTest', function () { * @tc.desc data share createDataShareHelper test */ it('createDataShareHelper_0011', 0, async function (done) { - console.log(TAG + ":createDataShareHelper_0011 start"); + console.info(TAG + ":createDataShareHelper_0011 start"); try { let helper = dataShare.createDataShareHelper(this.context, null, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":createDataShareHelper_0011 end"); + console.info(TAG + ":createDataShareHelper_0011 end"); }) /** @@ -110,17 +110,17 @@ describe('dataShareTest', function () { * @tc.desc data share createDataShareHelper test */ it('createDataShareHelper_0012', 0, async function (done) { - console.log(TAG + ":createDataShareHelper_0012 start"); + console.info(TAG + ":createDataShareHelper_0012 start"); try { let helper = dataShare.createDataShareHelper(this.context, dseWant, null); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":createDataShareHelper_0012 end"); + console.info(TAG + ":createDataShareHelper_0012 end"); }) /** @@ -129,10 +129,10 @@ describe('dataShareTest', function () { * @tc.desc data share onEvent test */ it('on_0020', 0, async function (done) { - console.log(TAG + ":on_0020 start"); + console.info(TAG + ":on_0020 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.on( "dataChange", URI, @@ -141,10 +141,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":on_0020 end"); + console.info(TAG + ":on_0020 end"); }) /** @@ -153,10 +153,10 @@ describe('dataShareTest', function () { * @tc.desc data share onEvent test */ it('on_0021', 0, async function (done) { - console.log(TAG + ":on_0021 start"); + console.info(TAG + ":on_0021 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.on( "dataChange", null, @@ -165,10 +165,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":on_0021 end"); + console.info(TAG + ":on_0021 end"); }) /** @@ -177,10 +177,10 @@ describe('dataShareTest', function () { * @tc.desc data share offEvent test */ it('off_0030', 0, async function (done) { - console.log(TAG + ":off_0030 start"); + console.info(TAG + ":off_0030 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.off( "dataChange", URI, @@ -193,10 +193,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":off_0030 end"); + console.info(TAG + ":off_0030 end"); }) /** @@ -205,10 +205,10 @@ describe('dataShareTest', function () { * @tc.desc data share offEvent test */ it('off_0031', 0, async function (done) { - console.log(TAG + ":off_0031 start"); + console.info(TAG + ":off_0031 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.off( "dataChange", null, @@ -217,10 +217,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":off_0031 end"); + console.info(TAG + ":off_0031 end"); }) /** @@ -229,10 +229,10 @@ describe('dataShareTest', function () { * @tc.desc data share getType_callback test */ it('getType_callback_0040', 0, async function (done) { - console.log(TAG + ":getType_callback_0040 start"); + console.info(TAG + ":getType_callback_0040 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.getType( URI, (err, data) => { @@ -241,10 +241,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":getType_callback_0040 end"); + console.info(TAG + ":getType_callback_0040 end"); }) /** @@ -253,10 +253,10 @@ describe('dataShareTest', function () { * @tc.desc data share getType_promise test */ it('getType_promise_0041', 0, async function (done) { - console.log(TAG + ":getType_promise_0041 start"); + console.info(TAG + ":getType_promise_0041 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.getType( URI ).then((data) => { @@ -265,10 +265,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":getType_promise_0041 end"); + console.info(TAG + ":getType_promise_0041 end"); }) /** @@ -277,10 +277,10 @@ describe('dataShareTest', function () { * @tc.desc data share getFileType_callback test */ it('getFileType_callback_0050', 0, async function (done) { - console.log(TAG + ":getFileType_callback_0050 start"); + console.info(TAG + ":getFileType_callback_0050 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.getFileTypes( URI, "image/*", @@ -290,10 +290,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":getFileType_callback_0050 end"); + console.info(TAG + ":getFileType_callback_0050 end"); }) /** @@ -302,10 +302,10 @@ describe('dataShareTest', function () { * @tc.desc data share getFileType_promise test */ it('getFileType_promise_0051', 0, async function (done) { - console.log(TAG + ":getFileType_promise_0051 start"); + console.info(TAG + ":getFileType_promise_0051 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.getFileTypes( URI, "image/*" @@ -315,10 +315,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":getFileType_promise_0051 end"); + console.info(TAG + ":getFileType_promise_0051 end"); }) /** @@ -327,10 +327,10 @@ describe('dataShareTest', function () { * @tc.desc data share getFileType_callback test */ it('getFileType_callback_0052', 0, async function (done) { - console.log(TAG + ":getFileType_callback_0052 start"); + console.info(TAG + ":getFileType_callback_0052 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.getFileTypes( null, "image/*", @@ -340,10 +340,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":getFileType_callback_0052 end"); + console.info(TAG + ":getFileType_callback_0052 end"); }) /** @@ -352,10 +352,10 @@ describe('dataShareTest', function () { * @tc.desc data share normalizeUri_callback test */ it('normalizeUri_callback_0060', 0, async function (done) { - console.log(TAG + ":normalizeUri_callback_0060 start"); + console.info(TAG + ":normalizeUri_callback_0060 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.normalizeUri( URI, (err, data) => { @@ -364,10 +364,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":normalizeUri_callback_0060 end"); + console.info(TAG + ":normalizeUri_callback_0060 end"); }) /** @@ -376,10 +376,10 @@ describe('dataShareTest', function () { * @tc.desc data share normalizeUri_promise test */ it('normalizeUri_promise_0061', 0, async function (done) { - console.log(TAG + ":normalizeUri_promise_0061 start"); + console.info(TAG + ":normalizeUri_promise_0061 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.normalizeUri( URI, ).then((data) => { @@ -388,10 +388,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":normalizeUri_promise_0061 end"); + console.info(TAG + ":normalizeUri_promise_0061 end"); }) /** @@ -400,10 +400,10 @@ describe('dataShareTest', function () { * @tc.desc data share normalizeUri_callback test */ it('normalizeUri_callback_0062', 0, async function (done) { - console.log(TAG + ":normalizeUri_callback_0062 start"); + console.info(TAG + ":normalizeUri_callback_0062 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.normalizeUri( null, (err, data) => { @@ -412,10 +412,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":normalizeUri_callback_0062 end"); + console.info(TAG + ":normalizeUri_callback_0062 end"); }) /** @@ -424,10 +424,10 @@ describe('dataShareTest', function () { * @tc.desc data share denormalizeUri_callback test */ it('denormalizeUri_callback_0070', 0, async function (done) { - console.log(TAG + ":denormalizeUri_callback_0070 start"); + console.info(TAG + ":denormalizeUri_callback_0070 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.denormalizeUri( URI, (err, data) => { @@ -436,10 +436,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":denormalizeUri_callback_0070 end"); + console.info(TAG + ":denormalizeUri_callback_0070 end"); }) /** @@ -448,10 +448,10 @@ describe('dataShareTest', function () { * @tc.desc data share denormalizeUri_promise test */ it('denormalizeUri_promise_0071', 0, async function (done) { - console.log(TAG + ":denormalizeUri_promise_0071 start"); + console.info(TAG + ":denormalizeUri_promise_0071 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.denormalizeUri( URI, ).then((data) => { @@ -460,10 +460,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":denormalizeUri_promise_0071 end"); + console.info(TAG + ":denormalizeUri_promise_0071 end"); }) /** @@ -472,10 +472,10 @@ describe('dataShareTest', function () { * @tc.desc data share denormalizeUri_callback test */ it('denormalizeUri_callback_0072', 0, async function (done) { - console.log(TAG + ":denormalizeUri_callback_0072 start"); + console.info(TAG + ":denormalizeUri_callback_0072 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.denormalizeUri( null, (err, data) => { @@ -484,10 +484,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":denormalizeUri_callback_0072 end"); + console.info(TAG + ":denormalizeUri_callback_0072 end"); }) /** @@ -496,10 +496,10 @@ describe('dataShareTest', function () { * @tc.desc data share notifyChange_callback test */ it('notifyChange_callback_0080', 0, async function (done) { - console.log(TAG + ":notifyChange_callback_0080 start"); + console.info(TAG + ":notifyChange_callback_0080 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.notifyChange( URI, (err) => { @@ -508,10 +508,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":notifyChange_callback_0080 end"); + console.info(TAG + ":notifyChange_callback_0080 end"); }) /** @@ -520,10 +520,10 @@ describe('dataShareTest', function () { * @tc.desc data share notifyChange_promise test */ it('notifyChange_promise_0081', 0, async function (done) { - console.log(TAG + ":notifyChange_promise_0081 start"); + console.info(TAG + ":notifyChange_promise_0081 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.notifyChange( URI, ).then(() => { @@ -532,10 +532,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":notifyChange_promise_0081 end"); + console.info(TAG + ":notifyChange_promise_0081 end"); }) /** @@ -544,10 +544,10 @@ describe('dataShareTest', function () { * @tc.desc data share notifyChange_callback test */ it('notifyChange_callback_0082', 0, async function (done) { - console.log(TAG + ":notifyChange_callback_0082 start"); + console.info(TAG + ":notifyChange_callback_0082 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); helper.notifyChange( null, (err) => { @@ -556,10 +556,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":notifyChange_callback_0082 end"); + console.info(TAG + ":notifyChange_callback_0082 end"); }) /** @@ -568,10 +568,10 @@ describe('dataShareTest', function () { * @tc.desc data share insert_callback test */ it('insert_callback_0090', 0, async function (done) { - console.log(TAG + ":insert_callback_0090 start"); + console.info(TAG + ":insert_callback_0090 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); const valueBucket = { "name": "rose", "age": 22, @@ -587,10 +587,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":insert_callback_0090 end"); + console.info(TAG + ":insert_callback_0090 end"); }) /** @@ -599,10 +599,10 @@ describe('dataShareTest', function () { * @tc.desc data share insert_promise test */ it('insert_promise_0091', 0, async function (done) { - console.log(TAG + ":insert_promise_0081 start"); + console.info(TAG + ":insert_promise_0081 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); const valueBucket = { "name": "rose1", "age": 221, @@ -618,10 +618,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":insert_promise_0091 end"); + console.info(TAG + ":insert_promise_0091 end"); }) /** @@ -630,10 +630,10 @@ describe('dataShareTest', function () { * @tc.desc data share insert_callback test */ it('insert_callback_0092', 0, async function (done) { - console.log(TAG + ":insert_callback_0092 start"); + console.info(TAG + ":insert_callback_0092 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); const valueBucket = { "name": "rose", "age": 22, @@ -649,10 +649,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":insert_callback_0092 end"); + console.info(TAG + ":insert_callback_0092 end"); }) /** @@ -661,10 +661,10 @@ describe('dataShareTest', function () { * @tc.desc data share batchInsert_callback test */ it('batchInsert_callback_0100', 0, async function (done) { - console.log(TAG + ":batchInsert_callback_0100 start"); + console.info(TAG + ":batchInsert_callback_0100 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); var cars = new Array({"name": "roe11", "age": 21, "salary": 20.5, "blobType": u8,}, {"name": "roe12", "age": 21, "salary": 20.5, "blobType": u8,}, {"name": "roe13", "age": 21, "salary": 20.5, "blobType": u8,}) @@ -677,10 +677,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":batchInsert_callback_0100 end"); + console.info(TAG + ":batchInsert_callback_0100 end"); }) /** @@ -689,10 +689,10 @@ describe('dataShareTest', function () { * @tc.desc data share createDataShareHelper test */ it('batchInsert_promise_0101', 0, async function (done) { - console.log(TAG + ":batchInsert_promise_0101 start"); + console.info(TAG + ":batchInsert_promise_0101 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); var cars = new Array({"name": "roe11", "age": 21, "salary": 20.5, "blobType": u8,}, {"name": "roe12", "age": 21, "salary": 20.5, "blobType": u8,}, {"name": "roe13", "age": 21, "salary": 20.5, "blobType": u8,}) @@ -705,10 +705,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":batchInsert_promise_0101 end"); + console.info(TAG + ":batchInsert_promise_0101 end"); }) /** @@ -717,10 +717,10 @@ describe('dataShareTest', function () { * @tc.desc data share batchInsert_callback test */ it('batchInsert_callback_0102', 0, async function (done) { - console.log(TAG + ":batchInsert_callback_0102 start"); + console.info(TAG + ":batchInsert_callback_0102 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); var cars = new Array({"name": "roe11", "age": 21, "salary": 20.5, "blobType": u8,}, {"name": "roe12", "age": 21, "salary": 20.5, "blobType": u8,}, {"name": "roe13", "age": 21, "salary": 20.5, "blobType": u8,}) @@ -733,10 +733,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":batchInsert_callback_0102 end"); + console.info(TAG + ":batchInsert_callback_0102 end"); }) /** @@ -745,10 +745,10 @@ describe('dataShareTest', function () { * @tc.desc data share delete_callback test */ it('delete_callback_0110', 0, async function (done) { - console.log(TAG + ":delete_callback_0110 start"); + console.info(TAG + ":delete_callback_0110 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.delete( URI, @@ -759,10 +759,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":delete_callback_0110 end"); + console.info(TAG + ":delete_callback_0110 end"); }) /** @@ -771,10 +771,10 @@ describe('dataShareTest', function () { * @tc.desc data share delete_promise test */ it('delete_promise_0111', 0, async function (done) { - console.log(TAG + ":delete_promise_0111 start"); + console.info(TAG + ":delete_promise_0111 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.delete( URI, @@ -785,10 +785,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":delete_promise_0111 end"); + console.info(TAG + ":delete_promise_0111 end"); }) /** @@ -797,10 +797,10 @@ describe('dataShareTest', function () { * @tc.desc data share delete_callback test */ it('delete_callback_0112', 0, async function (done) { - console.log(TAG + ":delete_callback_0112 start"); + console.info(TAG + ":delete_callback_0112 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.delete( null, @@ -811,10 +811,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":delete_callback_0112 end"); + console.info(TAG + ":delete_callback_0112 end"); }) /** @@ -823,10 +823,10 @@ describe('dataShareTest', function () { * @tc.desc data share delete_callback test */ it('delete_callback_0113', 0, async function (done) { - console.log(TAG + ":delete_callback_0113 start"); + console.info(TAG + ":delete_callback_0113 start"); try { let helper = dataShare.createDataShareHelper(this.context, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.delete( URI, @@ -837,10 +837,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":delete_callback_0113 end"); + console.info(TAG + ":delete_callback_0113 end"); }) /** @@ -849,10 +849,10 @@ describe('dataShareTest', function () { * @tc.desc data share update_callback test */ it('update_callback_0120', 0, async function (done) { - console.log(TAG + ":update_callback_0120 start"); + console.info(TAG + ":update_callback_0120 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); const va = { "name": "roe1", "age": 21, @@ -870,10 +870,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":update_callback_0120 end"); + console.info(TAG + ":update_callback_0120 end"); }) /** @@ -882,10 +882,10 @@ describe('dataShareTest', function () { * @tc.desc data share update_promise test */ it('update_promise_0121', 0, async function (done) { - console.log(TAG + ":update_promise_0121 start"); + console.info(TAG + ":update_promise_0121 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); const va = { "name": "roe1", "age": 21, @@ -903,10 +903,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":update_promise_0121 end"); + console.info(TAG + ":update_promise_0121 end"); }) /** @@ -915,10 +915,10 @@ describe('dataShareTest', function () { * @tc.desc data share update_callback test */ it('update_callback_0122', 0, async function (done) { - console.log(TAG + ":update_callback_0122 start"); + console.info(TAG + ":update_callback_0122 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); const va = { "name": "roe1", "age": 21, @@ -936,10 +936,10 @@ describe('dataShareTest', function () { expect(false).assertTrue(); } catch (err) { expect(true).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":update_callback_0122 end"); + console.info(TAG + ":update_callback_0122 end"); }) /** @@ -948,10 +948,10 @@ describe('dataShareTest', function () { * @tc.desc data share update_callback test */ it('update_callback_0123', 0, async function (done) { - console.log(TAG + ":update_callback_0123 start"); + console.info(TAG + ":update_callback_0123 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.update( URI, @@ -963,10 +963,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":update_callback_0123 end"); + console.info(TAG + ":update_callback_0123 end"); }) /** @@ -975,10 +975,10 @@ describe('dataShareTest', function () { * @tc.desc data share query_callback test */ it('query_callback_0130', 0, async function (done) { - console.log(TAG + ":query_callback_0130 start"); + console.info(TAG + ":query_callback_0130 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.query( URI, @@ -990,10 +990,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":query_callback_0130 end"); + console.info(TAG + ":query_callback_0130 end"); }) /** @@ -1002,10 +1002,10 @@ describe('dataShareTest', function () { * @tc.desc data share query_promise test */ it('query_promise_0131', 0, async function (done) { - console.log(TAG + ":query_promise_0131 start"); + console.info(TAG + ":query_promise_0131 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.query( URI, @@ -1017,10 +1017,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":query_promise_0131 end"); + console.info(TAG + ":query_promise_0131 end"); }) /** @@ -1029,10 +1029,10 @@ describe('dataShareTest', function () { * @tc.desc data share query_callback test */ it('query_callback_0132', 0, async function (done) { - console.log(TAG + ":query_callback_0132 start"); + console.info(TAG + ":query_callback_0132 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.query( null, @@ -1044,10 +1044,10 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":query_callback_0130 end"); + console.info(TAG + ":query_callback_0130 end"); }) /** @@ -1056,10 +1056,10 @@ describe('dataShareTest', function () { * @tc.desc data share query_promise test */ it('query_promise_0133', 0, async function (done) { - console.log(TAG + ":query_promise_0133 start"); + console.info(TAG + ":query_promise_0133 start"); try { let helper = dataShare.createDataShareHelper(null, dseWant, URI); - console.log(TAG + ":DataShareHelper helper:" + helper); + console.info(TAG + ":DataShareHelper helper:" + helper); let da = new dataAbility.DataAbilityPredicates() helper.query( URI, @@ -1071,11 +1071,11 @@ describe('dataShareTest', function () { expect(true).assertTrue(); } catch (err) { expect(false).assertTrue(); - console.log(TAG + ":DataShareHelper catch err:" + err); + console.info(TAG + ":DataShareHelper catch err:" + err); } done(); - console.log(TAG + ":query_promise_0133 end"); + console.info(TAG + ":query_promise_0133 end"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js index fb0b0bc03748501a0b0c6d6b62b6c7ead3af2924..fbc3e643ce3055a491017278f07e13c8e98c3140 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDataShareJsunit.test.js @@ -50,7 +50,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { await dataRdb.deleteRdbStore(context, "DataShareTest.db") }) - console.log(TAG + "*************Unit Test Begin*************") + console.info(TAG + "*************Unit Test Begin*************") /** @@ -59,7 +59,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { * @tc.desc rdb DataShare Func insert test */ it('testRdbStoreDataShareFunc0001', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDataShareFunc0001 start *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0001 start *************") let u8 = new Uint8Array([1, 2, 3]) const valueBucket = { "name": "zhangsan", @@ -70,19 +70,19 @@ describe('rdbStoreDataSharePredicatesTest', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(1).assertEqual(ret) - console.log(TAG + "Insert done: " + ret) + console.info(TAG + "Insert done: " + ret) }).catch((err) => { - console.log(TAG + "Insert err: " + err) + console.info(TAG + "Insert err: " + err) expect(false).assertTrue() }) await insertPromise - console.log("insert end") + console.info("insert end") let predicates = new dataRdb.RdbPredicates("test") predicates.equalTo("name", "zhangsan") let resultSet = await rdbStore.query(predicates) try { - console.log(TAG + "resultSet query done") + console.info(TAG + "resultSet query done") expect(true).assertEqual(resultSet.goToFirstRow()) const name = resultSet.getString(resultSet.getColumnIndex("name")) const age = resultSet.getLong(resultSet.getColumnIndex("age")) @@ -100,7 +100,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { resultSet = null done() - console.log(TAG + "************* testRdbStoreDataShareFunc0001 end *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0001 end *************") }) @@ -110,7 +110,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { * @tc.desc rdb DataShare update promise Func test */ it('testRdbStoreDataShareFunc0002', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDataShareFunc0002 start *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0002 start *************") let u8 = new Uint8Array([1, 2, 3]) let valueBucket = { "name": "zhangsan", @@ -133,9 +133,9 @@ describe('rdbStoreDataSharePredicatesTest', function () { let promiseUpdate = rdbStore.update("test", valueBucket, predicates) promiseUpdate.then(async (ret) => { expect(1).assertEqual(ret) - console.log(TAG + "Update done: " + ret) + console.info(TAG + "Update done: " + ret) }).catch((err) => { - console.log(TAG + "Update err: " + err) + console.info(TAG + "Update err: " + err) expect(false).assertTrue() }) await promiseUpdate @@ -157,12 +157,12 @@ describe('rdbStoreDataSharePredicatesTest', function () { expect(5).assertEqual(blobType[1]) expect(6).assertEqual(blobType[2]) - console.log(TAG + "dataShare update: {id=" + id + ", name=" + name + ", " + + console.info(TAG + "dataShare update: {id=" + id + ", name=" + name + ", " + "age=" + age + ", salary=" + salary + ", blobType=" + blobType) resultSet = null done() - console.log(TAG + "************* testRdbStoreDataShareFunc0002 end *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0002 end *************") }) /** @@ -171,7 +171,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { * @tc.desc rdb DataShare update callback Func test */ it('testRdbStoreDataShareFunc0003', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDataShareFunc0003 start *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0003 start *************") let u8 = new Uint8Array([1, 2, 3]) let valueBucket = { "name": "zhangsan", @@ -198,7 +198,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { expect(false).assertTrue() } expect(1).assertEqual(ret) - console.log("Update done: " + ret) + console.info("Update done: " + ret) let rdbPredicates = await new dataRdb.RdbPredicates("test") rdbPredicates.equalTo("name", "lisi") let resultSet = await rdbStore.query(rdbPredicates) @@ -216,13 +216,13 @@ describe('rdbStoreDataSharePredicatesTest', function () { expect(4).assertEqual(blobType[0]) expect(5).assertEqual(blobType[1]) expect(6).assertEqual(blobType[2]) - console.log(TAG + "dataShare update: {id=" + id + ", name=" + name + ", " + + console.info(TAG + "dataShare update: {id=" + id + ", name=" + name + ", " + "age=" + age + ", salary=" + salary + ", blobType=" + blobType) resultSet = null }) done() - console.log(TAG + "************* testRdbStoreDataShareFunc0003 end *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0003 end *************") }) /** @@ -231,7 +231,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { * @tc.desc rdb DataShare query promise Func test */ it('testRdbStoreDataShareFunc0004', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDataShareFunc0004 start *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0004 start *************") let u8 = new Uint8Array([4, 5, 6]) let valueBucket = { "name": "zhangsan", @@ -245,7 +245,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { predicates.equalTo("name", "zhangsan") let queryPromise = rdbStore.query("test", predicates) queryPromise.then((resultSet) => { - console.log(TAG + "DataShare Query done: ") + console.info(TAG + "DataShare Query done: ") expect(true).assertEqual(resultSet.goToFirstRow()) const name = resultSet.getString(resultSet.getColumnIndex("name")) const age = resultSet.getLong(resultSet.getColumnIndex("age")) @@ -260,13 +260,13 @@ describe('rdbStoreDataSharePredicatesTest', function () { expect(6).assertEqual(blobType[2]) }).catch((err) => { - console.log(TAG + "Query err: " + err) + console.info(TAG + "Query err: " + err) expect(false).assertTrue() }) await queryPromise done() - console.log(TAG + "************* testRdbStoreDataShareFunc0004 end *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0004 end *************") }) /** @@ -275,7 +275,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { * @tc.desc rdb DataShare query callback Func test */ it('testRdbStoreDataShareFunc0005', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDataShareFunc0005 start *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0005 start *************") let u8 = new Uint8Array([4, 5, 6]) let valueBucket = { "name": "zhangsan", @@ -309,7 +309,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { }) done() - console.log(TAG + "************* testRdbStoreDataShareFunc0005 end *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0005 end *************") }) /** @@ -318,7 +318,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { * @tc.desc rdb DataShare delete Func test */ it('testRdbStoreDataShareFunc0006', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDataShareFunc0006 start *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0006 start *************") let u8 = new Uint8Array([1, 2, 3]) let valueBucket = { "name": "zhangsan", @@ -333,9 +333,9 @@ describe('rdbStoreDataSharePredicatesTest', function () { let deletePromise = rdbStore.delete("test", predicates) deletePromise.then(async (ret) => { expect(1).assertEqual(ret) - console.log(TAG + "Delete done: " + ret) + console.info(TAG + "Delete done: " + ret) }).catch((err) => { - console.log(TAG + "Delete err: " + err) + console.info(TAG + "Delete err: " + err) expect(false).assertTrue() }) await deletePromise @@ -347,7 +347,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { resultSet = null done() - console.log(TAG + "************* testRdbStoreDataShareFunc0006 end *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0006 end *************") }) /** @@ -356,7 +356,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { * @tc.desc rdb DataShare delete Func test */ it('testRdbStoreDataShareFunc0007', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDataShareFunc0007 start *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0007 start *************") let u8 = new Uint8Array([1, 2, 3]) let valueBucket = { "name": "zhangsan", @@ -375,7 +375,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { expect(false).assertTrue() } expect(1).assertEqual(ret) - console.log("Delete done: " + ret) + console.info("Delete done: " + ret) let rdbPredicates = await new dataRdb.RdbPredicates("test") rdbPredicates.equalTo("name", "zhangsan") let resultSet = await rdbStore.query(rdbPredicates) @@ -384,7 +384,7 @@ describe('rdbStoreDataSharePredicatesTest', function () { }) done() - console.log(TAG + "************* testRdbStoreDataShareFunc0007 end *************") + console.info(TAG + "************* testRdbStoreDataShareFunc0007 end *************") }) - console.log(TAG + "*************Unit Test End*************") + console.info(TAG + "*************Unit Test End*************") }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDistributedJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDistributedJsunit.test.js index 262a4f7add94601d54a422ed4f5d996f27a235a0..14ab2826bf5d609e71b63057c41f1c468945f16c 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDistributedJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreDistributedJsunit.test.js @@ -38,7 +38,7 @@ describe('rdbStoreDistributedTest', function () { await dataRdb.deleteRdbStore(STORE_NAME); }) - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name rdb open test @@ -46,13 +46,13 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc rdb open test */ it('testRdbStoreDistributed0001', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed001 start *************"); + console.info(TAG + "************* testRdbStoreDistributed001 start *************"); const config = { "name": STORE_NAME, } try { rdbStore = await dataRdb.getRdbStore(config, 1); - console.log(TAG + "create rdb store success") + console.info(TAG + "create rdb store success") expect(rdbStore).assertEqual(rdbStore) let sqlStatement = "CREATE TABLE IF NOT EXISTS employee (" + "id INTEGER PRIMARY KEY AUTOINCREMENT," + @@ -60,9 +60,9 @@ describe('rdbStoreDistributedTest', function () { "age INTEGER)" try { await rdbStore.executeSql(sqlStatement, null) - console.log(TAG + "create table employee success") + console.info(TAG + "create table employee success") } catch (err) { - console.log(TAG + "create table employee failed") + console.info(TAG + "create table employee failed") expect(null).assertFail() } @@ -74,17 +74,17 @@ describe('rdbStoreDistributedTest', function () { "describe TEXT)" try { await rdbStore.executeSql(sqlStatement, null) - console.log(TAG + "create table product success") + console.info(TAG + "create table product success") } catch (err) { - console.log(TAG + "create table product failed") + console.info(TAG + "create table product failed") expect(null).assertFail() } } catch (err) { - console.log(TAG + "create rdb store failed") + console.info(TAG + "create rdb store failed") expect(null).assertFail() } done() - console.log(TAG + "************* testRdbStoreDistributed001 end *************"); + console.info(TAG + "************* testRdbStoreDistributed001 end *************"); }) /** @@ -93,17 +93,17 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc rdb set distributed table using none table as argment */ it('testRdbStoreDistributed0002', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed002 start *************"); + console.info(TAG + "************* testRdbStoreDistributed002 start *************"); try { await rdbStore.setDistributedTables([]) - console.log(TAG + "set none to be distributed table success"); + console.info(TAG + "set none to be distributed table success"); expect(rdbStore).assertEqual(rdbStore) } catch (err) { - console.log(TAG + "set none to be distributed table failed"); + console.info(TAG + "set none to be distributed table failed"); expect(null).assertFail(); } done() - console.log(TAG + "************* testRdbStoreDistributed002 end *************"); + console.info(TAG + "************* testRdbStoreDistributed002 end *************"); }) /** @@ -112,17 +112,17 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc set distributed table using one table name */ it('testRdbStoreDistributed0003', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed003 start *************"); + console.info(TAG + "************* testRdbStoreDistributed003 start *************"); try { await rdbStore.setDistributedTables(['employee']) - console.log(TAG + "set employee to be distributed table success"); + console.info(TAG + "set employee to be distributed table success"); expect(rdbStore).assertEqual(rdbStore) } catch (err) { - console.log(TAG + "set employee to be distributed table failed"); + console.info(TAG + "set employee to be distributed table failed"); expect(null).assertFail(); } done() - console.log(TAG + "************* testRdbStoreDistributed003 end *************"); + console.info(TAG + "************* testRdbStoreDistributed003 end *************"); }) /** @@ -131,17 +131,17 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc set distributed table using two table name */ it('testRdbStoreDistributed0004', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed004 start *************"); + console.info(TAG + "************* testRdbStoreDistributed004 start *************"); try { await rdbStore.setDistributedTables(['employee', 'product']) - console.log(TAG + "set employee and product to be distributed table success"); + console.info(TAG + "set employee and product to be distributed table success"); expect(rdbStore).assertEqual(rdbStore) } catch (err) { - console.log(TAG + "set employee and product to be distributed table failed"); + console.info(TAG + "set employee and product to be distributed table failed"); expect(null).assertFail(); } done() - console.log(TAG + "************* testRdbStoreDistributed004 end *************"); + console.info(TAG + "************* testRdbStoreDistributed004 end *************"); }) /** @@ -150,21 +150,21 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc insert record after setting distributed table */ it('testRdbStoreDistributed0005', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed005 start *************"); + console.info(TAG + "************* testRdbStoreDistributed005 start *************"); const record = { "name": "Jim", "age": 20, } try { let rowId = await rdbStore.insert("employee", record) - console.log(TAG + "insert one record success " + rowId) + console.info(TAG + "insert one record success " + rowId) expect(1).assertEqual(rowId) } catch (err) { - console.log(TAG + "insert one record failed"); + console.info(TAG + "insert one record failed"); expect(null).assertFail(); } done() - console.log(TAG + "************* testRdbStoreDistributed005 end *************"); + console.info(TAG + "************* testRdbStoreDistributed005 end *************"); }) /** @@ -173,7 +173,7 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc update record after setting distributed table */ it('testRdbStoreDistributed0006', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed006 start *************"); + console.info(TAG + "************* testRdbStoreDistributed006 start *************"); const record = { "name": "Jim", "age": 30, @@ -183,18 +183,18 @@ describe('rdbStoreDistributedTest', function () { predicate.equalTo("id", 1); try { let rowId = await rdbStore.update(record, predicate); - console.log(TAG + "update one record success " + rowId) + console.info(TAG + "update one record success " + rowId) expect(1).assertEqual(rowId) } catch (err) { - console.log(TAG + "update one record failed"); + console.info(TAG + "update one record failed"); expect(null).assertFail(); } } catch (err) { - console.log(TAG + "construct predicate failed"); + console.info(TAG + "construct predicate failed"); expect(null).assertFail(); } done() - console.log(TAG + "************* testRdbStoreDistributed006 end *************"); + console.info(TAG + "************* testRdbStoreDistributed006 end *************"); }) /** @@ -203,12 +203,12 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc query record after setting distributed table */ it('testRdbStoreDistributed0007', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed0007 start *************"); + console.info(TAG + "************* testRdbStoreDistributed0007 start *************"); try { let predicates = new dataRdb.RdbPredicates("employee") let resultSet = await rdbStore.query(predicates) try { - console.log(TAG + "product resultSet query done"); + console.info(TAG + "product resultSet query done"); expect(true).assertEqual(resultSet.goToFirstRow()) const id = await resultSet.getLong(resultSet.getColumnIndex("id")) const name = await resultSet.getString(resultSet.getColumnIndex("name")) @@ -220,15 +220,15 @@ describe('rdbStoreDistributedTest', function () { resultSet.close(); expect(true).assertEqual(resultSet.isClosed) } catch (e) { - console.log(TAG + "result get value failed") + console.info(TAG + "result get value failed") expect(null).assertFail(); } } catch (err) { - console.log("query failed"); + console.info("query failed"); expect(null).assertFail(); } done(); - console.log(TAG + "************* testRdbStoreDistributed0007 end *************"); + console.info(TAG + "************* testRdbStoreDistributed0007 end *************"); }) /** @@ -237,18 +237,18 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc delete record after setting distributed table */ it('testRdbStoreDistributed0008', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed0008 start *************"); + console.info(TAG + "************* testRdbStoreDistributed0008 start *************"); let predicates = new dataRdb.RdbPredicates("employee") try { let number = await rdbStore.delete(predicates) - console.log(TAG + "employee Delete done: " + number) + console.info(TAG + "employee Delete done: " + number) expect(1).assertEqual(number) } catch (err) { - console.log(TAG + "delete record failed"); + console.info(TAG + "delete record failed"); expect(null).assertFail() } done(); - console.log(TAG + "************* testRdbStoreDistributed0008 end *************"); + console.info(TAG + "************* testRdbStoreDistributed0008 end *************"); }) /** @@ -257,18 +257,18 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc predicates inDevice */ it('testRdbStoreDistributed0009', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed0009 start *************"); + console.info(TAG + "************* testRdbStoreDistributed0009 start *************"); let predicates = new dataRdb.RdbPredicates("employee") try { predicates = predicates.inDevices("1234567890"); - console.log(TAG + "inDevices success"); + console.info(TAG + "inDevices success"); expect(predicates).assertEqual(predicates); } catch (err) { - console.log(TAG + "inDevices failed"); + console.info(TAG + "inDevices failed"); expect(null).assertFail(); } done(); - console.log(TAG + "************* testRdbStoreDistributed0009 end *************"); + console.info(TAG + "************* testRdbStoreDistributed0009 end *************"); }) /** @@ -277,18 +277,18 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc predicates inAllDevices */ it('testRdbStoreDistributed0010', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed0010 start *************"); + console.info(TAG + "************* testRdbStoreDistributed0010 start *************"); let predicates = new dataRdb.RdbPredicates("employee") try { predicates = predicates.inAllDevices(); - console.log(TAG + "inAllDevices success"); + console.info(TAG + "inAllDevices success"); expect(predicates).assertEqual(predicates); } catch (err) { - console.log(TAG + "inAllDevices failed"); + console.info(TAG + "inAllDevices failed"); expect(null).assertFail(); } done(); - console.log(TAG + "************* testRdbStoreDistributed0010 end *************"); + console.info(TAG + "************* testRdbStoreDistributed0010 end *************"); }) /** @@ -297,17 +297,17 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc sync test */ it('testRdbStoreDistributed0011', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed0011 start *************"); + console.info(TAG + "************* testRdbStoreDistributed0011 start *************"); let predicates = new dataRdb.RdbPredicates("employee") predicates = predicates.inDevices("12345678abcd"); rdbStore.sync(dataRdb.SyncMode.SYNC_MODE_PUSH, predicates); - console.log(TAG + "sync push success"); + console.info(TAG + "sync push success"); expect(rdbStore).assertEqual(rdbStore); rdbStore.sync(dataRdb.SyncMode.SYNC_MODE_PULL, predicates); - console.log(TAG + "sync pull success"); + console.info(TAG + "sync pull success"); expect(rdbStore).assertEqual(rdbStore); done(); - console.log(TAG + "************* testRdbStoreDistributed0011 end *************"); + console.info(TAG + "************* testRdbStoreDistributed0011 end *************"); }) /** @@ -316,19 +316,19 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc sync Callback test */ it('testRdbStoreDistributedCallback0011', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributedCallback0011 start *************"); + console.info(TAG + "************* testRdbStoreDistributedCallback0011 start *************"); let predicates = new dataRdb.RdbPredicates("employee") predicates = predicates.inDevices("12345678abcd"); rdbStore.sync(dataRdb.SyncMode.SYNC_MODE_PUSH, predicates,(err,ret)=>{ - console.log(TAG + "sync push success"); + console.info(TAG + "sync push success"); expect(rdbStore).assertEqual(rdbStore); }); rdbStore.sync(dataRdb.SyncMode.SYNC_MODE_PULL, predicates,(err,ret)=>{ - console.log(TAG + "sync push success"); + console.info(TAG + "sync push success"); expect(rdbStore).assertEqual(rdbStore); }); done(); - console.log(TAG + "************* testRdbStoreDistributedCallback0011 end *************"); + console.info(TAG + "************* testRdbStoreDistributedCallback0011 end *************"); }) /** @@ -337,14 +337,14 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc subscribe test */ it('testRdbStoreDistributed0012', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed0012 start *************"); + console.info(TAG + "************* testRdbStoreDistributed0012 start *************"); rdbStore.on("dataChange", (device) => { - console.log(TAG + device + " dataChange"); + console.info(TAG + device + " dataChange"); }); - console.log(TAG + "on dataChange success"); + console.info(TAG + "on dataChange success"); expect(rdbStore).assertEqual(rdbStore); done() - console.log(TAG + "************* testRdbStoreDistributed0012 end *************"); + console.info(TAG + "************* testRdbStoreDistributed0012 end *************"); }) /** @@ -353,14 +353,14 @@ describe('rdbStoreDistributedTest', function () { * @tc.desc subscribe test */ it('testRdbStoreDistributed0013', 0, async function (done) { - console.log(TAG + "************* testRdbStoreDistributed0013 start *************"); + console.info(TAG + "************* testRdbStoreDistributed0013 start *************"); rdbStore.off("dataChange", (device) => { - console.log(TAG + device + " dataChange"); + console.info(TAG + device + " dataChange"); }); - console.log(TAG + "off dataChange success"); + console.info(TAG + "off dataChange success"); expect(rdbStore).assertEqual(rdbStore); done() - console.log(TAG + "************* testRdbStoreDistributed0013 end *************"); + console.info(TAG + "************* testRdbStoreDistributed0013 end *************"); }) /** @@ -398,5 +398,5 @@ describe('rdbStoreDistributedTest', function () { done(); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js index 8144b759ced20ea7011f645ef25ef3991a126eed..e3a927ea8cf8880b0f35e57c81812a4643afbee2 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js @@ -47,7 +47,7 @@ describe('rdbResultSetTest', function () { }) //插入数据 async function createTest() { - console.log(TAG + 'createTest data start'); + console.info(TAG + 'createTest data start'); { var u8 = new Uint8Array([1, 2, 3]) const valueBucket = { @@ -78,7 +78,7 @@ describe('rdbResultSetTest', function () { } await rdbStore.insert('test', valueBucket) } - console.log(TAG + 'createTest data end'); + console.info(TAG + 'createTest data end'); } /** @@ -87,7 +87,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getBlob normal test */ it('testGetBlob0001', 0, async function (done) { - console.log(TAG + '************* testGetBlob0001 start *************'); + console.info(TAG + '************* testGetBlob0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -95,7 +95,7 @@ describe('rdbResultSetTest', function () { expect(true).assertEqual(resultSet.goToFirstRow()) const id = resultSet.getLong(resultSet.getColumnIndex('id')) const data4 = resultSet.getBlob(resultSet.getColumnIndex('data4')) - console.log(TAG + 'id=' + id + ', data4=' + data4); + console.info(TAG + 'id=' + id + ', data4=' + data4); expect(1).assertEqual(data4[0]); expect(2).assertEqual(data4[1]); expect(3).assertEqual(data4[2]); @@ -107,7 +107,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetBlob0001 end *************'); + console.info(TAG + '************* testGetBlob0001 end *************'); }) /** @@ -116,7 +116,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getBlob normal test */ it('testGetBlob0002', 0, async function (done) { - console.log(TAG + '************* testGetBlob0002 start *************'); + console.info(TAG + '************* testGetBlob0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -125,7 +125,7 @@ describe('rdbResultSetTest', function () { expect(true).assertEqual(resultSet.goToNextRow()) const id = resultSet.getLong(resultSet.getColumnIndex('id')) const data4 = resultSet.getBlob(resultSet.getColumnIndex('data4')) - console.log(TAG + 'id=' + id + ', data4=' + data4); + console.info(TAG + 'id=' + id + ', data4=' + data4); expect(3).assertEqual(data4[0]); expect(4).assertEqual(data4[1]); expect(5).assertEqual(data4[2]); @@ -137,7 +137,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetBlob0002 end *************'); + console.info(TAG + '************* testGetBlob0002 end *************'); }) /** @@ -146,7 +146,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getBlob normal test */ it('testGetBlob0003', 0, async function (done) { - console.log(TAG + '************* testGetBlob0003 start *************'); + console.info(TAG + '************* testGetBlob0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -156,7 +156,7 @@ describe('rdbResultSetTest', function () { expect(true).assertEqual(resultSet.goToNextRow()) const id = resultSet.getLong(resultSet.getColumnIndex('id')) const data4 = resultSet.getBlob(resultSet.getColumnIndex('data4')) - console.log(TAG + 'id=' + id); + console.info(TAG + 'id=' + id); } resultSet.close(); expect(true).assertEqual(resultSet.isClosed) @@ -165,7 +165,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetBlob0003 end *************'); + console.info(TAG + '************* testGetBlob0003 end *************'); }) /** @@ -174,7 +174,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isStarted normal test */ it('testIsStarted0001', 0, async function (done) { - console.log(TAG + '************* testIsStarted0001 start *************'); + console.info(TAG + '************* testIsStarted0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -184,7 +184,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsStarted0001 end *************'); + console.info(TAG + '************* testIsStarted0001 end *************'); }) /** @@ -193,7 +193,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isStarted normal test */ it('testIsStarted0002', 0, async function (done) { - console.log(TAG + '************* testIsStarted0002 start *************'); + console.info(TAG + '************* testIsStarted0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -204,7 +204,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsStarted0002 end *************'); + console.info(TAG + '************* testIsStarted0002 end *************'); }) /** @@ -213,7 +213,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isStarted normal test */ it('testIsStarted0003', 0, async function (done) { - console.log(TAG + '************* testIsStarted0003 start *************'); + console.info(TAG + '************* testIsStarted0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -226,7 +226,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsStarted0003 end *************'); + console.info(TAG + '************* testIsStarted0003 end *************'); }) /** @@ -235,7 +235,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isStarted with no result test */ it('testIsStarted0004', 0, async function (done) { - console.log(TAG + '************* testIsStarted0004 start *************'); + console.info(TAG + '************* testIsStarted0004 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -247,7 +247,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsStarted0004 end *************'); + console.info(TAG + '************* testIsStarted0004 end *************'); }) @@ -257,7 +257,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isEnded normal test */ it('testIsEnded0001', 0, async function (done) { - console.log(TAG + '************* testIsEnded0001 start *************'); + console.info(TAG + '************* testIsEnded0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -268,7 +268,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsEnded0001 end *************'); + console.info(TAG + '************* testIsEnded0001 end *************'); }) /** @@ -277,7 +277,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isEnded normal test */ it('testIsEnded0002', 0, async function (done) { - console.log(TAG + '************* testIsEnded0002 start *************'); + console.info(TAG + '************* testIsEnded0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -288,7 +288,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsEnded0002 end *************'); + console.info(TAG + '************* testIsEnded0002 end *************'); }) /** @@ -297,7 +297,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isEnded normal test */ it('testIsEnded0003', 0, async function (done) { - console.log(TAG + '************* testIsEnded0003 start *************'); + console.info(TAG + '************* testIsEnded0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -308,7 +308,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsEnded0003 end *************'); + console.info(TAG + '************* testIsEnded0003 end *************'); }) /** @@ -317,7 +317,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isEnded normal test */ it('testIsEnded0004', 0, async function (done) { - console.log(TAG + '************* testIsEnded0004 start *************'); + console.info(TAG + '************* testIsEnded0004 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -329,7 +329,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testIsEnded0004 end *************'); + console.info(TAG + '************* testIsEnded0004 end *************'); }) /** @@ -338,7 +338,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet rowCount normal test */ it('testRowCount0001', 0, async function (done) { - console.log(TAG + '************* testRowCount0001 start *************'); + console.info(TAG + '************* testRowCount0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -348,7 +348,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testRowCount0001 end *************'); + console.info(TAG + '************* testRowCount0001 end *************'); }) /** @@ -357,7 +357,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet rowCount with no result test */ it('testRowCount0002', 0, async function (done) { - console.log(TAG + '************* testRowCount0002 start *************'); + console.info(TAG + '************* testRowCount0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); let resultSet = await rdbStore.query(predicates) @@ -368,7 +368,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testRowCount0002 end *************'); + console.info(TAG + '************* testRowCount0002 end *************'); }) /** @@ -377,7 +377,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet rowCount test */ it('testRowCount0003', 0, async function (done) { - console.log(TAG + '************* testRowCount0003 start *************'); + console.info(TAG + '************* testRowCount0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('data1', 'hello'); let resultSet = await rdbStore.query(predicates) @@ -388,7 +388,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testRowCount0003 end *************'); + console.info(TAG + '************* testRowCount0003 end *************'); }) /** @@ -397,7 +397,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet rowCount test */ it('testRowCount0004', 0, async function (done) { - console.log(TAG + '************* testRowCount0004 start *************'); + console.info(TAG + '************* testRowCount0004 start *************'); let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('data1', 'hello'); predicates.equalTo('data2', 3); @@ -409,7 +409,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testRowCount0003 end *************'); + console.info(TAG + '************* testRowCount0003 end *************'); }) /** @@ -418,7 +418,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getLong test */ it('testGetLong0001', 0, async function (done) { - console.log(TAG + '************* testGetLong0001 start *************'); + console.info(TAG + '************* testGetLong0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -426,7 +426,7 @@ describe('rdbResultSetTest', function () { expect(true).assertEqual(resultSet.goToFirstRow()) const id = resultSet.getLong(resultSet.getColumnIndex('id')) const data2 = resultSet.getLong(resultSet.getColumnIndex('data2')) - console.log(TAG + 'id=' + id + ', data2=' + data2); + console.info(TAG + 'id=' + id + ', data2=' + data2); expect(10).assertEqual(data2); } resultSet.close(); @@ -436,7 +436,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetLong0001 end *************'); + console.info(TAG + '************* testGetLong0001 end *************'); }) /** @@ -445,7 +445,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getLong test */ it('testGetLong0002', 0, async function (done) { - console.log(TAG + '************* testGetLong0002 start *************'); + console.info(TAG + '************* testGetLong0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -462,7 +462,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetLong0002 end *************'); + console.info(TAG + '************* testGetLong0002 end *************'); }) /** @@ -471,7 +471,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getLong test */ it('testGetLong0003', 0, async function (done) { - console.log(TAG + '************* testGetLong0003 start *************'); + console.info(TAG + '************* testGetLong0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) try { @@ -488,7 +488,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetLong0003 end *************'); + console.info(TAG + '************* testGetLong0003 end *************'); }) /** @@ -497,7 +497,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getString test */ it('testGetString0001', 0, async function (done) { - console.log(TAG + '************* testGetString0001 start *************'); + console.info(TAG + '************* testGetString0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) { @@ -507,7 +507,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetString0001 end *************'); + console.info(TAG + '************* testGetString0001 end *************'); }) /** @@ -516,7 +516,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getString test */ it('testGetString0002', 0, async function (done) { - console.log(TAG + '************* testGetString0002 start *************'); + console.info(TAG + '************* testGetString0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) { @@ -526,7 +526,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetString0002 end *************'); + console.info(TAG + '************* testGetString0002 end *************'); }) /** @@ -535,7 +535,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getString test */ it('testGetString0003', 0, async function (done) { - console.log(TAG + '************* testGetString0003 start *************'); + console.info(TAG + '************* testGetString0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) { @@ -546,7 +546,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetString0003 end *************'); + console.info(TAG + '************* testGetString0003 end *************'); }) /** @@ -555,7 +555,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getString test */ it('testGetString0004', 0, async function (done) { - console.log(TAG + '************* testGetString0004 start *************'); + console.info(TAG + '************* testGetString0004 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) { @@ -571,7 +571,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGetString0004 end *************'); + console.info(TAG + '************* testGetString0004 end *************'); }) /** @@ -580,7 +580,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isClosed test */ it('testIsClosed0001', 0, async function (done) { - console.log(TAG + '************* testIsClosed0001 start *************'); + console.info(TAG + '************* testIsClosed0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -590,7 +590,7 @@ describe('rdbResultSetTest', function () { resultSet = null done(); - console.log(TAG + '************* testIsClosed0001 end *************'); + console.info(TAG + '************* testIsClosed0001 end *************'); }) /** @@ -599,14 +599,14 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isClosed with not close test */ it('testIsClosed0002', 0, async function (done) { - console.log(TAG + '************* testIsClosed0002 start *************'); + console.info(TAG + '************* testIsClosed0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) expect(false).assertEqual(resultSet.isClosed) resultSet = null done(); - console.log(TAG + '************* testIsClosed0002 end *************'); + console.info(TAG + '************* testIsClosed0002 end *************'); }) /** @@ -615,7 +615,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isClosed with not close test */ it('testIsClosed0003', 0, async function (done) { - console.log(TAG + '************* testIsClosed0003 start *************'); + console.info(TAG + '************* testIsClosed0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); let resultSet = await rdbStore.query(predicates) @@ -623,7 +623,7 @@ describe('rdbResultSetTest', function () { resultSet = null done(); - console.log(TAG + '************* testIsClosed0003 end *************'); + console.info(TAG + '************* testIsClosed0003 end *************'); }) /** @@ -632,14 +632,14 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet columnCount test */ it('testColumnCount0001', 0, async function (done) { - console.log(TAG + '************* testColumnCount0001 start *************'); + console.info(TAG + '************* testColumnCount0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) expect(5).assertEqual(resultSet.columnCount); resultSet = null; done(); - console.log(TAG + '************* testColumnCount0001 end *************'); + console.info(TAG + '************* testColumnCount0001 end *************'); } }) @@ -649,7 +649,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet columnCount test */ it('testColumnCount0002', 0, async function (done) { - console.log(TAG + '************* testColumnCount0002 start *************'); + console.info(TAG + '************* testColumnCount0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -657,7 +657,7 @@ describe('rdbResultSetTest', function () { expect(0).assertEqual(resultSet.columnCount); resultSet = null; done(); - console.log(TAG + '************* testColumnCount0002 end *************'); + console.info(TAG + '************* testColumnCount0002 end *************'); } }) @@ -667,7 +667,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet rowIndex test */ it('testRowIndex0001', 0, async function (done) { - console.log(TAG + '************* testRowIndex0001 *************'); + console.info(TAG + '************* testRowIndex0001 *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -678,7 +678,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testRowIndex0001 end *************'); + console.info(TAG + '************* testRowIndex0001 end *************'); } }) @@ -688,7 +688,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet rowIndex at last row test */ it('testRowIndex0002', 0, async function (done) { - console.log(TAG + '************* testRowIndex0002 *************'); + console.info(TAG + '************* testRowIndex0002 *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -699,7 +699,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testRowIndex0002 end *************'); + console.info(TAG + '************* testRowIndex0002 end *************'); } }) @@ -709,7 +709,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToFirstRow normal test */ it('testGoToFirstRow0001', 0, async function (done) { - console.log(TAG + '************* testGoToFirstRow0001 start *************'); + console.info(TAG + '************* testGoToFirstRow0001 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -721,7 +721,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGoToFirstRow0001 end *************'); + console.info(TAG + '************* testGoToFirstRow0001 end *************'); }) /** @@ -730,7 +730,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToFirstRow with no result test */ it('testGoToFirstRow0002', 0, async function (done) { - console.log(TAG + '************* testGoToFirstRow0002 start *************'); + console.info(TAG + '************* testGoToFirstRow0002 start *************'); let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -742,7 +742,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGoToFirstRow0002 end *************'); + console.info(TAG + '************* testGoToFirstRow0002 end *************'); }) /** @@ -751,7 +751,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToFirstRow test */ it('testGoToFirstRow0003', 0, async function (done) { - console.log(TAG + '************* testGoToFirstRow0003 start *************'); + console.info(TAG + '************* testGoToFirstRow0003 start *************'); let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -764,7 +764,7 @@ describe('rdbResultSetTest', function () { } resultSet = null done(); - console.log(TAG + '************* testGoToFirstRow0003 end *************'); + console.info(TAG + '************* testGoToFirstRow0003 end *************'); }) /** @@ -773,7 +773,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToFirstRow test */ it('testGoToLastRow0001', 0, async function (done) { - console.log(TAG + '************* testGoToLastRow0001 start *************'); + console.info(TAG + '************* testGoToLastRow0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -782,7 +782,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToLastRow0001 end *************'); + console.info(TAG + '************* testGoToLastRow0001 end *************'); } }) @@ -792,7 +792,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToLastRow with no result test */ it('testGoToLastRow0002', 0, async function (done) { - console.log(TAG + '************* testGoToLastRow0002 start *************'); + console.info(TAG + '************* testGoToLastRow0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -802,7 +802,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToLastRow0002 end *************'); + console.info(TAG + '************* testGoToLastRow0002 end *************'); } }) @@ -812,7 +812,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToLastRow test */ it('testGoToLastRow0003', 0, async function (done) { - console.log(TAG + '************* testGoToLastRow0003 start *************'); + console.info(TAG + '************* testGoToLastRow0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -823,7 +823,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToLastRow0003 end *************'); + console.info(TAG + '************* testGoToLastRow0003 end *************'); } }) @@ -833,7 +833,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToNextRow test */ it('testGoToNextRow0001', 0, async function (done) { - console.log(TAG + '************* testGoToNextRow0001 start *************'); + console.info(TAG + '************* testGoToNextRow0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -842,7 +842,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToNextRow0001 end *************'); + console.info(TAG + '************* testGoToNextRow0001 end *************'); } }) @@ -852,7 +852,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToNextRow with no result test */ it('testGoToNextRow0002', 0, async function (done) { - console.log(TAG + '************* testGoToNextRow0002 start *************'); + console.info(TAG + '************* testGoToNextRow0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -862,7 +862,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToNextRow0002 end *************'); + console.info(TAG + '************* testGoToNextRow0002 end *************'); } }) @@ -872,7 +872,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToNextRow test */ it('testGoToNextRow0003', 0, async function (done) { - console.log(TAG + '************* testGoToNextRow0003 start *************'); + console.info(TAG + '************* testGoToNextRow0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -884,7 +884,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToNextRow0003 end *************'); + console.info(TAG + '************* testGoToNextRow0003 end *************'); } }) @@ -894,7 +894,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToNextRow after last row test */ it('testGoToNextRow0004', 0, async function (done) { - console.log(TAG + '************* testGoToNextRow0004 start *************'); + console.info(TAG + '************* testGoToNextRow0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -904,7 +904,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToNextRow0004 end *************'); + console.info(TAG + '************* testGoToNextRow0004 end *************'); } }) @@ -914,7 +914,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToPreviousRow test */ it('testGoToPreviousRow0001', 0, async function (done) { - console.log(TAG + '************* testGoToPreviousRow0001 start *************'); + console.info(TAG + '************* testGoToPreviousRow0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -923,7 +923,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToPreviousRow0001 end *************'); + console.info(TAG + '************* testGoToPreviousRow0001 end *************'); } }) @@ -933,7 +933,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToPreviousRow with no result test */ it('testGoToPreviousRow0002', 0, async function (done) { - console.log(TAG + '************* testGoToPreviousRow0002 start *************'); + console.info(TAG + '************* testGoToPreviousRow0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -943,7 +943,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToPreviousRow0002 end *************'); + console.info(TAG + '************* testGoToPreviousRow0002 end *************'); } }) @@ -953,7 +953,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToPreviousRow test */ it('testGoToPreviousRow0003', 0, async function (done) { - console.log(TAG + '************* testGoToPreviousRow0003 start *************'); + console.info(TAG + '************* testGoToPreviousRow0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -964,7 +964,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToPreviousRow0003 end *************'); + console.info(TAG + '************* testGoToPreviousRow0003 end *************'); } }) @@ -974,7 +974,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToPreviousRow after last row test */ it('testGoToPreviousRow0004', 0, async function (done) { - console.log(TAG + '************* testGoToPreviousRow0004 start *************'); + console.info(TAG + '************* testGoToPreviousRow0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -984,7 +984,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToPreviousRow0004 end *************'); + console.info(TAG + '************* testGoToPreviousRow0004 end *************'); } }) @@ -994,7 +994,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goTo test */ it('testGoTo0001', 0, async function (done) { - console.log(TAG + '************* testGoTo0001 start *************'); + console.info(TAG + '************* testGoTo0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1005,7 +1005,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoTo0001 end *************'); + console.info(TAG + '************* testGoTo0001 end *************'); } }) @@ -1015,7 +1015,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goTo with no result test */ it('testGoTo0002', 0, async function (done) { - console.log(TAG + '************* testGoTo0002 start *************'); + console.info(TAG + '************* testGoTo0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1026,7 +1026,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoTo0002 end *************'); + console.info(TAG + '************* testGoTo0002 end *************'); } }) @@ -1036,7 +1036,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goTo test */ it('testGoTo0003', 0, async function (done) { - console.log(TAG + '************* testGoTo0003 start *************'); + console.info(TAG + '************* testGoTo0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1048,7 +1048,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoTo0003 end *************'); + console.info(TAG + '************* testGoTo0003 end *************'); } }) @@ -1058,7 +1058,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goTo after last row test */ it('testGoTo0004', 0, async function (done) { - console.log(TAG + '************* testGoTo0004 start *************'); + console.info(TAG + '************* testGoTo0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1069,7 +1069,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoTo0004 end *************'); + console.info(TAG + '************* testGoTo0004 end *************'); } }) @@ -1079,7 +1079,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToRow test */ it('testGoToRow0001', 0, async function (done) { - console.log(TAG + '************* testGoToRow0001 start *************'); + console.info(TAG + '************* testGoToRow0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1090,7 +1090,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToRow0001 end *************'); + console.info(TAG + '************* testGoToRow0001 end *************'); } }) @@ -1100,7 +1100,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToRow with no result test */ it('testGoToRow0002', 0, async function (done) { - console.log(TAG + '************* testGoToRow0002 start *************'); + console.info(TAG + '************* testGoToRow0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1111,7 +1111,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToRow0002 end *************'); + console.info(TAG + '************* testGoToRow0002 end *************'); } }) @@ -1121,7 +1121,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToRow test */ it('testGoToRow0003', 0, async function (done) { - console.log(TAG + '************* testGoToRow0003 start *************'); + console.info(TAG + '************* testGoToRow0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1134,7 +1134,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToRow0003 end *************'); + console.info(TAG + '************* testGoToRow0003 end *************'); } }) @@ -1144,7 +1144,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet goToRow after last row test */ it('testGoToRow0004', 0, async function (done) { - console.log(TAG + '************* testGoToRow0004 start *************'); + console.info(TAG + '************* testGoToRow0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1155,7 +1155,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGoToRow0004 end *************'); + console.info(TAG + '************* testGoToRow0004 end *************'); } }) @@ -1165,7 +1165,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtFirstRow test */ it('testIsAtFirstRow0001', 0, async function (done) { - console.log(TAG + '************* testIsAtFirstRow0001 start *************'); + console.info(TAG + '************* testIsAtFirstRow0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1175,7 +1175,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtFirstRow0001 end *************'); + console.info(TAG + '************* testIsAtFirstRow0001 end *************'); } }) @@ -1185,7 +1185,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtFirstRow with no result test */ it('testIsAtFirstRow0002', 0, async function (done) { - console.log(TAG + '************* testIsAtFirstRow0002 start *************'); + console.info(TAG + '************* testIsAtFirstRow0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1195,7 +1195,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtFirstRow0002 end *************'); + console.info(TAG + '************* testIsAtFirstRow0002 end *************'); } }) @@ -1205,7 +1205,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtFirstRow test */ it('testIsAtFirstRow0003', 0, async function (done) { - console.log(TAG + '************* testIsAtFirstRow0003 start *************'); + console.info(TAG + '************* testIsAtFirstRow0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1216,7 +1216,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtFirstRow0003 end *************'); + console.info(TAG + '************* testIsAtFirstRow0003 end *************'); } }) @@ -1226,7 +1226,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtFirstRow after last row test */ it('testIsAtFirstRow0004', 0, async function (done) { - console.log(TAG + '************* testIsAtFirstRow0004 start *************'); + console.info(TAG + '************* testIsAtFirstRow0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1236,7 +1236,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtFirstRow0004 end *************'); + console.info(TAG + '************* testIsAtFirstRow0004 end *************'); } }) @@ -1246,7 +1246,7 @@ describe('rdbResultSetTest', function () { * @tc.descresultSet isAtFirstRow test */ it('testIsAtFirstRow0005', 0, async function (done) { - console.log(TAG + '************* testIsAtFirstRow0005 start *************'); + console.info(TAG + '************* testIsAtFirstRow0005 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1257,7 +1257,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtFirstRow0005 end *************'); + console.info(TAG + '************* testIsAtFirstRow0005 end *************'); } }) @@ -1267,7 +1267,7 @@ describe('rdbResultSetTest', function () { * @tc.descresultSet isAtFirstRow test */ it('testIsAtFirstRow0006', 0, async function (done) { - console.log(TAG + '************* testIsAtFirstRow0006 start *************'); + console.info(TAG + '************* testIsAtFirstRow0006 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1278,7 +1278,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtFirstRow0006 end *************'); + console.info(TAG + '************* testIsAtFirstRow0006 end *************'); } }) @@ -1288,7 +1288,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtLastRow test */ it('testIsAtLastRow0001', 0, async function (done) { - console.log(TAG + '************* testIsAtLastRow0001 start *************'); + console.info(TAG + '************* testIsAtLastRow0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1298,7 +1298,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtLastRow0001 end *************'); + console.info(TAG + '************* testIsAtLastRow0001 end *************'); } }) @@ -1308,7 +1308,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtLastRow with no result test */ it('testIsAtLastRow0002', 0, async function (done) { - console.log(TAG + '************* testIsAtLastRow0002 start *************'); + console.info(TAG + '************* testIsAtLastRow0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1318,7 +1318,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtLastRow0002 end *************'); + console.info(TAG + '************* testIsAtLastRow0002 end *************'); } }) @@ -1328,7 +1328,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtLastRow test */ it('testIsAtLastRow0003', 0, async function (done) { - console.log(TAG + '************* testIsAtLastRow0003 start *************'); + console.info(TAG + '************* testIsAtLastRow0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1339,7 +1339,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtLastRow0003 end *************'); + console.info(TAG + '************* testIsAtLastRow0003 end *************'); } }) @@ -1349,7 +1349,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtLastRow after last row test */ it('testIsAtLastRow0004', 0, async function (done) { - console.log(TAG + '************* testIsAtLastRow0004 start *************'); + console.info(TAG + '************* testIsAtLastRow0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1359,7 +1359,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtLastRow0004 end *************'); + console.info(TAG + '************* testIsAtLastRow0004 end *************'); } }) @@ -1369,7 +1369,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isAtLastRow test */ it('testIsAtLastRow0005', 0, async function (done) { - console.log(TAG + '************* testIsAtLastRow0005 start *************'); + console.info(TAG + '************* testIsAtLastRow0005 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1380,7 +1380,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsAtLastRow0005 end *************'); + console.info(TAG + '************* testIsAtLastRow0005 end *************'); } }) @@ -1390,7 +1390,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getDouble test */ it('testGetDouble0001', 0, async function (done) { - console.log(TAG + '************* testGetDouble0001 start *************'); + console.info(TAG + '************* testGetDouble0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1401,7 +1401,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGetDouble0001 end *************'); + console.info(TAG + '************* testGetDouble0001 end *************'); } }) @@ -1411,7 +1411,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getDouble test */ it('testGetDouble0002', 0, async function (done) { - console.log(TAG + '************* testGetDouble0002 start *************'); + console.info(TAG + '************* testGetDouble0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1422,7 +1422,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGetDouble0002 end *************'); + console.info(TAG + '************* testGetDouble0002 end *************'); } }) @@ -1432,7 +1432,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getDouble test */ it('testGetDouble0003', 0, async function (done) { - console.log(TAG + '************* testGetDouble0003 start *************'); + console.info(TAG + '************* testGetDouble0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1443,7 +1443,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGetDouble0003 end *************'); + console.info(TAG + '************* testGetDouble0003 end *************'); } }) @@ -1453,7 +1453,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getDouble test */ it('testGetDouble0004', 0, async function (done) { - console.log(TAG + '************* testGetDouble0004 start *************'); + console.info(TAG + '************* testGetDouble0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1464,7 +1464,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testGetDouble0004 end *************'); + console.info(TAG + '************* testGetDouble0004 end *************'); } }) @@ -1474,7 +1474,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isColumnNull test */ it('testIsColumnNull0001', 0, async function (done) { - console.log(TAG + '************* testIsColumnNull0001 start *************'); + console.info(TAG + '************* testIsColumnNull0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1487,7 +1487,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsColumnNull0001 end *************'); + console.info(TAG + '************* testIsColumnNull0001 end *************'); } }) @@ -1497,7 +1497,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isColumnNull test */ it('testIsColumnNull0002', 0, async function (done) { - console.log(TAG + '************* testIsColumnNull0002 start *************'); + console.info(TAG + '************* testIsColumnNull0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1510,7 +1510,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsColumnNull0002 end *************'); + console.info(TAG + '************* testIsColumnNull0002 end *************'); } }) @@ -1520,7 +1520,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isColumnNull test */ it('testIsColumnNull0003', 0, async function (done) { - console.log(TAG + '************* testIsColumnNull0003 start *************'); + console.info(TAG + '************* testIsColumnNull0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1530,7 +1530,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsColumnNull0003 end *************'); + console.info(TAG + '************* testIsColumnNull0003 end *************'); } }) /** @@ -1539,7 +1539,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet isColumnNull test */ it('testIsColumnNull0004', 0, async function (done) { - console.log(TAG + '************* testIsColumnNull0004 start *************'); + console.info(TAG + '************* testIsColumnNull0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1549,7 +1549,7 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testIsColumnNull0004 end *************'); + console.info(TAG + '************* testIsColumnNull0004 end *************'); } }) @@ -1559,7 +1559,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnIndex test */ it('testGetColumnIndex0001', 0, async function (done) { - console.log(TAG + '************* testGetColumnIndex0001 start *************'); + console.info(TAG + '************* testGetColumnIndex0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1568,7 +1568,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnIndex0001 end *************'); + console.info(TAG + '************* testGetColumnIndex0001 end *************'); } }) @@ -1578,7 +1578,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnIndex test */ it('testGetColumnIndex0002', 0, async function (done) { - console.log(TAG + '************* testGetColumnIndex0002 start *************'); + console.info(TAG + '************* testGetColumnIndex0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1587,7 +1587,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnIndex0002 end *************'); + console.info(TAG + '************* testGetColumnIndex0002 end *************'); } }) @@ -1597,7 +1597,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnIndex test */ it('testGetColumnIndex0003', 0, async function (done) { - console.log(TAG + '************* testGetColumnIndex0003 start *************'); + console.info(TAG + '************* testGetColumnIndex0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1605,7 +1605,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnIndex0003 end *************'); + console.info(TAG + '************* testGetColumnIndex0003 end *************'); } }) @@ -1615,7 +1615,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnIndex test */ it('testGetColumnIndex0004', 0, async function (done) { - console.log(TAG + '************* testGetColumnIndex0004 start *************'); + console.info(TAG + '************* testGetColumnIndex0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1623,7 +1623,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnIndex0004 end *************'); + console.info(TAG + '************* testGetColumnIndex0004 end *************'); } }) @@ -1633,7 +1633,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnName test */ it('testGetColumnName0001', 0, async function (done) { - console.log(TAG + '************* testGetColumnIndex0001 start *************'); + console.info(TAG + '************* testGetColumnIndex0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1643,7 +1643,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnName0001 end *************'); + console.info(TAG + '************* testGetColumnName0001 end *************'); } }) @@ -1653,7 +1653,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnName test */ it('testGetColumnName0002', 0, async function (done) { - console.log(TAG + '************* testGetColumnName0002 start *************'); + console.info(TAG + '************* testGetColumnName0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1664,7 +1664,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnName0002 end *************'); + console.info(TAG + '************* testGetColumnName0002 end *************'); } }) @@ -1674,7 +1674,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnName test */ it('testGetColumnName0003', 0, async function (done) { - console.log(TAG + '************* testGetColumnName0003 start *************'); + console.info(TAG + '************* testGetColumnName0003 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1683,7 +1683,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnName0003 end *************'); + console.info(TAG + '************* testGetColumnName0003 end *************'); } }) @@ -1693,7 +1693,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet getColumnName test */ it('testGetColumnName0004', 0, async function (done) { - console.log(TAG + '************* testGetColumnName0004 start *************'); + console.info(TAG + '************* testGetColumnName0004 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1703,7 +1703,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testGetColumnName0004 end *************'); + console.info(TAG + '************* testGetColumnName0004 end *************'); } }) @@ -1713,7 +1713,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet close test */ it('testClose0001', 0, async function (done) { - console.log(TAG + '************* testClose0001 start *************'); + console.info(TAG + '************* testClose0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1723,7 +1723,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testClose0001 end *************'); + console.info(TAG + '************* testClose0001 end *************'); } }) @@ -1733,7 +1733,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet close test */ it('testClose0002', 0, async function (done) { - console.log(TAG + '************* testClose0002 start *************'); + console.info(TAG + '************* testClose0002 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') predicates.equalTo('name', 'wangwu'); @@ -1743,7 +1743,7 @@ describe('rdbResultSetTest', function () { resultSet = null; done(); - console.log(TAG + '************* testClose0002 end *************'); + console.info(TAG + '************* testClose0002 end *************'); } }) @@ -1753,7 +1753,7 @@ describe('rdbResultSetTest', function () { * @tc.desc resultSet columnNames test */ it('testcolumnNames0001', 0, async function (done) { - console.log(TAG + '************* testcolumnNames0001 start *************'); + console.info(TAG + '************* testcolumnNames0001 start *************'); { let predicates = await new dataRdb.RdbPredicates('test') let resultSet = await rdbStore.query(predicates) @@ -1764,9 +1764,9 @@ describe('rdbResultSetTest', function () { } resultSet = null; done(); - console.log(TAG + '************* testcolumnNames0001 end *************'); + console.info(TAG + '************* testcolumnNames0001 end *************'); } }) - console.log(TAG + '*************Unit Test End*************'); + console.info(TAG + '*************Unit Test End*************'); }) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreChangeEncryptKeyJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreChangeEncryptKeyJsunit.test.js index 9b153329c302fa4b8ddfe1e4addac88a8dc3655b..51e8741997fdd60756bc1c0e406b4cbd1f92a366 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreChangeEncryptKeyJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreChangeEncryptKeyJsunit.test.js @@ -34,7 +34,7 @@ var i = 1; var rdbStore = undefined; -describe('rdbStoreInsertTest_insert1', function () { +describe('rdbstoreChangeEncryptKeyTest', function () { beforeAll(async function () { console.info(TAG + 'beforeAll') }) @@ -60,7 +60,7 @@ describe('rdbStoreInsertTest_insert1', function () { console.info(TAG + 'afterAll') }) - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name testRdbStoreChangeEncryptKey0001 @@ -68,7 +68,7 @@ describe('rdbStoreInsertTest_insert1', function () { * @tc.desc encrypt the db at start, then change the encrypt key */ it('testRdbStoreChangeEncryptKey0001', 0, async function (done) { - console.log(TAG + "************* testRdbStoreChangeEncryptKey0001 start *************"); + console.info(TAG + "************* testRdbStoreChangeEncryptKey0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) { @@ -89,16 +89,16 @@ describe('rdbStoreInsertTest_insert1', function () { let resultSet = await rdbStore.query(predicates) try { - console.log(TAG + "resultSet query done"); + console.info(TAG + "resultSet query done"); resultSet.goToFirstRow() const id = resultSet.getLong(resultSet.getColumnIndex("id")) expect(1).assertEqual(id); } catch (e) { - console.log("insert1 error " + e); + console.info("insert1 error " + e); } done() - console.log(TAG + "************* testRdbStoreChangeEncryptKey0001 end *************"); + console.info(TAG + "************* testRdbStoreChangeEncryptKey0001 end *************"); }) /** @@ -107,7 +107,7 @@ describe('rdbStoreInsertTest_insert1', function () { * @tc.desc encrypt the db at start, then change the encrypt key */ it('testRdbStoreChangeEncryptKey0002', 0, async function (done) { - console.log(TAG + "************* testRdbStoreChangeEncryptKey0002 start *************"); + console.info(TAG + "************* testRdbStoreChangeEncryptKey0002 start *************"); var u8 = new Uint8Array([1, 2, 3]) let result = 1; { @@ -124,10 +124,10 @@ describe('rdbStoreInsertTest_insert1', function () { } catch (e) { expect(1).assertEqual(result); - console.log(TAG + "can not change encrypt key, since config with no key"); + console.info(TAG + "can not change encrypt key, since config with no key"); } done() - console.log(TAG + "************* testRdbStoreChangeEncryptKey0002 end *************"); + console.info(TAG + "************* testRdbStoreChangeEncryptKey0002 end *************"); }) /** @@ -137,7 +137,7 @@ describe('rdbStoreInsertTest_insert1', function () { * now sqlite does not support this feature, switch encrypt to non-encrypt. */ it('testRdbStoreChangeEncryptKey0003', 0, async function (done) { - console.log(TAG + "************* testRdbStoreChangeEncryptKey0003 start *************"); + console.info(TAG + "************* testRdbStoreChangeEncryptKey0003 start *************"); let result = -1; var u8 = new Uint8Array([1, 2, 3]) { @@ -153,12 +153,12 @@ describe('rdbStoreInsertTest_insert1', function () { result = await rdbStore.changeEncryptKey(new Uint8Array()); } catch (e) { expect(-1).assertEqual(result); - console.log(TAG + "can not clear encrypt key 2"); + console.info(TAG + "can not clear encrypt key 2"); } done() - console.log(TAG + "************* testRdbStoreChangeEncryptKey0003 end *************"); + console.info(TAG + "************* testRdbStoreChangeEncryptKey0003 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreDeleteJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreDeleteJsunit.test.js index a40dea8630c0153f95561ad1f7092dec9641642d..cc08e882856b838914f01d799b4d7a454118c585 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreDeleteJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreDeleteJsunit.test.js @@ -45,14 +45,14 @@ describe('rdbStoreDeleteTest', function () { console.info(TAG + 'afterAll') }) - console.log(TAG + '*************Unit Test Begin*************'); + console.info(TAG + '*************Unit Test Begin*************'); /** * @tc.name rdb delete test * @tc.number SUB_DDM_AppDataFWK_JSRDB_Delete_0010 * @tc.desc rdb delete test */ it('testRdbStoreDelete0001', 0, async function (done) { - console.log(TAG + '************* testRdbStoreDelete0001 start *************'); + console.info(TAG + '************* testRdbStoreDelete0001 start *************'); let u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -87,14 +87,14 @@ describe('rdbStoreDeleteTest', function () { let deletePromise = rdbStore.delete(predicates) deletePromise.then(async (ret) => { expect(3).assertEqual(ret) - console.log(TAG + 'Delete done: ' + ret) + console.info(TAG + 'Delete done: ' + ret) }).catch((err) => { expect(null).assertFail() }) await deletePromise } done() - console.log(TAG + '************* testRdbStoreDelete0001 end *************'); + console.info(TAG + '************* testRdbStoreDelete0001 end *************'); }) /** @@ -103,7 +103,7 @@ describe('rdbStoreDeleteTest', function () { * @tc.desc rdb delete test */ it('testRdbStoreDelete0002', 0, async function (done) { - console.log(TAG + '************* testRdbStoreDelete0002 start *************'); + console.info(TAG + '************* testRdbStoreDelete0002 start *************'); let u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -139,14 +139,14 @@ describe('rdbStoreDeleteTest', function () { let deletePromise = rdbStore.delete(predicates) deletePromise.then(async (ret) => { await expect(1).assertEqual(ret) - await console.log(TAG + 'Delete done: ' + ret) + await console.info(TAG + 'Delete done: ' + ret) }).catch((err) => { expect(null).assertFail() }) await deletePromise } done() - console.log(TAG + '************* testRdbStoreDelete0002 end *************'); + console.info(TAG + '************* testRdbStoreDelete0002 end *************'); }) /** @@ -155,7 +155,7 @@ describe('rdbStoreDeleteTest', function () { * @tc.desc rdb delete test */ it('testRdbStoreDelete0003', 0, async function (done) { - console.log(TAG + '************* testRdbStoreDelete0003 start *************'); + console.info(TAG + '************* testRdbStoreDelete0003 start *************'); let u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -189,7 +189,7 @@ describe('rdbStoreDeleteTest', function () { let deletePromise = rdbStore.delete(predicates) deletePromise.then(async (ret) => { expect(1).assertEqual(ret) - console.log(TAG + 'Delete done: ' + ret) + console.info(TAG + 'Delete done: ' + ret) }).catch((err) => { expect(null).assertFail() }) @@ -203,7 +203,7 @@ describe('rdbStoreDeleteTest', function () { expect(0).assertEqual(resultSet.rowCount) } done() - console.log(TAG + '************* testRdbStoreDelete0003 end *************'); + console.info(TAG + '************* testRdbStoreDelete0003 end *************'); }) /** @@ -212,7 +212,7 @@ describe('rdbStoreDeleteTest', function () { * @tc.desc rdb delete test */ it('testRdbStoreDelete0004', 0, async function (done) { - console.log(TAG + '************* testRdbStoreDelete0004 start *************'); + console.info(TAG + '************* testRdbStoreDelete0004 start *************'); let u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -247,14 +247,14 @@ describe('rdbStoreDeleteTest', function () { predicates.equalTo('aaa id', 1) let deletePromise = rdbStore.delete(predicates) deletePromise.then(async (ret) => { - console.log(TAG + 'delete done: ' + ret) + console.info(TAG + 'delete done: ' + ret) expect(null).assertFail() }).catch((err) => { - console.log(TAG + 'delete with wrong conditions') + console.info(TAG + 'delete with wrong conditions') }) } done() - console.log(TAG + '************* testRdbStoreDelete0004 end *************'); + console.info(TAG + '************* testRdbStoreDelete0004 end *************'); }) /** @@ -263,7 +263,7 @@ describe('rdbStoreDeleteTest', function () { * @tc.desc rdb delete test */ it('testRdbStoreDelete0005', 0, async function (done) { - console.log(TAG + '************* testRdbStoreDelete0005 start *************'); + console.info(TAG + '************* testRdbStoreDelete0005 start *************'); let u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -299,14 +299,14 @@ describe('rdbStoreDeleteTest', function () { let deletePromise = rdbStore.delete(predicates) deletePromise.then(async (ret) => { expect(2).assertEqual(ret) - console.log(TAG + 'Delete done: ' + ret) + console.info(TAG + 'Delete done: ' + ret) }).catch((err) => { expect(null).assertFail() }) await deletePromise } done() - console.log(TAG + '************* testRdbStoreDelete0005 end *************'); + console.info(TAG + '************* testRdbStoreDelete0005 end *************'); }) /** @@ -315,7 +315,7 @@ describe('rdbStoreDeleteTest', function () { * @tc.desc rdb delete test */ it('testRdbStoreDelete0006', 0, async function (done) { - console.log(TAG + '************* testRdbStoreDelete0006 start *************'); + console.info(TAG + '************* testRdbStoreDelete0006 start *************'); let u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -349,15 +349,15 @@ describe('rdbStoreDeleteTest', function () { let predicates = await new dataRdb.RdbPredicates('') let deletePromise = rdbStore.delete(predicates) deletePromise.then(async (ret) => { - console.log(TAG + 'delete done: ' + ret) + console.info(TAG + 'delete done: ' + ret) expect(null).assertFail() }).catch((err) => { - console.log(TAG + 'delete with null') + console.info(TAG + 'delete with null') }) } done() - console.log(TAG + '************* testRdbStoreDelete0006 end *************'); + console.info(TAG + '************* testRdbStoreDelete0006 end *************'); }) - console.log(TAG + '*************Unit Test End*************'); + console.info(TAG + '*************Unit Test End*************'); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreInsertJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreInsertJsunit.test.js index b425a37c1701cc5fe407a5719b4ae1dd7d6bf1a7..d86fb47268e936cfc41c2cc00a02128f71a38e27 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreInsertJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreInsertJsunit.test.js @@ -25,7 +25,7 @@ const STORE_CONFIG = { var rdbStore = undefined; -describe('rdbStoreInsertTest_insert2', function () { +describe('rdbstoreInsertTest', function () { beforeAll(async function () { console.info(TAG + 'beforeAll') rdbStore = await dataRdb.getRdbStore(STORE_CONFIG, 1); @@ -47,7 +47,7 @@ describe('rdbStoreInsertTest_insert2', function () { await dataRdb.deleteRdbStore("InsertTest.db"); }) - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name rdb insert test @@ -55,7 +55,7 @@ describe('rdbStoreInsertTest_insert2', function () { * @tc.desc rdb insert test */ it('testRdbStoreInsert0001', 0, async function (done) { - console.log(TAG + "************* testRdbStoreInsert0001 start *************"); + console.info(TAG + "************* testRdbStoreInsert0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -89,14 +89,14 @@ describe('rdbStoreInsertTest_insert2', function () { predicates.equalTo("name", "zhangsan") let resultSet = await rdbStore.query(predicates) try { - console.log(TAG + "resultSet query done"); + console.info(TAG + "resultSet query done"); expect(true).assertEqual(resultSet.goToFirstRow()) const id = resultSet.getLong(resultSet.getColumnIndex("id")) const name = resultSet.getString(resultSet.getColumnIndex("name")) const age = resultSet.getLong(resultSet.getColumnIndex("age")) const salary = resultSet.getDouble(resultSet.getColumnIndex("salary")) const blobType = resultSet.getBlob(resultSet.getColumnIndex("blobType")) - console.log(TAG + "id=" + id + ", name=" + name + ", age=" + age + ", salary=" + salary + ", blobType=" + blobType); + console.info(TAG + "id=" + id + ", name=" + name + ", age=" + age + ", salary=" + salary + ", blobType=" + blobType); expect(1).assertEqual(id); expect("zhangsan").assertEqual(name) expect(18).assertEqual(age) @@ -106,11 +106,11 @@ describe('rdbStoreInsertTest_insert2', function () { expect(3).assertEqual(blobType[2]) expect(false).assertEqual(resultSet.goToNextRow()) } catch (e) { - console.log("insert1 error " + e); + console.info("insert1 error " + e); } resultSet = null done() - console.log(TAG + "************* testRdbStoreInsert0001 end *************"); + console.info(TAG + "************* testRdbStoreInsert0001 end *************"); }) /** @@ -119,7 +119,7 @@ describe('rdbStoreInsertTest_insert2', function () { * @tc.desc rdb insert test */ it('testRdbStoreInsert0002', 0, async function (done) { - console.log(TAG + "************* testRdbStoreInsert0002 start *************"); + console.info(TAG + "************* testRdbStoreInsert0002 start *************"); var u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -131,14 +131,14 @@ describe('rdbStoreInsertTest_insert2', function () { let insertPromise = rdbStore.insert("wrong", valueBucket) insertPromise.then(async (ret) => { expect(1).assertEqual(ret) - console.log(TAG + "insert first done: " + ret) + console.info(TAG + "insert first done: " + ret) expect(null).assertFail() }).catch((err) => { - console.log(TAG + "insert with wrong table") + console.info(TAG + "insert with wrong table") }) } done() - console.log(TAG + "************* testRdbStoreInsert0002 end *************"); + console.info(TAG + "************* testRdbStoreInsert0002 end *************"); }) /** @@ -147,7 +147,7 @@ describe('rdbStoreInsertTest_insert2', function () { * @tc.desc rdb insert test */ it('testRdbStoreInsert0003', 0, async function (done) { - console.log(TAG + "************* testRdbStoreInsert0003 start *************"); + console.info(TAG + "************* testRdbStoreInsert0003 start *************"); var u8 = new Uint8Array([1, 2, 3]) { const valueBucket = { @@ -159,14 +159,14 @@ describe('rdbStoreInsertTest_insert2', function () { let insertPromise = rdbStore.insert(null, valueBucket) insertPromise.then(async (ret) => { expect(1).assertEqual(ret) - console.log(TAG + "insert first done: " + ret) + console.info(TAG + "insert first done: " + ret) expect(null).assertFail() }).catch((err) => { - console.log(TAG + "insert with null table") + console.info(TAG + "insert with null table") }) } done() - console.log(TAG + "************* testRdbStoreInsert0003 end *************"); + console.info(TAG + "************* testRdbStoreInsert0003 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJoinJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJoinJsunit.test.js index c55574ef8e39b0e7749166d8ffbf8c56858efa88..fdd9670c1caabf19574803df5b9f7fd5d0c59aa2 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJoinJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJoinJsunit.test.js @@ -109,7 +109,7 @@ describe('rdbStorePredicatesJoinTest', function () { console.info(TAG + 'generateBookTable end') } - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name: testRdbJoin001 @@ -117,7 +117,7 @@ describe('rdbStorePredicatesJoinTest', function () { * @tc.desc: sql query inner join test */ it('testRdbJoin001', 0, async function (done) { - console.log(TAG + "testRdbJoin001 begin."); + console.info(TAG + "testRdbJoin001 begin."); let resultSet = await rdbStore.querySql( "SELECT * FROM user INNER JOIN Book ON user.userId = Book.id WHERE Book.name = 'sanguo'") @@ -140,7 +140,7 @@ describe('rdbStorePredicatesJoinTest', function () { * @tc.desc: sql query cross join test */ it('testRdbJoin002', 0, async function (done) { - console.log(TAG + "testRdbJoin002 begin."); + console.info(TAG + "testRdbJoin002 begin."); let resultSet = await rdbStore.querySql("" + "SELECT * FROM user CROSS JOIN Book USING(userId) WHERE Book.name = 'sanguo'"); @@ -165,7 +165,7 @@ describe('rdbStorePredicatesJoinTest', function () { * @tc.desc: sql query left outer join test */ it('testRdbJoin003', 0, async function (done) { - console.log(TAG + "testRdbJoin003 begin."); + console.info(TAG + "testRdbJoin003 begin."); let resultSet = await rdbStore.querySql("" + "SELECT * FROM user LEFT OUTER JOIN Book USING(userId) WHERE Book.name = 'sanguo'"); @@ -182,5 +182,5 @@ describe('rdbStorePredicatesJoinTest', function () { done(); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJsunit.test.js index 038bdcf4404e1a8208c75aedd9e5d8f8f520ff4d..8d4832f939ac1e8b011507d882fc4dfb41eda3b3 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJsunit.test.js @@ -66,7 +66,7 @@ describe('rdbPredicatesTest', function () { } async function buildAllDataType1() { - console.log(TAG + "buildAllDataType1 start"); + console.info(TAG + "buildAllDataType1 start"); { var u8 = new Uint8Array([1, 2, 3]) const valueBucket = { @@ -86,7 +86,7 @@ describe('rdbPredicatesTest', function () { } async function buildAllDataType2() { - console.log(TAG + "buildAllDataType2 start"); + console.info(TAG + "buildAllDataType2 start"); { var u8 = new Uint8Array([1, 2, 3]) const valueBucket = { @@ -106,7 +106,7 @@ describe('rdbPredicatesTest', function () { } async function buildAllDataType3() { - console.log(TAG + "buildAllDataType3 start"); + console.info(TAG + "buildAllDataType3 start"); { var u8 = new Uint8Array([1, 2, 3]) const valueBucket = { @@ -125,7 +125,7 @@ describe('rdbPredicatesTest', function () { } } - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name predicates equalTo normal test @@ -133,7 +133,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testEqualTo0001 start *************"); + console.info(TAG + "************* testEqualTo0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); { predicates.equalTo("booleanValue", true); @@ -142,7 +142,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0001 end *************"); + console.info(TAG + "************* testEqualTo0001 end *************"); }) /** @@ -151,7 +151,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testEqualTo0002 start *************"); + console.info(TAG + "************* testEqualTo0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("byteValue", -128).or().equalTo("byteValue", 1); @@ -160,7 +160,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0002 end *************"); + console.info(TAG + "************* testEqualTo0002 end *************"); }) /** @@ -169,7 +169,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testEqualTo0003 start *************"); + console.info(TAG + "************* testEqualTo0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN"); @@ -178,7 +178,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0003 end *************"); + console.info(TAG + "************* testEqualTo0003 end *************"); }) /** @@ -187,7 +187,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testEqualTo0004 start *************"); + console.info(TAG + "************* testEqualTo0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("doubleValue", DOUBLE_MAX); @@ -196,7 +196,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0004 end *************"); + console.info(TAG + "************* testEqualTo0004 end *************"); }) /** @@ -205,7 +205,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0005', 0, async function (done) { - console.log(TAG + "************* testEqualTo0005 start *************"); + console.info(TAG + "************* testEqualTo0005 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("shortValue", -32768.0); @@ -214,7 +214,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0005 end *************"); + console.info(TAG + "************* testEqualTo0005 end *************"); }) /** @@ -223,7 +223,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0006', 0, async function (done) { - console.log(TAG + "************* testEqualTo0006 start *************"); + console.info(TAG + "************* testEqualTo0006 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("integerValue", 1); @@ -232,7 +232,7 @@ describe('rdbPredicatesTest', function () { expect(2).assertEqual(result.getLong(0)); } done(); - console.log(TAG + "************* testEqualTo0006 end *************"); + console.info(TAG + "************* testEqualTo0006 end *************"); }) /** @@ -241,7 +241,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0007', 0, async function (done) { - console.log(TAG + "************* testEqualTo0007 start *************"); + console.info(TAG + "************* testEqualTo0007 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("longValue", 1); @@ -250,7 +250,7 @@ describe('rdbPredicatesTest', function () { expect(2).assertEqual(result.getLong(0)) } done(); - console.log(TAG + "************* testEqualTo0007 end *************"); + console.info(TAG + "************* testEqualTo0007 end *************"); }) /** @@ -259,7 +259,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates equalTo normal test */ it('testEqualTo0008', 0, async function (done) { - console.log(TAG + "************* testEqualTo0008 start *************"); + console.info(TAG + "************* testEqualTo0008 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("floatValue", -0.123); @@ -269,7 +269,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testEqualTo0008 end *************"); + console.info(TAG + "************* testEqualTo0008 end *************"); }) /** @@ -278,7 +278,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0001 start *************"); + console.info(TAG + "************* testNotEqualTo0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("booleanValue", true); @@ -287,7 +287,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0001 end *************"); + console.info(TAG + "************* testNotEqualTo0001 end *************"); }) /** @@ -296,7 +296,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0002 start *************"); + console.info(TAG + "************* testNotEqualTo0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("byteValue", -128); @@ -306,7 +306,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0002 end *************"); + console.info(TAG + "************* testNotEqualTo0002 end *************"); }) /** @@ -315,7 +315,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0003 start *************"); + console.info(TAG + "************* testNotEqualTo0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("stringValue", "ABCDEFGHIJKLMN"); @@ -324,7 +324,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0003 end *************"); + console.info(TAG + "************* testNotEqualTo0003 end *************"); }) /** @@ -333,7 +333,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0004 start *************"); + console.info(TAG + "************* testNotEqualTo0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("doubleValue", DOUBLE_MAX); @@ -342,7 +342,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0004 end *************"); + console.info(TAG + "************* testNotEqualTo0004 end *************"); }) /** @@ -351,7 +351,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0005', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0005 start *************"); + console.info(TAG + "************* testNotEqualTo0005 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("shortValue", -32768); @@ -360,7 +360,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0005 end *************"); + console.info(TAG + "************* testNotEqualTo0005 end *************"); }) /** @@ -369,7 +369,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0006', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0006 start *************"); + console.info(TAG + "************* testNotEqualTo0006 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("integerValue", 1); @@ -378,7 +378,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0006 end *************"); + console.info(TAG + "************* testNotEqualTo0006 end *************"); }) /** @@ -387,7 +387,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0007', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0007 start *************"); + console.info(TAG + "************* testNotEqualTo0007 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("longValue", 1); @@ -396,7 +396,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0007 end *************"); + console.info(TAG + "************* testNotEqualTo0007 end *************"); }) /** @@ -405,7 +405,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates notEqualTo normal test */ it('testNotEqualTo0008', 0, async function (done) { - console.log(TAG + "************* testNotEqualTo0008 start *************"); + console.info(TAG + "************* testNotEqualTo0008 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notEqualTo("floatValue", -0.123); @@ -414,7 +414,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotEqualTo0008 end *************"); + console.info(TAG + "************* testNotEqualTo0008 end *************"); }) /** @@ -423,14 +423,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNull normal test */ it('testIsNull0001', 0, async function (done) { - console.log(TAG + "************* testIsNull001 start *************"); + console.info(TAG + "************* testIsNull001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNull("primLongValue"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0001 end *************"); + console.info(TAG + "************* testIsNull0001 end *************"); }) /** @@ -439,14 +439,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNull normal test */ it('testIsNull0002', 0, async function (done) { - console.log(TAG + "************* testIsNull0002 start *************"); + console.info(TAG + "************* testIsNull0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNull("longValue"); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0002 end *************"); + console.info(TAG + "************* testIsNull0002 end *************"); }) /** @@ -455,14 +455,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNull normal test */ it('testIsNull0003', 0, async function (done) { - console.log(TAG + "************* testIsNull0003 start *************"); + console.info(TAG + "************* testIsNull0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNull("stringValue"); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0003 end *************"); + console.info(TAG + "************* testIsNull0003 end *************"); }) /** @@ -471,14 +471,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNull normal test */ it('testIsNull0004', 0, async function (done) { - console.log(TAG + "************* testIsNull0004 start *************"); + console.info(TAG + "************* testIsNull0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNull("stringValueX"); let result = await rdbStore.query(predicates); expect(-1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNull0004 end *************"); + console.info(TAG + "************* testIsNull0004 end *************"); }) /** @@ -487,14 +487,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0001', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0001 start *************"); + console.info(TAG + "************* testIsNotNull0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNotNull("primLongValue"); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0001 end *************"); + console.info(TAG + "************* testIsNotNull0001 end *************"); }) /** @@ -503,14 +503,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0002', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0002 start *************"); + console.info(TAG + "************* testIsNotNull0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNotNull("longValue"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0002 end *************"); + console.info(TAG + "************* testIsNotNull0002 end *************"); }) /** @@ -519,14 +519,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0003', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0003 start *************"); + console.info(TAG + "************* testIsNotNull0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNotNull("stringValue"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0003 end *************"); + console.info(TAG + "************* testIsNotNull0003 end *************"); }) /** @@ -535,14 +535,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates isNotNull normal test */ it('testIsNotNull0004', 0, async function (done) { - console.log(TAG + "************* testIsNotNull0004 start *************"); + console.info(TAG + "************* testIsNotNull0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.isNotNull("stringValueX"); let result = await rdbStore.query(predicates); expect(-1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIsNotNull0004 end *************"); + console.info(TAG + "************* testIsNotNull0004 end *************"); }) /** @@ -551,7 +551,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0001', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0001 start *************"); + console.info(TAG + "************* testGreaterThan0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("stringValue", "ABC"); @@ -560,7 +560,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0001 end *************"); + console.info(TAG + "************* testGreaterThan0001 end *************"); }) /** @@ -569,7 +569,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0002', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0002 start *************"); + console.info(TAG + "************* testGreaterThan0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("doubleValue", 0.0); @@ -578,7 +578,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0002 end *************"); + console.info(TAG + "************* testGreaterThan0002 end *************"); }) /** @@ -587,7 +587,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0003', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0003 start *************"); + console.info(TAG + "************* testGreaterThan0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("integerValue", 1); @@ -596,7 +596,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0003 end *************"); + console.info(TAG + "************* testGreaterThan0003 end *************"); }) /** @@ -605,7 +605,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0004', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0004 start *************"); + console.info(TAG + "************* testGreaterThan0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("longValue", 1); @@ -614,7 +614,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0004 end *************"); + console.info(TAG + "************* testGreaterThan0004 end *************"); }) /** @@ -623,7 +623,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0005', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0005 start *************"); + console.info(TAG + "************* testGreaterThan0005 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("stringValue", "ZZZ"); @@ -632,7 +632,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0005 end *************"); + console.info(TAG + "************* testGreaterThan0005 end *************"); }) /** @@ -641,7 +641,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0006', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0006 start *************"); + console.info(TAG + "************* testGreaterThan0006 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("doubleValue", 999.0); @@ -650,7 +650,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0006 end *************"); + console.info(TAG + "************* testGreaterThan0006 end *************"); }) /** @@ -659,7 +659,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0007', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0007 start *************"); + console.info(TAG + "************* testGreaterThan0007 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("integerValue", -999); @@ -668,7 +668,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0007 end *************"); + console.info(TAG + "************* testGreaterThan0007 end *************"); }) /** @@ -677,7 +677,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThan normal test */ it('testGreaterThan0008', 0, async function (done) { - console.log(TAG + "************* testGreaterThan0008 start *************"); + console.info(TAG + "************* testGreaterThan0008 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThan("longValue", -999); @@ -686,7 +686,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThan0008 end *************"); + console.info(TAG + "************* testGreaterThan0008 end *************"); }) /** @@ -695,7 +695,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0001 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThanOrEqualTo("stringValue", "ABC"); @@ -704,7 +704,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0001 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0001 end *************"); }) /** @@ -713,7 +713,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0002 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThanOrEqualTo("doubleValue", 0.0); @@ -722,7 +722,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0002 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0002 end *************"); }) /** @@ -731,7 +731,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0003 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThanOrEqualTo("integerValue", 1); @@ -740,7 +740,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0003 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0003 end *************"); }) /** @@ -749,7 +749,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates greaterThanOrEqualTo normal test */ it('testGreaterThanOrEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testGreaterThanOrEqualTo0004 start *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.greaterThanOrEqualTo("longValue", 1); @@ -758,7 +758,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGreaterThanOrEqualTo0004 end *************"); + console.info(TAG + "************* testGreaterThanOrEqualTo0004 end *************"); }) /** @@ -767,7 +767,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0001', 0, async function (done) { - console.log(TAG + "************* testLessThan0001 start *************"); + console.info(TAG + "************* testLessThan0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("stringValue", "ABD"); @@ -776,7 +776,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0001 end *************"); + console.info(TAG + "************* testLessThan0001 end *************"); }) /** @@ -785,7 +785,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0002', 0, async function (done) { - console.log(TAG + "************* testLessThan0002 start *************"); + console.info(TAG + "************* testLessThan0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("doubleValue", 0.0); @@ -794,7 +794,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0002 end *************"); + console.info(TAG + "************* testLessThan0002 end *************"); }) /** @@ -803,7 +803,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0003', 0, async function (done) { - console.log(TAG + "************* testLessThan0003 start *************"); + console.info(TAG + "************* testLessThan0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("integerValue", 1); @@ -812,7 +812,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0003 end *************"); + console.info(TAG + "************* testLessThan0003 end *************"); }) /** @@ -821,7 +821,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0004', 0, async function (done) { - console.log(TAG + "************* testLessThan0004 start *************"); + console.info(TAG + "************* testLessThan0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("longValue", 1); @@ -830,7 +830,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0004 end *************"); + console.info(TAG + "************* testLessThan0004 end *************"); }) /** @@ -839,7 +839,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0005', 0, async function (done) { - console.log(TAG + "************* testLessThan0005 start *************"); + console.info(TAG + "************* testLessThan0005 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("stringValue", "ABD"); @@ -848,7 +848,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0005 end *************"); + console.info(TAG + "************* testLessThan0005 end *************"); }) /** @@ -857,7 +857,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0006', 0, async function (done) { - console.log(TAG + "************* testLessThan0006 start *************"); + console.info(TAG + "************* testLessThan0006 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("doubleValue", 1.0); @@ -866,7 +866,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0006 end *************"); + console.info(TAG + "************* testLessThan0006 end *************"); }) /** @@ -875,7 +875,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0007', 0, async function (done) { - console.log(TAG + "************* testLessThan0007 start *************"); + console.info(TAG + "************* testLessThan0007 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("integerValue", -2147483648); @@ -884,7 +884,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0007 end *************"); + console.info(TAG + "************* testLessThan0007 end *************"); }) /** @@ -893,7 +893,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThan normal test */ it('testLessThan0008', 0, async function (done) { - console.log(TAG + "************* testLessThan0008 start *************"); + console.info(TAG + "************* testLessThan0008 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThan("longValue", -9223372036854775808); @@ -902,7 +902,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThan0008 end *************"); + console.info(TAG + "************* testLessThan0008 end *************"); }) /** @@ -911,7 +911,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0001', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0001 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThanOrEqualTo("stringValue", "ABD"); @@ -920,7 +920,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0001 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0001 end *************"); }) /** @@ -929,7 +929,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0002', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0002 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThanOrEqualTo("doubleValue", 0.0); @@ -938,7 +938,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0002 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0002 end *************"); }) /** @@ -947,7 +947,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0003', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0003 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThanOrEqualTo("integerValue", 1); @@ -956,7 +956,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0003 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0003 end *************"); }) /** @@ -965,7 +965,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates lessThanOrEqualTo normal test */ it('testLessThanOrEqualTo0004', 0, async function (done) { - console.log(TAG + "************* testLessThanOrEqualTo0004 start *************"); + console.info(TAG + "************* testLessThanOrEqualTo0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.lessThanOrEqualTo("longValue", 1); @@ -974,7 +974,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testLessThanOrEqualTo0004 end *************"); + console.info(TAG + "************* testLessThanOrEqualTo0004 end *************"); }) /** @@ -983,7 +983,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0001', 0, async function (done) { - console.log(TAG + "************* testBetween0001 start *************"); + console.info(TAG + "************* testBetween0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("stringValue", "ABB", "ABD"); @@ -992,7 +992,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0001 end *************"); + console.info(TAG + "************* testBetween0001 end *************"); }) /** @@ -1001,7 +1001,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0002', 0, async function (done) { - console.log(TAG + "************* testBetween0002 start *************"); + console.info(TAG + "************* testBetween0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("doubleValue", 0.0, DOUBLE_MAX); @@ -1010,7 +1010,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0002 end *************"); + console.info(TAG + "************* testBetween0002 end *************"); }) /** @@ -1019,7 +1019,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0003', 0, async function (done) { - console.log(TAG + "************* testBetween0003 start *************"); + console.info(TAG + "************* testBetween0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("integerValue", 0, 1); @@ -1028,7 +1028,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0003 end *************"); + console.info(TAG + "************* testBetween0003 end *************"); }) /** @@ -1037,7 +1037,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0004', 0, async function (done) { - console.log(TAG + "************* testBetween0004 start *************"); + console.info(TAG + "************* testBetween0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("longValue", 0, 2); @@ -1046,7 +1046,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0004 end *************"); + console.info(TAG + "************* testBetween0004 end *************"); }) /** @@ -1055,7 +1055,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0005', 0, async function (done) { - console.log(TAG + "************* testBetween0005 start *************"); + console.info(TAG + "************* testBetween0005 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("stringValue", "ABB", "ABB"); @@ -1064,7 +1064,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0005 end *************"); + console.info(TAG + "************* testBetween0005 end *************"); }) /** @@ -1073,7 +1073,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0006', 0, async function (done) { - console.log(TAG + "************* testBetween0006 start *************"); + console.info(TAG + "************* testBetween0006 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("doubleValue", DOUBLE_MAX, DOUBLE_MAX); @@ -1082,7 +1082,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0006 end *************"); + console.info(TAG + "************* testBetween0006 end *************"); }) /** @@ -1091,7 +1091,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0007', 0, async function (done) { - console.log(TAG + "************* testBetween0007 start *************"); + console.info(TAG + "************* testBetween0007 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("integerValue", 1, 0); @@ -1100,7 +1100,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0007 end *************"); + console.info(TAG + "************* testBetween0007 end *************"); }) /** @@ -1109,7 +1109,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates between normal test */ it('testBetween0008', 0, async function (done) { - console.log(TAG + "************* testBetween0008 start *************"); + console.info(TAG + "************* testBetween0008 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.between("longValue", 2, -1); @@ -1118,7 +1118,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBetween0008 end *************"); + console.info(TAG + "************* testBetween0008 end *************"); }) /** @@ -1127,7 +1127,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc test string value with notBetween. */ it('testNotBetween0001', 0, async function (done) { - console.log(TAG + "************* testNotBetween0001 start *************"); + console.info(TAG + "************* testNotBetween0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notBetween("stringValue", "ABB", "ABD"); @@ -1137,7 +1137,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0001 end *************"); + console.info(TAG + "************* testNotBetween0001 end *************"); }) /** @@ -1146,7 +1146,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc test double value with notBetween. */ it('testNotBetween0002', 0, async function (done) { - console.log(TAG + "************* testNotBetween0002 start *************"); + console.info(TAG + "************* testNotBetween0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notBetween("doubleValue", 0.0, DOUBLE_MAX); @@ -1156,7 +1156,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0002 end *************"); + console.info(TAG + "************* testNotBetween0002 end *************"); }) /** @@ -1165,7 +1165,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc test integer value with notBetween. */ it('testNotBetween0003', 0, async function (done) { - console.log(TAG + "************* testNotBetween0003 start *************"); + console.info(TAG + "************* testNotBetween0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notBetween("integerValue", 0, 1); @@ -1175,7 +1175,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0003 end *************"); + console.info(TAG + "************* testNotBetween0003 end *************"); }) /** @@ -1184,7 +1184,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc test long value with notBetween. */ it('testNotBetween0004', 0, async function (done) { - console.log(TAG + "************* testNotBetween0004 start *************"); + console.info(TAG + "************* testNotBetween0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notBetween("longValue", 0, 2); @@ -1194,7 +1194,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testNotBetween0004 end *************"); + console.info(TAG + "************* testNotBetween0004 end *************"); }) /** @@ -1203,7 +1203,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc end with ? by glob. */ it('testGlob0001', 0, async function (done) { - console.log(TAG + "************* testGlob0001 start *************"); + console.info(TAG + "************* testGlob0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.glob("stringValue", "ABC*"); @@ -1213,7 +1213,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0001 end *************"); + console.info(TAG + "************* testGlob0001 end *************"); }) /** @@ -1222,7 +1222,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc begin with * by glob. */ it('testGlob0002', 0, async function (done) { - console.log(TAG + "************* testGlob0002 start *************"); + console.info(TAG + "************* testGlob0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.glob("stringValue", "*LMN"); @@ -1232,7 +1232,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0002 end *************"); + console.info(TAG + "************* testGlob0002 end *************"); }) /** @@ -1241,7 +1241,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc end with ? by glob. */ it('testGlob0003', 0, async function (done) { - console.log(TAG + "************* testGlob0003 start *************"); + console.info(TAG + "************* testGlob0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.glob("stringValue", "ABCDEFGHIJKLM?"); @@ -1251,7 +1251,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0003 end *************"); + console.info(TAG + "************* testGlob0003 end *************"); }) /** @@ -1260,7 +1260,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc begin with ? by glob. */ it('testGlob0004', 0, async function (done) { - console.log(TAG + "************* testGlob0004 start *************"); + console.info(TAG + "************* testGlob0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.glob("stringValue", "?BCDEFGHIJKLMN"); @@ -1270,7 +1270,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0004 end *************"); + console.info(TAG + "************* testGlob0004 end *************"); }) /** @@ -1279,7 +1279,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc begin and end with * by glob. */ it('testGlob0005', 0, async function (done) { - console.log(TAG + "************* testGlob0005 start *************"); + console.info(TAG + "************* testGlob0005 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.glob("stringValue", "*FGHI*"); @@ -1289,7 +1289,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0005 end *************"); + console.info(TAG + "************* testGlob0005 end *************"); }) /** @@ -1298,7 +1298,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc begin and end with ? by glob. */ it('testGlob0006', 0, async function (done) { - console.log(TAG + "************* testGlob0006 start *************"); + console.info(TAG + "************* testGlob0006 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.glob("stringValue", "?BCDEFGHIJKLM?"); @@ -1308,7 +1308,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testGlob0006 end *************"); + console.info(TAG + "************* testGlob0006 end *************"); }) /** @@ -1317,14 +1317,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0001', 0, async function (done) { - console.log(TAG + "************* testContains0001 start *************"); + console.info(TAG + "************* testContains0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.contains("stringValue", "DEF"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0001 end *************"); + console.info(TAG + "************* testContains0001 end *************"); }) /** @@ -1333,14 +1333,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0002', 0, async function (done) { - console.log(TAG + "************* testContains0002 start *************"); + console.info(TAG + "************* testContains0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.contains("stringValue", "DEFX"); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0002 end *************"); + console.info(TAG + "************* testContains0002 end *************"); }) /** @@ -1349,14 +1349,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0003', 0, async function (done) { - console.log(TAG + "************* testContains0003 start *************"); + console.info(TAG + "************* testContains0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.contains("characterValue", "中"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0003 end *************"); + console.info(TAG + "************* testContains0003 end *************"); }) /** @@ -1365,14 +1365,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates contains normal test */ it('testContains0004', 0, async function (done) { - console.log(TAG + "************* testContains0004 start *************"); + console.info(TAG + "************* testContains0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.contains("characterValue", "#"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testContains0004 end *************"); + console.info(TAG + "************* testContains0004 end *************"); }) /** @@ -1381,14 +1381,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0001', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0001 start *************"); + console.info(TAG + "************* testBeginsWith0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.beginsWith("stringValue", "ABC"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0001 end *************"); + console.info(TAG + "************* testBeginsWith0001 end *************"); }) /** @@ -1397,14 +1397,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0002', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0002 start *************"); + console.info(TAG + "************* testBeginsWith0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.beginsWith("stringValue", "ABCX"); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0002 end *************"); + console.info(TAG + "************* testBeginsWith0002 end *************"); }) /** @@ -1413,14 +1413,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0003', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0003 start *************"); + console.info(TAG + "************* testBeginsWith0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.beginsWith("characterValue", "中"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0003 end *************"); + console.info(TAG + "************* testBeginsWith0003 end *************"); }) /** @@ -1429,14 +1429,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginsWith normal test */ it('testBeginsWith0004', 0, async function (done) { - console.log(TAG + "************* testBeginsWith0004 start *************"); + console.info(TAG + "************* testBeginsWith0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.beginsWith("characterValue", "#"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testBeginsWith0004 end *************"); + console.info(TAG + "************* testBeginsWith0004 end *************"); }) /** @@ -1445,14 +1445,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0001', 0, async function (done) { - console.log(TAG + "************* testEndsWith0001 start *************"); + console.info(TAG + "************* testEndsWith0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.endsWith("stringValue", "LMN"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0001 end *************"); + console.info(TAG + "************* testEndsWith0001 end *************"); }) /** @@ -1461,14 +1461,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0002', 0, async function (done) { - console.log(TAG + "************* testEndsWith0002 start *************"); + console.info(TAG + "************* testEndsWith0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.endsWith("stringValue", "LMNX"); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0002 end *************"); + console.info(TAG + "************* testEndsWith0002 end *************"); }) /** @@ -1477,14 +1477,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0003', 0, async function (done) { - console.log(TAG + "************* testEndsWith0003 start *************"); + console.info(TAG + "************* testEndsWith0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.endsWith("characterValue", "中"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0003 end *************"); + console.info(TAG + "************* testEndsWith0003 end *************"); }) /** @@ -1493,14 +1493,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates endsWith normal test */ it('testEndsWith0004', 0, async function (done) { - console.log(TAG + "************* testEndsWith0004 start *************"); + console.info(TAG + "************* testEndsWith0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.endsWith("characterValue", "#"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testEndsWith0004 end *************"); + console.info(TAG + "************* testEndsWith0004 end *************"); }) /** @@ -1509,14 +1509,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0001', 0, async function (done) { - console.log(TAG + "************* testLike0001 start *************"); + console.info(TAG + "************* testLike0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "%LMN%"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0001 end *************"); + console.info(TAG + "************* testLike0001 end *************"); }) /** @@ -1525,14 +1525,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0002', 0, async function (done) { - console.log(TAG + "************* testLike0002 start *************"); + console.info(TAG + "************* testLike0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "%LMNX%"); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0002 end *************"); + console.info(TAG + "************* testLike0002 end *************"); }) /** @@ -1541,14 +1541,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0003', 0, async function (done) { - console.log(TAG + "************* testLike0003 start *************"); + console.info(TAG + "************* testLike0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("characterValue", "%中%"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0003 end *************"); + console.info(TAG + "************* testLike0003 end *************"); }) /** @@ -1557,14 +1557,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates like normal test */ it('testLike0004', 0, async function (done) { - console.log(TAG + "************* testLike0004 start *************"); + console.info(TAG + "************* testLike0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("characterValue", "%#%"); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLike0004 end *************"); + console.info(TAG + "************* testLike0004 end *************"); }) /** @@ -1573,7 +1573,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0001', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0001 start *************"); + console.info(TAG + "************* testBeginWrap0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1587,7 +1587,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0001 end *************"); + console.info(TAG + "************* testBeginWrap0001 end *************"); }) /** @@ -1596,7 +1596,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0002', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0002 start *************"); + console.info(TAG + "************* testBeginWrap0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1608,7 +1608,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0002 end *************"); + console.info(TAG + "************* testBeginWrap0002 end *************"); }) /** @@ -1617,7 +1617,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0003', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0003 start *************"); + console.info(TAG + "************* testBeginWrap0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1629,7 +1629,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0003 end *************"); + console.info(TAG + "************* testBeginWrap0003 end *************"); }) /** @@ -1638,7 +1638,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0004', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0004 start *************"); + console.info(TAG + "************* testBeginWrap0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1649,7 +1649,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0004 end *************"); + console.info(TAG + "************* testBeginWrap0004 end *************"); }) /** @@ -1658,7 +1658,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates beginWrap normal test */ it('testBeginWrap0005', 0, async function (done) { - console.log(TAG + "************* testBeginWrap0005 start *************"); + console.info(TAG + "************* testBeginWrap0005 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1669,7 +1669,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testBeginWrap0005 end *************"); + console.info(TAG + "************* testBeginWrap0005 end *************"); }) /** @@ -1678,7 +1678,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates and normal test */ it('testAnd0001', 0, async function (done) { - console.log(TAG + "************* testAnd0001 start *************"); + console.info(TAG + "************* testAnd0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1689,7 +1689,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testAnd0001 end *************"); + console.info(TAG + "************* testAnd0001 end *************"); }) /** @@ -1698,7 +1698,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates or normal test */ it('testAnd0002', 0, async function (done) { - console.log(TAG + "************* testAnd0002 start *************"); + console.info(TAG + "************* testAnd0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN") @@ -1712,7 +1712,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testAnd0002 end *************"); + console.info(TAG + "************* testAnd0002 end *************"); }) /** @@ -1721,14 +1721,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates and normal test */ it('testAnd0003', 0, async function (done) { - console.log(TAG + "************* testAnd0003 start *************"); + console.info(TAG + "************* testAnd0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN").or().and().equalTo("integerValue", 1); - console.log(TAG + "you should not start a request" + " with \"and\" or use or() before this function"); + console.info(TAG + "you should not start a request" + " with \"and\" or use or() before this function"); } done(); - console.log(TAG + "************* testAnd0003 end *************"); + console.info(TAG + "************* testAnd0003 end *************"); }) /** @@ -1737,15 +1737,15 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates and normal test */ it('testAnd0004', 0, async function (done) { - console.log(TAG + "************* testAnd0004 start *************"); + console.info(TAG + "************* testAnd0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN").or().or().equalTo("integerValue", 1); - console.log(TAG + "you are starting a sql request with predicate or or," + console.info(TAG + "you are starting a sql request with predicate or or," + "using function or() immediately after another or(). that is ridiculous."); } done(); - console.log(TAG + "************* testAnd0004 end *************"); + console.info(TAG + "************* testAnd0004 end *************"); }) /** @@ -1754,7 +1754,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0001', 0, async function (done) { - console.log(TAG + "************* testOrder0001 start *************"); + console.info(TAG + "************* testOrder0001 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByAsc("integerValue").distinct(); @@ -1769,7 +1769,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0001 end *************"); + console.info(TAG + "************* testOrder0001 end *************"); }) /** @@ -1778,7 +1778,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0002', 0, async function (done) { - console.log(TAG + "************* testOrder0002 start *************"); + console.info(TAG + "************* testOrder0002 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByDesc("integerValue").distinct(); @@ -1793,7 +1793,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0002 end *************"); + console.info(TAG + "************* testOrder0002 end *************"); }) /** @@ -1802,7 +1802,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0003', 0, async function (done) { - console.log(TAG + "************* testOrder0003 start *************"); + console.info(TAG + "************* testOrder0003 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByDesc("integerValueX").distinct(); @@ -1811,7 +1811,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0003 end *************"); + console.info(TAG + "************* testOrder0003 end *************"); }) /** @@ -1820,7 +1820,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates order normal test */ it('testOrder0004', 0, async function (done) { - console.log(TAG + "************* testOrder0004 start *************"); + console.info(TAG + "************* testOrder0004 start *************"); { let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.equalTo("stringValue", "ABCDEFGHIJKLMN").orderByAsc("integerValueX").distinct(); @@ -1829,7 +1829,7 @@ describe('rdbPredicatesTest', function () { result = null } done(); - console.log(TAG + "************* testOrder0004 end *************"); + console.info(TAG + "************* testOrder0004 end *************"); }) /** @@ -1838,14 +1838,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0001', 0, async function (done) { - console.log(TAG + "************* testLimit0001 start *************"); + console.info(TAG + "************* testLimit0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(1); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0001 end *************"); + console.info(TAG + "************* testLimit0001 end *************"); }) /** @@ -1854,14 +1854,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0002', 0, async function (done) { - console.log(TAG + "************* testLimit0002 start *************"); + console.info(TAG + "************* testLimit0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0002 end *************"); + console.info(TAG + "************* testLimit0002 end *************"); }) /** @@ -1870,14 +1870,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0003', 0, async function (done) { - console.log(TAG + "************* testLimit0003 start *************"); + console.info(TAG + "************* testLimit0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(100); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0003 end *************"); + console.info(TAG + "************* testLimit0003 end *************"); }) /** @@ -1886,14 +1886,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0004', 0, async function (done) { - console.log(TAG + "************* testLimit0004 start *************"); + console.info(TAG + "************* testLimit0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "中").limitAs(1); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0004 end *************"); + console.info(TAG + "************* testLimit0004 end *************"); }) /** @@ -1902,14 +1902,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0005', 0, async function (done) { - console.log(TAG + "************* testLimit0005 start *************"); + console.info(TAG + "************* testLimit0005 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(0); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0005 end *************"); + console.info(TAG + "************* testLimit0005 end *************"); }) /** @@ -1918,14 +1918,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates limit normal test */ it('testLimit0006', 0, async function (done) { - console.log(TAG + "************* testLimit0006 start *************"); + console.info(TAG + "************* testLimit0006 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(-1); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testLimit0006 end *************"); + console.info(TAG + "************* testLimit0006 end *************"); }) /** @@ -1934,14 +1934,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0001', 0, async function (done) { - console.log(TAG + "************* testOffset0001 start *************"); + console.info(TAG + "************* testOffset0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(1); let result = await rdbStore.query(predicates); expect(2).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0001 end *************"); + console.info(TAG + "************* testOffset0001 end *************"); }) /** @@ -1950,14 +1950,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0002', 0, async function (done) { - console.log(TAG + "************* testOffset0002 start *************"); + console.info(TAG + "************* testOffset0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(0); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0002 end *************"); + console.info(TAG + "************* testOffset0002 end *************"); }) /** @@ -1966,14 +1966,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0003', 0, async function (done) { - console.log(TAG + "************* testOffset0003 start *************"); + console.info(TAG + "************* testOffset0003 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(5); let result = await rdbStore.query(predicates); expect(0).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0003 end *************"); + console.info(TAG + "************* testOffset0003 end *************"); }) /** @@ -1982,14 +1982,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates offset normal test */ it('testOffset0004', 0, async function (done) { - console.log(TAG + "************* testOffset0004 start *************"); + console.info(TAG + "************* testOffset0004 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").limitAs(3).offsetAs(-1); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testOffset0004 end *************"); + console.info(TAG + "************* testOffset0004 end *************"); }) /** @@ -1998,14 +1998,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0001', 0, async function (done) { - console.log(TAG + "************* testIn0001 start *************"); + console.info(TAG + "************* testIn0001 start *************"); var values = [Number.MIN_VALUE.toString()]; let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.in("doubleValue", values); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0001 end *************"); + console.info(TAG + "************* testIn0001 end *************"); }) /** @@ -2014,14 +2014,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0002', 0, async function (done) { - console.log(TAG + "************* testIn0002 start *************"); + console.info(TAG + "************* testIn0002 start *************"); var values = ["1.0"]; let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.in("doubleValue", values); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0002 end *************"); + console.info(TAG + "************* testIn0002 end *************"); }) /** @@ -2030,14 +2030,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0003', 0, async function (done) { - console.log(TAG + "************* testIn0003 start *************"); + console.info(TAG + "************* testIn0003 start *************"); var values = [DOUBLE_MAX.toString()]; let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.in("doubleValue", values); let result = await rdbStore.query(predicates); expect(1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0003 end *************"); + console.info(TAG + "************* testIn0003 end *************"); }) /** @@ -2046,14 +2046,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates in normal test */ it('testIn0004', 0, async function (done) { - console.log(TAG + "************* testIn0004 start *************"); + console.info(TAG + "************* testIn0004 start *************"); var values = [Number.MIN_VALUE.toString(), "1.0", DOUBLE_MAX.toString()]; let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.in("doubleValue", values); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testIn0004 end *************"); + console.info(TAG + "************* testIn0004 end *************"); }) /** @@ -2062,7 +2062,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc the common and min value test with notin. */ it('testNotIn0001', 0, async function (done) { - console.log(TAG + "************* testNotIn0001 start *************"); + console.info(TAG + "************* testNotIn0001 start *************"); var values = [1, -2147483648]; let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notIn("integerValue", values); @@ -2070,7 +2070,7 @@ describe('rdbPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result.close(); done(); - console.log(TAG + "************* testNotIn0001 end *************"); + console.info(TAG + "************* testNotIn0001 end *************"); }) /** @@ -2079,7 +2079,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc the common and max value test with notin. */ it('testNotIn0002', 0, async function (done) { - console.log(TAG + "************* testNotIn0002 start *************"); + console.info(TAG + "************* testNotIn0002 start *************"); let values = [1, 2147483647]; let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notIn("integerValue", values); @@ -2087,7 +2087,7 @@ describe('rdbPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result.close(); done(); - console.log(TAG + "************* testNotIn0002 end *************"); + console.info(TAG + "************* testNotIn0002 end *************"); }) /** @@ -2096,7 +2096,7 @@ describe('rdbPredicatesTest', function () { * @tc.desc the min and max value test with notin. */ it('testNotIn0003', 0, async function (done) { - console.log(TAG + "************* testNotIn0003 start *************"); + console.info(TAG + "************* testNotIn0003 start *************"); var values = [-2147483648, 2147483647]; let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.notIn("integerValue", values); @@ -2104,7 +2104,7 @@ describe('rdbPredicatesTest', function () { expect(1).assertEqual(result.rowCount); result.close(); done(); - console.log(TAG + "************* testNotIn0003 end *************"); + console.info(TAG + "************* testNotIn0003 end *************"); }) /** @@ -2113,12 +2113,12 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates constructor test */ it('testCreate0001', 0, async function (done) { - console.log(TAG + "************* testCreate0001 start *************"); + console.info(TAG + "************* testCreate0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testCreate0001 end *************"); + console.info(TAG + "************* testCreate0001 end *************"); }) /** @@ -2127,12 +2127,12 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates constructor test */ it('testCreate0002', 0, async function (done) { - console.log(TAG + "************* testCreate0002 start *************"); + console.info(TAG + "************* testCreate0002 start *************"); let predicates = await new dataRdb.RdbPredicates("test"); let result = await rdbStore.query(predicates); expect(-1).assertEqual(result.rowCount); done(); - console.log(TAG + "************* testCreate0002 end *************"); + console.info(TAG + "************* testCreate0002 end *************"); }) /** @@ -2141,14 +2141,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates groupBy test */ it('testGroupBy0001', 0, async function (done) { - console.log(TAG + "************* testGroupBy0001 start *************"); + console.info(TAG + "************* testGroupBy0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").groupBy(["characterValue"]); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testGroupBy0001 end *************"); + console.info(TAG + "************* testGroupBy0001 end *************"); }) /** @@ -2157,14 +2157,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates groupBy test */ it('testGroupBy0002', 0, async function (done) { - console.log(TAG + "************* testGroupBy0002 start *************"); + console.info(TAG + "************* testGroupBy0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").groupBy(["characterValueX"]); let result = await rdbStore.query(predicates); expect(-1).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testGroupBy0002 end *************"); + console.info(TAG + "************* testGroupBy0002 end *************"); }) /** @@ -2173,14 +2173,14 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates indexedBy test */ it('testIndexedBy0001', 0, async function (done) { - console.log(TAG + "************* testIndexedBy0001 start *************"); + console.info(TAG + "************* testIndexedBy0001 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").indexedBy(["characterValue"]); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIndexedBy0001 end *************"); + console.info(TAG + "************* testIndexedBy0001 end *************"); }) /** @@ -2189,15 +2189,15 @@ describe('rdbPredicatesTest', function () { * @tc.desc predicates indexedBy test */ it('testIndexedBy0002', 0, async function (done) { - console.log(TAG + "************* testIndexedBy0002 start *************"); + console.info(TAG + "************* testIndexedBy0002 start *************"); let predicates = await new dataRdb.RdbPredicates("AllDataType"); predicates.like("stringValue", "ABCDEFGHIJKLMN").indexedBy(["characterValueX"]); let result = await rdbStore.query(predicates); expect(3).assertEqual(result.rowCount); result = null done(); - console.log(TAG + "************* testIndexedBy0002 end *************"); + console.info(TAG + "************* testIndexedBy0002 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreRdbstoreJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreRdbstoreJsunit.test.js index 8b1402c895fb3452540b7957e5483cfbcbd1b5e7..2c8a450132760d028ba47af828a2ce5556881931 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreRdbstoreJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreRdbstoreJsunit.test.js @@ -41,7 +41,7 @@ describe('rdbStoreTest', function () { console.info(TAG + 'afterAll') }) - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name rdb store getRdbStore test @@ -49,11 +49,11 @@ describe('rdbStoreTest', function () { * @tc.desc rdb store getRdbStore test */ it('testRdbStore0001', 0, async function (done) { - console.log(TAG + "************* testRdbStore0001 start *************"); + console.info(TAG + "************* testRdbStore0001 start *************"); let storePromise = dataRdb.getRdbStore(STORE_CONFIG, 1); storePromise.then(async (store) => { try { - await console.log(TAG + "getRdbStore done: " + store); + await console.info(TAG + "getRdbStore done: " + store); } catch (e) { expect(null).assertFail(); } @@ -63,7 +63,7 @@ describe('rdbStoreTest', function () { await storePromise storePromise = null done(); - console.log(TAG + "************* testRdbStore0001 end *************"); + console.info(TAG + "************* testRdbStore0001 end *************"); }) /** @@ -72,11 +72,11 @@ describe('rdbStoreTest', function () { * @tc.desc rdb store getRdbStore and create table */ it('testRdbStore0002', 0, async function (done) { - console.log(TAG + "************* testRdbStore0002 start *************"); + console.info(TAG + "************* testRdbStore0002 start *************"); let storePromise = dataRdb.getRdbStore(STORE_CONFIG, 2); storePromise.then(async (store) => { try { - await console.log(TAG + "getRdbStore done: " + store); + await console.info(TAG + "getRdbStore done: " + store); await store.executeSql(CREATE_TABLE_TEST); } catch (e) { expect(null).assertFail(); @@ -87,7 +87,7 @@ describe('rdbStoreTest', function () { await storePromise storePromise = null done(); - console.log(TAG + "************* testRdbStore0002 end *************"); + console.info(TAG + "************* testRdbStore0002 end *************"); }) /** @@ -96,21 +96,21 @@ describe('rdbStoreTest', function () { * @tc.desc rdb store getRdbStore with wrong path */ it('testRdbStore0003', 0, async function (done) { - console.log(TAG + "************* testRdbStore0003 start *************"); + console.info(TAG + "************* testRdbStore0003 start *************"); let storeConfig = { name: "/wrong/rdbstore.db", } let storePromise = dataRdb.getRdbStore(storeConfig, 4); storePromise.then(async (ret) => { - await console.log(TAG + "getRdbStore done" + ret); + await console.info(TAG + "getRdbStore done" + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "getRdbStore with wrong path"); + console.info(TAG + "getRdbStore with wrong path"); }) storePromise = null done(); - console.log(TAG + "************* testRdbStore0003 end *************"); + console.info(TAG + "************* testRdbStore0003 end *************"); }) /** @@ -119,14 +119,14 @@ describe('rdbStoreTest', function () { * @tc.desc rdb store deleteRdbStore */ it('testRdbStore0004', 0, async function (done) { - console.log(TAG + "************* testRdbStore0004 start *************"); + console.info(TAG + "************* testRdbStore0004 start *************"); let storePromise = dataRdb.getRdbStore(STORE_CONFIG, 1); storePromise.then(async (store) => { try { await store.executeSql(CREATE_TABLE_TEST); let deletePromise = dataRdb.deleteRdbStore("rdbstore.db") deletePromise.then(()=>{ - console.log(TAG + "deleteRdbStore promise done" + store); + console.info(TAG + "deleteRdbStore promise done" + store); expect(true).assertTrue(); }) } catch (e) { @@ -138,7 +138,7 @@ describe('rdbStoreTest', function () { await storePromise storePromise = null done(); - console.log(TAG + "************* testRdbStore0004 end *************"); + console.info(TAG + "************* testRdbStore0004 end *************"); }) /** @@ -147,7 +147,7 @@ describe('rdbStoreTest', function () { * @tc.desc rdb store deleteRdbStore */ it('testRdbStore0005', 0, async function (done) { - console.log(TAG + "************* testRdbStore0005 start *************"); + console.info(TAG + "************* testRdbStore0005 start *************"); let storePromise = dataRdb.getRdbStore(STORE_CONFIG, 2); storePromise.then(async (store) => { @@ -155,7 +155,7 @@ describe('rdbStoreTest', function () { await store.executeSql(CREATE_TABLE_TEST); let deletePromise = dataRdb.deleteRdbStore("rdbstore.db") deletePromise.then(()=>{ - console.log(TAG + "deleteRdbStore promise done" + store); + console.info(TAG + "deleteRdbStore promise done" + store); expect(true).assertTrue(); }) } catch (e) { @@ -167,8 +167,8 @@ describe('rdbStoreTest', function () { await storePromise storePromise = null done(); - console.log(TAG + "************* testRdbStore0005 end *************"); + console.info(TAG + "************* testRdbStore0005 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreStoreExcuteSqlJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreStoreExcuteSqlJsunit.test.js index ab5ca5cebabaff0871f354ddd9b6d05c11becec0..26087ceda502489991d9066ef00e176af870ad12 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreStoreExcuteSqlJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreStoreExcuteSqlJsunit.test.js @@ -23,7 +23,7 @@ const STORE_CONFIG = { } var rdbStore = undefined; -describe('rdbStoreInsertTest_insert3', function () { +describe('rdbstoreStoreExcuteSqlTest', function () { beforeAll(async function () { console.info(TAG + 'beforeAll') rdbStore = await dataRdb.getRdbStore(STORE_CONFIG, 1); @@ -51,7 +51,7 @@ describe('rdbStoreInsertTest_insert3', function () { * @tc.desc resultSet ExcuteSql normal test */ it('ExcuteSqlTest0001', 0, async function (done) { - console.log(TAG + "************* ExcuteSqlTest0001 start *************"); + console.info(TAG + "************* ExcuteSqlTest0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) //插入 { @@ -64,7 +64,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(1).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -80,7 +80,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(2).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -96,7 +96,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(3).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -106,7 +106,7 @@ describe('rdbStoreInsertTest_insert3', function () { { let executeSqlPromise = rdbStore.executeSql("DELETE FROM test WHERE age = ? OR age = ?", ["18", "20"]) executeSqlPromise.then(async (resultSet) => { - await console.log(TAG + "executeSql done: " + resultSet); + await console.info(TAG + "executeSql done: " + resultSet); }).catch((err) => { expect(null).assertFail(); }) @@ -122,7 +122,7 @@ describe('rdbStoreInsertTest_insert3', function () { await querySqlPromise } done(); - console.log(TAG + "************* ExcuteSqlTest0001 end *************"); + console.info(TAG + "************* ExcuteSqlTest0001 end *************"); }) /** @@ -131,7 +131,7 @@ describe('rdbStoreInsertTest_insert3', function () { * @tc.desc resultSet ExcuteSql normal test */ it('ExcuteSqlTest0002', 0, async function (done) { - console.log(TAG + "************* ExcuteSqlTest0002 start *************"); + console.info(TAG + "************* ExcuteSqlTest0002 start *************"); var u8 = new Uint8Array([2, 3, 4]) //插入 { @@ -144,7 +144,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(4).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -160,7 +160,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(5).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -176,7 +176,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(6).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -185,7 +185,7 @@ describe('rdbStoreInsertTest_insert3', function () { { let executeSqlPromise = rdbStore.executeSql("DELETE FROM test WHERE name = 'lisi'") executeSqlPromise.then(async () => { - await console.log(TAG + "executeSql done"); + await console.info(TAG + "executeSql done"); }).catch((err) => { expect(null).assertFail(); }) @@ -201,7 +201,7 @@ describe('rdbStoreInsertTest_insert3', function () { await querySqlPromise } done(); - console.log(TAG + "************* ExcuteSqlTest0002 end *************"); + console.info(TAG + "************* ExcuteSqlTest0002 end *************"); }) /** @@ -210,7 +210,7 @@ describe('rdbStoreInsertTest_insert3', function () { * @tc.desc resultSet ExcuteSql normal test */ it('ExcuteSqlTest0003', 0, async function (done) { - console.log(TAG + "************* ExcuteSqlTest0003 start *************"); + console.info(TAG + "************* ExcuteSqlTest0003 start *************"); var u8 = new Uint8Array([3, 4, 5]) //插入 { @@ -223,7 +223,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(7).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -239,7 +239,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(8).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -255,7 +255,7 @@ describe('rdbStoreInsertTest_insert3', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(9).assertEqual(ret); - await console.log(TAG + "insert done: " + ret); + await console.info(TAG + "insert done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -264,14 +264,14 @@ describe('rdbStoreInsertTest_insert3', function () { { let QuerySqlPromise = rdbStore.executeSql("DROP TABLE IF EXISTS test") QuerySqlPromise.then(async (resultSet) => { - await console.log(TAG + "executeSql done: " + resultSet); + await console.info(TAG + "executeSql done: " + resultSet); }).catch((err) => { expect(null).assertFail(); }) await QuerySqlPromise } done(); - console.log(TAG + "************* ExcuteSqlTest0003 end *************"); + console.info(TAG + "************* ExcuteSqlTest0003 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js index ae4e75e857d4fe033c44c3589bdd639b395f80a3..d9d48d66b4177d0d0217876949adf9f6607fb65a 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreTransactionJsunit.test.js @@ -25,7 +25,7 @@ const STORE_CONFIG = { var rdbStore = undefined; -describe('rdbStoreInsertTest_insert4', function () { +describe('rdbstoreTransactionTest', function () { beforeAll(function () { console.info(TAG + 'beforeAll') }) @@ -47,7 +47,7 @@ describe('rdbStoreInsertTest_insert4', function () { console.info(TAG + 'afterAll') }) - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** * @tc.name rdb transaction insert test @@ -55,7 +55,7 @@ describe('rdbStoreInsertTest_insert4', function () { * @tc.desc rdb transaction insert & commit, the result comes out is 3 items; */ it('testRdbTransactionInsert0001', 0, async function (done) { - console.log(TAG + "************* testRdbStoreInsert0001 start *************"); + console.info(TAG + "************* testRdbStoreInsert0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { rdbStore.beginTransaction() @@ -71,17 +71,17 @@ describe('rdbStoreInsertTest_insert4', function () { let predicates = new dataRdb.RdbPredicates("test"); let resultSet = await rdbStore.query(predicates) - console.log(TAG + "testRdbTransactionInsert0001 result count " + resultSet.rowCount) + console.info(TAG + "testRdbTransactionInsert0001 result count " + resultSet.rowCount) expect(1).assertEqual(resultSet.rowCount) resultSet.close() // resultSet == null; } catch (e) { - console.log(TAG + e); + console.info(TAG + e); expect(null).assertFail() - console.log(TAG + "testRdbTransactionInsert0001 failed"); + console.info(TAG + "testRdbTransactionInsert0001 failed"); } done() - console.log(TAG + "************* testRdbTransactionInsert0001 end *************"); + console.info(TAG + "************* testRdbTransactionInsert0001 end *************"); }) /** @@ -90,7 +90,7 @@ describe('rdbStoreInsertTest_insert4', function () { * @tc.desc rdb transaction insert & commit, the result comes out is 3 items; */ it('testRdbTransactionInsert0002', 0, async function (done) { - console.log(TAG + "************* testRdbStoreInsert0002 start *************"); + console.info(TAG + "************* testRdbStoreInsert0002 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { await rdbStore.beginTransaction() @@ -128,10 +128,10 @@ describe('rdbStoreInsertTest_insert4', function () { // resultSet == null; } catch (e) { expect(null).assertFail() - console.log(TAG + "testRdbTransactionInsert0002 failed"); + console.info(TAG + "testRdbTransactionInsert0002 failed"); } done() - console.log(TAG + "************* testRdbTransactionInsert0002 end *************"); + console.info(TAG + "************* testRdbTransactionInsert0002 end *************"); }) @@ -142,7 +142,7 @@ describe('rdbStoreInsertTest_insert4', function () { * the result comes out is 0; */ it('testRdbTransactionInsert0003', 0, async function (done) { - console.log(TAG + "************* testRdbTransactionInsert0003 start *************"); + console.info(TAG + "************* testRdbTransactionInsert0003 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { await rdbStore.beginTransaction() @@ -178,10 +178,10 @@ describe('rdbStoreInsertTest_insert4', function () { await rdbStore.commit() } catch (e) { expect(null).assertFail() - console.log(TAG + "testRdbTransactionInsert0003 failed"); + console.info(TAG + "testRdbTransactionInsert0003 failed"); } done() - console.log(TAG + "************* testRdbTransactionInsert0003 end *************"); + console.info(TAG + "************* testRdbTransactionInsert0003 end *************"); }) /** @@ -191,7 +191,7 @@ describe('rdbStoreInsertTest_insert4', function () { * db returns an exception, we need to catch exception and rollback. */ it('testRdbTransactionRollBack0001', 0, async function (done) { - console.log(TAG + "************* testRdbTransactionRollBack0001 start *************"); + console.info(TAG + "************* testRdbTransactionRollBack0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { await rdbStore.beginTransaction() @@ -210,13 +210,13 @@ describe('rdbStoreInsertTest_insert4', function () { await rdbStore.rollBack() let predicates = new dataRdb.RdbPredicates("test"); let resultSet = await rdbStore.query(predicates) - console.log(TAG + "testRdbTransactionRollBack0001 result count " + resultSet.rowCount); + console.info(TAG + "testRdbTransactionRollBack0001 result count " + resultSet.rowCount); expect(0).assertEqual(resultSet.rowCount) resultSet.close() // resultSet == null; } done() - console.log(TAG + "************* testRdbTransactionRollBack0001 end *************"); + console.info(TAG + "************* testRdbTransactionRollBack0001 end *************"); }) /** @@ -226,7 +226,7 @@ describe('rdbStoreInsertTest_insert4', function () { * db returns an exception, we need to catch exception and rollback. */ it('testRdbTransactionMulti0001', 0, async function (done) { - console.log(TAG + "************* testRdbTransactionMulti0001 start *************"); + console.info(TAG + "************* testRdbTransactionMulti0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { await rdbStore.beginTransaction() @@ -248,7 +248,7 @@ describe('rdbStoreInsertTest_insert4', function () { } let num = rdbStore.insert("test", valueBucket1) num.then(async (ret) => { - console.log(TAG + "testRdbTransactionMulti0001 * insert result " + ret); + console.info(TAG + "testRdbTransactionMulti0001 * insert result " + ret); expect(2).assertEqual(ret) }) @@ -262,10 +262,10 @@ describe('rdbStoreInsertTest_insert4', function () { ret.close() }) } catch (e) { - console.log(TAG + "testRdbTransactionMulti0001 fail ***** "); + console.info(TAG + "testRdbTransactionMulti0001 fail ***** "); } done() - console.log(TAG + "************* testRdbTransactionMulti0001 end *************"); + console.info(TAG + "************* testRdbTransactionMulti0001 end *************"); }) /** @@ -275,7 +275,7 @@ describe('rdbStoreInsertTest_insert4', function () { * db returns an exception, we need to catch exception and rollback. */ it('testRdbTransactionMulti0002', 0, async function (done) { - console.log(TAG + "************* testRdbTransactionMulti0002 start *************"); + console.info(TAG + "************* testRdbTransactionMulti0002 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { await rdbStore.beginTransaction() @@ -299,7 +299,7 @@ describe('rdbStoreInsertTest_insert4', function () { } let num = rdbStore.insert("test", valueBucket1) num.then(async (ret) => { - console.log(TAG + "testRdbTransactionMulti0002 * insert result " + ret); + console.info(TAG + "testRdbTransactionMulti0002 * insert result " + ret); expect(2).assertEqual(ret) ret.close() }) @@ -311,15 +311,15 @@ describe('rdbStoreInsertTest_insert4', function () { let predicates = new dataRdb.RdbPredicates("test"); num = rdbStore.query(predicates) num.then(async (ret) => { - console.log(TAG + "testRdbTransactionMulti0002 * final query " + ret.rowCount); + console.info(TAG + "testRdbTransactionMulti0002 * final query " + ret.rowCount); expect(1).assertEqual(ret.rowCount) ret.close() }) } catch (e) { - console.log(TAG + "testRdbTransactionMulti0002 fail ***** "); + console.info(TAG + "testRdbTransactionMulti0002 fail ***** "); } done() - console.log(TAG + "************* testRdbTransactionMulti0002 end *************"); + console.info(TAG + "************* testRdbTransactionMulti0002 end *************"); }) /** @@ -329,7 +329,7 @@ describe('rdbStoreInsertTest_insert4', function () { * db returns an exception, we need to catch exception and rollback. */ it('testRdbTransactionMulti0003', 0, async function (done) { - console.log(TAG + "************* testRdbTransactionMulti0003 start *************"); + console.info(TAG + "************* testRdbTransactionMulti0003 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { await rdbStore.beginTransaction() @@ -361,16 +361,16 @@ describe('rdbStoreInsertTest_insert4', function () { let predicates = new dataRdb.RdbPredicates("test"); num = rdbStore.query(predicates) num.then(async (ret) => { - console.log(TAG + "testRdbTransactionMulti0003 * final query " + ret.rowCount); + console.info(TAG + "testRdbTransactionMulti0003 * final query " + ret.rowCount); expect(1).assertEqual(ret.rowCount) ret.close() }) } catch (e) { await rdbStore.rollBack() - console.log(TAG + "testRdbTransactionMulti0003 rollback ***** "); + console.info(TAG + "testRdbTransactionMulti0003 rollback ***** "); } done() - console.log(TAG + "************* testRdbTransactionMulti0003 end *************"); + console.info(TAG + "************* testRdbTransactionMulti0003 end *************"); }) /** @@ -380,7 +380,7 @@ describe('rdbStoreInsertTest_insert4', function () { * db returns an exception, we need to catch exception and rollback. */ it('testRdbTransactionDelete0001', 0, async function (done) { - console.log(TAG + "************* testRdbTransactionDelete0001 start *************"); + console.info(TAG + "************* testRdbTransactionDelete0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) try { await rdbStore.beginTransaction() @@ -416,7 +416,7 @@ describe('rdbStoreInsertTest_insert4', function () { await rdbStore.commit() } catch (e) { expect(null).assertFail() - console.log(TAG + "testRdbTransactionInsert0003 failed"); + console.info(TAG + "testRdbTransactionInsert0003 failed"); } //删除 { @@ -424,15 +424,15 @@ describe('rdbStoreInsertTest_insert4', function () { let deletePromise = rdbStore.delete(predicates) deletePromise.then(async (ret) => { expect(3).assertEqual(ret) - console.log(TAG + "Delete done: " + ret) + console.info(TAG + "Delete done: " + ret) }).catch((err) => { expect(null).assertFail() }) await deletePromise } done() - console.log(TAG + "************* testRdbTransactionDelete0001 end *************"); + console.info(TAG + "************* testRdbTransactionDelete0001 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js index 25e372c0c8f8c82877097015d22ccfc0217f0bb5..2827ba55042b4ef6dc2fab7324c48126a7d2c297 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstoreUpdateJsunit.test.js @@ -50,7 +50,7 @@ describe('rdbStoreUpdateTest', function () { * @tc.desc resultSet Update test */ it('testRdbStoreUpdate0001', 0, async function (done) { - console.log(TAG + "************* testRdbStoreUpdate0001 start *************"); + console.info(TAG + "************* testRdbStoreUpdate0001 start *************"); var u8 = new Uint8Array([1, 2, 3]) //插入 { @@ -63,7 +63,7 @@ describe('rdbStoreUpdateTest', function () { let insertPromise = rdbStore.insert("test", valueBucket) insertPromise.then(async (ret) => { expect(1).assertEqual(ret); - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); }).catch((err) => { expect(null).assertFail(); }) @@ -83,7 +83,7 @@ describe('rdbStoreUpdateTest', function () { let updatePromise = rdbStore.update(valueBucket, predicates) updatePromise.then(async (ret) => { await expect(1).assertEqual(ret); - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); let resultSet = await rdbStore.query(predicates) expect(true).assertEqual(resultSet.goToFirstRow()) @@ -100,17 +100,17 @@ describe('rdbStoreUpdateTest', function () { await expect(4).assertEqual(blobType[0]); await expect(5).assertEqual(blobType[1]); await expect(6).assertEqual(blobType[2]); - console.log(TAG + "{id=" + id + ", name=" + name + ", age=" + age + ", salary=" + salary + ", blobType=" + blobType); + console.info(TAG + "{id=" + id + ", name=" + name + ", age=" + age + ", salary=" + salary + ", blobType=" + blobType); await expect(false).assertEqual(resultSet.goToNextRow()) resultSet = null }).catch((err) => { - console.log(TAG + "update error"); + console.info(TAG + "update error"); expect(null).assertFail(); }) //await updatePromise } done(); - console.log(TAG + "************* testRdbStoreUpdate0001 end *************"); + console.info(TAG + "************* testRdbStoreUpdate0001 end *************"); }) /** @@ -119,7 +119,7 @@ describe('rdbStoreUpdateTest', function () { * @tc.desc resultSet Update test */ it('testRdbStoreUpdate0002', 0, async function (done) { - console.log(TAG + "************* testRdbStoreUpdate0002 start *************"); + console.info(TAG + "************* testRdbStoreUpdate0002 start *************"); //更新 { var u8 = new Uint8Array([1, 2, 3]) @@ -133,10 +133,10 @@ describe('rdbStoreUpdateTest', function () { let predicates = new dataRdb.RdbPredicates("") let updatePromise = rdbStore.update(valueBucket, predicates) updatePromise.then(async (ret) => { - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "update with null table name"); + console.info(TAG + "update with null table name"); }) } { @@ -144,10 +144,10 @@ describe('rdbStoreUpdateTest', function () { let predicates = await new dataRdb.RdbPredicates("test") let updatePromise = rdbStore.update(emptyBucket, predicates) updatePromise.then(async (ret) => { - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "update with wrong valueBucket"); + console.info(TAG + "update with wrong valueBucket"); }) } { @@ -155,15 +155,15 @@ describe('rdbStoreUpdateTest', function () { await predicates.equalTo("aaa", "null") let updatePromise = rdbStore.update(valueBucket, predicates) updatePromise.then(async (ret) => { - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "update with wrong condition"); + console.info(TAG + "update with wrong condition"); }) } } done(); - console.log(TAG + "************* testRdbStoreUpdate0002 end *************"); + console.info(TAG + "************* testRdbStoreUpdate0002 end *************"); }) /** @@ -172,7 +172,7 @@ describe('rdbStoreUpdateTest', function () { * @tc.desc resultSet Update test */ it('testRdbStoreUpdate0003', 0, async function (done) { - console.log(TAG + "************* testRdbStoreUpdate0003 start *************"); + console.info(TAG + "************* testRdbStoreUpdate0003 start *************"); //更新 { var u8 = new Uint8Array([1, 2, 3]) @@ -187,10 +187,10 @@ describe('rdbStoreUpdateTest', function () { let predicates = new dataRdb.RdbPredicates("wrongTable") let updatePromise = rdbStore.update(valueBucket, predicates) updatePromise.then(async (ret) => { - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "update with wrong table name"); + console.info(TAG + "update with wrong table name"); }) //await updatePromise } @@ -198,16 +198,16 @@ describe('rdbStoreUpdateTest', function () { let predicates = await new dataRdb.RdbPredicates("test") let updatePromise = rdbStore.update(valueBucket, predicates) updatePromise.then(async (ret) => { - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "update with wrong column name"); + console.info(TAG + "update with wrong column name"); }) //await updatePromise } } done(); - console.log(TAG + "************* testRdbStoreUpdate0003 end *************"); + console.info(TAG + "************* testRdbStoreUpdate0003 end *************"); }) /** @@ -216,7 +216,7 @@ describe('rdbStoreUpdateTest', function () { * @tc.desc resultSet Update test */ it('testRdbStoreUpdate0004', 0, async function (done) { - console.log(TAG + "************* testRdbStoreUpdate0004 start *************"); + console.info(TAG + "************* testRdbStoreUpdate0004 start *************"); //更新 { var u8 = new Uint8Array([1, 2, 3]) @@ -231,10 +231,10 @@ describe('rdbStoreUpdateTest', function () { await predicates.equalTo("aaa", "null") let updatePromise = rdbStore.update(valueBucket, predicates) updatePromise.then(async (ret) => { - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "update with wrong condition"); + console.info(TAG + "update with wrong condition"); }) //await updatePromise } @@ -246,16 +246,16 @@ describe('rdbStoreUpdateTest', function () { await predicates.equalTo("null", 100.5) let updatePromise = rdbStore.update(valueBucket, predicates) updatePromise.then(async (ret) => { - await console.log(TAG + "update done: " + ret); + await console.info(TAG + "update done: " + ret); expect(null).assertFail(); }).catch((err) => { - console.log(TAG + "update with wrong condition"); + console.info(TAG + "update with wrong condition"); }) } } done(); - console.log(TAG + "************* testRdbStoreUpdate0004 end *************"); + console.info(TAG + "************* testRdbStoreUpdate0004 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageCallBackJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageCallBackJsunit.test.js index 89a237e019113080681e24f2157908996dc441e4..9e3f292ca0d25b5d0907f92d780b29d44ee7ba77 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageCallBackJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageCallBackJsunit.test.js @@ -23,7 +23,7 @@ const KEY_TEST_BOOLEAN_ELEMENT = 'key_test_boolean'; const KEY_TEST_STRING_ELEMENT = 'key_test_string'; var mPref; -describe('storageTest_storage4', function () { +describe('storageCallBackTest', function () { beforeAll(function () { console.info('beforeAll') mPref = storage.getStorageSync(PATH); @@ -280,37 +280,37 @@ describe('storageTest_storage4', function () { * @tc.desc flush String callback interface test */ it('testCallback0172', 0, function (done) { - console.log("*******************testCallback0172 begin."); + console.info("*******************testCallback0172 begin."); mPref.clear(function (err, val) { if(err){ - console.log("*******************clear error: " + err); + console.info("*******************clear error: " + err); expect(false).assertTrue(); } mPref.put(KEY_TEST_STRING_ELEMENT, '', function (err, ret) { if(err){ - console.log("*******************put error: " + err); + console.info("*******************put error: " + err); expect(false).assertTrue(); } - console.log("*******************put done."); + console.info("*******************put done."); mPref.get(KEY_TEST_STRING_ELEMENT, "defaultvalue", function (err, pre) { if(err){ - console.log("*******************get error: " + err); + console.info("*******************get error: " + err); expect(false).assertTrue(); } expect('').assertEqual(pre); mPref.flush(function (err, val) { if(err){ - console.log("*******************flush error: " + err); + console.info("*******************flush error: " + err); expect(false).assertTrue(); } mPref.get(KEY_TEST_STRING_ELEMENT, "defaultvalue", function (err, pre2) { if(err){ - console.log("*******************get error: " + err); + console.info("*******************get error: " + err); expect(false).assertTrue(); } expect('').assertEqual(pre2); done(); - console.log("*******************testCallback0172 end."); + console.info("*******************testCallback0172 end."); }) }); }) diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageHelperJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageHelperJsunit.test.js index ada6278df573d6a36ad86cd4b52195a579d33d6b..de4937a98e4bb9d6d1e423f9174bb1e2186e7d5b 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageHelperJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageHelperJsunit.test.js @@ -19,7 +19,7 @@ import storage from '@ohos.data.storage' const PATH = '/data/storage/el2/database/test_storage'; var mPref; -describe('storageTest_storage3', function () { +describe('storageHelperTest', function () { beforeAll(function () { console.info('beforeAll') mPref = storage.getStorageSync(PATH); diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js index 379514c70212d7b55e3abe8a3863d1af7beb63fc..2b61e568fb2a7ad8639a3c76a057117be5e00edb 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StoragePromiseJsunit.test.js @@ -25,7 +25,7 @@ const MAX_KEY_LENGTH = 'X'.repeat(32) const MAX_VALUE_LENGTH = 'y'.repeat(8191) var mPref; -describe('storageTest_storage2', function () { +describe('storagePromiseTest', function () { beforeAll(async function () { console.info('beforeAll') const promise = storage.getStorage(PATH); @@ -40,7 +40,7 @@ describe('storageTest_storage2', function () { console.info('afterAll') const promise = storage.deleteStorage(PATH); promise.then(()=>{ - console.log('Delete Storage finish'); + console.info('Delete Storage finish'); }); await promise; done(); diff --git a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageSyncJsunit.test.js b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageSyncJsunit.test.js index 76c8e0d3f5b94bac54856946e9c0d1432335bff2..2269354276493623a37704c9fdb20aed5644f107 100755 --- a/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageSyncJsunit.test.js +++ b/distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageSyncJsunit.test.js @@ -24,7 +24,7 @@ const KEY_TEST_STRING_ELEMENT = 'key_test_string'; var mPref; -describe('storageTest_storage1', function () { +describe('storageSyncTest', function () { beforeAll(function() { console.info('beforeAll') mPref = storage.getStorageSync(PATH); diff --git a/distributeddatamgr/distributeddataObjectjstest/hap/src/main/js/default/test/ObjectStoreJsunit.test.js b/distributeddatamgr/distributeddataObjectjstest/hap/src/main/js/default/test/ObjectStoreJsunit.test.js index 82884219039ffd2c5657355036af906cb68510d4..a646199a13e883a439576428adb21bdeac48ec4a 100644 --- a/distributeddatamgr/distributeddataObjectjstest/hap/src/main/js/default/test/ObjectStoreJsunit.test.js +++ b/distributeddatamgr/distributeddataObjectjstest/hap/src/main/js/default/test/ObjectStoreJsunit.test.js @@ -95,7 +95,7 @@ describe('objectStoreTest', function () { console.info(TAG + 'afterAll') }) - console.log(TAG + "*************Unit Test Begin*************"); + console.info(TAG + "*************Unit Test Begin*************"); /** @@ -104,13 +104,13 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_On_001 */ it('testOn001', 0, function (done) { - console.log(TAG + "************* testOn001 start *************"); + console.info(TAG + "************* testOn001 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session1"); if (objectTest != undefined && objectTest != null) { expect("session1" == objectTest.__sessionId); } else { - console.log(TAG + "testOn001 joinSession failed"); + console.info(TAG + "testOn001 joinSession failed"); } console.info(TAG + " start call watch change"); objectTest.on("change", changeCallback); @@ -126,7 +126,7 @@ describe('objectStoreTest', function () { } done() - console.log(TAG + "************* testOn001 end *************"); + console.info(TAG + "************* testOn001 end *************"); }) /** @@ -135,13 +135,13 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_On_002 */ it('testOn002', 0, function (done) { - console.log(TAG + "************* testOn002 start *************"); + console.info(TAG + "************* testOn002 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session2"); if (objectTest != undefined && objectTest != null) { expect("session2" == objectTest.__sessionId); } else { - console.log(TAG + "testOn002 joinSession failed"); + console.info(TAG + "testOn002 joinSession failed"); } if (objectTest != undefined && objectTest != null) { objectTest.name = "jack1"; @@ -155,7 +155,7 @@ describe('objectStoreTest', function () { } done() - console.log(TAG + "************* testOn002 end *************"); + console.info(TAG + "************* testOn002 end *************"); }) /** @@ -165,13 +165,13 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_On_003 */ it('testOn003', 0, function (done) { - console.log(TAG + "************* testOn003 start *************"); + console.info(TAG + "************* testOn003 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session3"); if (objectTest != undefined && objectTest != null) { expect("session3" == objectTest.__sessionId); } else { - console.log(TAG + "testOn003 joinSession failed"); + console.info(TAG + "testOn003 joinSession failed"); } objectTest.on("change", changeCallback); console.info(TAG + " start call watch change"); @@ -192,7 +192,7 @@ describe('objectStoreTest', function () { } done() - console.log(TAG + "************* testOn003 end *************"); + console.info(TAG + "************* testOn003 end *************"); }) /** @@ -201,20 +201,20 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_On_004 */ it('testOn004', 0, function (done) { - console.log(TAG + "************* testOn004 start *************"); + console.info(TAG + "************* testOn004 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session4"); if (objectTest != undefined && objectTest != null) { expect("session4" == objectTest.__sessionId); } else { - console.log(TAG + "testOn004 joinSession failed"); + console.info(TAG + "testOn004 joinSession failed"); } objectTest.on("change", changeCallback); console.info(TAG + " start call watch change"); console.info(TAG + " end call watch change"); done() - console.log(TAG + "************* testOn004 end *************"); + console.info(TAG + "************* testOn004 end *************"); }) /** @@ -223,13 +223,13 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Off_001 */ it('testOff001', 0, function (done) { - console.log(TAG + "************* testOff001 start *************"); + console.info(TAG + "************* testOff001 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session5"); if (objectTest != undefined && objectTest != null) { expect("session5" == objectTest.__sessionId); } else { - console.log(TAG + "testOff001 joinSession failed"); + console.info(TAG + "testOff001 joinSession failed"); } objectTest.on("change", changeCallback); console.info(TAG + " start call watch change"); @@ -257,7 +257,7 @@ describe('objectStoreTest', function () { } done() - console.log(TAG + "************* testOff001 end *************"); + console.info(TAG + "************* testOff001 end *************"); }) /** @@ -266,13 +266,13 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Off_002 */ it('testOff002', 0, function (done) { - console.log(TAG + "************* testOff002 start *************"); + console.info(TAG + "************* testOff002 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session6"); if (objectTest != undefined && objectTest != null) { expect("session6" == objectTest.__sessionId); } else { - console.log(TAG + "testOff002 joinSession failed"); + console.info(TAG + "testOff002 joinSession failed"); } objectTest.off("change"); console.info(TAG + " end call watch change"); @@ -288,7 +288,7 @@ describe('objectStoreTest', function () { } done() - console.log(TAG + "************* testOff002 end *************"); + console.info(TAG + "************* testOff002 end *************"); }) /** @@ -297,20 +297,20 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Multi_001 */ it('testMultiObjectOn001', 0, function (done) { - console.log(TAG + "************* testMultiObjectOn001 start *************"); + console.info(TAG + "************* testMultiObjectOn001 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session7"); if (objectTest != undefined && objectTest != null) { expect("session7" == objectTest.__sessionId); } else { - console.log(TAG + "testMultiObjectOn001 joinSession failed"); + console.info(TAG + "testMultiObjectOn001 joinSession failed"); } var testObject = distributedObject.createDistributedObject({ name: "Eric", age: 81, isVis: true }); testObject.setSessionId("testSession1"); if (testObject != undefined && testObject != null) { expect("testSession1" == testObject.__sessionId); } else { - console.log(TAG + "testMultiObjectOn001 joinSession failed"); + console.info(TAG + "testMultiObjectOn001 joinSession failed"); } objectTest.on("change", changeCallback); testObject.on("change", changeCallback2); @@ -337,7 +337,7 @@ describe('objectStoreTest', function () { } done() - console.log(TAG + "************* testMultiObjectOn001 end *************"); + console.info(TAG + "************* testMultiObjectOn001 end *************"); }) /** @@ -346,22 +346,22 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Multi_Off_001 */ it('testMultiObjectOff001', 0, function (done) { - console.log(TAG + "************* testMultiObjectOff001 start *************"); + console.info(TAG + "************* testMultiObjectOff001 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session8"); if (objectTest != undefined && objectTest != null) { expect("session8" == objectTest.__sessionId); } else { - console.log(TAG + "testMultiObjectOn002 joinSession failed"); + console.info(TAG + "testMultiObjectOn002 joinSession failed"); } var testObject = distributedObject.createDistributedObject({ name: "Eric", age: 81, isVis: true }); testObject.setSessionId("testSession2"); if (testObject != undefined && testObject != null) { expect("testSession2" == testObject.__sessionId); } else { - console.log(TAG + "testMultiObjectOn002 joinSession failed"); + console.info(TAG + "testMultiObjectOn002 joinSession failed"); } - console.log(TAG + " start call watch change") + console.info(TAG + " start call watch change") objectTest.on("change", changeCallback); testObject.on("change", changeCallback2); console.info(TAG + " watch success"); @@ -409,7 +409,7 @@ describe('objectStoreTest', function () { } done() - console.log(TAG + "************* testMultiObjectOff001 end *************"); + console.info(TAG + "************* testMultiObjectOff001 end *************"); }) /** @@ -418,24 +418,24 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Session_001 */ it('testChangeSession001', 0, function (done) { - console.log(TAG + "************* testChangeSession001 start *************"); + console.info(TAG + "************* testChangeSession001 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session9"); if (objectTest != undefined && objectTest != null) { expect("session9" == objectTest.__sessionId); } else { - console.log(TAG + "testChangeSession001 joinSession failed"); + console.info(TAG + "testChangeSession001 joinSession failed"); } - console.log(TAG + "start change sessionId"); + console.info(TAG + "start change sessionId"); setTimeout(() => objectTest.setSessionId("session9"), 1000); if (objectTest != undefined && objectTest != null) { expect("session9" == objectTest.__sessionId); } else { - console.log(TAG + "testChangeSession001 joinSession again failed"); + console.info(TAG + "testChangeSession001 joinSession again failed"); } done() - console.log(TAG + "************* testChangeSession001 end *************"); + console.info(TAG + "************* testChangeSession001 end *************"); }) /** @@ -444,21 +444,21 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Type_001 */ it('testUndefinedType001', 0, function (done) { - console.log(TAG + "************* testUndefinedType001 start *************"); + console.info(TAG + "************* testUndefinedType001 start *************"); var object1 = distributedObject.createDistributedObject({ name: undefined, age: undefined, isVis: undefined }); try { object1.setSessionId("session11"); if (object1 != undefined && object1 != null) { expect("session11" == object1.__sessionId); } else { - console.log(TAG + "testUndefinedType001 joinSession session11 failed"); + console.info(TAG + "testUndefinedType001 joinSession session11 failed"); } } catch (error) { console.error(TAG + error); } done() - console.log(TAG + "************* testUndefinedType001 end *************"); + console.info(TAG + "************* testUndefinedType001 end *************"); }) /** @@ -467,12 +467,12 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_GetSessionId_001 */ it('testGenSessionId001', 0, function (done) { - console.log(TAG + "************* testGenSessionId001 start *************"); + console.info(TAG + "************* testGenSessionId001 start *************"); var sessionId = distributedObject.genSessionId(); expect(sessionId != null && sessionId.length > 0 && typeof (sessionId) == 'string'); done() - console.log(TAG + "************* testGenSessionId001 end *************"); + console.info(TAG + "************* testGenSessionId001 end *************"); }) /** @@ -481,13 +481,13 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_GetSessionId_002 */ it('testGenSessionId002', 0, function (done) { - console.log(TAG + "************* testGenSessionId002 start *************"); + console.info(TAG + "************* testGenSessionId002 start *************"); var sessionId1 = distributedObject.genSessionId(); var sessionId2 = distributedObject.genSessionId(); expect(sessionId1 != sessionId2); done() - console.log(TAG + "************* testGenSessionId002 end *************"); + console.info(TAG + "************* testGenSessionId002 end *************"); }) /** @@ -496,14 +496,14 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_OnStatus_001 */ it('testOnStatus001', 0, function (done) { - console.log(TAG + "************* testOnStatus001 start *************"); - console.log(TAG + "start watch status"); + console.info(TAG + "************* testOnStatus001 start *************"); + console.info(TAG + "start watch status"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.on("status", statusCallback1); - console.log(TAG + "watch success"); + console.info(TAG + "watch success"); done() - console.log(TAG + "************* testOnStatus001 end *************"); + console.info(TAG + "************* testOnStatus001 end *************"); }) /** @@ -512,19 +512,19 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_OnStatus_002 */ it('testOnStatus002', 0, function (done) { - console.log(TAG + "************* testOnStatus002 start *************"); - console.log(TAG + "start watch status"); + console.info(TAG + "************* testOnStatus002 start *************"); + console.info(TAG + "start watch status"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.on("status", statusCallback1); objectTest.on("status", statusCallback2); objectTest.on("status", statusCallback3); - console.log(TAG + "watch success"); - console.log(TAG + "start call unwatch status"); + console.info(TAG + "watch success"); + console.info(TAG + "start call unwatch status"); objectTest.off("status", statusCallback1); - console.log(TAG + "unwatch success"); + console.info(TAG + "unwatch success"); done() - console.log(TAG + "************* testOnStatus002 end *************"); + console.info(TAG + "************* testOnStatus002 end *************"); }) /** @@ -533,19 +533,19 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_OnStatus_003 */ it('testOnStatus003', 0, function (done) { - console.log(TAG + "************* testOnStatus003 start *************"); - console.log(TAG + "start watch status"); + console.info(TAG + "************* testOnStatus003 start *************"); + console.info(TAG + "start watch status"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.on("status", statusCallback1); objectTest.on("status", statusCallback2); objectTest.on("status", statusCallback3); - console.log(TAG + "watch success"); - console.log(TAG + "start call unwatch status"); + console.info(TAG + "watch success"); + console.info(TAG + "start call unwatch status"); objectTest.off("status"); - console.log(TAG + "unwatch success"); + console.info(TAG + "unwatch success"); done() - console.log(TAG + "************* testOnStatus003 end *************"); + console.info(TAG + "************* testOnStatus003 end *************"); }) /** @@ -554,7 +554,7 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Complex_001 */ it('testComplex001', 0, function (done) { - console.log(TAG + "************* testComplex001 start *************"); + console.info(TAG + "************* testComplex001 start *************"); var complexObject = distributedObject.createDistributedObject({ name: undefined, age: undefined, @@ -565,7 +565,7 @@ describe('objectStoreTest', function () { if (complexObject != undefined && complexObject != null) { expect("session12" == complexObject.__sessionId); } else { - console.log(TAG + "testOnComplex001 joinSession session12 failed"); + console.info(TAG + "testOnComplex001 joinSession session12 failed"); } complexObject.name = "jack"; complexObject.age = 19; @@ -578,7 +578,7 @@ describe('objectStoreTest', function () { expect(complexObject.list == [{ mother: "jack1 mom", father: "jack1 Dad" }]); done() - console.log(TAG + "************* testComplex001 end *************"); + console.info(TAG + "************* testComplex001 end *************"); }) /** @@ -587,13 +587,13 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_MaxSize_001 */ it('testMaxSize001', 0, function (done) { - console.log(TAG + "************* testMaxSize001 start *************"); + console.info(TAG + "************* testMaxSize001 start *************"); var objectTest = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); objectTest.setSessionId("session13"); if (objectTest != undefined && objectTest != null) { expect("session13" == objectTest.__sessionId); } else { - console.log(TAG + "testMaxSize001 joinSession session13 failed"); + console.info(TAG + "testMaxSize001 joinSession session13 failed"); } //maxString = 32byte var maxString = "12345678123456781234567812345678".repeat(131072); @@ -602,13 +602,13 @@ describe('objectStoreTest', function () { objectTest.age = 42; objectTest.isVis = false; expect(objectTest.name == maxString); - console.log(TAG + "get/set maxSize string success"); + console.info(TAG + "get/set maxSize string success"); } else { console.info(TAG + " object is null,set name fail"); } done() - console.log(TAG + "************* testMaxSize001 end *************"); + console.info(TAG + "************* testMaxSize001 end *************"); }) /** @@ -617,7 +617,7 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Performance_001 */ it('testPerformance001', 0, function (done) { - console.log(TAG + "************* testPerformance001 start *************"); + console.info(TAG + "************* testPerformance001 start *************"); var complexObject = distributedObject.createDistributedObject({ name: undefined, age: undefined, @@ -637,7 +637,7 @@ describe('objectStoreTest', function () { if (complexObject != undefined && complexObject != null) { expect("session14" == complexObject.__sessionId); } else { - console.log(TAG + "testPerformance001 joinSession session14 failed"); + console.info(TAG + "testPerformance001 joinSession session14 failed"); } console.info(TAG + " start call watch change"); st1 = Date.now(); @@ -656,7 +656,7 @@ describe('objectStoreTest', function () { expect(complexObject.parent == { mother: "jack1 mom1", father: "jack1 Dad1" }); expect(complexObject.list == [{ mother: "jack1 mom1", father: "jack1 Dad1" }]); - console.log(TAG + "start unWatch change"); + console.info(TAG + "start unWatch change"); st1 = Date.now(); complexObject.off("change"); offTime += Date.now() - st1; @@ -664,12 +664,12 @@ describe('objectStoreTest', function () { totalTime += setTime; totalTime += onTime; totalTime += offTime; - console.log(TAG + "end unWatch success"); + console.info(TAG + "end unWatch success"); } - console.log(TAG + "totalTime = " + (totalTime / 100)); + console.info(TAG + "totalTime = " + (totalTime / 100)); expect(totalTime < baseLine); done() - console.log(TAG + "************* testPerformance001 end *************"); + console.info(TAG + "************* testPerformance001 end *************"); }) /** @@ -705,7 +705,7 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_Save_002 */ it('testSave002', 0, function (done) { - console.log(TAG + "************* testSave002 start *************"); + console.info(TAG + "************* testSave002 start *************"); var gObject = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); gObject.setSessionId("tmpsession1"); gObject.save("local",(result)=>{ @@ -725,7 +725,7 @@ describe('objectStoreTest', function () { expect(gObject.age == 18).assertEqual(false); expect(gObject.isVis == false).assertEqual(false); done(); - console.log(TAG + "************* testSave002 end *************"); + console.info(TAG + "************* testSave002 end *************"); }) /** @@ -734,7 +734,7 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_RevokeSave_001 */ it('testRevokeSave001', 0, async function (done) { - console.log(TAG + "************* testRevokeSave001 start *************"); + console.info(TAG + "************* testRevokeSave001 start *************"); var gObject = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); gObject.setSessionId("123456"); let result = await gObject.save("local"); @@ -745,7 +745,7 @@ describe('objectStoreTest', function () { result = await gObject.revokeSave(); expect(result != null).assertTrue(); done(); - console.log(TAG + "************* testRevokeSave001 end *************"); + console.info(TAG + "************* testRevokeSave001 end *************"); }) /** @@ -754,7 +754,7 @@ describe('objectStoreTest', function () { * @tc.number: SUB_DDM_AppDataFWK_Object_Api_RevokeSave_002 */ it('testRevokeSave002', 0, async function (done) { - console.log(TAG + "************* testRevokeSave002 start *************"); + console.info(TAG + "************* testRevokeSave002 start *************"); var gObject = distributedObject.createDistributedObject({ name: "Amy", age: 18, isVis: false }); gObject.setSessionId("123456"); let result = await gObject.save("local"); @@ -766,7 +766,7 @@ describe('objectStoreTest', function () { expect(err == null).assertTrue(); }); done(); - console.log(TAG + "************* testRevokeSave002 end *************"); + console.info(TAG + "************* testRevokeSave002 end *************"); }) - console.log(TAG + "*************Unit Test End*************"); + console.info(TAG + "*************Unit Test End*************"); }) \ No newline at end of file diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStoreCallbackJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStoreCallbackJsunit.test.js index 3c2a810c87aa1675933b6411d0d32fb82519e78d..0d7256630db68d495b717336577f67b4b1c791b0 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStoreCallbackJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStoreCallbackJsunit.test.js @@ -75,26 +75,26 @@ describe('DeviceKvStoreCallbackTest', function () { } beforeAll(async function (done) { - console.log('beforeAll config:'+ JSON.stringify(config)); + console.info('beforeAll config:'+ JSON.stringify(config)); await factory.createKVManager(config).then((manager) => { kvManager = manager; - console.log('beforeAll createKVManager success'); + console.info('beforeAll createKVManager success'); }).catch((err) => { - console.log('beforeAll createKVManager err ' + err); + console.info('beforeAll createKVManager err ' + err); }); await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => { kvStore = store; - console.log('beforeAll getKVStore for getDeviceId success'); + console.info('beforeAll getKVStore for getDeviceId success'); }).catch((err) => { - console.log('beforeAll getKVStore err ' + err); + console.info('beforeAll getKVStore err ' + err); }); var getDeviceId = new Promise((resolve, reject) => { kvStore.on('dataChange', 0, function (data) { - console.log('beforeAll on data change: ' + JSON.stringify(data)); + console.info('beforeAll on data change: ' + JSON.stringify(data)); resolve(data.deviceId); }); kvStore.put("getDeviceId", "byPut").then((data) => { - console.log('beforeAll put success'); + console.info('beforeAll put success'); expect(data == undefined).assertTrue(); }); setTimeout(() => { @@ -102,41 +102,41 @@ describe('DeviceKvStoreCallbackTest', function () { }, 2000); }); await getDeviceId.then(function(deviceId) { - console.log('beforeAll getDeviceId ' + JSON.stringify(deviceId)); + console.info('beforeAll getDeviceId ' + JSON.stringify(deviceId)); localDeviceId = deviceId; }).catch((error) => { - console.log('beforeAll can NOT getDeviceId, fail: ' + error); + console.info('beforeAll can NOT getDeviceId, fail: ' + error); expect(null).assertFail(); }); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID); kvStore = null; - console.log('beforeAll end'); + console.info('beforeAll end'); done(); }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); kvManager = null; kvStore = null; done(); }) beforeEach(async function (done) { - console.log('beforeEach' + JSON.stringify(options)); + console.info('beforeEach' + JSON.stringify(options)); await kvManager.getKVStore(TEST_STORE_ID, options, function (err, store) { kvStore = store; - console.log('beforeEach getKVStore success'); + console.info('beforeEach getKVStore success'); done(); }); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, async function (err, data) { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, function (err, data) { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); done(); }); }); @@ -149,19 +149,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(String) testcase 101 */ it('testDeviceKvStorePutString101', 0, async function (done) { - console.log('testDeviceKvStorePutString101'); + console.info('testDeviceKvStorePutString101'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStorePutString101 put success'); + console.info('testDeviceKvStorePutString101 put success'); } else { - console.log('testDeviceKvStorePutString101 put fail' + err); + console.info('testDeviceKvStorePutString101 put fail' + err); expect(null).assertFail(); } done(); }); }catch (e) { - console.log('testDeviceKvStorePutString101 put e' + e); + console.info('testDeviceKvStorePutString101 put e' + e); expect(null).assertFail(); done(); } @@ -173,23 +173,23 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(String) testcase 102 */ it('testDeviceKvStorePutString102', 0, async function (done) { - console.log('testDeviceKvStorePutString102'); + console.info('testDeviceKvStorePutString102'); try { var str = ''; for (var i = 0 ; i < 4095; i++) { str += 'x'; } await kvStore.put(KEY_TEST_STRING_ELEMENT+'102', str, async function (err,data) { - console.log('testDeviceKvStorePutString102 put success'); + console.info('testDeviceKvStorePutString102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT+'102', function (err,data) { - console.log('testDeviceKvStorePutString102 get success'); + console.info('testDeviceKvStorePutString102 get success'); expect(str == data).assertTrue(); done(); }); }); }catch (e) { - console.log('testDeviceKvStorePutString102 put e' + e); + console.info('testDeviceKvStorePutString102 put e' + e); expect(null).assertFail(); done(); } @@ -201,19 +201,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(String) testcase 101 */ it('testDeviceKvStoreGetString101', 0, async function (done) { - console.log('testDeviceKvStoreGetString101'); + console.info('testDeviceKvStoreGetString101'); try{ await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreGetString101 get success'); + console.info('testDeviceKvStoreGetString101 get success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreGetString101 get fail'); + console.info('testDeviceKvStoreGetString101 get fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreGetString101 get e' + e); + console.info('testDeviceKvStoreGetString101 get e' + e); expect(null).assertFail(); done(); } @@ -225,19 +225,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(String) testcase 102 */ it('testDeviceKvStoreGetString102', 0, async function (done) { - console.log('testDeviceKvStoreGetString102'); + console.info('testDeviceKvStoreGetString102'); try{ await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, async function (err,data) { - console.log('testDeviceKvStoreGetString102 put success'); + console.info('testDeviceKvStoreGetString102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreGetString102 get success'); + console.info('testDeviceKvStoreGetString102 get success'); expect((err == undefined) && (VALUE_TEST_STRING_ELEMENT == data)).assertTrue(); done(); }); }) }catch(e) { - console.log('testDeviceKvStoreGetString102 get e' + e); + console.info('testDeviceKvStoreGetString102 get e' + e); expect(null).assertFail(); done(); } @@ -249,19 +249,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 101 */ it('testDeviceKvStorePutInt101', 0, async function (done) { - console.log('testDeviceKvStorePutInt101'); + console.info('testDeviceKvStorePutInt101'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT, async function (err,data) { - console.log('testDeviceKvStorePutInt101 put success'); + console.info('testDeviceKvStorePutInt101 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testDeviceKvStorePutInt101 get success'); + console.info('testDeviceKvStorePutInt101 get success'); expect((err == undefined) && (VALUE_TEST_INT_ELEMENT == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testDeviceKvStorePutInt101 put e' + e); + console.info('testDeviceKvStorePutInt101 put e' + e); expect(null).assertFail(); done(); } @@ -273,20 +273,20 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 102 */ it('testDeviceKvStorePutInt102', 0, async function (done) { - console.log('testDeviceKvStorePutInt102'); + console.info('testDeviceKvStorePutInt102'); try { var intValue = 987654321; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue, async function (err,data) { - console.log('testDeviceKvStorePutInt102 put success'); + console.info('testDeviceKvStorePutInt102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testDeviceKvStorePutInt102 get success'); + console.info('testDeviceKvStorePutInt102 get success'); expect((err == undefined) && (intValue == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testDeviceKvStorePutInt102 put e' + e); + console.info('testDeviceKvStorePutInt102 put e' + e); expect(null).assertFail(); done(); } @@ -298,20 +298,20 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 103 */ it('testDeviceKvStorePutInt103', 0, async function (done) { - console.log('testDeviceKvStorePutInt103'); + console.info('testDeviceKvStorePutInt103'); try { var intValue = Number.MIN_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue, async function (err,data) { - console.log('testDeviceKvStorePutInt103 put success'); + console.info('testDeviceKvStorePutInt103 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testDeviceKvStorePutInt103 get success'); + console.info('testDeviceKvStorePutInt103 get success'); expect((err == undefined) && (intValue == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testDeviceKvStorePutInt103 put e' + e); + console.info('testDeviceKvStorePutInt103 put e' + e); expect(null).assertFail(); done(); } @@ -323,20 +323,20 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 104 */ it('testDeviceKvStorePutInt104', 0, async function (done) { - console.log('testDeviceKvStorePutInt104'); + console.info('testDeviceKvStorePutInt104'); try { var intValue = Number.MAX_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue, async function (err,data) { - console.log('testDeviceKvStorePutInt104 put success'); + console.info('testDeviceKvStorePutInt104 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testDeviceKvStorePutInt104 get success'); + console.info('testDeviceKvStorePutInt104 get success'); expect((err == undefined) && (intValue == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testDeviceKvStorePutInt104 put e' + e); + console.info('testDeviceKvStorePutInt104 put e' + e); expect(null).assertFail(); done(); } @@ -348,19 +348,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Int) testcase 101 */ it('testDeviceKvStoreGetInt101', 0, async function (done) { - console.log('testDeviceKvStoreGetInt101'); + console.info('testDeviceKvStoreGetInt101'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT, async function (err,data) { - console.log('testDeviceKvStoreGetInt101 put success'); + console.info('testDeviceKvStoreGetInt101 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreGetInt101 get success'); + console.info('testDeviceKvStoreGetInt101 get success'); expect((err == undefined) && (VALUE_TEST_INT_ELEMENT == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testDeviceKvStoreGetInt101 put e' + e); + console.info('testDeviceKvStoreGetInt101 put e' + e); expect(null).assertFail(); done(); } @@ -372,19 +372,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Int) testcase 102 */ it('testDeviceKvStoreGetInt102', 0, async function (done) { - console.log('testDeviceKvStoreGetInt102'); + console.info('testDeviceKvStoreGetInt102'); try { await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreGetInt102 get success'); + console.info('testDeviceKvStoreGetInt102 get success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreGetInt102 get fail'); + console.info('testDeviceKvStoreGetInt102 get fail'); } done(); }) }catch(e) { - console.log('testDeviceKvStoreGetInt102 put e' + e); + console.info('testDeviceKvStoreGetInt102 put e' + e); expect(null).assertFail(); done(); } @@ -396,15 +396,15 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Bool) testcase 101 */ it('testDeviceKvStorePutBool101', 0, async function (done) { - console.log('testDeviceKvStorePutBool101'); + console.info('testDeviceKvStorePutBool101'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT, function (err,data) { - console.log('testDeviceKvStorePutBool101 put success'); + console.info('testDeviceKvStorePutBool101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStorePutBool101 e ' + e); + console.info('testDeviceKvStorePutBool101 e ' + e); expect(null).assertFail(); done(); } @@ -416,19 +416,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Bool) testcase 101 */ it('testDeviceKvStoreGetBool101', 0, async function (done) { - console.log('testDeviceKvStoreGetBool101'); + console.info('testDeviceKvStoreGetBool101'); try { await kvStore.get(localDeviceId, KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreGetBool101 get success'); + console.info('testDeviceKvStoreGetBool101 get success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreGetBool101 get fail' + err); + console.info('testDeviceKvStoreGetBool101 get fail' + err); } done(); }); }catch(e) { - console.log('testDeviceKvStoreGetBool101 e' + e); + console.info('testDeviceKvStoreGetBool101 e' + e); expect(null).assertFail(); done(); } @@ -440,19 +440,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Bool) testcase 102 */ it('testDeviceKvStoreGetBool102', 0, async function (done) { - console.log('testDeviceKvStoreGetBool102'); + console.info('testDeviceKvStoreGetBool102'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT, async function (err, data) { - console.log('testDeviceKvStoreGetBool102 put success'); + console.info('testDeviceKvStoreGetBool102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreGetBool102 get success'); + console.info('testDeviceKvStoreGetBool102 get success'); expect((err == undefined) && (VALUE_TEST_BOOLEAN_ELEMENT == data)).assertTrue(); done(); }); }) }catch(e) { - console.log('testDeviceKvStoreGetBool102 e' + e); + console.info('testDeviceKvStoreGetBool102 e' + e); expect(null).assertFail(); done(); } @@ -464,15 +464,15 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Float) testcase 101 */ it('testDeviceKvStorePutFloat101', 0, async function (done) { - console.log('testDeviceKvStorePutFloat101'); + console.info('testDeviceKvStorePutFloat101'); try { await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testDeviceKvStorePutFloat101 put success'); + console.info('testDeviceKvStorePutFloat101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStorePutFloat101 e' + e); + console.info('testDeviceKvStorePutFloat101 e' + e); expect(null).assertFail(); done(); } @@ -484,21 +484,21 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Float) testcase 102 */ it('testDeviceKvStorePutFloat102', 0, async function (done) { - console.log('testDeviceKvStorePutFloat102'); + console.info('testDeviceKvStorePutFloat102'); try { var floatValue = 123456.654321; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) { - console.log('testDeviceKvStorePutFloat102 put success'); + console.info('testDeviceKvStorePutFloat102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_FLOAT_ELEMENT, function (err, data) { - console.log('testDeviceKvStorePutFloat102 get success'); + console.info('testDeviceKvStorePutFloat102 get success'); expect((err == undefined) && (floatValue == data)).assertTrue(); done(); }) done(); }); }catch(e) { - console.log('testDeviceKvStorePutFloat102 e' + e); + console.info('testDeviceKvStorePutFloat102 e' + e); expect(null).assertFail(); done(); } @@ -510,21 +510,21 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Float) testcase 103 */ it('testDeviceKvStorePutFloat103', 0, async function (done) { - console.log('testDeviceKvStorePutFloat103'); + console.info('testDeviceKvStorePutFloat103'); try { var floatValue = 123456.0; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) { - console.log('testDeviceKvStorePutFloat103 put success'); + console.info('testDeviceKvStorePutFloat103 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_FLOAT_ELEMENT, function (err, data) { - console.log('testDeviceKvStorePutFloat103 get success'); + console.info('testDeviceKvStorePutFloat103 get success'); expect((err == undefined) && (floatValue == data)).assertTrue(); done(); }) done(); }); }catch(e) { - console.log('testDeviceKvStorePutFloat103 e' + e); + console.info('testDeviceKvStorePutFloat103 e' + e); expect(null).assertFail(); done(); } @@ -536,21 +536,21 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Float) testcase 104 */ it('testDeviceKvStorePutFloat104', 0, async function (done) { - console.log('testDeviceKvStorePutFloat104'); + console.info('testDeviceKvStorePutFloat104'); try { var floatValue = 123456.00; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) { - console.log('testDeviceKvStorePutFloat104 put success'); + console.info('testDeviceKvStorePutFloat104 put success'); expect(err == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_FLOAT_ELEMENT, function (err, data) { - console.log('testDeviceKvStorePutFloat104 get success'); + console.info('testDeviceKvStorePutFloat104 get success'); expect((err == undefined) && (floatValue == data)).assertTrue(); done(); }) done(); }); }catch(e) { - console.log('testDeviceKvStorePutFloat104 e' + e); + console.info('testDeviceKvStorePutFloat104 e' + e); expect(null).assertFail(); done(); } @@ -562,19 +562,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Float) testcase 101 */ it('testDeviceKvStoreGetFloat101', 0, async function (done) { - console.log('testDeviceKvStoreGetFloat101'); + console.info('testDeviceKvStoreGetFloat101'); try { await kvStore.get(localDeviceId, KEY_TEST_FLOAT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreGetFloat101 get success'); + console.info('testDeviceKvStoreGetFloat101 get success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreGetFloat101 get fail' + err); + console.info('testDeviceKvStoreGetFloat101 get fail' + err); } done(); }); }catch(e) { - console.log('testDeviceKvStoreGetFloat101 e' + e); + console.info('testDeviceKvStoreGetFloat101 e' + e); expect(null).assertFail(); done(); } @@ -586,19 +586,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteString testcase 101 */ it('testDeviceKvStoreDeleteString101', 0, async function (done) { - console.log('testDeviceKvStoreDeleteString101'); + console.info('testDeviceKvStoreDeleteString101'); try { await kvStore.delete(KEY_TEST_STRING_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreDeleteString101 delete success'); + console.info('testDeviceKvStoreDeleteString101 delete success'); } else { - console.log('testDeviceKvStoreDeleteString101 delete fail' + err); + console.info('testDeviceKvStoreDeleteString101 delete fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteString101 e' + e); + console.info('testDeviceKvStoreDeleteString101 e' + e); expect(null).assertFail(); done(); } @@ -610,19 +610,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteString testcase 102 */ it('testDeviceKvStoreDeleteString102', 0, async function (done) { - console.log('testDeviceKvStoreDeleteString102'); + console.info('testDeviceKvStoreDeleteString102'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, async function (err, data) { - console.log('testDeviceKvStoreDeleteString102 put success'); + console.info('testDeviceKvStoreDeleteString102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_STRING_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreDeleteString102 delete success'); + console.info('testDeviceKvStoreDeleteString102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testDeviceKvStoreDeleteString102 e' + e); + console.info('testDeviceKvStoreDeleteString102 e' + e); expect(null).assertFail(); done(); } @@ -634,19 +634,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteInt testcase 101 */ it('testDeviceKvStoreDeleteInt101', 0, async function (done) { - console.log('testDeviceKvStoreDeleteInt101'); + console.info('testDeviceKvStoreDeleteInt101'); try{ await kvStore.delete(KEY_TEST_INT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreDeleteInt101 get success'); + console.info('testDeviceKvStoreDeleteInt101 get success'); } else { - console.log('testDeviceKvStoreDeleteInt101 get fail' + err); + console.info('testDeviceKvStoreDeleteInt101 get fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteInt101 e' + e); + console.info('testDeviceKvStoreDeleteInt101 e' + e); expect(null).assertFail(); done(); } @@ -658,19 +658,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteInt testcase 102 */ it('testDeviceKvStoreDeleteInt102', 0, async function (done) { - console.log('testDeviceKvStoreDeleteInt102'); + console.info('testDeviceKvStoreDeleteInt102'); try{ await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT, async function (err,data) { - console.log('testDeviceKvStoreDeleteInt102 put success'); + console.info('testDeviceKvStoreDeleteInt102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreDeleteInt102 delete success'); + console.info('testDeviceKvStoreDeleteInt102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testDeviceKvStoreDeleteInt102 e' + e); + console.info('testDeviceKvStoreDeleteInt102 e' + e); expect(null).assertFail(); done(); } @@ -682,19 +682,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteFloat testcase 101 */ it('testDeviceKvStoreDeleteFloat101', 0, async function (done) { - console.log('testDeviceKvStoreDeleteFloat101'); + console.info('testDeviceKvStoreDeleteFloat101'); try{ await kvStore.delete(KEY_TEST_FLOAT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreDeleteFloat101 get success'); + console.info('testDeviceKvStoreDeleteFloat101 get success'); } else { - console.log('testDeviceKvStoreDeleteFloat101 get fail' + err); + console.info('testDeviceKvStoreDeleteFloat101 get fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteFloat101 e' + e); + console.info('testDeviceKvStoreDeleteFloat101 e' + e); expect(null).assertFail(); done(); } @@ -706,19 +706,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteFloat testcase 102 */ it('testDeviceKvStoreDeleteFloat102', 0, async function (done) { - console.log('testDeviceKvStoreDeleteFloat102'); + console.info('testDeviceKvStoreDeleteFloat102'); try{ await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, async function (err, data) { - console.log('testDeviceKvStoreDeleteFloat102 put success'); + console.info('testDeviceKvStoreDeleteFloat102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreDeleteFloat102 delete success'); + console.info('testDeviceKvStoreDeleteFloat102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testDeviceKvStoreDeleteFloat102 e' + e); + console.info('testDeviceKvStoreDeleteFloat102 e' + e); expect(null).assertFail(); done(); } @@ -730,19 +730,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBool testcase 101 */ it('testDeviceKvStoreDeleteBool101', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBool101'); + console.info('testDeviceKvStoreDeleteBool101'); try{ await kvStore.delete(KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreDeleteBool101 get success'); + console.info('testDeviceKvStoreDeleteBool101 get success'); } else { - console.log('testDeviceKvStoreDeleteBool101 get fail' + err); + console.info('testDeviceKvStoreDeleteBool101 get fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteBool101 e' + e); + console.info('testDeviceKvStoreDeleteBool101 e' + e); expect(null).assertFail(); done(); } @@ -754,19 +754,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBool testcase 102 */ it('testDeviceKvStoreDeleteBool102', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBool102'); + console.info('testDeviceKvStoreDeleteBool102'); try{ await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT, async function (err, data) { - console.log('testDeviceKvStoreDeleteBool102 put success'); + console.info('testDeviceKvStoreDeleteBool102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreDeleteBool102 delete success'); + console.info('testDeviceKvStoreDeleteBool102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testDeviceKvStoreDeleteBool102 e' + e); + console.info('testDeviceKvStoreDeleteBool102 e' + e); expect(null).assertFail(); done(); } @@ -778,19 +778,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.OnChange testcase 101 */ it('testDeviceKvStoreOnChange101', 0, async function (done) { - console.log('testDeviceKvStoreOnChange101'); + console.info('testDeviceKvStoreOnChange101'); try { kvStore.on('dataChange', 0, function (data) { - console.log('testDeviceKvStoreOnChange101 dataChange'); + console.info('testDeviceKvStoreOnChange101 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreOnChange101 put success'); + console.info('testDeviceKvStoreOnChange101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreOnChange101 e' + e); + console.info('testDeviceKvStoreOnChange101 e' + e); expect(null).assertFail(); done(); } @@ -802,19 +802,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.OnChange testcase 102 */ it('testDeviceKvStoreOnChange102', 0, async function (done) { - console.log('testDeviceKvStoreOnChange102'); + console.info('testDeviceKvStoreOnChange102'); try { kvStore.on('dataChange', 1, function (data) { - console.log('testDeviceKvStoreOnChange102 dataChange'); + console.info('testDeviceKvStoreOnChange102 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreOnChange102 put success'); + console.info('testDeviceKvStoreOnChange102 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreOnChange102 e' + e); + console.info('testDeviceKvStoreOnChange102 e' + e); expect(null).assertFail(); done(); } @@ -826,19 +826,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.OnChange testcase 103 */ it('testDeviceKvStoreOnChange103', 0, async function (done) { - console.log('testDeviceKvStoreOnChange103'); + console.info('testDeviceKvStoreOnChange103'); try { kvStore.on('dataChange', 2, function (data) { - console.log('testDeviceKvStoreOnChange103 dataChange'); + console.info('testDeviceKvStoreOnChange103 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testDeviceKvStoreOnChange103 put success'); + console.info('testDeviceKvStoreOnChange103 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreOnChange103 e' + e); + console.info('testDeviceKvStoreOnChange103 e' + e); expect(null).assertFail(); done(); } @@ -852,25 +852,25 @@ describe('DeviceKvStoreCallbackTest', function () { it('testDeviceKvStoreOnSyncComplete101', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testDeviceKvStoreOnSyncComplete101 dataChange'); + console.info('testDeviceKvStoreOnSyncComplete101 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnSyncComplete101 put success'); + console.info('testDeviceKvStoreOnSyncComplete101 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnSyncComplete101 put failed:' + e); + console.info('testDeviceKvStoreOnSyncComplete101 put failed:' + e); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PULL_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode); } catch(e) { - console.log('testDeviceKvStoreOnSyncComplete101 sync no peer device :e:' + e); + console.info('testDeviceKvStoreOnSyncComplete101 sync no peer device :e:' + e); } }catch(e) { - console.log('testDeviceKvStoreOnSyncComplete101 no peer device :e:' + e); + console.info('testDeviceKvStoreOnSyncComplete101 no peer device :e:' + e); expect(null).assertFail(); } done(); @@ -884,25 +884,25 @@ describe('DeviceKvStoreCallbackTest', function () { it('testDeviceKvStoreOnSyncComplete102', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testDeviceKvStoreOnSyncComplete102 dataChange'); + console.info('testDeviceKvStoreOnSyncComplete102 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnSyncComplete102 put success'); + console.info('testDeviceKvStoreOnSyncComplete102 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnSyncComplete102 put failed:' + e); + console.info('testDeviceKvStoreOnSyncComplete102 put failed:' + e); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PUSH_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode); } catch(e) { - console.log('testDeviceKvStoreOnSyncComplete102 sync no peer device :e:' + e); + console.info('testDeviceKvStoreOnSyncComplete102 sync no peer device :e:' + e); } }catch(e) { - console.log('testDeviceKvStoreOnSyncComplete102 no peer device :e:' + e); + console.info('testDeviceKvStoreOnSyncComplete102 no peer device :e:' + e); expect(null).assertFail(); } done(); @@ -916,25 +916,25 @@ describe('DeviceKvStoreCallbackTest', function () { it('testDeviceKvStoreOnSyncComplete103', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testDeviceKvStoreOnSyncComplete103 dataChange'); + console.info('testDeviceKvStoreOnSyncComplete103 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnSyncComplete103 put success'); + console.info('testDeviceKvStoreOnSyncComplete103 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnSyncComplete103 put failed:' + e); + console.info('testDeviceKvStoreOnSyncComplete103 put failed:' + e); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PUSH_PULL; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode); } catch(e) { - console.log('testDeviceKvStoreOnSyncComplete103 sync no peer device :e:' + e); + console.info('testDeviceKvStoreOnSyncComplete103 sync no peer device :e:' + e); } }catch(e) { - console.log('testDeviceKvStoreOnSyncComplete103 no peer device :e:' + e); + console.info('testDeviceKvStoreOnSyncComplete103 no peer device :e:' + e); expect(null).assertFail(); } done(); @@ -946,17 +946,17 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.SetSyncRange testcase 101 */ it('testDeviceKvStoreSetSyncRange101', 0, async function (done) { - console.log('testDeviceKvStoreSetSyncRange101'); + console.info('testDeviceKvStoreSetSyncRange101'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['C', 'D']; await kvStore.setSyncRange(localLabels, remoteSupportLabels, function (err,data) { - console.log('testDeviceKvStoreSetSyncRange101 put success'); + console.info('testDeviceKvStoreSetSyncRange101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreSetSyncRange101 e ' + e); + console.info('testDeviceKvStoreSetSyncRange101 e ' + e); expect(null).assertFail(); done(); } @@ -968,17 +968,17 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.SetSyncRange testcase 102 */ it('testDeviceKvStoreSetSyncRange102', 0, async function (done) { - console.log('testDeviceKvStoreSetSyncRange102'); + console.info('testDeviceKvStoreSetSyncRange102'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['B', 'C']; await kvStore.setSyncRange(localLabels, remoteSupportLabels, function (err,data) { - console.log('testDeviceKvStoreSetSyncRange102 put success'); + console.info('testDeviceKvStoreSetSyncRange102 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreSetSyncRange102 e ' + e); + console.info('testDeviceKvStoreSetSyncRange102 e ' + e); expect(null).assertFail(); done(); } @@ -990,17 +990,17 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.SetSyncRange testcase 103 */ it('testDeviceKvStoreSetSyncRange103', 0, async function (done) { - console.log('testDeviceKvStoreSetSyncRange103'); + console.info('testDeviceKvStoreSetSyncRange103'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['A', 'B']; await kvStore.setSyncRange(localLabels, remoteSupportLabels, function (err,data) { - console.log('testDeviceKvStoreSetSyncRange103 put success'); + console.info('testDeviceKvStoreSetSyncRange103 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreSetSyncRange103 e ' + e); + console.info('testDeviceKvStoreSetSyncRange103 e ' + e); expect(null).assertFail(); done(); } @@ -1012,7 +1012,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 101 */ it('testDeviceKvStorePutBatch101', 0, async function (done) { - console.log('testDeviceKvStorePutBatch101'); + console.info('testDeviceKvStorePutBatch101'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1026,21 +1026,21 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch101 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorePutBatch101 putBatch success'); + console.info('testDeviceKvStorePutBatch101 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_string_key', function (err,entrys) { - console.log('testDeviceKvStorePutBatch101 getEntries success'); - console.log('testDeviceKvStorePutBatch101 entrys.length: ' + entrys.length); - console.log('testDeviceKvStorePutBatch101 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStorePutBatch101 getEntries success'); + console.info('testDeviceKvStorePutBatch101 entrys.length: ' + entrys.length); + console.info('testDeviceKvStorePutBatch101 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 'batch_test_string_value').assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStorePutBatch101 e ' + e); + console.info('testDeviceKvStorePutBatch101 e ' + e); expect(null).assertFail(); done(); } @@ -1052,7 +1052,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 102 */ it('testDeviceKvStorePutBatch102', 0, async function (done) { - console.log('testDeviceKvStorePutBatch102'); + console.info('testDeviceKvStorePutBatch102'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1066,21 +1066,21 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch102 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch102 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorePutBatch102 putBatch success'); + console.info('testDeviceKvStorePutBatch102 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_number_key', function (err,entrys) { - console.log('testDeviceKvStorePutBatch102 getEntries success'); - console.log('testDeviceKvStorePutBatch102 entrys.length: ' + entrys.length); - console.log('testDeviceKvStorePutBatch102 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStorePutBatch102 getEntries success'); + console.info('testDeviceKvStorePutBatch102 entrys.length: ' + entrys.length); + console.info('testDeviceKvStorePutBatch102 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 222).assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStorePutBatch102 e ' + e); + console.info('testDeviceKvStorePutBatch102 e ' + e); expect(null).assertFail(); done(); } @@ -1092,7 +1092,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 103 */ it('testDeviceKvStorePutBatch103', 0, async function (done) { - console.log('testDeviceKvStorePutBatch103'); + console.info('testDeviceKvStorePutBatch103'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1106,21 +1106,21 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch103 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch103 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorePutBatch103 putBatch success'); + console.info('testDeviceKvStorePutBatch103 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_number_key', function (err,entrys) { - console.log('testDeviceKvStorePutBatch103 getEntries success'); - console.log('testDeviceKvStorePutBatch103 entrys.length: ' + entrys.length); - console.log('testDeviceKvStorePutBatch103 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStorePutBatch103 getEntries success'); + console.info('testDeviceKvStorePutBatch103 entrys.length: ' + entrys.length); + console.info('testDeviceKvStorePutBatch103 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.0).assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStorePutBatch103 e ' + e); + console.info('testDeviceKvStorePutBatch103 e ' + e); expect(null).assertFail(); done(); } @@ -1132,7 +1132,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 104 */ it('testDeviceKvStorePutBatch104', 0, async function (done) { - console.log('testDeviceKvStorePutBatch104'); + console.info('testDeviceKvStorePutBatch104'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1146,21 +1146,21 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch104 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch104 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorePutBatch104 putBatch success'); + console.info('testDeviceKvStorePutBatch104 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_number_key', function (err,entrys) { - console.log('testDeviceKvStorePutBatch104 getEntries success'); - console.log('testDeviceKvStorePutBatch104 entrys.length: ' + entrys.length); - console.log('testDeviceKvStorePutBatch104 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStorePutBatch104 getEntries success'); + console.info('testDeviceKvStorePutBatch104 entrys.length: ' + entrys.length); + console.info('testDeviceKvStorePutBatch104 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.00).assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStorePutBatch104 e ' + e); + console.info('testDeviceKvStorePutBatch104 e ' + e); expect(null).assertFail(); done(); } @@ -1172,7 +1172,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 105 */ it('testDeviceKvStorePutBatch105', 0, async function (done) { - console.log('testDeviceKvStorePutBatch105'); + console.info('testDeviceKvStorePutBatch105'); try { var bo = false; let entries = []; @@ -1187,21 +1187,21 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch105 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch105 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorePutBatch105 putBatch success'); + console.info('testDeviceKvStorePutBatch105 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_bool_key', function (err,entrys) { - console.log('testDeviceKvStorePutBatch105 getEntries success'); - console.log('testDeviceKvStorePutBatch105 entrys.length: ' + entrys.length); - console.log('testDeviceKvStorePutBatch105 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStorePutBatch105 getEntries success'); + console.info('testDeviceKvStorePutBatch105 entrys.length: ' + entrys.length); + console.info('testDeviceKvStorePutBatch105 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == bo).assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStorePutBatch105 e ' + e); + console.info('testDeviceKvStorePutBatch105 e ' + e); expect(null).assertFail(); done(); } @@ -1213,7 +1213,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 106 */ it('testDeviceKvStorePutBatch106', 0, async function (done) { - console.log('testDeviceKvStorePutBatch106'); + console.info('testDeviceKvStorePutBatch106'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -1228,21 +1228,21 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch106 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch106 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorePutBatch106 putBatch success'); + console.info('testDeviceKvStorePutBatch106 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_bool_key', function (err,entrys) { - console.log('testDeviceKvStorePutBatch106 getEntries success'); - console.log('testDeviceKvStorePutBatch106 entrys.length: ' + entrys.length); - console.log('testDeviceKvStorePutBatch106 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStorePutBatch106 getEntries success'); + console.info('testDeviceKvStorePutBatch106 entrys.length: ' + entrys.length); + console.info('testDeviceKvStorePutBatch106 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStorePutBatch106 e ' + e); + console.info('testDeviceKvStorePutBatch106 e ' + e); expect(null).assertFail(); done(); } @@ -1254,7 +1254,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBatch testcase 101 */ it('testDeviceKvStoreDeleteBatch101', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBatch101'); + console.info('testDeviceKvStoreDeleteBatch101'); try { let entries = []; let keys = []; @@ -1270,18 +1270,18 @@ describe('DeviceKvStoreCallbackTest', function () { entries.push(entry); keys.push(key + i); } - console.log('testDeviceKvStoreDeleteBatch101 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreDeleteBatch101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStoreDeleteBatch101 putBatch success'); + console.info('testDeviceKvStoreDeleteBatch101 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testDeviceKvStoreDeleteBatch101 deleteBatch success'); + console.info('testDeviceKvStoreDeleteBatch101 deleteBatch success'); expect(err == undefined).assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStoreDeleteBatch101 e ' + e); + console.info('testDeviceKvStoreDeleteBatch101 e ' + e); expect(null).assertFail(); done(); } @@ -1293,16 +1293,16 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBatch testcase 102 */ it('testDeviceKvStoreDeleteBatch102', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBatch102'); + console.info('testDeviceKvStoreDeleteBatch102'); try { let keys = ['batch_test_string_key1', 'batch_test_string_key2']; await kvStore.deleteBatch(keys, function (err,data) { - console.log('testDeviceKvStoreDeleteBatch102 deleteBatch success'); + console.info('testDeviceKvStoreDeleteBatch102 deleteBatch success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteBatch102 e ' + e); + console.info('testDeviceKvStoreDeleteBatch102 e ' + e); expect(null).assertFail(); done(); } @@ -1314,7 +1314,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBatch testcase 103 */ it('testDeviceKvStoreDeleteBatch103', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBatch103'); + console.info('testDeviceKvStoreDeleteBatch103'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1328,19 +1328,19 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStoreDeleteBatch103 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreDeleteBatch103 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStoreDeleteBatch103 putBatch success'); + console.info('testDeviceKvStoreDeleteBatch103 putBatch success'); expect(err == undefined).assertTrue(); let keys = ['batch_test_string_key1', 'batch_test_string_keya']; await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testDeviceKvStoreDeleteBatch103 deleteBatch success'); + console.info('testDeviceKvStoreDeleteBatch103 deleteBatch success'); expect(err == undefined).assertTrue(); done(); }); }); }catch(e) { - console.log('testDeviceKvStoreDeleteBatch103 e ' + e); + console.info('testDeviceKvStoreDeleteBatch103 e ' + e); expect(null).assertFail(); done(); } @@ -1352,27 +1352,27 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction testcase 101 */ it('testDeviceKvStorestartTransaction101', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction101'); + console.info('testDeviceKvStorestartTransaction101'); try { var count = 0; kvStore.on('dataChange', 0, function (data) { - console.log('testDeviceKvStorestartTransaction101 0' + data) + console.info('testDeviceKvStorestartTransaction101 0' + data) count++; }); await kvStore.startTransaction(async function (err,data) { - console.log('testDeviceKvStorestartTransaction101 startTransaction success'); + console.info('testDeviceKvStorestartTransaction101 startTransaction success'); expect(err == undefined).assertTrue(); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testDeviceKvStorestartTransaction101 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorestartTransaction101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorestartTransaction101 putBatch success'); + console.info('testDeviceKvStorestartTransaction101 putBatch success'); expect(err == undefined).assertTrue(); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testDeviceKvStorestartTransaction101 deleteBatch success'); + console.info('testDeviceKvStorestartTransaction101 deleteBatch success'); expect(err == undefined).assertTrue(); await kvStore.commit(async function (err,data) { - console.log('testDeviceKvStorestartTransaction101 commit success'); + console.info('testDeviceKvStorestartTransaction101 commit success'); expect(err == undefined).assertTrue(); await sleep(2000); expect(count == 1).assertTrue(); @@ -1382,7 +1382,7 @@ describe('DeviceKvStoreCallbackTest', function () { }); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction101 e ' + e); + console.info('testDeviceKvStorestartTransaction101 e ' + e); expect(null).assertFail(); done(); } @@ -1394,27 +1394,27 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction testcase 102 */ it('testDeviceKvStorestartTransaction102', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction102'); + console.info('testDeviceKvStorestartTransaction102'); try { var count = 0; kvStore.on('dataChange', 0, function (data) { - console.log('testDeviceKvStorestartTransaction102 0' + data) + console.info('testDeviceKvStorestartTransaction102 0' + data) count++; }); await kvStore.startTransaction(async function (err,data) { - console.log('testDeviceKvStorestartTransaction102 startTransaction success'); + console.info('testDeviceKvStorestartTransaction102 startTransaction success'); expect(err == undefined).assertTrue(); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testDeviceKvStorestartTransaction102 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorestartTransaction102 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStorestartTransaction102 putBatch success'); + console.info('testDeviceKvStorestartTransaction102 putBatch success'); expect(err == undefined).assertTrue(); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testDeviceKvStorestartTransaction102 deleteBatch success'); + console.info('testDeviceKvStorestartTransaction102 deleteBatch success'); expect(err == undefined).assertTrue(); await kvStore.rollback(async function (err,data) { - console.log('testDeviceKvStorestartTransaction102 rollback success'); + console.info('testDeviceKvStorestartTransaction102 rollback success'); expect(err == undefined).assertTrue(); await sleep(2000); expect(count == 0).assertTrue(); @@ -1424,7 +1424,7 @@ describe('DeviceKvStoreCallbackTest', function () { }); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction102 e ' + e); + console.info('testDeviceKvStorestartTransaction102 e ' + e); expect(null).assertFail(); done(); } @@ -1436,19 +1436,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction testcase 103 */ it('testDeviceKvStorestartTransaction103', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction103'); + console.info('testDeviceKvStorestartTransaction103'); try { await kvStore.startTransaction(1, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStorestartTransaction103 startTransaction success'); + console.info('testDeviceKvStorestartTransaction103 startTransaction success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStorestartTransaction103 startTransaction fail'); + console.info('testDeviceKvStorestartTransaction103 startTransaction fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction103 e ' + e); + console.info('testDeviceKvStorestartTransaction103 e ' + e); done(); } }) @@ -1459,19 +1459,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction testcase 104 */ it('testDeviceKvStorestartTransaction104', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction104'); + console.info('testDeviceKvStorestartTransaction104'); try { await kvStore.startTransaction('test_string', function (err,data) { if (err == undefined) { - console.log('testDeviceKvStorestartTransaction104 startTransaction success'); + console.info('testDeviceKvStorestartTransaction104 startTransaction success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStorestartTransaction104 startTransaction fail'); + console.info('testDeviceKvStorestartTransaction104 startTransaction fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction104 e ' + e); + console.info('testDeviceKvStorestartTransaction104 e ' + e); done(); } }) @@ -1482,19 +1482,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction testcase 105 */ it('testDeviceKvStorestartTransaction105', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction105'); + console.info('testDeviceKvStorestartTransaction105'); try { await kvStore.startTransaction(2.000, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStorestartTransaction105 startTransaction success'); + console.info('testDeviceKvStorestartTransaction105 startTransaction success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStorestartTransaction105 startTransaction fail'); + console.info('testDeviceKvStorestartTransaction105 startTransaction fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction105 e ' + e); + console.info('testDeviceKvStorestartTransaction105 e ' + e); done(); } }) @@ -1505,19 +1505,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Commit testcase 101 */ it('testDeviceKvStoreCommit101', 0, async function (done) { - console.log('testDeviceKvStoreCommit101'); + console.info('testDeviceKvStoreCommit101'); try { await kvStore.commit(1, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreCommit101 commit success'); + console.info('testDeviceKvStoreCommit101 commit success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreCommit101 commit fail'); + console.info('testDeviceKvStoreCommit101 commit fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreCommit101 e ' + e); + console.info('testDeviceKvStoreCommit101 e ' + e); done(); } }) @@ -1528,19 +1528,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Commit testcase 102 */ it('testDeviceKvStoreCommit102', 0, async function (done) { - console.log('testDeviceKvStoreCommit102'); + console.info('testDeviceKvStoreCommit102'); try { await kvStore.commit('test_string', function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreCommit102 commit success'); + console.info('testDeviceKvStoreCommit102 commit success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreCommit102 commit fail'); + console.info('testDeviceKvStoreCommit102 commit fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreCommit102 e ' + e); + console.info('testDeviceKvStoreCommit102 e ' + e); done(); } }) @@ -1551,19 +1551,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Commit testcase 103 */ it('testDeviceKvStoreCommit103', 0, async function (done) { - console.log('testDeviceKvStoreCommit103'); + console.info('testDeviceKvStoreCommit103'); try { await kvStore.commit(2.000, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreCommit103 commit success'); + console.info('testDeviceKvStoreCommit103 commit success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreCommit103 commit fail'); + console.info('testDeviceKvStoreCommit103 commit fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreCommit103 e ' + e); + console.info('testDeviceKvStoreCommit103 e ' + e); done(); } }) @@ -1574,19 +1574,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Rollback testcase 101 */ it('testDeviceKvStoreRollback101', 0, async function (done) { - console.log('testDeviceKvStoreRollback101'); + console.info('testDeviceKvStoreRollback101'); try { await kvStore.rollback(1, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreRollback101 commit success'); + console.info('testDeviceKvStoreRollback101 commit success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreRollback101 commit fail'); + console.info('testDeviceKvStoreRollback101 commit fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreRollback101 e ' + e); + console.info('testDeviceKvStoreRollback101 e ' + e); done(); } }) @@ -1597,19 +1597,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Rollback testcase 102 */ it('testDeviceKvStoreRollback102', 0, async function (done) { - console.log('testDeviceKvStoreRollback102'); + console.info('testDeviceKvStoreRollback102'); try { await kvStore.rollback('test_string', function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreRollback102 commit success'); + console.info('testDeviceKvStoreRollback102 commit success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreRollback102 commit fail'); + console.info('testDeviceKvStoreRollback102 commit fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreRollback102 e ' + e); + console.info('testDeviceKvStoreRollback102 e ' + e); done(); } }) @@ -1620,19 +1620,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Rollback testcase 103 */ it('testDeviceKvStoreRollback103', 0, async function (done) { - console.log('testDeviceKvStoreRollback103'); + console.info('testDeviceKvStoreRollback103'); try { await kvStore.rollback(2.000, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreRollback103 commit success'); + console.info('testDeviceKvStoreRollback103 commit success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreRollback103 commit fail'); + console.info('testDeviceKvStoreRollback103 commit fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreRollback103 e ' + e); + console.info('testDeviceKvStoreRollback103 e ' + e); done(); } }) @@ -1643,20 +1643,20 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync testcase 101 */ it('testDeviceKvStoreEnableSync101', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync101'); + console.info('testDeviceKvStoreEnableSync101'); try { await kvStore.enableSync(true, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreEnableSync101 enableSync success'); + console.info('testDeviceKvStoreEnableSync101 enableSync success'); expect(err == undefined).assertTrue(); } else { - console.log('testDeviceKvStoreEnableSync101 enableSync fail'); + console.info('testDeviceKvStoreEnableSync101 enableSync fail'); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync101 e ' + e); + console.info('testDeviceKvStoreEnableSync101 e ' + e); expect(null).assertFail(); done(); } @@ -1668,20 +1668,20 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync testcase 102 */ it('testDeviceKvStoreEnableSync102', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync102'); + console.info('testDeviceKvStoreEnableSync102'); try { await kvStore.enableSync(false, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreEnableSync102 enableSync success'); + console.info('testDeviceKvStoreEnableSync102 enableSync success'); expect(err == undefined).assertTrue(); } else { - console.log('testDeviceKvStoreEnableSync102 enableSync fail'); + console.info('testDeviceKvStoreEnableSync102 enableSync fail'); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync102 e ' + e); + console.info('testDeviceKvStoreEnableSync102 e ' + e); expect(null).assertFail(); done(); } @@ -1693,19 +1693,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync testcase 103 */ it('testDeviceKvStoreEnableSync103', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync103'); + console.info('testDeviceKvStoreEnableSync103'); try { await kvStore.enableSync(function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreEnableSync103 enableSync success'); + console.info('testDeviceKvStoreEnableSync103 enableSync success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreEnableSync103 enableSync fail'); + console.info('testDeviceKvStoreEnableSync103 enableSync fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync103 e ' + e); + console.info('testDeviceKvStoreEnableSync103 e ' + e); done(); } }) @@ -1716,19 +1716,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync testcase 104 */ it('testDeviceKvStoreEnableSync104', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync104'); + console.info('testDeviceKvStoreEnableSync104'); try { await kvStore.enableSync(null, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreEnableSync104 enableSync success'); + console.info('testDeviceKvStoreEnableSync104 enableSync success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreEnableSync104 enableSync fail'); + console.info('testDeviceKvStoreEnableSync104 enableSync fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync104 e ' + e); + console.info('testDeviceKvStoreEnableSync104 e ' + e); done(); } }) @@ -1739,21 +1739,21 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData testcase 101 */ it('testDeviceKvStoreRemoveDeviceData101', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData101'); + console.info('testDeviceKvStoreRemoveDeviceData101'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, async function (err,data) { - console.log('testDeviceKvStoreRemoveDeviceData101 put success'); + console.info('testDeviceKvStoreRemoveDeviceData101 put success'); expect(err == undefined).assertTrue(); var deviceid = 'no_exist_device_id'; await kvStore.removeDeviceData(deviceid, async function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreRemoveDeviceData101 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData101 removeDeviceData success'); expect(null).assertFail(); done(); } else { - console.log('testDeviceKvStoreRemoveDeviceData101 removeDeviceData fail'); + console.info('testDeviceKvStoreRemoveDeviceData101 removeDeviceData fail'); await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT, async function (err,data) { - console.log('testDeviceKvStoreRemoveDeviceData101 get success'); + console.info('testDeviceKvStoreRemoveDeviceData101 get success'); expect(data == VALUE_TEST_STRING_ELEMENT).assertTrue(); done(); }); @@ -1761,7 +1761,7 @@ describe('DeviceKvStoreCallbackTest', function () { }); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData101 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData101 e ' + e); expect(null).assertFail(); done(); } @@ -1773,19 +1773,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData testcase 102 */ it('testDeviceKvStoreRemoveDeviceData102', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData102'); + console.info('testDeviceKvStoreRemoveDeviceData102'); try { await kvStore.removeDeviceData(function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreRemoveDeviceData102 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData102 removeDeviceData success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreRemoveDeviceData102 removeDeviceData fail'); + console.info('testDeviceKvStoreRemoveDeviceData102 removeDeviceData fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData101 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData101 e ' + e); done(); } }) @@ -1796,19 +1796,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData testcase 103 */ it('testDeviceKvStoreRemoveDeviceData103', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData103'); + console.info('testDeviceKvStoreRemoveDeviceData103'); try { await kvStore.removeDeviceData('', function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreRemoveDeviceData103 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData103 removeDeviceData success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreRemoveDeviceData103 removeDeviceData fail'); + console.info('testDeviceKvStoreRemoveDeviceData103 removeDeviceData fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData103 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData103 e ' + e); done(); } }) @@ -1819,19 +1819,19 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData testcase 104 */ it('testDeviceKvStoreRemoveDeviceData104', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData104'); + console.info('testDeviceKvStoreRemoveDeviceData104'); try { await kvStore.removeDeviceData(null, function (err,data) { if (err == undefined) { - console.log('testDeviceKvStoreRemoveDeviceData104 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData104 removeDeviceData success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreRemoveDeviceData104 removeDeviceData fail'); + console.info('testDeviceKvStoreRemoveDeviceData104 removeDeviceData fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData104 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData104 e ' + e); done(); } }) @@ -1842,7 +1842,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetResultSet() testcase 101 */ it('testDeviceKvStoreGetResultSet101', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet101'); + console.info('testDeviceKvStoreGetResultSet101'); try { let resultSet; let entries = []; @@ -1858,21 +1858,21 @@ describe('DeviceKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testDeviceKvStoreGetResultSet101 putBatch success'); + console.info('testDeviceKvStoreGetResultSet101 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getResultSet(localDeviceId, 'batch_test_string_key', async function (err, result) { - console.log('testDeviceKvStoreGetResultSet101 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet101 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testDeviceKvStoreGetResultSet101 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet101 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet101 e ' + e); + console.info('testDeviceKvStoreGetResultSet101 e ' + e); expect(null).assertFail(); done(); } @@ -1884,21 +1884,21 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetResultSet() testcase 102 */ it('testDeviceKvStoreGetResultSet102', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet102'); + console.info('testDeviceKvStoreGetResultSet102'); try { let resultSet; await kvStore.getResultSet(localDeviceId, 'batch_test_string_key', async function (err, result) { - console.log('testDeviceKvStoreGetResultSet102 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet102 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 0).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testDeviceKvStoreGetResultSet102 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet102 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet102 e ' + e); + console.info('testDeviceKvStoreGetResultSet102 e ' + e); expect(null).assertFail(); done(); } @@ -1910,16 +1910,16 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetResultSet() testcase 103 */ it('testDeviceKvStoreGetResultSet103', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet103'); + console.info('testDeviceKvStoreGetResultSet103'); try { let resultSet; await kvStore.getResultSet(function (err, result) { - console.log('testDeviceKvStoreGetResultSet103 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet103 getResultSet success'); expect(err != undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet103 e ' + e); + console.info('testDeviceKvStoreGetResultSet103 e ' + e); expect(null).assertFail(); done(); } @@ -1931,16 +1931,16 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetResultSet() testcase 104 */ it('testDeviceKvStoreGetResultSet104', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet104'); + console.info('testDeviceKvStoreGetResultSet104'); try { let resultSet; await kvStore.getResultSet('test_key_string', 123, function (err, result) { - console.log('testDeviceKvStoreGetResultSet104 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet104 getResultSet success'); expect(err != undefined).assertTrue(); done(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet104 e ' + e); + console.info('testDeviceKvStoreGetResultSet104 e ' + e); expect(null).assertFail(); done(); } @@ -1952,7 +1952,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetResultSet() testcase 105 */ it('testDeviceKvStoreGetResultSet105', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet105'); + console.info('testDeviceKvStoreGetResultSet105'); try { let resultSet; let entries = []; @@ -1968,23 +1968,23 @@ describe('DeviceKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testDeviceKvStoreGetResultSet105 putBatch success'); + console.info('testDeviceKvStoreGetResultSet105 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSet(localDeviceId, query, async function (err, result) { - console.log('testDeviceKvStoreGetResultSet105 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet105 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testDeviceKvStoreGetResultSet105 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet105 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }); } catch(e) { - console.log('testDeviceKvStoreGetResultSet105 e ' + e); + console.info('testDeviceKvStoreGetResultSet105 e ' + e); expect(null).assertFail(); done(); } @@ -1996,7 +1996,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetResultSet() testcase 106 */ it('testDeviceKvStoreGetResultSet106', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet106'); + console.info('testDeviceKvStoreGetResultSet106'); try { let resultSet; let entries = []; @@ -2012,24 +2012,24 @@ describe('DeviceKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testDeviceKvStoreGetResultSet106 putBatch success'); + console.info('testDeviceKvStoreGetResultSet106 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); query.deviceId(localDeviceId); await kvStore.getResultSet(query, async function (err, result) { - console.log('testDeviceKvStoreGetResultSet106 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet106 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testDeviceKvStoreGetResultSet106 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet106 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }); } catch(e) { - console.log('testDeviceKvStoreGetResultSet106 e ' + e); + console.info('testDeviceKvStoreGetResultSet106 e ' + e); expect(null).assertFail(); done(); } @@ -2041,21 +2041,21 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet testcase 101 */ it('testDeviceKvStoreCloseResultSet101', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet101'); + console.info('testDeviceKvStoreCloseResultSet101'); try { - console.log('testDeviceKvStoreCloseResultSet101 success'); + console.info('testDeviceKvStoreCloseResultSet101 success'); let resultSet = null; await kvStore.closeResultSet(resultSet, function (err, data) { if (err == undefined) { - console.log('testDeviceKvStoreCloseResultSet101 closeResultSet success'); + console.info('testDeviceKvStoreCloseResultSet101 closeResultSet success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreCloseResultSet101 closeResultSet fail'); + console.info('testDeviceKvStoreCloseResultSet101 closeResultSet fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet101 e ' + e); + console.info('testDeviceKvStoreCloseResultSet101 e ' + e); expect(null).assertFail(); done(); } @@ -2067,25 +2067,25 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet testcase 102 */ it('testDeviceKvStoreCloseResultSet102', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet102'); + console.info('testDeviceKvStoreCloseResultSet102'); try { let resultSet = null; await kvStore.getResultSet(localDeviceId, 'batch_test_string_key', async function(err, result) { - console.log('testDeviceKvStoreCloseResultSet102 getResultSet success'); + console.info('testDeviceKvStoreCloseResultSet102 getResultSet success'); resultSet = result; await kvStore.closeResultSet(resultSet, function (err, data) { if (err == undefined) { - console.log('testDeviceKvStoreCloseResultSet102 closeResultSet success'); + console.info('testDeviceKvStoreCloseResultSet102 closeResultSet success'); expect(err == undefined).assertTrue(); } else { - console.log('testDeviceKvStoreCloseResultSet102 closeResultSet fail'); + console.info('testDeviceKvStoreCloseResultSet102 closeResultSet fail'); expect(null).assertFail(); } done(); }); }); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet102 e ' + e); + console.info('testDeviceKvStoreCloseResultSet102 e ' + e); expect(null).assertFail(); done(); } @@ -2097,20 +2097,20 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet testcase 103 */ it('testDeviceKvStoreCloseResultSet103', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet103'); + console.info('testDeviceKvStoreCloseResultSet103'); try { - console.log('testDeviceKvStoreCloseResultSet103 success'); + console.info('testDeviceKvStoreCloseResultSet103 success'); await kvStore.closeResultSet(function (err, data) { if (err == undefined) { - console.log('testDeviceKvStoreCloseResultSet103 closeResultSet success'); + console.info('testDeviceKvStoreCloseResultSet103 closeResultSet success'); expect(null).assertFail(); } else { - console.log('testDeviceKvStoreCloseResultSet103 closeResultSet fail'); + console.info('testDeviceKvStoreCloseResultSet103 closeResultSet fail'); } done(); }); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet103 e ' + e); + console.info('testDeviceKvStoreCloseResultSet103 e ' + e); expect(null).assertFail(); done(); } @@ -2122,11 +2122,11 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet testcase 104 */ it('testDeviceKvStoreCloseResultSet104', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet104'); + console.info('testDeviceKvStoreCloseResultSet104'); try { - console.log('testDeviceKvStoreCloseResultSet104 success'); + console.info('testDeviceKvStoreCloseResultSet104 success'); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet104 e ' + e); + console.info('testDeviceKvStoreCloseResultSet104 e ' + e); expect(null).assertFail(); } done(); @@ -2138,7 +2138,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(ResultSize) testcase 101 */ it('testDeviceKvStoreGetResultSize101', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSize101'); + console.info('testDeviceKvStoreGetResultSize101'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2153,19 +2153,19 @@ describe('DeviceKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testDeviceKvStoreGetResultSize101 putBatch success'); + console.info('testDeviceKvStoreGetResultSize101 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); query.deviceId(localDeviceId); await kvStore.getResultSize(query, async function (err, resultSize) { - console.log('testDeviceKvStoreGetResultSize101 getResultSet success'); + console.info('testDeviceKvStoreGetResultSize101 getResultSet success'); expect(resultSize == 10).assertTrue(); done(); }); }); } catch(e) { - console.log('testDeviceKvStoreGetResultSize101 e ' + e); + console.info('testDeviceKvStoreGetResultSize101 e ' + e); expect(null).assertFail(); done(); } @@ -2177,7 +2177,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(ResultSize) testcase 102 */ it('testDeviceKvStoreGetResultSize102', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSize102'); + console.info('testDeviceKvStoreGetResultSize102'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2192,18 +2192,18 @@ describe('DeviceKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testDeviceKvStoreGetResultSize102 putBatch success'); + console.info('testDeviceKvStoreGetResultSize102 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSize(localDeviceId, query, async function (err, resultSize) { - console.log('testDeviceKvStoreGetResultSize102 getResultSet success'); + console.info('testDeviceKvStoreGetResultSize102 getResultSet success'); expect(resultSize == 10).assertTrue(); done(); }); }); } catch(e) { - console.log('testDeviceKvStoreGetResultSize102 e ' + e); + console.info('testDeviceKvStoreGetResultSize102 e ' + e); expect(null).assertFail(); done(); } @@ -2215,7 +2215,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetEntries() testcase 101 */ it('testDeviceKvStoreGetEntries101', 0, async function (done) { - console.log('testDeviceKvStoreGetEntries101'); + console.info('testDeviceKvStoreGetEntries101'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2230,25 +2230,25 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStoreGetEntries101 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreGetEntries101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStoreGetEntries101 putBatch success'); + console.info('testDeviceKvStoreGetEntries101 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.deviceId(localDeviceId); query.prefixKey("batch_test"); await kvStore.getEntries(localDeviceId, query, function (err,entrys) { - console.log('testDeviceKvStoreGetEntries101 getEntries success'); - console.log('testDeviceKvStoreGetEntries101 entrys.length: ' + entrys.length); - console.log('testDeviceKvStoreGetEntries101 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStoreGetEntries101 getEntries success'); + console.info('testDeviceKvStoreGetEntries101 entrys.length: ' + entrys.length); + console.info('testDeviceKvStoreGetEntries101 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); done(); }); }); - console.log('testDeviceKvStoreGetEntries101 success'); + console.info('testDeviceKvStoreGetEntries101 success'); }catch(e) { - console.log('testDeviceKvStoreGetEntries101 e ' + e); + console.info('testDeviceKvStoreGetEntries101 e ' + e); expect(null).assertFail(); } done(); @@ -2260,7 +2260,7 @@ describe('DeviceKvStoreCallbackTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetEntries() testcase 102 */ it('testDeviceKvStoreGetEntries102', 0, async function (done) { - console.log('testDeviceKvStoreGetEntries102'); + console.info('testDeviceKvStoreGetEntries102'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2275,26 +2275,26 @@ describe('DeviceKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testDeviceKvStoreGetEntries102 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreGetEntries102 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testDeviceKvStoreGetEntries102 putBatch success'); + console.info('testDeviceKvStoreGetEntries102 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); query.deviceId(localDeviceId); await kvStore.getEntries(query, function (err,entrys) { - console.log('testDeviceKvStoreGetEntries102 getEntries success'); - console.log('testDeviceKvStoreGetEntries102 entrys.length: ' + entrys.length); - console.log('testDeviceKvStoreGetEntries102 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStoreGetEntries102 getEntries success'); + console.info('testDeviceKvStoreGetEntries102 entrys.length: ' + entrys.length); + console.info('testDeviceKvStoreGetEntries102 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); done(); }); }); - console.log('testDeviceKvStoreGetEntries101 success'); - console.log('testDeviceKvStoreGetEntries102 success'); + console.info('testDeviceKvStoreGetEntries101 success'); + console.info('testDeviceKvStoreGetEntries102 success'); }catch(e) { - console.log('testDeviceKvStoreGetEntries102 e ' + e); + console.info('testDeviceKvStoreGetEntries102 e ' + e); expect(null).assertFail(); } done(); diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStorePromiseJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStorePromiseJsunit.test.js index 809e451abfd6ba107432059292baf1b81788dc73..654d6301ba085e0a8d63c0ddbd9533ef08181dbe 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStorePromiseJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/DeviceKvStorePromiseJsunit.test.js @@ -75,26 +75,26 @@ describe('DeviceKvStorePromiseTest', function () { } beforeAll(async function (done) { - console.log('beforeAll config:'+ JSON.stringify(config)); + console.info('beforeAll config:'+ JSON.stringify(config)); await factory.createKVManager(config).then((manager) => { kvManager = manager; - console.log('beforeAll createKVManager success'); + console.info('beforeAll createKVManager success'); }).catch((err) => { - console.log('beforeAll createKVManager err ' + err); + console.info('beforeAll createKVManager err ' + err); }); await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => { kvStore = store; - console.log('beforeAll getKVStore for getDeviceId success'); + console.info('beforeAll getKVStore for getDeviceId success'); }).catch((err) => { - console.log('beforeAll getKVStore err ' + err); + console.info('beforeAll getKVStore err ' + err); }); var getDeviceId = new Promise((resolve, reject) => { kvStore.on('dataChange', 0, function (data) { - console.log('beforeAll on data change: ' + JSON.stringify(data)); + console.info('beforeAll on data change: ' + JSON.stringify(data)); resolve(data.deviceId); }); kvStore.put("getDeviceId", "byPut").then((data) => { - console.log('beforeAll put success'); + console.info('beforeAll put success'); expect(data == undefined).assertTrue(); }); setTimeout(() => { @@ -102,49 +102,49 @@ describe('DeviceKvStorePromiseTest', function () { }, 2000); }); await getDeviceId.then(function(deviceId) { - console.log('beforeAll getDeviceId ' + JSON.stringify(deviceId)); + console.info('beforeAll getDeviceId ' + JSON.stringify(deviceId)); localDeviceId = deviceId; }).catch((error) => { - console.log('beforeAll can NOT getDeviceId, fail: ' + error); + console.info('beforeAll can NOT getDeviceId, fail: ' + error); expect(null).assertFail(); }); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID); kvStore = null; - console.log('beforeAll end'); + console.info('beforeAll end'); done(); }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); kvManager = null; kvStore = null; done(); }) beforeEach(async function (done) { - console.log('beforeEach' + JSON.stringify(options)); + console.info('beforeEach' + JSON.stringify(options)); await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => { kvStore = store; - console.log('beforeEach getKVStore success'); + console.info('beforeEach getKVStore success'); }).catch((err) => { - console.log('beforeEach getKVStore err ' + err); + console.info('beforeEach getKVStore err ' + err); }); - console.log('beforeEach end'); + console.info('beforeEach end'); done(); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); }).catch((err) => { - console.log('afterEach deleteKVStore err ' + err); + console.info('afterEach deleteKVStore err ' + err); }); }).catch((err) => { - console.log('afterEach closeKVStore err ' + err); + console.info('afterEach closeKVStore err ' + err); }); kvStore = null; done(); @@ -156,16 +156,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(String) testcase 001 */ it('testDeviceKvStorePutString001', 0, async function (done) { - console.log('testDeviceKvStorePutString001'); + console.info('testDeviceKvStorePutString001'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, null).then((data) => { - console.log('testDeviceKvStorePutString001 put success'); + console.info('testDeviceKvStorePutString001 put success'); expect(null).assertFail(); }).catch((error) => { - console.log('testDeviceKvStorePutString001 put error' + error); + console.info('testDeviceKvStorePutString001 put error' + error); }); } catch (e) { - console.log('testDeviceKvStorePutString001 e ' + e); + console.info('testDeviceKvStorePutString001 e ' + e); expect(null).assertFail(); } done(); @@ -177,17 +177,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(String) testcase 002 */ it('testDeviceKvStorePutString002', 0, async function (done) { - console.log('testDeviceKvStorePutString002'); + console.info('testDeviceKvStorePutString002'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, '').then((data) => { - console.log('testDeviceKvStorePutString002 put success'); + console.info('testDeviceKvStorePutString002 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStorePutString002 put error' + error); + console.info('testDeviceKvStorePutString002 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutString002 e ' + e); + console.info('testDeviceKvStorePutString002 e ' + e); expect(null).assertFail(); } done(); @@ -199,17 +199,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(String) testcase 003 */ it('testDeviceKvStorePutString003', 0, async function (done) { - console.log('testDeviceKvStorePutString003'); + console.info('testDeviceKvStorePutString003'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutString003 put success'); + console.info('testDeviceKvStorePutString003 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStorePutString003 put error' + error); + console.info('testDeviceKvStorePutString003 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutString003 e ' + e); + console.info('testDeviceKvStorePutString003 e ' + e); expect(null).assertFail(); } done(); @@ -221,28 +221,28 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(String) testcase 004 */ it('testDeviceKvStorePutString004', 0, async function (done) { - console.log('testDeviceKvStorePutString004'); + console.info('testDeviceKvStorePutString004'); try { var str = ''; for (var i = 0 ; i < 4095; i++) { str += 'x'; } await kvStore.put(KEY_TEST_STRING_ELEMENT, str).then(async (data) => { - console.log('testDeviceKvStorePutString004 put success'); + console.info('testDeviceKvStorePutString004 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutString004 get success data ' + data); + console.info('testDeviceKvStorePutString004 get success data ' + data); expect(str == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutString004 get fail ' + err); + console.info('testDeviceKvStorePutString004 get fail ' + err); expect(null).assertFail(); }); }).catch((error) => { - console.log('testDeviceKvStorePutString004 put error' + error); + console.info('testDeviceKvStorePutString004 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutString004 e ' + e); + console.info('testDeviceKvStorePutString004 e ' + e); expect(null).assertFail(); } done(); @@ -254,24 +254,24 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(String) testcase 001 */ it('testDeviceKvStoreGetString001', 0, async function (done) { - console.log('testDeviceKvStoreGetString001'); + console.info('testDeviceKvStoreGetString001'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then(async (data) => { - console.log('testDeviceKvStoreGetString001 put success'); + console.info('testDeviceKvStoreGetString001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStoreGetString001 get success'); + console.info('testDeviceKvStoreGetString001 get success'); expect(VALUE_TEST_STRING_ELEMENT == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetString001 get fail ' + err); + console.info('testDeviceKvStoreGetString001 get fail ' + err); expect(null).assertFail(); }); }).catch((error) => { - console.log('testDeviceKvStoreGetString001 put error' + error); + console.info('testDeviceKvStoreGetString001 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreGetString001 e ' + e); + console.info('testDeviceKvStoreGetString001 e ' + e); expect(null).assertFail(); } done(); @@ -283,16 +283,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(String) testcase 002 */ it('testDeviceKvStoreGetString002', 0, async function (done) { - console.log('testDeviceKvStoreGetString002'); + console.info('testDeviceKvStoreGetString002'); try { await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStoreGetString002 get success'); + console.info('testDeviceKvStoreGetString002 get success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreGetString002 get fail ' + err); + console.info('testDeviceKvStoreGetString002 get fail ' + err); }); } catch (e) { - console.log('testDeviceKvStoreGetString002 get e ' + e); + console.info('testDeviceKvStoreGetString002 get e ' + e); } done(); }) @@ -303,17 +303,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 001 */ it('testDeviceKvStorePutInt001', 0, async function (done) { - console.log('testDeviceKvStorePutInt001'); + console.info('testDeviceKvStorePutInt001'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutInt001 put success'); + console.info('testDeviceKvStorePutInt001 put success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutInt001 put fail ' + err); + console.info('testDeviceKvStorePutInt001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutInt001 put e ' + e); + console.info('testDeviceKvStorePutInt001 put e ' + e); expect(null).assertFail(); } done(); @@ -325,25 +325,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 002 */ it('testDeviceKvStorePutInt002', 0, async function (done) { - console.log('testDeviceKvStorePutInt002'); + console.info('testDeviceKvStorePutInt002'); try { var intValue = 987654321; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue).then(async (data) => { - console.log('testDeviceKvStorePutInt002 put success'); + console.info('testDeviceKvStorePutInt002 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutInt002 get success'); + console.info('testDeviceKvStorePutInt002 get success'); expect(intValue == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutInt002 get fail ' + err); + console.info('testDeviceKvStorePutInt002 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutInt002 put fail ' + err); + console.info('testDeviceKvStorePutInt002 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutInt002 put e ' + e); + console.info('testDeviceKvStorePutInt002 put e ' + e); expect(null).assertFail(); } done(); @@ -355,25 +355,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 003 */ it('testDeviceKvStorePutInt003', 0, async function (done) { - console.log('testDeviceKvStorePutInt003'); + console.info('testDeviceKvStorePutInt003'); try { var intValue = Number.MAX_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue).then(async (data) => { - console.log('testDeviceKvStorePutInt003 put success'); + console.info('testDeviceKvStorePutInt003 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutInt003 get success'); + console.info('testDeviceKvStorePutInt003 get success'); expect(intValue == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutInt003 get fail ' + err); + console.info('testDeviceKvStorePutInt003 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutInt003 put fail ' + err); + console.info('testDeviceKvStorePutInt003 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutInt003 put e ' + e); + console.info('testDeviceKvStorePutInt003 put e ' + e); expect(null).assertFail(); } done(); @@ -385,25 +385,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Int) testcase 004 */ it('testDeviceKvStorePutInt004', 0, async function (done) { - console.log('testDeviceKvStorePutInt004'); + console.info('testDeviceKvStorePutInt004'); try { var intValue = Number.MIN_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue).then(async (data) => { - console.log('testDeviceKvStorePutInt004 put success'); + console.info('testDeviceKvStorePutInt004 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutInt004 get success'); + console.info('testDeviceKvStorePutInt004 get success'); expect(intValue == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutInt004 get fail ' + err); + console.info('testDeviceKvStorePutInt004 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutInt004 put fail ' + err); + console.info('testDeviceKvStorePutInt004 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutInt004 put e ' + e); + console.info('testDeviceKvStorePutInt004 put e ' + e); expect(null).assertFail(); } done(); @@ -415,24 +415,24 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Int) testcase 001 */ it('testDeviceKvStoreGetInt001', 0, async function (done) { - console.log('testDeviceKvStoreGetInt001'); + console.info('testDeviceKvStoreGetInt001'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT).then(async (data) => { - console.log('testDeviceKvStoreGetInt001 put success'); + console.info('testDeviceKvStoreGetInt001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreGetInt001 get success'); + console.info('testDeviceKvStoreGetInt001 get success'); expect(VALUE_TEST_INT_ELEMENT == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetInt001 get fail ' + err); + console.info('testDeviceKvStoreGetInt001 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreGetInt001 put fail ' + err); + console.info('testDeviceKvStoreGetInt001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreGetInt001 put e ' + e); + console.info('testDeviceKvStoreGetInt001 put e ' + e); expect(null).assertFail(); } done(); @@ -444,17 +444,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Bool) testcase 001 */ it('testDeviceKvStorePutBool001', 0, async function (done) { - console.log('testDeviceKvStorePutBool001'); + console.info('testDeviceKvStorePutBool001'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutBool001 put success'); + console.info('testDeviceKvStorePutBool001 put success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBool001 put fail ' + err); + console.info('testDeviceKvStorePutBool001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutBool001 put e ' + e); + console.info('testDeviceKvStorePutBool001 put e ' + e); expect(null).assertFail(); } done(); @@ -466,25 +466,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Bool) testcase 001 */ it('testDeviceKvStoreGetBool001', 0, async function (done) { - console.log('testDeviceKvStoreGetBool001'); + console.info('testDeviceKvStoreGetBool001'); try { var boolValue = false; await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, boolValue).then(async (data) => { - console.log('testDeviceKvStoreGetBool001 put success'); + console.info('testDeviceKvStoreGetBool001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_BOOLEAN_ELEMENT).then((data) => { - console.log('testDeviceKvStoreGetBool001 get success'); + console.info('testDeviceKvStoreGetBool001 get success'); expect(boolValue == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetBool001 get fail ' + err); + console.info('testDeviceKvStoreGetBool001 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreGetBool001 put fail ' + err); + console.info('testDeviceKvStoreGetBool001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreGetBool001 put e ' + e); + console.info('testDeviceKvStoreGetBool001 put e ' + e); expect(null).assertFail(); } done(); @@ -496,17 +496,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Float) testcase 001 */ it('testDeviceKvStorePutFloat001', 0, async function (done) { - console.log('testDeviceKvStorePutFloat001'); + console.info('testDeviceKvStorePutFloat001'); try { await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStorePutFloat001 put success'); + console.info('testDeviceKvStorePutFloat001 put success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutFloat001 put fail ' + err); + console.info('testDeviceKvStorePutFloat001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStorePutFloat001 put e ' + e); + console.info('testDeviceKvStorePutFloat001 put e ' + e); expect(null).assertFail(); } done(); @@ -518,25 +518,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Float) testcase 001 */ it('testDeviceKvStoreGetFloat001', 0, async function (done) { - console.log('testDeviceKvStoreGetFloat001'); + console.info('testDeviceKvStoreGetFloat001'); try { var floatValue = 123456.654321; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => { - console.log('testDeviceKvStoreGetFloat001 put success'); + console.info('testDeviceKvStoreGetFloat001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreGetFloat001 get success'); + console.info('testDeviceKvStoreGetFloat001 get success'); expect(floatValue == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetFloat001 get fail ' + err); + console.info('testDeviceKvStoreGetFloat001 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreGetFloat001 put fail ' + err); + console.info('testDeviceKvStoreGetFloat001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreGetFloat001 put e ' + e); + console.info('testDeviceKvStoreGetFloat001 put e ' + e); expect(null).assertFail(); } done(); @@ -548,25 +548,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Float) testcase 002 */ it('testDeviceKvStoreGetFloat002', 0, async function (done) { - console.log('testDeviceKvStoreGetFloat002'); + console.info('testDeviceKvStoreGetFloat002'); try { var floatValue = 123456.0; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => { - console.log('testDeviceKvStoreGetFloat002 put success'); + console.info('testDeviceKvStoreGetFloat002 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreGetFloat002 get success'); + console.info('testDeviceKvStoreGetFloat002 get success'); expect(floatValue == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetFloat002 get fail ' + err); + console.info('testDeviceKvStoreGetFloat002 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreGetFloat002 put fail ' + err); + console.info('testDeviceKvStoreGetFloat002 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreGetFloat002 put e ' + e); + console.info('testDeviceKvStoreGetFloat002 put e ' + e); expect(null).assertFail(); } done(); @@ -578,25 +578,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(Float) testcase 003 */ it('testDeviceKvStoreGetFloat003', 0, async function (done) { - console.log('testDeviceKvStoreGetFloat003'); + console.info('testDeviceKvStoreGetFloat003'); try { var floatValue = 123456.00; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => { - console.log('testDeviceKvStoreGetFloat003 put success'); + console.info('testDeviceKvStoreGetFloat003 put success'); expect(data == undefined).assertTrue(); await kvStore.get(localDeviceId, KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreGetFloat003 get success'); + console.info('testDeviceKvStoreGetFloat003 get success'); expect(floatValue == data).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetFloat003 get fail ' + err); + console.info('testDeviceKvStoreGetFloat003 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreGetFloat003 put fail ' + err); + console.info('testDeviceKvStoreGetFloat003 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreGetFloat003 put e ' + e); + console.info('testDeviceKvStoreGetFloat003 put e ' + e); expect(null).assertFail(); } done(); @@ -608,25 +608,25 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteString() testcase 001 */ it('testDeviceKvStoreDeleteString001', 0, async function (done) { - console.log('testDeviceKvStoreDeleteString001'); + console.info('testDeviceKvStoreDeleteString001'); try { var str = 'this is a test string'; await kvStore.put(KEY_TEST_STRING_ELEMENT, str).then(async (data) => { - console.log('testDeviceKvStoreDeleteString001 put success'); + console.info('testDeviceKvStoreDeleteString001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStoreDeleteString001 delete success'); + console.info('testDeviceKvStoreDeleteString001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteString001 delete fail ' + err); + console.info('testDeviceKvStoreDeleteString001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreDeleteString001 put fail ' + err); + console.info('testDeviceKvStoreDeleteString001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreDeleteString001 put e ' + e); + console.info('testDeviceKvStoreDeleteString001 put e ' + e); expect(null).assertFail(); } done(); @@ -638,28 +638,28 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteString() testcase 002 */ it('testDeviceKvStoreDeleteString002', 0, async function (done) { - console.log('testDeviceKvStoreDeleteString002'); + console.info('testDeviceKvStoreDeleteString002'); try { var str = ''; for (var i = 0 ; i < 4096; i++) { str += 'x'; } await kvStore.put(KEY_TEST_STRING_ELEMENT, str).then(async (data) => { - console.log('testDeviceKvStoreDeleteString002 put success'); + console.info('testDeviceKvStoreDeleteString002 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStoreDeleteString002 delete success'); + console.info('testDeviceKvStoreDeleteString002 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteString002 delete fail ' + err); + console.info('testDeviceKvStoreDeleteString002 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreDeleteString002 put fail ' + err); + console.info('testDeviceKvStoreDeleteString002 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreDeleteString002 put e ' + e); + console.info('testDeviceKvStoreDeleteString002 put e ' + e); expect(null).assertFail(); } done(); @@ -671,17 +671,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteString() testcase 003 */ it('testDeviceKvStoreDeleteString003', 0, async function (done) { - console.log('testDeviceKvStoreDeleteString003'); + console.info('testDeviceKvStoreDeleteString003'); try { await kvStore.delete(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStoreDeleteString003 delete success'); + console.info('testDeviceKvStoreDeleteString003 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteString003 delete fail ' + err); + console.info('testDeviceKvStoreDeleteString003 delete fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreDeleteString003 put e ' + e); + console.info('testDeviceKvStoreDeleteString003 put e ' + e); expect(null).assertFail(); } done(); @@ -693,24 +693,24 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteInt() testcase 001 */ it('testDeviceKvStoreDeleteInt001', 0, async function (done) { - console.log('testDeviceKvStoreDeleteInt001'); + console.info('testDeviceKvStoreDeleteInt001'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT).then(async (data) => { - console.log('testDeviceKvStoreDeleteInt001 put success'); + console.info('testDeviceKvStoreDeleteInt001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreDeleteInt001 delete success'); + console.info('testDeviceKvStoreDeleteInt001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteInt001 delete fail ' + err); + console.info('testDeviceKvStoreDeleteInt001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreDeleteInt001 put fail ' + err); + console.info('testDeviceKvStoreDeleteInt001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreDeleteInt001 put e ' + e); + console.info('testDeviceKvStoreDeleteInt001 put e ' + e); expect(null).assertFail(); } done(); @@ -722,24 +722,24 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteFloat() testcase 001 */ it('testDeviceKvStoreDeleteFloat001', 0, async function (done) { - console.log('testDeviceKvStoreDeleteFloat001'); + console.info('testDeviceKvStoreDeleteFloat001'); try { await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then(async (data) => { - console.log('testDeviceKvStoreDeleteFloat001 put success'); + console.info('testDeviceKvStoreDeleteFloat001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreDeleteFloat001 delete success'); + console.info('testDeviceKvStoreDeleteFloat001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteFloat001 delete fail ' + err); + console.info('testDeviceKvStoreDeleteFloat001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreDeleteFloat001 put fail ' + err); + console.info('testDeviceKvStoreDeleteFloat001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreDeleteFloat001 put e ' + e); + console.info('testDeviceKvStoreDeleteFloat001 put e ' + e); expect(null).assertFail(); } done(); @@ -751,24 +751,24 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBool() testcase 001 */ it('testDeviceKvStoreDeleteBool001', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBool001'); + console.info('testDeviceKvStoreDeleteBool001'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT).then(async (data) => { - console.log('testDeviceKvStoreDeleteBool001 put success'); + console.info('testDeviceKvStoreDeleteBool001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_BOOLEAN_ELEMENT).then((data) => { - console.log('testDeviceKvStoreDeleteBool001 delete success'); + console.info('testDeviceKvStoreDeleteBool001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteBool001 delete fail ' + err); + console.info('testDeviceKvStoreDeleteBool001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreDeleteBool001 put fail ' + err); + console.info('testDeviceKvStoreDeleteBool001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testDeviceKvStoreDeleteBool001 put e ' + e); + console.info('testDeviceKvStoreDeleteBool001 put e ' + e); expect(null).assertFail(); } done(); @@ -782,18 +782,18 @@ describe('DeviceKvStorePromiseTest', function () { it('testDeviceKvStoreOnChange001', 0, async function (done) { try { kvStore.on('dataChange', 0, function (data) { - console.log('testDeviceKvStoreOnChange001 0' + JSON.stringify(data)) + console.info('testDeviceKvStoreOnChange001 0' + JSON.stringify(data)) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnChange001 put success'); + console.info('testDeviceKvStoreOnChange001 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnChange001 put fail ' + error); + console.info('testDeviceKvStoreOnChange001 put fail ' + error); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreOnChange001 put e ' + e); + console.info('testDeviceKvStoreOnChange001 put e ' + e); expect(null).assertFail(); } done(); @@ -807,18 +807,18 @@ describe('DeviceKvStorePromiseTest', function () { it('testDeviceKvStoreOnChange002', 0, async function (done) { try { kvStore.on('dataChange', 1, function (data) { - console.log('testDeviceKvStoreOnChange002 0' + JSON.stringify(data)) + console.info('testDeviceKvStoreOnChange002 0' + JSON.stringify(data)) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnChange002 put success'); + console.info('testDeviceKvStoreOnChange002 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnChange002 put fail ' + error); + console.info('testDeviceKvStoreOnChange002 put fail ' + error); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreOnChange002 put e ' + e); + console.info('testDeviceKvStoreOnChange002 put e ' + e); expect(null).assertFail(); } done(); @@ -832,18 +832,18 @@ describe('DeviceKvStorePromiseTest', function () { it('testDeviceKvStoreOnChange003', 0, async function (done) { try { kvStore.on('dataChange', 2, function (data) { - console.log('testDeviceKvStoreOnChange003 0' + JSON.stringify(data)) + console.info('testDeviceKvStoreOnChange003 0' + JSON.stringify(data)) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnChange003 put success'); + console.info('testDeviceKvStoreOnChange003 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnChange003 put fail ' + error); + console.info('testDeviceKvStoreOnChange003 put fail ' + error); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreOnChange003 put e ' + e); + console.info('testDeviceKvStoreOnChange003 put e ' + e); expect(null).assertFail(); } done(); @@ -857,25 +857,25 @@ describe('DeviceKvStorePromiseTest', function () { it('testDeviceKvStoreOnSyncComplete001', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testDeviceKvStoreOnSyncComplete001 0' + data) + console.info('testDeviceKvStoreOnSyncComplete001 0' + data) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT, VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnSyncComplete001 put success'); + console.info('testDeviceKvStoreOnSyncComplete001 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnSyncComplete001 put failed:' + e); + console.info('testDeviceKvStoreOnSyncComplete001 put failed:' + e); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PULL_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode); } catch (e) { - console.log('testDeviceKvStoreOnSyncComplete001 sync no peer device :e:' + e); + console.info('testDeviceKvStoreOnSyncComplete001 sync no peer device :e:' + e); } } catch(e) { - console.log('testDeviceKvStoreOnSyncComplete001 e ' + e); + console.info('testDeviceKvStoreOnSyncComplete001 e ' + e); expect(null).assertFail(); } done(); @@ -889,25 +889,25 @@ describe('DeviceKvStorePromiseTest', function () { it('testDeviceKvStoreOnSyncComplete002', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testDeviceKvStoreOnSyncComplete002 0' + data) + console.info('testDeviceKvStoreOnSyncComplete002 0' + data) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT, VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnSyncComplete002 put success'); + console.info('testDeviceKvStoreOnSyncComplete002 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnSyncComplete002 put failed:' + e); + console.info('testDeviceKvStoreOnSyncComplete002 put failed:' + e); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PUSH_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode); } catch(error) { - console.log('testDeviceKvStoreOnSyncComplete002 no peer device :e:' + error); + console.info('testDeviceKvStoreOnSyncComplete002 no peer device :e:' + error); } } catch(e) { - console.log('testDeviceKvStoreOnSyncComplete002 put e ' + e); + console.info('testDeviceKvStoreOnSyncComplete002 put e ' + e); expect(null).assertFail(); } done(); @@ -921,25 +921,25 @@ describe('DeviceKvStorePromiseTest', function () { it('testDeviceKvStoreOnSyncComplete003', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testDeviceKvStoreOnSyncComplete003 0' + data) + console.info('testDeviceKvStoreOnSyncComplete003 0' + data) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT, VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testDeviceKvStoreOnSyncComplete003 put success'); + console.info('testDeviceKvStoreOnSyncComplete003 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testDeviceKvStoreOnSyncComplete003 put failed:' + e); + console.info('testDeviceKvStoreOnSyncComplete003 put failed:' + e); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PUSH_PULL; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode); } catch(error) { - console.log('testDeviceKvStoreOnSyncComplete003 no peer device :e:' + error); + console.info('testDeviceKvStoreOnSyncComplete003 no peer device :e:' + error); } } catch(e) { - console.log('testDeviceKvStoreOnSyncComplete003 put e ' + e); + console.info('testDeviceKvStoreOnSyncComplete003 put e ' + e); expect(null).assertFail(); } done(); @@ -951,15 +951,15 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffChange() testcase 001 */ it('testDeviceKvStoreOffChange001', 0, async function (done) { - console.log('testDeviceKvStoreOffChange001'); + console.info('testDeviceKvStoreOffChange001'); try { var func = function (data) { - console.log('testDeviceKvStoreOffChange001 0' + data) + console.info('testDeviceKvStoreOffChange001 0' + data) }; kvStore.on('dataChange', 0, func); kvStore.off('dataChange', func); }catch(e) { - console.log('testDeviceKvStoreOffChange001 e ' + e); + console.info('testDeviceKvStoreOffChange001 e ' + e); expect(null).assertFail(); } done(); @@ -971,19 +971,19 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffChange() testcase 002 */ it('testDeviceKvStoreOffChange002', 0, async function (done) { - console.log('testDeviceKvStoreOffChange002'); + console.info('testDeviceKvStoreOffChange002'); try { var func = function (data) { - console.log('testDeviceKvStoreOffChange002 0' + data) + console.info('testDeviceKvStoreOffChange002 0' + data) }; var func1 = function (data) { - console.log('testDeviceKvStoreOffChange002 0' + data) + console.info('testDeviceKvStoreOffChange002 0' + data) }; kvStore.on('dataChange', 0, func); kvStore.on('dataChange', 0, func1); kvStore.off('dataChange', func); }catch(e) { - console.log('testDeviceKvStoreOffChange002 e ' + e); + console.info('testDeviceKvStoreOffChange002 e ' + e); expect(null).assertFail(); } done(); @@ -995,20 +995,20 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffChange() testcase 003 */ it('testDeviceKvStoreOffChange003', 0, async function (done) { - console.log('testDeviceKvStoreOffChange003'); + console.info('testDeviceKvStoreOffChange003'); try { var func = function (data) { - console.log('testDeviceKvStoreOffChange003 0' + data) + console.info('testDeviceKvStoreOffChange003 0' + data) }; var func1 = function (data) { - console.log('testDeviceKvStoreOffChange003 0' + data) + console.info('testDeviceKvStoreOffChange003 0' + data) }; kvStore.on('dataChange', 0, func); kvStore.on('dataChange', 0, func1); kvStore.off('dataChange', func); kvStore.off('dataChange', func1); }catch(e) { - console.log('testDeviceKvStoreOffChange003 e ' + e); + console.info('testDeviceKvStoreOffChange003 e ' + e); expect(null).assertFail(); } done(); @@ -1020,15 +1020,15 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffChange() testcase 004 */ it('testDeviceKvStoreOffChange004', 0, async function (done) { - console.log('testDeviceKvStoreOffChange004'); + console.info('testDeviceKvStoreOffChange004'); try { var func = function (data) { - console.log('testDeviceKvStoreOffChange004 0' + data) + console.info('testDeviceKvStoreOffChange004 0' + data) }; kvStore.on('dataChange', 0, func); kvStore.off('dataChange'); }catch(e) { - console.log('testDeviceKvStoreOffChange004 e ' + e); + console.info('testDeviceKvStoreOffChange004 e ' + e); expect(null).assertFail(); } done(); @@ -1040,15 +1040,15 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffSyncComplete() testcase 001 */ it('testDeviceKvStoreOffSyncComplete001', 0, async function (done) { - console.log('testDeviceKvStoreOffSyncComplete001'); + console.info('testDeviceKvStoreOffSyncComplete001'); try { var func = function (data) { - console.log('testDeviceKvStoreOffSyncComplete001 0' + data) + console.info('testDeviceKvStoreOffSyncComplete001 0' + data) }; kvStore.on('syncComplete', func); kvStore.off('syncComplete', func); }catch(e) { - console.log('testDeviceKvStoreOffSyncComplete001 put e ' + e); + console.info('testDeviceKvStoreOffSyncComplete001 put e ' + e); expect(null).assertFail(); } done(); @@ -1060,20 +1060,20 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffSyncComplete() testcase 002 */ it('testDeviceKvStoreOffSyncComplete002', 0, async function (done) { - console.log('testDeviceKvStoreOffSyncComplete002'); + console.info('testDeviceKvStoreOffSyncComplete002'); try { var func = function (data) { - console.log('testDeviceKvStoreOffSyncComplete002 0' + data) + console.info('testDeviceKvStoreOffSyncComplete002 0' + data) }; var func1 = function (data) { - console.log('testDeviceKvStoreOffSyncComplete002 0' + data) + console.info('testDeviceKvStoreOffSyncComplete002 0' + data) }; kvStore.on('syncComplete', func); kvStore.on('syncComplete', func1); kvStore.off('syncComplete', func); expect(null).assertFail(); }catch(e) { - console.log('testDeviceKvStoreOffSyncComplete002 put e ' + e); + console.info('testDeviceKvStoreOffSyncComplete002 put e ' + e); expect(true).assertTrue(); } done(); @@ -1085,13 +1085,13 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffSyncComplete() testcase 003 */ it('testDeviceKvStoreOffSyncComplete003', 0, async function (done) { - console.log('testDeviceKvStoreOffSyncComplete003'); + console.info('testDeviceKvStoreOffSyncComplete003'); try { var func = function (data) { - console.log('testDeviceKvStoreOffSyncComplete003 0' + data) + console.info('testDeviceKvStoreOffSyncComplete003 0' + data) }; var func1 = function (data) { - console.log('testDeviceKvStoreOffSyncComplete003 0' + data) + console.info('testDeviceKvStoreOffSyncComplete003 0' + data) }; kvStore.on('syncComplete', func); kvStore.on('syncComplete', func1); @@ -1099,7 +1099,7 @@ describe('DeviceKvStorePromiseTest', function () { kvStore.off('syncComplete', func1); expect(null).assertFail(); }catch(e) { - console.log('testDeviceKvStoreOffSyncComplete003 put e ' + e); + console.info('testDeviceKvStoreOffSyncComplete003 put e ' + e); expect(true).assertTrue(); } done(); @@ -1111,15 +1111,15 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.OffSyncComplete() testcase 004 */ it('testDeviceKvStoreOffSyncComplete004', 0, async function (done) { - console.log('testDeviceKvStoreOffSyncComplete004'); + console.info('testDeviceKvStoreOffSyncComplete004'); try { var func = function (data) { - console.log('testDeviceKvStoreOffSyncComplete004 0' + data) + console.info('testDeviceKvStoreOffSyncComplete004 0' + data) }; kvStore.on('syncComplete', func); kvStore.off('syncComplete'); }catch(e) { - console.log('testDeviceKvStoreOffSyncComplete004 put e ' + e); + console.info('testDeviceKvStoreOffSyncComplete004 put e ' + e); expect(null).assertFail(); } done(); @@ -1131,19 +1131,19 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.SetSyncRange() testcase 001 */ it('testDeviceKvStoreSetSyncRange001', 0, async function (done) { - console.log('testDeviceKvStoreSetSyncRange001'); + console.info('testDeviceKvStoreSetSyncRange001'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['C', 'D']; await kvStore.setSyncRange(localLabels, remoteSupportLabels).then((err) => { - console.log('testDeviceKvStoreSetSyncRange001 setSyncRange success'); + console.info('testDeviceKvStoreSetSyncRange001 setSyncRange success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteString003 delete fail ' + err); + console.info('testDeviceKvStoreDeleteString003 delete fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreSetSyncRange001 e ' + e); + console.info('testDeviceKvStoreSetSyncRange001 e ' + e); expect(null).assertFail(); } done(); @@ -1155,19 +1155,19 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.SetSyncRange() testcase 002 */ it('testDeviceKvStoreSetSyncRange002', 0, async function (done) { - console.log('testDeviceKvStoreSetSyncRange002'); + console.info('testDeviceKvStoreSetSyncRange002'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['B', 'C']; await kvStore.setSyncRange(localLabels, remoteSupportLabels).then((err) => { - console.log('testDeviceKvStoreSetSyncRange002 setSyncRange success'); + console.info('testDeviceKvStoreSetSyncRange002 setSyncRange success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreSetSyncRange002 delete fail ' + err); + console.info('testDeviceKvStoreSetSyncRange002 delete fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreSetSyncRange002 e ' + e); + console.info('testDeviceKvStoreSetSyncRange002 e ' + e); expect(null).assertFail(); } done(); @@ -1179,19 +1179,19 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.SetSyncRange() testcase 003 */ it('testDeviceKvStoreSetSyncRange003', 0, async function (done) { - console.log('testDeviceKvStoreSetSyncRange003'); + console.info('testDeviceKvStoreSetSyncRange003'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['A', 'B']; await kvStore.setSyncRange(localLabels, remoteSupportLabels).then((err) => { - console.log('testDeviceKvStoreSetSyncRange003 setSyncRange success'); + console.info('testDeviceKvStoreSetSyncRange003 setSyncRange success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreSetSyncRange003 delete fail ' + err); + console.info('testDeviceKvStoreSetSyncRange003 delete fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreSetSyncRange003 e ' + e); + console.info('testDeviceKvStoreSetSyncRange003 e ' + e); expect(null).assertFail(); } done(); @@ -1203,31 +1203,31 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 001 */ it('testDeviceKvStorePutBatch001', 0, async function (done) { - console.log('testDeviceKvStorePutBatch001'); + console.info('testDeviceKvStorePutBatch001'); try { let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testDeviceKvStorePutBatch001 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorePutBatch001 putBatch success'); + console.info('testDeviceKvStorePutBatch001 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_string_key').then((entrys) => { - console.log('testDeviceKvStorePutBatch001 getEntries success'); - console.log('testDeviceKvStorePutBatch001 entrys.length: ' + entrys.length); - console.log('testDeviceKvStorePutBatch001 entrys[0]: ' + JSON.stringify(entrys[0])); - console.log('testDeviceKvStorePutBatch001 entrys[0].value: ' + JSON.stringify(entrys[0].value)); - console.log('testDeviceKvStorePutBatch001 entrys[0].value.value: ' + entrys[0].value.value); + console.info('testDeviceKvStorePutBatch001 getEntries success'); + console.info('testDeviceKvStorePutBatch001 entrys.length: ' + entrys.length); + console.info('testDeviceKvStorePutBatch001 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testDeviceKvStorePutBatch001 entrys[0].value: ' + JSON.stringify(entrys[0].value)); + console.info('testDeviceKvStorePutBatch001 entrys[0].value.value: ' + entrys[0].value.value); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 'batch_test_string_value').assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch001 getEntries fail ' + err); + console.info('testDeviceKvStorePutBatch001 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutBatch001 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStorePutBatch001 e ' + e); + console.info('testDeviceKvStorePutBatch001 e ' + e); expect(null).assertFail(); } done(); @@ -1239,7 +1239,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 002 */ it('testDeviceKvStorePutBatch002', 0, async function (done) { - console.log('testDeviceKvStorePutBatch002'); + console.info('testDeviceKvStorePutBatch002'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1253,24 +1253,24 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch002 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch002 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorePutBatch002 putBatch success'); + console.info('testDeviceKvStorePutBatch002 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_number_key').then((entrys) => { - console.log('testDeviceKvStorePutBatch002 getEntries success'); + console.info('testDeviceKvStorePutBatch002 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 222).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch002 getEntries fail ' + err); + console.info('testDeviceKvStorePutBatch002 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutBatch002 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch002 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStorePutBatch002 e ' + e); + console.info('testDeviceKvStorePutBatch002 e ' + e); expect(null).assertFail(); } done(); @@ -1282,7 +1282,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 003 */ it('testDeviceKvStorePutBatch003', 0, async function (done) { - console.log('testDeviceKvStorePutBatch003'); + console.info('testDeviceKvStorePutBatch003'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1296,24 +1296,24 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch003 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch003 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorePutBatch003 putBatch success'); + console.info('testDeviceKvStorePutBatch003 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_number_key').then((entrys) => { - console.log('testDeviceKvStorePutBatch003 getEntries success'); + console.info('testDeviceKvStorePutBatch003 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.0).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch003 getEntries fail ' + err); + console.info('testDeviceKvStorePutBatch003 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutBatch003 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch003 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStorePutBatch003 e ' + e); + console.info('testDeviceKvStorePutBatch003 e ' + e); expect(null).assertFail(); } done(); @@ -1325,7 +1325,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 004 */ it('testDeviceKvStorePutBatch004', 0, async function (done) { - console.log('testDeviceKvStorePutBatch004'); + console.info('testDeviceKvStorePutBatch004'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1339,24 +1339,24 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch004 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch004 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorePutBatch004 putBatch success'); + console.info('testDeviceKvStorePutBatch004 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_number_key').then((entrys) => { - console.log('testDeviceKvStorePutBatch004 getEntries success'); + console.info('testDeviceKvStorePutBatch004 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.00).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch004 getEntries fail ' + err); + console.info('testDeviceKvStorePutBatch004 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutBatch004 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch004 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStorePutBatch004 e ' + e); + console.info('testDeviceKvStorePutBatch004 e ' + e); expect(null).assertFail(); } done(); @@ -1368,7 +1368,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 005 */ it('testDeviceKvStorePutBatch005', 0, async function (done) { - console.log('testDeviceKvStorePutBatch005'); + console.info('testDeviceKvStorePutBatch005'); try { var bo = false; let entries = []; @@ -1383,24 +1383,24 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch005 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch005 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorePutBatch005 putBatch success'); + console.info('testDeviceKvStorePutBatch005 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_bool_key').then((entrys) => { - console.log('testDeviceKvStorePutBatch005 getEntries success'); + console.info('testDeviceKvStorePutBatch005 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == bo).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch005 getEntries fail ' + err); + console.info('testDeviceKvStorePutBatch005 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutBatch005 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch005 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStorePutBatch005 e ' + e); + console.info('testDeviceKvStorePutBatch005 e ' + e); expect(null).assertFail(); } done(); @@ -1412,7 +1412,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Put(Batch) testcase 006 */ it('testDeviceKvStorePutBatch006', 0, async function (done) { - console.log('testDeviceKvStorePutBatch006'); + console.info('testDeviceKvStorePutBatch006'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -1427,24 +1427,24 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStorePutBatch006 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorePutBatch006 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorePutBatch006 putBatch success'); + console.info('testDeviceKvStorePutBatch006 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries(localDeviceId, 'batch_test_bool_key').then((entrys) => { - console.log('testDeviceKvStorePutBatch006 getEntries success'); + console.info('testDeviceKvStorePutBatch006 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch006 getEntries fail ' + err); + console.info('testDeviceKvStorePutBatch006 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStorePutBatch006 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch006 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStorePutBatch005 e ' + e); + console.info('testDeviceKvStorePutBatch005 e ' + e); expect(null).assertFail(); } done(); @@ -1456,7 +1456,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBatch() testcase 001 */ it('testDeviceKvStoreDeleteBatch001', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBatch001'); + console.info('testDeviceKvStoreDeleteBatch001'); try { let entries = []; let keys = []; @@ -1472,23 +1472,23 @@ describe('DeviceKvStorePromiseTest', function () { entries.push(entry); keys.push(key + i); } - console.log('testDeviceKvStoreDeleteBatch001 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreDeleteBatch001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreDeleteBatch001 putBatch success'); + console.info('testDeviceKvStoreDeleteBatch001 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.deleteBatch(keys).then((err) => { - console.log('testDeviceKvStoreDeleteBatch001 deleteBatch success'); + console.info('testDeviceKvStoreDeleteBatch001 deleteBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreDeleteBatch001 deleteBatch fail ' + err); + console.info('testDeviceKvStoreDeleteBatch001 deleteBatch fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreDeleteBatch001 putBatch fail ' + err); + console.info('testDeviceKvStoreDeleteBatch001 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteBatch001 e ' + e); + console.info('testDeviceKvStoreDeleteBatch001 e ' + e); expect(null).assertFail(); } done(); @@ -1500,17 +1500,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBatch() testcase 002 */ it('testDeviceKvStoreDeleteBatch002', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBatch002'); + console.info('testDeviceKvStoreDeleteBatch002'); try { let keys = ['batch_test_string_key1', 'batch_test_string_key2']; await kvStore.deleteBatch(keys).then((err) => { - console.log('testDeviceKvStoreDeleteBatch002 deleteBatch success'); + console.info('testDeviceKvStoreDeleteBatch002 deleteBatch success'); }).catch((err) => { - console.log('testDeviceKvStoreDeleteBatch002 deleteBatch fail ' + err); + console.info('testDeviceKvStoreDeleteBatch002 deleteBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteBatch002 e ' + e); + console.info('testDeviceKvStoreDeleteBatch002 e ' + e); expect(null).assertFail(); } done(); @@ -1522,7 +1522,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.DeleteBatch() testcase 003 */ it('testDeviceKvStoreDeleteBatch003', 0, async function (done) { - console.log('testDeviceKvStoreDeleteBatch003'); + console.info('testDeviceKvStoreDeleteBatch003'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1536,23 +1536,23 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStoreDeleteBatch003 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreDeleteBatch003 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreDeleteBatch003 putBatch success'); + console.info('testDeviceKvStoreDeleteBatch003 putBatch success'); expect(err == undefined).assertTrue(); let keys = ['batch_test_string_key1', 'batch_test_string_keya']; await kvStore.deleteBatch(keys).then((err) => { - console.log('testDeviceKvStoreDeleteBatch003 deleteBatch success'); + console.info('testDeviceKvStoreDeleteBatch003 deleteBatch success'); }).catch((err) => { - console.log('testDeviceKvStoreDeleteBatch003 deleteBatch fail ' + err); + console.info('testDeviceKvStoreDeleteBatch003 deleteBatch fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreDeleteBatch003 putBatch fail ' + err); + console.info('testDeviceKvStoreDeleteBatch003 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreDeleteBatch003 e ' + e); + console.info('testDeviceKvStoreDeleteBatch003 e ' + e); expect(null).assertFail(); } done(); @@ -1564,48 +1564,48 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction() testcase 001 */ it('testDeviceKvStorestartTransaction001', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction001'); + console.info('testDeviceKvStorestartTransaction001'); try { var count = 0; kvStore.on('dataChange', 0, function (data) { - console.log('testDeviceKvStorestartTransaction001' + JSON.stringify(data)) + console.info('testDeviceKvStorestartTransaction001' + JSON.stringify(data)) count++; }); await kvStore.startTransaction().then(async (err) => { - console.log('testDeviceKvStorestartTransaction001 startTransaction success'); + console.info('testDeviceKvStorestartTransaction001 startTransaction success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction001 startTransaction fail ' + err); + console.info('testDeviceKvStorestartTransaction001 startTransaction fail ' + err); expect(null).assertFail(); }); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testDeviceKvStorestartTransaction001 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorestartTransaction001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorestartTransaction001 putBatch success'); + console.info('testDeviceKvStorestartTransaction001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction001 putBatch fail ' + err); + console.info('testDeviceKvStorestartTransaction001 putBatch fail ' + err); expect(null).assertFail(); }); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys).then((err) => { - console.log('testDeviceKvStorestartTransaction001 deleteBatch success'); + console.info('testDeviceKvStorestartTransaction001 deleteBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction001 deleteBatch fail ' + err); + console.info('testDeviceKvStorestartTransaction001 deleteBatch fail ' + err); expect(null).assertFail(); }); await kvStore.commit().then(async (err) => { - console.log('testDeviceKvStorestartTransaction001 commit success'); + console.info('testDeviceKvStorestartTransaction001 commit success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction001 commit fail ' + err); + console.info('testDeviceKvStorestartTransaction001 commit fail ' + err); expect(null).assertFail(); }); await sleep(2000); expect(count == 1).assertTrue(); }catch(e) { - console.log('testDeviceKvStorestartTransaction001 e ' + e); + console.info('testDeviceKvStorestartTransaction001 e ' + e); expect(null).assertFail(); } done(); @@ -1617,48 +1617,48 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction() testcase 002 */ it('testDeviceKvStorestartTransaction002', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction002'); + console.info('testDeviceKvStorestartTransaction002'); try { var count = 0; kvStore.on('dataChange', 0, function (data) { - console.log('testDeviceKvStorestartTransaction002' + JSON.stringify(data)) + console.info('testDeviceKvStorestartTransaction002' + JSON.stringify(data)) count++; }); await kvStore.startTransaction().then(async (err) => { - console.log('testDeviceKvStorestartTransaction002 startTransaction success'); + console.info('testDeviceKvStorestartTransaction002 startTransaction success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction002 startTransaction fail ' + err); + console.info('testDeviceKvStorestartTransaction002 startTransaction fail ' + err); expect(null).assertFail(); }); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testDeviceKvStorestartTransaction002 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStorestartTransaction002 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStorestartTransaction002 putBatch success'); + console.info('testDeviceKvStorestartTransaction002 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction002 putBatch fail ' + err); + console.info('testDeviceKvStorestartTransaction002 putBatch fail ' + err); expect(null).assertFail(); }); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys).then((err) => { - console.log('testDeviceKvStorestartTransaction002 deleteBatch success'); + console.info('testDeviceKvStorestartTransaction002 deleteBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction002 deleteBatch fail ' + err); + console.info('testDeviceKvStorestartTransaction002 deleteBatch fail ' + err); expect(null).assertFail(); }); await kvStore.rollback().then(async (err) => { - console.log('testDeviceKvStorestartTransaction002 rollback success'); + console.info('testDeviceKvStorestartTransaction002 rollback success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction002 rollback fail ' + err); + console.info('testDeviceKvStorestartTransaction002 rollback fail ' + err); expect(null).assertFail(); }); await sleep(2000); expect(count == 0).assertTrue(); }catch(e) { - console.log('testDeviceKvStorestartTransaction002 e ' + e); + console.info('testDeviceKvStorestartTransaction002 e ' + e); expect(null).assertFail(); } done(); @@ -1670,16 +1670,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction() testcase 003 */ it('testDeviceKvStorestartTransaction003', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction002'); + console.info('testDeviceKvStorestartTransaction002'); try { await kvStore.startTransaction(1).then(async (err) => { - console.log('testDeviceKvStorestartTransaction003 startTransaction success'); + console.info('testDeviceKvStorestartTransaction003 startTransaction success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction003 startTransaction fail ' + err); + console.info('testDeviceKvStorestartTransaction003 startTransaction fail ' + err); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction003 e ' + e); + console.info('testDeviceKvStorestartTransaction003 e ' + e); } done(); }) @@ -1690,16 +1690,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction() testcase 004 */ it('testDeviceKvStorestartTransaction004', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction004'); + console.info('testDeviceKvStorestartTransaction004'); try { await kvStore.startTransaction('test_string').then(async (err) => { - console.log('testDeviceKvStorestartTransaction004 startTransaction success'); + console.info('testDeviceKvStorestartTransaction004 startTransaction success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction004 startTransaction fail ' + err); + console.info('testDeviceKvStorestartTransaction004 startTransaction fail ' + err); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction004 e ' + e); + console.info('testDeviceKvStorestartTransaction004 e ' + e); } done(); }) @@ -1710,16 +1710,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.startTransaction() testcase 005 */ it('testDeviceKvStorestartTransaction005', 0, async function (done) { - console.log('testDeviceKvStorestartTransaction005'); + console.info('testDeviceKvStorestartTransaction005'); try { await kvStore.startTransaction(2.000).then(async (err) => { - console.log('testDeviceKvStorestartTransaction005 startTransaction success'); + console.info('testDeviceKvStorestartTransaction005 startTransaction success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStorestartTransaction005 startTransaction fail ' + err); + console.info('testDeviceKvStorestartTransaction005 startTransaction fail ' + err); }); }catch(e) { - console.log('testDeviceKvStorestartTransaction005 e ' + e); + console.info('testDeviceKvStorestartTransaction005 e ' + e); } done(); }) @@ -1730,16 +1730,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Commit() testcase 001 */ it('testDeviceKvStoreCommit001', 0, async function (done) { - console.log('testDeviceKvStoreCommit001'); + console.info('testDeviceKvStoreCommit001'); try { await kvStore.commit(1).then(async (err) => { - console.log('testDeviceKvStoreCommit001 commit success'); + console.info('testDeviceKvStoreCommit001 commit success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreCommit001 commit fail ' + err); + console.info('testDeviceKvStoreCommit001 commit fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreCommit001 e ' + e); + console.info('testDeviceKvStoreCommit001 e ' + e); } done(); }) @@ -1750,16 +1750,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Commit() testcase 002 */ it('testDeviceKvStoreCommit002', 0, async function (done) { - console.log('testDeviceKvStoreCommit002'); + console.info('testDeviceKvStoreCommit002'); try { await kvStore.commit('test_string').then(async (err) => { - console.log('testDeviceKvStoreCommit002 commit success'); + console.info('testDeviceKvStoreCommit002 commit success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreCommit002 commit fail ' + err); + console.info('testDeviceKvStoreCommit002 commit fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreCommit002 e ' + e); + console.info('testDeviceKvStoreCommit002 e ' + e); } done(); }) @@ -1770,16 +1770,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Commit() testcase 003 */ it('testDeviceKvStoreCommit003', 0, async function (done) { - console.log('testDeviceKvStoreCommit003'); + console.info('testDeviceKvStoreCommit003'); try { await kvStore.commit(2.000).then(async (err) => { - console.log('testDeviceKvStoreCommit003 commit success'); + console.info('testDeviceKvStoreCommit003 commit success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreCommit003 commit fail ' + err); + console.info('testDeviceKvStoreCommit003 commit fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreCommit003 e ' + e); + console.info('testDeviceKvStoreCommit003 e ' + e); } done(); }) @@ -1790,16 +1790,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Rollback() testcase 001 */ it('testDeviceKvStoreRollback001', 0, async function (done) { - console.log('testDeviceKvStoreRollback001'); + console.info('testDeviceKvStoreRollback001'); try { await kvStore.rollback(1).then(async (err) => { - console.log('testDeviceKvStoreRollback001 rollback success'); + console.info('testDeviceKvStoreRollback001 rollback success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreRollback001 rollback fail ' + err); + console.info('testDeviceKvStoreRollback001 rollback fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreRollback001 e ' + e); + console.info('testDeviceKvStoreRollback001 e ' + e); } done(); }) @@ -1810,16 +1810,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Rollback() testcase 002 */ it('testDeviceKvStoreRollback002', 0, async function (done) { - console.log('testDeviceKvStoreRollback002'); + console.info('testDeviceKvStoreRollback002'); try { await kvStore.rollback('test_string').then(async (err) => { - console.log('testDeviceKvStoreRollback002 rollback success'); + console.info('testDeviceKvStoreRollback002 rollback success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreRollback002 rollback fail ' + err); + console.info('testDeviceKvStoreRollback002 rollback fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreRollback002 e ' + e); + console.info('testDeviceKvStoreRollback002 e ' + e); } done(); }) @@ -1830,16 +1830,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Rollback() testcase 003 */ it('testDeviceKvStoreRollback003', 0, async function (done) { - console.log('testDeviceKvStoreRollback003'); + console.info('testDeviceKvStoreRollback003'); try { await kvStore.rollback(2.000).then(async (err) => { - console.log('testDeviceKvStoreRollback003 rollback success'); + console.info('testDeviceKvStoreRollback003 rollback success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreRollback003 rollback fail ' + err); + console.info('testDeviceKvStoreRollback003 rollback fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreRollback003 e ' + e); + console.info('testDeviceKvStoreRollback003 e ' + e); } done(); }) @@ -1850,17 +1850,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync() testcase 001 */ it('testDeviceKvStoreEnableSync001', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync001'); + console.info('testDeviceKvStoreEnableSync001'); try { await kvStore.enableSync(true).then((err) => { - console.log('testDeviceKvStoreEnableSync001 enableSync success'); + console.info('testDeviceKvStoreEnableSync001 enableSync success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreEnableSync001 enableSync fail ' + err); + console.info('testDeviceKvStoreEnableSync001 enableSync fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync001 e ' + e); + console.info('testDeviceKvStoreEnableSync001 e ' + e); expect(null).assertFail(); } done(); @@ -1872,17 +1872,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync() testcase 002 */ it('testDeviceKvStoreEnableSync002', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync002'); + console.info('testDeviceKvStoreEnableSync002'); try { await kvStore.enableSync(false).then((err) => { - console.log('testDeviceKvStoreEnableSync002 enableSync success'); + console.info('testDeviceKvStoreEnableSync002 enableSync success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreEnableSync002 enableSync fail ' + err); + console.info('testDeviceKvStoreEnableSync002 enableSync fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync002 e ' + e); + console.info('testDeviceKvStoreEnableSync002 e ' + e); expect(null).assertFail(); } done(); @@ -1894,16 +1894,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync() testcase 003 */ it('testDeviceKvStoreEnableSync003', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync003'); + console.info('testDeviceKvStoreEnableSync003'); try { await kvStore.enableSync().then((err) => { - console.log('testDeviceKvStoreEnableSync003 enableSync success'); + console.info('testDeviceKvStoreEnableSync003 enableSync success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreEnableSync003 enableSync fail ' + err); + console.info('testDeviceKvStoreEnableSync003 enableSync fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync003 e ' + e); + console.info('testDeviceKvStoreEnableSync003 e ' + e); } done(); }) @@ -1914,16 +1914,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.EnableSync() testcase 004 */ it('testDeviceKvStoreEnableSync004', 0, async function (done) { - console.log('testDeviceKvStoreEnableSync004'); + console.info('testDeviceKvStoreEnableSync004'); try { await kvStore.enableSync(null).then((err) => { - console.log('testDeviceKvStoreEnableSync004 enableSync success'); + console.info('testDeviceKvStoreEnableSync004 enableSync success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreEnableSync004 enableSync fail ' + err); + console.info('testDeviceKvStoreEnableSync004 enableSync fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreEnableSync004 e ' + e); + console.info('testDeviceKvStoreEnableSync004 e ' + e); } done(); }) @@ -1934,31 +1934,31 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData() testcase 001 */ it('testDeviceKvStoreRemoveDeviceData001', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData001'); + console.info('testDeviceKvStoreRemoveDeviceData001'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((err) => { - console.log('testDeviceKvStoreRemoveDeviceData001 put success'); + console.info('testDeviceKvStoreRemoveDeviceData001 put success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreRemoveDeviceData001 put fail ' + err); + console.info('testDeviceKvStoreRemoveDeviceData001 put fail ' + err); expect(null).assertFail(); }); var deviceid = 'no_exist_device_id'; await kvStore.removeDeviceData(deviceid).then((err) => { - console.log('testDeviceKvStoreRemoveDeviceData001 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData001 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreRemoveDeviceData001 removeDeviceData fail ' + err); + console.info('testDeviceKvStoreRemoveDeviceData001 removeDeviceData fail ' + err); }); await kvStore.get(localDeviceId, KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testDeviceKvStoreRemoveDeviceData001 get success data:' + data); + console.info('testDeviceKvStoreRemoveDeviceData001 get success data:' + data); expect(data == VALUE_TEST_STRING_ELEMENT).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreRemoveDeviceData001 get fail ' + err); + console.info('testDeviceKvStoreRemoveDeviceData001 get fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData001 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData001 e ' + e); expect(null).assertFail(); } done(); @@ -1970,16 +1970,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData() testcase 002 */ it('testDeviceKvStoreRemoveDeviceData002', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData002'); + console.info('testDeviceKvStoreRemoveDeviceData002'); try { await kvStore.removeDeviceData().then((err) => { - console.log('testDeviceKvStoreRemoveDeviceData002 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData002 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreRemoveDeviceData002 removeDeviceData fail ' + err); + console.info('testDeviceKvStoreRemoveDeviceData002 removeDeviceData fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData002 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData002 e ' + e); } done(); }) @@ -1990,16 +1990,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData() testcase 003 */ it('testDeviceKvStoreRemoveDeviceData003', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData003'); + console.info('testDeviceKvStoreRemoveDeviceData003'); try { await kvStore.removeDeviceData('').then((err) => { - console.log('testDeviceKvStoreRemoveDeviceData003 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData003 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreRemoveDeviceData003 removeDeviceData fail ' + err); + console.info('testDeviceKvStoreRemoveDeviceData003 removeDeviceData fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData003 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData003 e ' + e); } done(); }) @@ -2010,16 +2010,16 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.RemoveDeviceData() testcase 004 */ it('testDeviceKvStoreRemoveDeviceData004', 0, async function (done) { - console.log('testDeviceKvStoreRemoveDeviceData004'); + console.info('testDeviceKvStoreRemoveDeviceData004'); try { await kvStore.removeDeviceData(null).then((err) => { - console.log('testDeviceKvStoreRemoveDeviceData004 removeDeviceData success'); + console.info('testDeviceKvStoreRemoveDeviceData004 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreRemoveDeviceData004 removeDeviceData fail ' + err); + console.info('testDeviceKvStoreRemoveDeviceData004 removeDeviceData fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreRemoveDeviceData004 e ' + e); + console.info('testDeviceKvStoreRemoveDeviceData004 e ' + e); } done(); }) @@ -2030,7 +2030,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.getResultSet() testcase 001 */ it('testDeviceKvStoreGetResultSet001', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet001'); + console.info('testDeviceKvStoreGetResultSet001'); try { let resultSet; let entries = []; @@ -2046,29 +2046,29 @@ describe('DeviceKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreGetResultSet001 putBatch success'); + console.info('testDeviceKvStoreGetResultSet001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch001 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); await kvStore.getResultSet(localDeviceId, 'batch_test_string_key').then((result) => { - console.log('testDeviceKvStoreGetResultSet001 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet001 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet001 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet001 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testDeviceKvStoreGetResultSet001 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet001 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet001 closeResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet001 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet001 e ' + e); + console.info('testDeviceKvStoreGetResultSet001 e ' + e); expect(null).assertFail(); } done(); @@ -2080,26 +2080,26 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.getResultSet() testcase 002 */ it('testDeviceKvStoreGetResultSet002', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet002'); + console.info('testDeviceKvStoreGetResultSet002'); try { let resultSet; await kvStore.getResultSet(localDeviceId, 'batch_test_string_key').then((result) => { - console.log('testDeviceKvStoreGetResultSet002 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet002 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 0).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet002 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet002 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testDeviceKvStoreGetResultSet002 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet002 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet002 closeResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet002 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet002 e ' + e); + console.info('testDeviceKvStoreGetResultSet002 e ' + e); expect(null).assertFail(); } done(); @@ -2111,17 +2111,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.getResultSet() testcase 003 */ it('testDeviceKvStoreGetResultSet003', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet003'); + console.info('testDeviceKvStoreGetResultSet003'); try { let resultSet; await kvStore.getResultSet().then((result) => { - console.log('testDeviceKvStoreGetResultSet003 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet003 getResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet003 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet003 getResultSet fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet003 e ' + e); + console.info('testDeviceKvStoreGetResultSet003 e ' + e); expect(null).assertFail(); } done(); @@ -2133,17 +2133,17 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.getResultSet() testcase 004 */ it('testDeviceKvStoreGetResultSet004', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet004'); + console.info('testDeviceKvStoreGetResultSet004'); try { let resultSet; await kvStore.getResultSet('test_key_string', 123).then((result) => { - console.log('testDeviceKvStoreGetResultSet004 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet004 getResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet004 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet004 getResultSet fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet004 e ' + e); + console.info('testDeviceKvStoreGetResultSet004 e ' + e); expect(null).assertFail(); } done(); @@ -2155,7 +2155,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.getResultSet() testcase 005 */ it('testDeviceKvStoreGetResultSet005', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet005'); + console.info('testDeviceKvStoreGetResultSet005'); try { let resultSet; let entries = []; @@ -2171,33 +2171,33 @@ describe('DeviceKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreGetResultSet005 putBatch success'); + console.info('testDeviceKvStoreGetResultSet005 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch001 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSet(localDeviceId, query).then((result) => { - console.log('testDeviceKvStoreGetResultSet005 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet005 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet005 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet005 getResultSet fail ' + err); expect(null).assertFail(); }); query.deviceId(localDeviceId); - console.log("testDeviceKvStoreGetResultSet005 " + query.getSqlLike()); + console.info("testDeviceKvStoreGetResultSet005 " + query.getSqlLike()); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testDeviceKvStoreGetResultSet005 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet005 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet005 closeResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet005 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet005 e ' + e); + console.info('testDeviceKvStoreGetResultSet005 e ' + e); expect(null).assertFail(); } done(); @@ -2209,7 +2209,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.getResultSet() testcase 006 */ it('testDeviceKvStoreGetResultSet006', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSet006'); + console.info('testDeviceKvStoreGetResultSet006'); try { let resultSet; let entries = []; @@ -2225,33 +2225,33 @@ describe('DeviceKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreGetResultSet006 putBatch success'); + console.info('testDeviceKvStoreGetResultSet006 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch001 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.deviceId(localDeviceId); query.prefixKey("batch_test"); - console.log("testDeviceKvStoreGetResultSet006 " + query.getSqlLike()); + console.info("testDeviceKvStoreGetResultSet006 " + query.getSqlLike()); await kvStore.getResultSet(query).then((result) => { - console.log('testDeviceKvStoreGetResultSet006 getResultSet success'); + console.info('testDeviceKvStoreGetResultSet006 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet006 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet006 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testDeviceKvStoreGetResultSet006 closeResultSet success'); + console.info('testDeviceKvStoreGetResultSet006 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSet006 closeResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSet006 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSet006 e ' + e); + console.info('testDeviceKvStoreGetResultSet006 e ' + e); expect(null).assertFail(); } done(); @@ -2263,18 +2263,18 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet() testcase 001 */ it('testDeviceKvStoreCloseResultSet001', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet001'); + console.info('testDeviceKvStoreCloseResultSet001'); try { - console.log('testDeviceKvStoreCloseResultSet001 success'); + console.info('testDeviceKvStoreCloseResultSet001 success'); let resultSet = null; await kvStore.closeResultSet(resultSet).then(() => { - console.log('testDeviceKvStoreCloseResultSet001 closeResultSet success'); + console.info('testDeviceKvStoreCloseResultSet001 closeResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreCloseResultSet001 closeResultSet fail ' + err); + console.info('testDeviceKvStoreCloseResultSet001 closeResultSet fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet001 e ' + e); + console.info('testDeviceKvStoreCloseResultSet001 e ' + e); expect(null).assertFail(); } done(); @@ -2286,26 +2286,26 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet() testcase 002 */ it('testDeviceKvStoreCloseResultSet002', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet002'); + console.info('testDeviceKvStoreCloseResultSet002'); try { - console.log('testDeviceKvStoreCloseResultSet002 success'); + console.info('testDeviceKvStoreCloseResultSet002 success'); let resultSet = null; await kvStore.getResultSet(localDeviceId, 'batch_test_string_key').then((result) => { - console.log('testDeviceKvStoreCloseResultSet002 getResultSet success'); + console.info('testDeviceKvStoreCloseResultSet002 getResultSet success'); resultSet = result; }).catch((err) => { - console.log('testDeviceKvStoreCloseResultSet002 getResultSet fail ' + err); + console.info('testDeviceKvStoreCloseResultSet002 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testDeviceKvStoreCloseResultSet002 closeResultSet success'); + console.info('testDeviceKvStoreCloseResultSet002 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreCloseResultSet002 closeResultSet fail ' + err); + console.info('testDeviceKvStoreCloseResultSet002 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet002 e ' + e); + console.info('testDeviceKvStoreCloseResultSet002 e ' + e); expect(null).assertFail(); } done(); @@ -2317,18 +2317,18 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet() testcase 003 */ it('testDeviceKvStoreCloseResultSet003', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet003'); + console.info('testDeviceKvStoreCloseResultSet003'); try { - console.log('testDeviceKvStoreCloseResultSet003 success'); + console.info('testDeviceKvStoreCloseResultSet003 success'); let resultSet = null; await kvStore.closeResultSet().then(() => { - console.log('testDeviceKvStoreCloseResultSet003 closeResultSet success'); + console.info('testDeviceKvStoreCloseResultSet003 closeResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testDeviceKvStoreCloseResultSet003 closeResultSet fail ' + err); + console.info('testDeviceKvStoreCloseResultSet003 closeResultSet fail ' + err); }); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet003 e ' + e); + console.info('testDeviceKvStoreCloseResultSet003 e ' + e); expect(null).assertFail(); } done(); @@ -2340,11 +2340,11 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.CloseResultSet() testcase 004 */ it('testDeviceKvStoreCloseResultSet004', 0, async function (done) { - console.log('testDeviceKvStoreCloseResultSet004'); + console.info('testDeviceKvStoreCloseResultSet004'); try { - console.log('testDeviceKvStoreCloseResultSet004 success'); + console.info('testDeviceKvStoreCloseResultSet004 success'); }catch(e) { - console.log('testDeviceKvStoreCloseResultSet004 e ' + e); + console.info('testDeviceKvStoreCloseResultSet004 e ' + e); expect(null).assertFail(); } done(); @@ -2356,7 +2356,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(ResultSize) testcase 001 */ it('testDeviceKvStoreGetResultSize001', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSize001'); + console.info('testDeviceKvStoreGetResultSize001'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2371,24 +2371,24 @@ describe('DeviceKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreGetResultSize001 putBatch success'); + console.info('testDeviceKvStoreGetResultSize001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch001 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.prefixKey("batch_test"); query.deviceId(localDeviceId); await kvStore.getResultSize(query).then((resultSize) => { - console.log('testDeviceKvStoreGetResultSize001 getResultSet success'); + console.info('testDeviceKvStoreGetResultSize001 getResultSet success'); expect(resultSize == 10).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSize001 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSize001 getResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSize001 e ' + e); + console.info('testDeviceKvStoreGetResultSize001 e ' + e); expect(null).assertFail(); } done(); @@ -2400,7 +2400,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.Get(ResultSize) testcase 002 */ it('testDeviceKvStoreGetResultSize002', 0, async function (done) { - console.log('testDeviceKvStoreGetResultSize001'); + console.info('testDeviceKvStoreGetResultSize001'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2415,23 +2415,23 @@ describe('DeviceKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreGetResultSize001 putBatch success'); + console.info('testDeviceKvStoreGetResultSize001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStorePutBatch001 putBatch fail ' + err); + console.info('testDeviceKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSize(localDeviceId, query).then((resultSize) => { - console.log('testDeviceKvStoreGetResultSize001 getResultSet success'); + console.info('testDeviceKvStoreGetResultSize001 getResultSet success'); expect(resultSize == 10).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetResultSize001 getResultSet fail ' + err); + console.info('testDeviceKvStoreGetResultSize001 getResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testDeviceKvStoreGetResultSize001 e ' + e); + console.info('testDeviceKvStoreGetResultSize001 e ' + e); expect(null).assertFail(); } done(); @@ -2443,7 +2443,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetEntries() testcase 001 */ it('testDeviceKvStoreGetEntries001', 0, async function (done) { - console.log('testDeviceKvStoreGetEntries001'); + console.info('testDeviceKvStoreGetEntries001'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2458,28 +2458,28 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStoreGetEntries001 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreGetEntries001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreGetEntries001 putBatch success'); + console.info('testDeviceKvStoreGetEntries001 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.deviceId(localDeviceId); query.prefixKey("batch_test"); await kvStore.getEntries(localDeviceId, query).then((entrys) => { - console.log('testDeviceKvStoreGetEntries001 getEntries success'); + console.info('testDeviceKvStoreGetEntries001 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetEntries001 getEntries fail ' + err); + console.info('testDeviceKvStoreGetEntries001 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreGetEntries001 putBatch fail ' + err); + console.info('testDeviceKvStoreGetEntries001 putBatch fail ' + err); expect(null).assertFail(); }); - console.log('testDeviceKvStoreGetEntries001 success'); + console.info('testDeviceKvStoreGetEntries001 success'); }catch(e) { - console.log('testDeviceKvStoreGetEntries001 e ' + e); + console.info('testDeviceKvStoreGetEntries001 e ' + e); expect(null).assertFail(); } done(); @@ -2491,7 +2491,7 @@ describe('DeviceKvStorePromiseTest', function () { * @tc.desc Test Js Api DeviceKvStore.GetEntries() testcase 002 */ it('testDeviceKvStoreGetEntries002', 0, async function (done) { - console.log('testDeviceKvStoreGetEntries002'); + console.info('testDeviceKvStoreGetEntries002'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2506,28 +2506,28 @@ describe('DeviceKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testDeviceKvStoreGetEntries002 entries: ' + JSON.stringify(entries)); + console.info('testDeviceKvStoreGetEntries002 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testDeviceKvStoreGetEntries002 putBatch success'); + console.info('testDeviceKvStoreGetEntries002 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); query.deviceId(localDeviceId); await kvStore.getEntries(query).then((entrys) => { - console.log('testDeviceKvStoreGetEntries002 getEntries success'); + console.info('testDeviceKvStoreGetEntries002 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); }).catch((err) => { - console.log('testDeviceKvStoreGetEntries002 getEntries fail ' + err); + console.info('testDeviceKvStoreGetEntries002 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testDeviceKvStoreGetEntries002 putBatch fail ' + err); + console.info('testDeviceKvStoreGetEntries002 putBatch fail ' + err); expect(null).assertFail(); }); - console.log('testDeviceKvStoreGetEntries002 success'); + console.info('testDeviceKvStoreGetEntries002 success'); }catch(e) { - console.log('testDeviceKvStoreGetEntries002 e ' + e); + console.info('testDeviceKvStoreGetEntries002 e ' + e); expect(null).assertFail(); } done(); diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js index 014702602e525126f816ef982c00a1367ee503b1..e7d8a29e27a34312880799f8e92d508071813797 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js @@ -36,7 +36,7 @@ describe('FieldNodeTest', function() { child3 = null; node = null; } catch (e) { - console.log("testAppendChild001 " + e); + console.info("testAppendChild001 " + e); expect(null).assertFail(); } done(); @@ -55,7 +55,7 @@ describe('FieldNodeTest', function() { child = null; node = null; } catch (e) { - console.log("testAppendChild002 " + e); + console.info("testAppendChild002 " + e); } done(); }) @@ -72,7 +72,7 @@ describe('FieldNodeTest', function() { node.appendChild(child); expect(null).assertFail(); } catch (e) { - console.log("testAppendChild003 is ok :" + e); + console.info("testAppendChild003 is ok :" + e); } done(); }) @@ -121,7 +121,7 @@ describe('FieldNodeTest', function() { node.appendChild(child); expect(null).assertFail(); } catch (e) { - console.log("testToJson003 is ok : " + e); + console.info("testToJson003 is ok : " + e); } done(); }) @@ -138,7 +138,7 @@ describe('FieldNodeTest', function() { console.info('defaultValue = ' + node.default); expect(node.default === 'first name').assertTrue() } catch (e) { - console.log("testdefault001 fail on exception: " + e); + console.info("testdefault001 fail on exception: " + e); } done(); }) @@ -155,7 +155,7 @@ describe('FieldNodeTest', function() { console.info('nullable = ' + node.nullable); expect(node.nullable === false).assertTrue() } catch (e) { - console.log("testnullable001 fail on exception: " + e); + console.info("testnullable001 fail on exception: " + e); } done(); }) @@ -172,7 +172,7 @@ describe('FieldNodeTest', function() { console.info('type = ' + node.type); expect(node.type === ddm.type.STRING).assertTrue() } catch (e) { - console.log("testtype001 fail on exception: " + e); + console.info("testtype001 fail on exception: " + e); } done(); }) @@ -189,7 +189,7 @@ describe('FieldNodeTest', function() { console.info('type = ' + node.type); expect(node.type === ddm.type.INTEGER).assertTrue() } catch (e) { - console.log("testtype002 fail on exception: " + e); + console.info("testtype002 fail on exception: " + e); } done(); }) @@ -206,7 +206,7 @@ describe('FieldNodeTest', function() { console.info('type = ' + node.type); expect(node.type === ddm.type.FLOAT).assertTrue() } catch (e) { - console.log("testtype003 fail on exception: " + e); + console.info("testtype003 fail on exception: " + e); } done(); }) @@ -223,7 +223,7 @@ describe('FieldNodeTest', function() { console.info('type = ' + node.type); expect(node.type === ddm.type.BYTE_ARRAY).assertTrue() } catch (e) { - console.log("testtype004 fail on exception: " + e); + console.info("testtype004 fail on exception: " + e); } done(); }) @@ -240,7 +240,7 @@ describe('FieldNodeTest', function() { console.info('type = ' + node.type); expect(node.type === ddm.ValueType.BOOLEAN).assertTrue() } catch (e) { - console.log("testtype005 fail on exception: " + e); + console.info("testtype005 fail on exception: " + e); } done(); }) @@ -257,7 +257,7 @@ describe('FieldNodeTest', function() { console.info('type = ' + node.type); expect(node.type === ddm.type.DOUBLE).assertTrue() } catch (e) { - console.log("testtype006 fail on exception: " + e); + console.info("testtype006 fail on exception: " + e); } done(); }) diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerCallbackJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerCallbackJsunit.test.js index a5d4ae72c889fcd43f15b684169101af1bd4ab3d..c72c5c2b8560d6a7043945ed9f423a3afe3e5574 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerCallbackJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerCallbackJsunit.test.js @@ -42,30 +42,30 @@ describe('KVManagerCallbackTest', function () { } beforeAll(async function (done) { - console.log('beforeAll'); + console.info('beforeAll'); await factory.createKVManager(config, function (err, manager) { kvManager = manager; done(); }); - console.log('beforeAll end'); + console.info('beforeAll end'); }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); done(); }) beforeEach(async function (done) { - console.log('beforeEach'); + console.info('beforeEach'); done(); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, async function () { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, function () { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); done(); }); }); @@ -78,15 +78,15 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 101 */ it('testKVManagerGetKVStore101', 0, async function (done) { - console.log('testKVManagerGetKVStore101'); + console.info('testKVManagerGetKVStore101'); try { await kvManager.getKVStore(TEST_STORE_ID, options, function (err, store) { - console.log('testKVManagerGetKVStore101 getKVStore success'); + console.info('testKVManagerGetKVStore101 getKVStore success'); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore101 getKVStore e ' + e); + console.info('testKVManagerGetKVStore101 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -98,19 +98,19 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 102 */ it('testKVManagerGetKVStore102', 0, async function (done) { - console.log('testKVManagerGetKVStore102'); + console.info('testKVManagerGetKVStore102'); try { await kvManager.getKVStore(options, function (err, store) { if (err == undefined) { - console.log('testKVManagerGetKVStore102 getKVStore success'); + console.info('testKVManagerGetKVStore102 getKVStore success'); expect(null).assertFail(); } else { - console.log('testKVManagerGetKVStore102 getKVStore fail'); + console.info('testKVManagerGetKVStore102 getKVStore fail'); } done(); }); } catch (e) { - console.log('testKVManagerGetKVStore102 getKVStore e ' + e); + console.info('testKVManagerGetKVStore102 getKVStore e ' + e); done(); } }) @@ -121,7 +121,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 103 */ it('testKVManagerGetKVStore103', 0, async function (done) { - console.log('testKVManagerGetKVStore103'); + console.info('testKVManagerGetKVStore103'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -133,14 +133,14 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore103 getKVStore success'); - console.log('testKVManagerGetKVStore103 err ' + err + ' store ' + store); + console.info('testKVManagerGetKVStore103 getKVStore success'); + console.info('testKVManagerGetKVStore103 err ' + err + ' store ' + store); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore103 getKVStore e ' + e); + console.info('testKVManagerGetKVStore103 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -152,7 +152,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 104 */ it('testKVManagerGetKVStore104', 0, async function (done) { - console.log('testKVManagerGetKVStore104'); + console.info('testKVManagerGetKVStore104'); const optionsInfo = { createIfMissing : false, encrypt : false, @@ -165,15 +165,15 @@ describe('KVManagerCallbackTest', function () { try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { if (err == undefined) { - console.log('testKVManagerGetKVStore104 getKVStore success'); + console.info('testKVManagerGetKVStore104 getKVStore success'); expect(null).assertFail(); } else { - console.log('testKVManagerGetKVStore104 getKVStore fail'); + console.info('testKVManagerGetKVStore104 getKVStore fail'); } done(); }); } catch (e) { - console.log('testKVManagerGetKVStore104 getKVStore e ' + e); + console.info('testKVManagerGetKVStore104 getKVStore e ' + e); done(); } }) @@ -184,7 +184,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 105 */ it('testKVManagerGetKVStore105', 0, async function (done) { - console.log('testKVManagerGetKVStore105'); + console.info('testKVManagerGetKVStore105'); const optionsInfo = { createIfMissing : true, encrypt : true, @@ -196,13 +196,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore105 getKVStore success'); + console.info('testKVManagerGetKVStore105 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore105 getKVStore e ' + e); + console.info('testKVManagerGetKVStore105 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -214,7 +214,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 106 */ it('testKVManagerGetKVStore106', 0, async function (done) { - console.log('testKVManagerGetKVStore106'); + console.info('testKVManagerGetKVStore106'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -226,13 +226,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore106 getKVStore success'); + console.info('testKVManagerGetKVStore106 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore106 getKVStore e ' + e); + console.info('testKVManagerGetKVStore106 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -244,7 +244,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 107 */ it('testKVManagerGetKVStore107', 0, async function (done) { - console.log('testKVManagerGetKVStore107'); + console.info('testKVManagerGetKVStore107'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -256,13 +256,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore107 getKVStore success'); + console.info('testKVManagerGetKVStore107 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore107 getKVStore e ' + e); + console.info('testKVManagerGetKVStore107 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -274,7 +274,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 108 */ it('testKVManagerGetKVStore108', 0, async function (done) { - console.log('testKVManagerGetKVStore108'); + console.info('testKVManagerGetKVStore108'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -286,13 +286,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore108 getKVStore success'); + console.info('testKVManagerGetKVStore108 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore108 getKVStore e ' + e); + console.info('testKVManagerGetKVStore108 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -304,7 +304,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 109 */ it('testKVManagerGetKVStore109', 0, async function (done) { - console.log('testKVManagerGetKVStore109'); + console.info('testKVManagerGetKVStore109'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -316,13 +316,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore109 getKVStore success'); + console.info('testKVManagerGetKVStore109 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore109 getKVStore e ' + e); + console.info('testKVManagerGetKVStore109 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -334,7 +334,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 110 */ it('testKVManagerGetKVStore110', 0, async function (done) { - console.log('testKVManagerGetKVStore110'); + console.info('testKVManagerGetKVStore110'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -346,13 +346,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore110 getKVStore success'); + console.info('testKVManagerGetKVStore110 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore110 getKVStore e ' + e); + console.info('testKVManagerGetKVStore110 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -364,7 +364,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 111 */ it('testKVManagerGetKVStore111', 0, async function (done) { - console.log('testKVManagerGetKVStore111'); + console.info('testKVManagerGetKVStore111'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -376,13 +376,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore111 getKVStore success'); + console.info('testKVManagerGetKVStore111 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore111 getKVStore e ' + e); + console.info('testKVManagerGetKVStore111 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -394,7 +394,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 112 */ it('testKVManagerGetKVStore112', 0, async function (done) { - console.log('testKVManagerGetKVStore112'); + console.info('testKVManagerGetKVStore112'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -406,13 +406,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore112 getKVStore success'); + console.info('testKVManagerGetKVStore112 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore112 getKVStore e ' + e); + console.info('testKVManagerGetKVStore112 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -424,7 +424,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 113 */ it('testKVManagerGetKVStore113', 0, async function (done) { - console.log('testKVManagerGetKVStore113'); + console.info('testKVManagerGetKVStore113'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -437,16 +437,16 @@ describe('KVManagerCallbackTest', function () { try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { if (err == undefined) { - console.log('testKVManagerGetKVStore113 getKVStore success'); + console.info('testKVManagerGetKVStore113 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); } else { - console.log('testKVManagerGetKVStore113 getKVStore fail'); + console.info('testKVManagerGetKVStore113 getKVStore fail'); expect(null).assertFail(); } done(); }); } catch (e) { - console.log('testKVManagerGetKVStore113 getKVStore e ' + e); + console.info('testKVManagerGetKVStore113 getKVStore e ' + e); done(); } }) @@ -457,7 +457,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 114 */ it('testKVManagerGetKVStore114', 0, async function (done) { - console.log('testKVManagerGetKVStore114'); + console.info('testKVManagerGetKVStore114'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -469,13 +469,13 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore114 getKVStore success'); + console.info('testKVManagerGetKVStore114 getKVStore success'); expect((err == undefined) && (store != null)).assertTrue(); kvStore = store; done(); }); } catch (e) { - console.log('testKVManagerGetKVStore114 getKVStore e ' + e); + console.info('testKVManagerGetKVStore114 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -487,7 +487,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 115 */ it('testKVManagerGetKVStore115', 0, async function (done) { - console.log('testKVManagerGetKVStore115'); + console.info('testKVManagerGetKVStore115'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -499,12 +499,12 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore115 getKVStore success'); + console.info('testKVManagerGetKVStore115 getKVStore success'); expect(true).assertTrue(); done(); }); } catch (e) { - console.log('testKVManagerGetKVStore115 getKVStore e ' + e); + console.info('testKVManagerGetKVStore115 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -516,7 +516,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 116 */ it('testKVManagerGetKVStore116', 0, async function (done) { - console.log('testKVManagerGetKVStore116'); + console.info('testKVManagerGetKVStore116'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -528,12 +528,12 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore116 getKVStore success'); + console.info('testKVManagerGetKVStore116 getKVStore success'); expect(true).assertTrue(); done(); }); } catch (e) { - console.log('testKVManagerGetKVStore116 getKVStore e ' + e); + console.info('testKVManagerGetKVStore116 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -545,7 +545,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 117 */ it('testKVManagerGetKVStore117', 0, async function (done) { - console.log('testKVManagerGetKVStore117'); + console.info('testKVManagerGetKVStore117'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -557,12 +557,12 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore117 getKVStore success'); + console.info('testKVManagerGetKVStore117 getKVStore success'); expect(true).assertTrue(); done(); }); } catch (e) { - console.log('testKVManagerGetKVStore117 getKVStore e ' + e); + console.info('testKVManagerGetKVStore117 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -574,7 +574,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 118 */ it('testKVManagerGetKVStore118', 0, async function (done) { - console.log('testKVManagerGetKVStore118'); + console.info('testKVManagerGetKVStore118'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -586,12 +586,12 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore118 getKVStore success'); + console.info('testKVManagerGetKVStore118 getKVStore success'); expect(true).assertTrue(); done(); }); } catch (e) { - console.log('testKVManagerGetKVStore118 getKVStore e ' + e); + console.info('testKVManagerGetKVStore118 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -603,7 +603,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 119 */ it('testKVManagerGetKVStore119', 0, async function (done) { - console.log('testKVManagerGetKVStore119'); + console.info('testKVManagerGetKVStore119'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -615,12 +615,12 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore119 getKVStore success'); + console.info('testKVManagerGetKVStore119 getKVStore success'); expect(true).assertTrue(); done(); }); } catch (e) { - console.log('testKVManagerGetKVStore119 getKVStore e ' + e); + console.info('testKVManagerGetKVStore119 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -632,7 +632,7 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 120 */ it('testKVManagerGetKVStore120', 0, async function (done) { - console.log('testKVManagerGetKVStore120'); + console.info('testKVManagerGetKVStore120'); const optionsInfo = { createIfMissing : true, encrypt : false, @@ -644,12 +644,12 @@ describe('KVManagerCallbackTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo, function (err, store) { - console.log('testKVManagerGetKVStore120 getKVStore success'); + console.info('testKVManagerGetKVStore120 getKVStore success'); expect(true).assertTrue(); done(); }); } catch (e) { - console.log('testKVManagerGetKVStore119 getKVStore e ' + e); + console.info('testKVManagerGetKVStore119 getKVStore e ' + e); expect(null).assertFail(); done(); } @@ -661,19 +661,19 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.CloseKVStore testcase 101 */ it('testKVManagerCloseKVStore101', 0, async function (done) { - console.log('testKVManagerCloseKVStore101'); + console.info('testKVManagerCloseKVStore101'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerCloseKVStore101 getKVStore success'); + console.info('testKVManagerCloseKVStore101 getKVStore success'); kvStore = store; await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, function (err, data) { - console.log('testKVManagerCloseKVStore101 closeKVStore success'); + console.info('testKVManagerCloseKVStore101 closeKVStore success'); expect((err == undefined) && (data == undefined)).assertTrue(); done(); }); }); } catch (e) { - console.log('testKVManagerCloseKVStore101 e ' + e); + console.info('testKVManagerCloseKVStore101 e ' + e); expect(null).assertFail(); done(); } @@ -685,28 +685,28 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.CloseKVStore testcase 102 */ it('testKVManagerCloseKVStore102', 0, async function (done) { - console.log('testKVManagerCloseKVStore102'); + console.info('testKVManagerCloseKVStore102'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerCloseKVStore102 getKVStore success'); + console.info('testKVManagerCloseKVStore102 getKVStore success'); kvStore = store; try { await kvManager.closeKVStore(TEST_BUNDLE_NAME, function (err, data) { if (err == undefined) { - console.log('testKVManagerCloseKVStore102 closeKVStore success'); + console.info('testKVManagerCloseKVStore102 closeKVStore success'); expect(null).assertFail(); } else { - console.log('testKVManagerCloseKVStore102 closeKVStore fail'); + console.info('testKVManagerCloseKVStore102 closeKVStore fail'); } done(); }); } catch (e) { - console.log('testKVManagerCloseKVStore102 closeKVStore e ' + e); + console.info('testKVManagerCloseKVStore102 closeKVStore e ' + e); done(); } }); } catch (ee) { - console.log('testKVManagerCloseKVStore102 getKVStore ee ' + ee); + console.info('testKVManagerCloseKVStore102 getKVStore ee ' + ee); expect(null).assertFail(); done(); } @@ -718,28 +718,28 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.CloseKVStore testcase 103 */ it('testKVManagerCloseKVStore103', 0, async function (done) { - console.log('testKVManagerCloseKVStore103'); + console.info('testKVManagerCloseKVStore103'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerCloseKVStore103 getKVStore success'); + console.info('testKVManagerCloseKVStore103 getKVStore success'); kvStore = store; try { await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, function (err, data) { if (err == undefined) { - console.log('testKVManagerCloseKVStore103 closeKVStore success'); + console.info('testKVManagerCloseKVStore103 closeKVStore success'); expect(null).assertFail(); } else { - console.log('testKVManagerCloseKVStore103 closeKVStore fail'); + console.info('testKVManagerCloseKVStore103 closeKVStore fail'); } done(); }); } catch (e) { - console.log('testKVManagerCloseKVStore103 closeKVStore e ' + e); + console.info('testKVManagerCloseKVStore103 closeKVStore e ' + e); done(); } }); } catch (ee) { - console.log('testKVManagerCloseKVStore103 getKVStore ee ' + ee); + console.info('testKVManagerCloseKVStore103 getKVStore ee ' + ee); expect(null).assertFail(); done(); } @@ -751,22 +751,22 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.CloseKVStore testcase 104 */ it('testKVManagerCloseKVStore104', 0, async function (done) { - console.log('testKVManagerCloseKVStore104'); + console.info('testKVManagerCloseKVStore104'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerCloseKVStore104 getKVStore success'); + console.info('testKVManagerCloseKVStore104 getKVStore success'); kvStore = store; await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore); }); - console.log('testKVManagerCloseKVStore104 closeKVStore redo.'); + console.info('testKVManagerCloseKVStore104 closeKVStore redo.'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, function (err, data) { - console.log('testKVManagerCloseKVStore104 closeKVStore twice ' + err); + console.info('testKVManagerCloseKVStore104 closeKVStore twice ' + err); if (err == undefined) { expect(null).assertFail(); } }); } catch (e) { - console.log('testKVManagerCloseKVStore104 closeKVStore twice e ' + e); + console.info('testKVManagerCloseKVStore104 closeKVStore twice e ' + e); expect(null).assertFail(); } done(); @@ -778,19 +778,19 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.DeleteKVStore testcase 101 */ it('testKVManagerDeleteKVStore101', 0, async function (done) { - console.log('testKVManagerDeleteKVStore101'); + console.info('testKVManagerDeleteKVStore101'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerDeleteKVStore101 getKVStore success'); + console.info('testKVManagerDeleteKVStore101 getKVStore success'); kvStore = store; await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, function (err, data) { - console.log('testKVManagerDeleteKVStore101 deleteKVStore success'); + console.info('testKVManagerDeleteKVStore101 deleteKVStore success'); expect((err == undefined) && (data == undefined)).assertTrue(); done(); }); }); } catch (e) { - console.log('testKVManagerDeleteKVStore101 e ' + e); + console.info('testKVManagerDeleteKVStore101 e ' + e); expect(null).assertFail(); done(); } @@ -802,28 +802,28 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.DeleteKVStore testcase 102 */ it('testKVManagerDeleteKVStore102', 0, async function (done) { - console.log('testKVManagerDeleteKVStore102'); + console.info('testKVManagerDeleteKVStore102'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerDeleteKVStore102 getKVStore success'); + console.info('testKVManagerDeleteKVStore102 getKVStore success'); kvStore = store; try { await kvManager.deleteKVStore(TEST_BUNDLE_NAME, function (err, data) { if (err == undefined) { - console.log('testKVManagerDeleteKVStore102 deleteKVStore success'); + console.info('testKVManagerDeleteKVStore102 deleteKVStore success'); expect(null).assertFail(); } else { - console.log('testKVManagerDeleteKVStore102 deleteKVStore fail'); + console.info('testKVManagerDeleteKVStore102 deleteKVStore fail'); } done(); }); } catch (e) { - console.log('testKVManagerDeleteKVStore102 deleteKVStore e ' + e); + console.info('testKVManagerDeleteKVStore102 deleteKVStore e ' + e); done(); } }); } catch (ee) { - console.log('testKVManagerDeleteKVStore102 getKVStore ee ' + ee); + console.info('testKVManagerDeleteKVStore102 getKVStore ee ' + ee); expect(null).assertFail(); done(); } @@ -835,19 +835,19 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.DeleteKVStore testcase 103 */ it('testKVManagerDeleteKVStore103', 0, async function (done) { - console.log('testKVManagerDeleteKVStore103'); + console.info('testKVManagerDeleteKVStore103'); try { await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, function (err, data) { if (err == undefined){ - console.log('testKVManagerDeleteKVStore103 deleteKVStore success'); + console.info('testKVManagerDeleteKVStore103 deleteKVStore success'); expect(null).assertFail(); } else { - console.log('testKVManagerDeleteKVStore103 deleteKVStore fail'); + console.info('testKVManagerDeleteKVStore103 deleteKVStore fail'); } done(); }); } catch (e) { - console.log('testKVManagerDeleteKVStore103 e ' + e); + console.info('testKVManagerDeleteKVStore103 e ' + e); done(); } }) @@ -858,16 +858,16 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 101 */ it('testKVManagerGetAllKVStoreId101', 0, async function (done) { - console.log('testKVManagerGetAllKVStoreId101'); + console.info('testKVManagerGetAllKVStoreId101'); try { await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME, function (err, data) { - console.log('testKVManagerGetAllKVStoreId101 getAllKVStoreId success'); - console.log('testKVManagerGetAllKVStoreId101 size = ' + data.length); + console.info('testKVManagerGetAllKVStoreId101 getAllKVStoreId success'); + console.info('testKVManagerGetAllKVStoreId101 size = ' + data.length); expect(0).assertEqual(data.length); done(); }); } catch (e) { - console.log('testKVManagerGetAllKVStoreId101 e ' + e); + console.info('testKVManagerGetAllKVStoreId101 e ' + e); expect(null).assertFail(); done(); } @@ -879,28 +879,28 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 102 */ it('testKVManagerGetAllKVStoreId102', 0, async function (done) { - console.log('testKVManagerGetAllKVStoreId102'); + console.info('testKVManagerGetAllKVStoreId102'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerGetAllKVStoreId102 getKVStore success'); + console.info('testKVManagerGetAllKVStoreId102 getKVStore success'); kvStore = store; try { await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME, function (err, data) { - console.log('testKVManagerGetAllKVStoreId102 getAllKVStoreId success'); - console.log('testKVManagerGetAllKVStoreId102 size = ' + data.length); + console.info('testKVManagerGetAllKVStoreId102 getAllKVStoreId success'); + console.info('testKVManagerGetAllKVStoreId102 size = ' + data.length); expect(1).assertEqual(data.length); - console.log('testKVManagerGetAllKVStoreId102 data[0] = ' + data[0]); + console.info('testKVManagerGetAllKVStoreId102 data[0] = ' + data[0]); expect(TEST_STORE_ID).assertEqual(data[0]); done(); }); } catch (e) { - console.log('testKVManagerGetAllKVStoreId102 getAllKVStoreId e ' + e); + console.info('testKVManagerGetAllKVStoreId102 getAllKVStoreId e ' + e); expect(null).assertFail(); done(); } }); } catch (ee) { - console.log('testKVManagerGetAllKVStoreId102 getKVStore ee ' + ee); + console.info('testKVManagerGetAllKVStoreId102 getKVStore ee ' + ee); expect(null).assertFail(); done(); } @@ -912,17 +912,17 @@ describe('KVManagerCallbackTest', function () { * @tc.desc Test Js Api KVManager.Put testcase 100 */ it('testKVStorePut100', 0, async function (done) { - console.log('testKVStorePut100'); + console.info('testKVStorePut100'); try { await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVStorePut100 getKVStore success'); + console.info('testKVStorePut100 getKVStore success'); kvStore = store; await kvStore.put(STORE_KEY, STORE_VALUE, function (err, data) { if (err != undefined){ - console.log('testKVStorePut100 put callback fail'); + console.info('testKVStorePut100 put callback fail'); expect(null).assertFail(); } else { - console.log('testKVStorePut100 put callback success'); + console.info('testKVStorePut100 put callback success'); expect(true).assertTrue(); } done(); @@ -930,7 +930,7 @@ describe('KVManagerCallbackTest', function () { }); } catch (e) { - console.log('testKVStorePut100 callback e ' + e); + console.info('testKVStorePut100 callback e ' + e); expect(null).assertFail(); done(); } @@ -943,7 +943,7 @@ describe('KVManagerCallbackTest', function () { */ // it('testKVStoreOn101', 0, async function (done) { // kvStoreNew.on('syncComplete', function (data) { -// console.log("testKVStoreOn101 callback call data: " + data); +// console.info("testKVStoreOn101 callback call data: " + data); // expect(true).assertTrue(); // }); // done(); diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerPromiseJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerPromiseJsunit.test.js index 94c26f9824bdea79928c40cfacfc0428522a8289..18cf25dd88d9eb1d420943d1dc0552ec7e02678f 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerPromiseJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvManagerPromiseJsunit.test.js @@ -43,44 +43,44 @@ describe('KVManagerPromiseTest', function () { } beforeAll(async function (done) { - console.log('beforeAll'); + console.info('beforeAll'); await factory.createKVManager(config).then((manager) => { kvManager = manager; - console.log('beforeAll createKVManager success'); + console.info('beforeAll createKVManager success'); kvManager.getKVStore(TEST_STORE_ID, options).then((store) => { - console.log("beforeAll getKVStore success"); + console.info("beforeAll getKVStore success"); kvStoreNew = store; }).catch((err) => { - console.log("beforeAll getKVStore err: " + JSON.stringify(err)); + console.info("beforeAll getKVStore err: " + JSON.stringify(err)); }); }).catch((err) => { - console.log('beforeAll createKVManager err ' + err); + console.info('beforeAll createKVManager err ' + err); }); - console.log('beforeAll end'); + console.info('beforeAll end'); done(); }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); done(); }) beforeEach(async function (done) { - console.log('beforeEach'); + console.info('beforeEach'); done(); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); }).catch((err) => { - console.log('afterEach deleteKVStore err ' + err); + console.info('afterEach deleteKVStore err ' + err); }); }).catch((err) => { - console.log('afterEach closeKVStore err ' + err); + console.info('afterEach closeKVStore err ' + err); }); kvStore = null; done(); @@ -92,16 +92,16 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 001 */ it('testKVManagerGetKVStore001', 0, async function (done) { - console.log('testKVManagerGetKVStore001'); + console.info('testKVManagerGetKVStore001'); try { await kvManager.getKVStore(TEST_STORE_ID).then((store) => { - console.log('testKVManagerGetKVStore001 getKVStore success'); + console.info('testKVManagerGetKVStore001 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore001 getKVStore err ' + err); + console.info('testKVManagerGetKVStore001 getKVStore err ' + err); }); } catch (e) { - console.log('testKVManagerGetKVStore001 getKVStore e ' + e); + console.info('testKVManagerGetKVStore001 getKVStore e ' + e); } done(); }) @@ -112,16 +112,16 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 002 */ it('testKVManagerGetKVStore002', 0, async function (done) { - console.log('testKVManagerGetKVStore002'); + console.info('testKVManagerGetKVStore002'); try { await kvManager.getKVStore(options).then((store) => { - console.log('testKVManagerGetKVStore002 getKVStore success'); + console.info('testKVManagerGetKVStore002 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore002 getKVStore err ' + err); + console.info('testKVManagerGetKVStore002 getKVStore err ' + err); }); } catch (e) { - console.log('testKVManagerGetKVStore002 getKVStore e ' + e); + console.info('testKVManagerGetKVStore002 getKVStore e ' + e); } done(); }) @@ -132,7 +132,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 003 */ it('testKVManagerGetKVStore003', 0, async function (done) { - console.log('testKVManagerGetKVStore003'); + console.info('testKVManagerGetKVStore003'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -143,11 +143,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.NO_LEVEL, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore003 getKVStore success'); + console.info('testKVManagerGetKVStore003 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore003 getKVStore err ' + err); + console.info('testKVManagerGetKVStore003 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -159,7 +159,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 004 */ it('testKVManagerGetKVStore004', 0, async function (done) { - console.log('testKVManagerGetKVStore004'); + console.info('testKVManagerGetKVStore004'); const optionsInfo = { createIfMissing: false, encrypt: false, @@ -170,10 +170,10 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S1, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore004 getKVStore success'); + console.info('testKVManagerGetKVStore004 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore004 getKVStore err ' + err); + console.info('testKVManagerGetKVStore004 getKVStore err ' + err); }); done(); }) @@ -184,7 +184,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 005 */ it('testKVManagerGetKVStore005', 0, async function (done) { - console.log('testKVManagerGetKVStore005'); + console.info('testKVManagerGetKVStore005'); const optionsInfo = { createIfMissing: true, encrypt: true, @@ -195,11 +195,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S2, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore005 getKVStore success'); + console.info('testKVManagerGetKVStore005 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore005 getKVStore err ' + err); + console.info('testKVManagerGetKVStore005 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -211,7 +211,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 006 */ it('testKVManagerGetKVStore006', 0, async function (done) { - console.log('testKVManagerGetKVStore006'); + console.info('testKVManagerGetKVStore006'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -222,11 +222,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S3, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore006 getKVStore success'); + console.info('testKVManagerGetKVStore006 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore006 getKVStore err ' + err); + console.info('testKVManagerGetKVStore006 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -238,7 +238,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 007 */ it('testKVManagerGetKVStore007', 0, async function (done) { - console.log('testKVManagerGetKVStore006'); + console.info('testKVManagerGetKVStore006'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -249,11 +249,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S4, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore007 getKVStore success'); + console.info('testKVManagerGetKVStore007 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore007 getKVStore err ' + err); + console.info('testKVManagerGetKVStore007 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -265,7 +265,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 008 */ it('testKVManagerGetKVStore008', 0, async function (done) { - console.log('testKVManagerGetKVStore008'); + console.info('testKVManagerGetKVStore008'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -276,11 +276,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.NO_LEVEL, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore008 getKVStore success'); + console.info('testKVManagerGetKVStore008 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore008 getKVStore err ' + err); + console.info('testKVManagerGetKVStore008 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -292,7 +292,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 009 */ it('testKVManagerGetKVStore009', 0, async function (done) { - console.log('testKVManagerGetKVStore009'); + console.info('testKVManagerGetKVStore009'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -303,11 +303,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S0, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore009 getKVStore success'); + console.info('testKVManagerGetKVStore009 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore009 getKVStore err ' + err); + console.info('testKVManagerGetKVStore009 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -319,7 +319,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 010 */ it('testKVManagerGetKVStore010', 0, async function (done) { - console.log('testKVManagerGetKVStore010'); + console.info('testKVManagerGetKVStore010'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -330,11 +330,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S1, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore010 getKVStore success'); + console.info('testKVManagerGetKVStore010 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore010 getKVStore err ' + err); + console.info('testKVManagerGetKVStore010 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -346,7 +346,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 011 */ it('testKVManagerGetKVStore011', 0, async function (done) { - console.log('testKVManagerGetKVStore011'); + console.info('testKVManagerGetKVStore011'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -357,11 +357,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S2, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore011 getKVStore success'); + console.info('testKVManagerGetKVStore011 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore011 getKVStore err ' + err); + console.info('testKVManagerGetKVStore011 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -373,7 +373,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 012 */ it('testKVManagerGetKVStore012', 0, async function (done) { - console.log('testKVManagerGetKVStore012'); + console.info('testKVManagerGetKVStore012'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -384,11 +384,11 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S3, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore012 getKVStore success'); + console.info('testKVManagerGetKVStore012 getKVStore success'); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testKVManagerGetKVStore012 getKVStore err ' + err); + console.info('testKVManagerGetKVStore012 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -400,7 +400,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 013 */ it('testKVManagerGetKVStore013', 0, async function (done) { - console.log('testKVManagerGetKVStore013'); + console.info('testKVManagerGetKVStore013'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -412,13 +412,13 @@ describe('KVManagerPromiseTest', function () { } try { await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore013 getKVStore success'); + console.info('testKVManagerGetKVStore013 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore013 getKVStore err ' + err); + console.info('testKVManagerGetKVStore013 getKVStore err ' + err); }); } catch (e) { - console.log('testKVManagerGetKVStore013 getKVStore e ' + e); + console.info('testKVManagerGetKVStore013 getKVStore e ' + e); } done(); }) @@ -429,7 +429,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 014 */ it('testKVManagerGetKVStore014', 0, async function (done) { - console.log('testKVManagerGetKVStore014'); + console.info('testKVManagerGetKVStore014'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -440,10 +440,10 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.NO_LEVEL, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore014 getKVStore success'); + console.info('testKVManagerGetKVStore014 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore014 getKVStore err ' + err); + console.info('testKVManagerGetKVStore014 getKVStore err ' + err); expect(true).assertTrue(); }); done(); @@ -455,7 +455,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 015 */ it('testKVManagerGetKVStore015', 0, async function (done) { - console.log('testKVManagerGetKVStore015'); + console.info('testKVManagerGetKVStore015'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -466,10 +466,10 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S0, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore015 getKVStore success'); + console.info('testKVManagerGetKVStore015 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore015 getKVStore err ' + err); + console.info('testKVManagerGetKVStore015 getKVStore err ' + err); expect(true).assertTrue(); }); done(); @@ -481,7 +481,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 016 */ it('testKVManagerGetKVStore016', 0, async function (done) { - console.log('testKVManagerGetKVStore016'); + console.info('testKVManagerGetKVStore016'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -492,10 +492,10 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S1, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore016 getKVStore success'); + console.info('testKVManagerGetKVStore016 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore016 getKVStore err ' + err); + console.info('testKVManagerGetKVStore016 getKVStore err ' + err); expect(true).assertTrue(); }); done(); @@ -507,7 +507,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 017 */ it('testKVManagerGetKVStore017', 0, async function (done) { - console.log('testKVManagerGetKVStore017'); + console.info('testKVManagerGetKVStore017'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -518,10 +518,10 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S2, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore017 getKVStore success'); + console.info('testKVManagerGetKVStore017 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore017 getKVStore err ' + err); + console.info('testKVManagerGetKVStore017 getKVStore err ' + err); expect(true).assertTrue(); }); done(); @@ -533,7 +533,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 018 */ it('testKVManagerGetKVStore018', 0, async function (done) { - console.log('testKVManagerGetKVStore018'); + console.info('testKVManagerGetKVStore018'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -544,10 +544,10 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S3, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore018 getKVStore success'); + console.info('testKVManagerGetKVStore018 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore018 getKVStore err ' + err); + console.info('testKVManagerGetKVStore018 getKVStore err ' + err); expect(true).assertTrue(); }); done(); @@ -559,7 +559,7 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetKVStore testcase 019 */ it('testKVManagerGetKVStore019', 0, async function (done) { - console.log('testKVManagerGetKVStore019'); + console.info('testKVManagerGetKVStore019'); const optionsInfo = { createIfMissing: true, encrypt: false, @@ -570,10 +570,10 @@ describe('KVManagerPromiseTest', function () { securityLevel: factory.SecurityLevel.S4, } await kvManager.getKVStore(TEST_STORE_ID, optionsInfo).then((store) => { - console.log('testKVManagerGetKVStore019 getKVStore success'); + console.info('testKVManagerGetKVStore019 getKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerGetKVStore019 getKVStore err ' + err); + console.info('testKVManagerGetKVStore019 getKVStore err ' + err); expect(true).assertTrue(); }); done(); @@ -585,18 +585,18 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.CloseKVStore testcase 001 */ it('testKVManagerCloseKVStore001', 0, async function (done) { - console.log('testKVManagerCloseKVStore004'); + console.info('testKVManagerCloseKVStore004'); await kvManager.getKVStore(TEST_STORE_ID, options, async function (err, store) { - console.log('testKVManagerCloseKVStore001 getKVStore success'); + console.info('testKVManagerCloseKVStore001 getKVStore success'); kvStore = store; await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore); }); - console.log('testKVManagerCloseKVStore001 closeKVStore redo.'); + console.info('testKVManagerCloseKVStore001 closeKVStore redo.'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(() => { - console.log('testKVManagerCloseKVStore001 closeKVStore twice'); + console.info('testKVManagerCloseKVStore001 closeKVStore twice'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerCloseKVStore001 closeKVStore twice err ' + err); + console.info('testKVManagerCloseKVStore001 closeKVStore twice err ' + err); }); done(); }) @@ -607,12 +607,12 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.DeleteKVStore testcase 001 */ it('testKVManagerDeleteKVStore001', 0, async function (done) { - console.log('testKVManagerDeleteKVStore001'); + console.info('testKVManagerDeleteKVStore001'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => { - console.log('testKVManagerDeleteKVStore001 deleteKVStore success'); + console.info('testKVManagerDeleteKVStore001 deleteKVStore success'); expect(null).assertFail(); }).catch((err) => { - console.log('testKVManagerDeleteKVStore001 deleteKVStore err ' + err); + console.info('testKVManagerDeleteKVStore001 deleteKVStore err ' + err); }); done(); }) @@ -623,13 +623,13 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 001 */ it('testKVManagerGetAllKVStoreId001', 0, async function (done) { - console.log('testKVManagerGetAllKVStoreId001'); + console.info('testKVManagerGetAllKVStoreId001'); await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME).then((data) => { - console.log('testKVManagerGetAllKVStoreId001 getAllKVStoreId success'); - console.log('testKVManagerGetAllKVStoreId001 size = ' + data.length); + console.info('testKVManagerGetAllKVStoreId001 getAllKVStoreId success'); + console.info('testKVManagerGetAllKVStoreId001 size = ' + data.length); expect(0).assertEqual(data.length); }).catch((err) => { - console.log('testKVManagerGetAllKVStoreId001 getAllKVStoreId err ' + err); + console.info('testKVManagerGetAllKVStoreId001 getAllKVStoreId err ' + err); expect(null).assertFail(); }); done(); @@ -641,22 +641,22 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.GetAllKVStoreId testcase 002 */ it('testKVManagerGetAllKVStoreId002', 0, async function (done) { - console.log('testKVManagerGetAllKVStoreId002'); + console.info('testKVManagerGetAllKVStoreId002'); await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { - console.log('testKVManagerGetAllKVStoreId002 getKVStore success'); + console.info('testKVManagerGetAllKVStoreId002 getKVStore success'); kvStore = store; await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME).then((data) => { - console.log('testKVManagerGetAllKVStoreId002 getAllKVStoreId success'); - console.log('testKVManagerGetAllKVStoreId002 size = ' + data.length); + console.info('testKVManagerGetAllKVStoreId002 getAllKVStoreId success'); + console.info('testKVManagerGetAllKVStoreId002 size = ' + data.length); expect(1).assertEqual(data.length); - console.log('testKVManagerGetAllKVStoreId002 data[0] = ' + data[0]); + console.info('testKVManagerGetAllKVStoreId002 data[0] = ' + data[0]); expect(TEST_STORE_ID).assertEqual(data[0]); }).catch((err) => { - console.log('testKVManagerGetAllKVStoreId002 getAllKVStoreId err ' + err); + console.info('testKVManagerGetAllKVStoreId002 getAllKVStoreId err ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testKVManagerGetAllKVStoreId002 getKVStore err ' + err); + console.info('testKVManagerGetAllKVStoreId002 getKVStore err ' + err); expect(null).assertFail(); }); done(); @@ -668,9 +668,9 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.On testcase 001 */ it('testKVManagerOn001', 0, function (done) { - console.log('testKVManagerOn001'); + console.info('testKVManagerOn001'); var deathCallback = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.on('distributedDataServiceDie', deathCallback); kvManager.off('distributedDataServiceDie', deathCallback); @@ -683,12 +683,12 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.On testcase 002 */ it('testKVManagerOn002', 0, function (done) { - console.log('testKVManagerOn002'); + console.info('testKVManagerOn002'); var deathCallback1 = function () { - console.log('death callback call'); + console.info('death callback call'); } var deathCallback2 = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.on('distributedDataServiceDie', deathCallback1); kvManager.on('distributedDataServiceDie', deathCallback2); @@ -703,9 +703,9 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.On testcase 003 */ it('testKVManagerOn003', 0, function (done) { - console.log('testKVManagerOn003'); + console.info('testKVManagerOn003'); var deathCallback = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.on('distributedDataServiceDie', deathCallback); kvManager.on('distributedDataServiceDie', deathCallback); @@ -719,9 +719,9 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Off testcase 001 */ it('testKVManagerOff001', 0, function (done) { - console.log('testKVManagerOff001'); + console.info('testKVManagerOff001'); var deathCallback = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.off('distributedDataServiceDie', deathCallback); done(); @@ -733,9 +733,9 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Off testcase 002 */ it('testKVManagerOff002', 0, function (done) { - console.log('testKVManagerOff002'); + console.info('testKVManagerOff002'); var deathCallback = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.on('distributedDataServiceDie', deathCallback); kvManager.off('distributedDataServiceDie', deathCallback); @@ -748,12 +748,12 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Off testcase 003 */ it('testKVManagerOff003', 0, function (done) { - console.log('testKVManagerOff003'); + console.info('testKVManagerOff003'); var deathCallback1 = function () { - console.log('death callback call'); + console.info('death callback call'); } var deathCallback2 = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.on('distributedDataServiceDie', deathCallback1); kvManager.on('distributedDataServiceDie', deathCallback2); @@ -767,9 +767,9 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Off testcase 004 */ it('testKVManagerOff004', 0, function (done) { - console.log('testKVManagerOff004'); + console.info('testKVManagerOff004'); var deathCallback = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.on('distributedDataServiceDie', deathCallback); kvManager.off('distributedDataServiceDie', deathCallback); @@ -783,9 +783,9 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Off testcase 005 */ it('testKVManagerOff005', 0, function (done) { - console.log('testKVManagerOff001'); + console.info('testKVManagerOff001'); var deathCallback = function () { - console.log('death callback call'); + console.info('death callback call'); } kvManager.on('distributedDataServiceDie', deathCallback); kvManager.off('distributedDataServiceDie'); @@ -798,19 +798,19 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Put testcase 001 */ it('testKVStorePut001', 0, async function (done) { - console.log('testKVStorePut001'); + console.info('testKVStorePut001'); try { await kvStoreNew.put(TEST_BUNDLE_NAME, TEST_STORE_ID).then((data) => { if (err != undefined){ - console.log('testKVStorePut001 put promise fail'); + console.info('testKVStorePut001 put promise fail'); } else { - console.log('testKVStorePut001 put promise success'); + console.info('testKVStorePut001 put promise success'); expect(null).assertFail(); } done(); }); } catch (e) { - console.log('testKVStorePut001 e ' + e); + console.info('testKVStorePut001 e ' + e); done(); } }) @@ -821,19 +821,19 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Delete testcase 001 */ it('testKVStorePut001', 0, async function (done) { - console.log('testKVStorePut001'); + console.info('testKVStorePut001'); try { await kvStoreNew.put(TEST_BUNDLE_NAME, TEST_STORE_ID).then((data) => { if (err != undefined){ - console.log('testKVStorePut001 put promise fail'); + console.info('testKVStorePut001 put promise fail'); } else { - console.log('testKVStorePut001 put promise success'); + console.info('testKVStorePut001 put promise success'); expect(null).assertFail(); } done(); }); } catch (e) { - console.log('testKVStorePut001 e ' + e); + console.info('testKVStorePut001 e ' + e); done(); } }) @@ -844,21 +844,21 @@ describe('KVManagerPromiseTest', function () { * @tc.desc Test Js Api KVManager.Delete testcase 001 */ it('testKVStoreDelete001', 0, async function (done) { - console.log('testKVStoreDelete001'); + console.info('testKVStoreDelete001'); try { kvStoreNew.put(STORE_KEY, STORE_VALUE).then((data) => { - console.log('testKVStoreDelete001 getKVStore success'); + console.info('testKVStoreDelete001 getKVStore success'); kvStoreNew.delete(STORE_KEY).then((data) => { - console.log("testKVStoreDelete001 promise delete success"); + console.info("testKVStoreDelete001 promise delete success"); expect(null).assertFail(); }).catch((err) => { - console.log('testKVStoreDelete001 promise delete fail err' + err); + console.info('testKVStoreDelete001 promise delete fail err' + err); }); }).catch((err) => { - console.log('testKVStoreDelete001 promise delete fail err' + err); + console.info('testKVStoreDelete001 promise delete fail err' + err); }); }catch (e) { - console.log('testKVStoreDelete001 promise delete fail err' + err); + console.info('testKVStoreDelete001 promise delete fail err' + err); } done(); }) diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvStoreResultSetJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvStoreResultSetJsunit.test.js index 40cb621c0ef3129941915bd536940428ace94e86..44efca2a2cbe0a9efd0cd39a29bb60c6b6a1ab79 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvStoreResultSetJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/KvStoreResultSetJsunit.test.js @@ -41,46 +41,46 @@ describe('KvStoreResultSetTest', function() { } beforeAll(async function (done) { - console.log('beforeAll'); - console.log('beforeAll config:' + JSON.stringify(config)); + console.info('beforeAll'); + console.info('beforeAll config:' + JSON.stringify(config)); await factory.createKVManager(config).then((manager) => { kvManager = manager; - console.log('beforeAll createKVManager success'); + console.info('beforeAll createKVManager success'); }).catch((err) => { - console.log('beforeAll createKVManager err ' + err); + console.info('beforeAll createKVManager err ' + err); }); await kvManager.getAllKVStoreId(TEST_BUNDLE_NAME).then(async (data) => { - console.log('beforeAll getAllKVStoreId size = ' + data.length); + console.info('beforeAll getAllKVStoreId size = ' + data.length); for (var i = 0; i < data.length; i++) { await kvManager.deleteKVStore(TEST_BUNDLE_NAME, data[i]).then(() => { - console.log('beforeAll deleteKVStore success ' + data[i]); + console.info('beforeAll deleteKVStore success ' + data[i]); }).catch((err) => { - console.log('beforeAll deleteKVStore store: ' + data[i]); - console.log('beforeAll deleteKVStore error ' + err); + console.info('beforeAll deleteKVStore store: ' + data[i]); + console.info('beforeAll deleteKVStore error ' + err); }); } }).catch((err) => { - console.log('beforeAll getAllKVStoreId err ' + err); + console.info('beforeAll getAllKVStoreId err ' + err); }); - console.log('beforeAll end'); + console.info('beforeAll end'); done(); }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); kvManager = null; kvStore = null; done(); }) beforeEach(async function (done) { - console.log('beforeEach'); + console.info('beforeEach'); await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => { kvStore = store; - console.log('beforeEach getKVStore success'); + console.info('beforeEach getKVStore success'); }).catch((err) => { - console.log('beforeEach getKVStore err ' + err); + console.info('beforeEach getKVStore err ' + err); }); let entries = []; for (var i = 0; i < 10; i++) { @@ -95,36 +95,36 @@ describe('KvStoreResultSetTest', function() { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('beforeEach putBatch success'); + console.info('beforeEach putBatch success'); }).catch((err) => { - console.log('beforeEach putBatch fail ' + err); + console.info('beforeEach putBatch fail ' + err); }); await kvStore.getResultSet('batch_test_string_key').then((result) => { - console.log('beforeEach getResultSet success'); + console.info('beforeEach getResultSet success'); resultSet = result; }).catch((err) => { - console.log('beforeEach getResultSet fail ' + err); + console.info('beforeEach getResultSet fail ' + err); }); - console.log('beforeEach end'); + console.info('beforeEach end'); done(); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('afterEach closeResultSet success'); + console.info('afterEach closeResultSet success'); }).catch((err) => { - console.log('afterEach closeResultSet fail ' + err); + console.info('afterEach closeResultSet fail ' + err); }); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); }).catch((err) => { - console.log('afterEach deleteKVStore err ' + err); + console.info('afterEach deleteKVStore err ' + err); }); }).catch((err) => { - console.log('afterEach closeKVStore err ' + err); + console.info('afterEach closeKVStore err ' + err); }); kvStore = null; resultSet = null; @@ -139,10 +139,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetCount001', 0, async function(done) { try { var count = resultSet.getCount(); - console.log("testKvStoreResultSetGetCount001 getCount " + count); + console.info("testKvStoreResultSetGetCount001 getCount " + count); expect(count == 10).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetGetCount001 fail " + e); + console.info("testKvStoreResultSetGetCount001 fail " + e); expect(null).assertFail(); } done(); @@ -157,21 +157,21 @@ describe('KvStoreResultSetTest', function() { try { var rs; await kvStore.getResultSet('test').then((result) => { - console.log('testKvStoreResultSetGetCount002 getResultSet success'); + console.info('testKvStoreResultSetGetCount002 getResultSet success'); rs = result; expect(rs.getCount() == 0).assertTrue(); }).catch((err) => { - console.log('testKvStoreResultSetGetCount002 getResultSet fail ' + err); + console.info('testKvStoreResultSetGetCount002 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(rs).then((err) => { - console.log('testKvStoreResultSetGetCount002 closeResultSet success'); + console.info('testKvStoreResultSetGetCount002 closeResultSet success'); }).catch((err) => { - console.log('testKvStoreResultSetGetCount002 closeResultSet fail ' + err); + console.info('testKvStoreResultSetGetCount002 closeResultSet fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testKvStoreResultSetGetCount002 e ' + e); + console.info('testKvStoreResultSetGetCount002 e ' + e); expect(null).assertFail(); } done(); @@ -185,10 +185,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetCount003', 0, async function(done) { try { var count = resultSet.getCount(123); - console.log("testKvStoreResultSetGetCount003 getCount " + count); + console.info("testKvStoreResultSetGetCount003 getCount " + count); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetGetCount003 fail " + e); + console.info("testKvStoreResultSetGetCount003 fail " + e); } done(); }) @@ -201,10 +201,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetCount004', 0, async function(done) { try { var count = resultSet.getCount(123, 'test_string'); - console.log("testKvStoreResultSetGetCount004 getCount " + count); + console.info("testKvStoreResultSetGetCount004 getCount " + count); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetGetCount004 fail " + e); + console.info("testKvStoreResultSetGetCount004 fail " + e); } done(); }) @@ -217,10 +217,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetPosition001', 0, async function(done) { try { var position = resultSet.getPosition(); - console.log("testKvStoreResultSetGetPosition001 getPosition " + position); + console.info("testKvStoreResultSetGetPosition001 getPosition " + position); expect(position == -1).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetGetPosition001 fail " + e); + console.info("testKvStoreResultSetGetPosition001 fail " + e); expect(null).assertFail(); } done(); @@ -234,14 +234,14 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetPosition002', 0, async function(done) { try { var position = resultSet.getPosition(); - console.log("testKvStoreResultSetGetPosition002 getPosition " + position); + console.info("testKvStoreResultSetGetPosition002 getPosition " + position); expect(position).assertEqual(-1); var flag = resultSet.moveToLast(); expect(flag).assertTrue(); position = resultSet.getPosition(); expect(position).assertEqual(9); } catch (e) { - console.log("testKvStoreResultSetGetPosition002 fail " + e); + console.info("testKvStoreResultSetGetPosition002 fail " + e); expect(null).assertFail(); } done(); @@ -255,10 +255,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetPosition003', 0, async function(done) { try { var position = resultSet.getPosition(123); - console.log("testKvStoreResultSetGetPosition003 getPosition " + position); + console.info("testKvStoreResultSetGetPosition003 getPosition " + position); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetGetPosition003 fail " + e); + console.info("testKvStoreResultSetGetPosition003 fail " + e); } done(); }) @@ -271,10 +271,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetPosition004', 0, async function(done) { try { var position = resultSet.getPosition(123, 'test_string'); - console.log("testKvStoreResultSetGetPosition004 getPosition " + position); + console.info("testKvStoreResultSetGetPosition004 getPosition " + position); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetGetPosition004 fail " + e); + console.info("testKvStoreResultSetGetPosition004 fail " + e); } done(); }) @@ -287,11 +287,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToFirst001', 0, async function(done) { try { var moved = resultSet.moveToFirst(); - console.log("testKvStoreResultSetMoveToFirst001 moveToFirst " + moved); + console.info("testKvStoreResultSetMoveToFirst001 moveToFirst " + moved); expect(moved).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetMoveToFirst001 fail " + e); + console.info("testKvStoreResultSetMoveToFirst001 fail " + e); } done(); }) @@ -304,14 +304,14 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToFirst002', 0, async function(done) { try { var moved = resultSet.moveToFirst(); - console.log("testKvStoreResultSetMoveToFirst002 moveToFirst " + moved); + console.info("testKvStoreResultSetMoveToFirst002 moveToFirst " + moved); expect(moved).assertTrue(); var pos = resultSet.getPosition(); - console.log("testKvStoreResultSetMoveToFirst002 getPosition " + pos); + console.info("testKvStoreResultSetMoveToFirst002 getPosition " + pos); expect(pos == 0).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetMoveToFirst002 fail " + e); + console.info("testKvStoreResultSetMoveToFirst002 fail " + e); } done(); }) @@ -324,10 +324,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToFirst003', 0, async function(done) { try { var moved = resultSet.moveToFirst(123); - console.log("testKvStoreResultSetMoveToFirst003 moveToFirst " + moved); + console.info("testKvStoreResultSetMoveToFirst003 moveToFirst " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToFirst003 fail " + e); + console.info("testKvStoreResultSetMoveToFirst003 fail " + e); } done(); }) @@ -340,10 +340,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToFirst004', 0, async function(done) { try { var moved = resultSet.moveToFirst(123, 'test_string'); - console.log("testKvStoreResultSetMoveToFirst004 moveToFirst " + moved); + console.info("testKvStoreResultSetMoveToFirst004 moveToFirst " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToFirst004 fail " + e); + console.info("testKvStoreResultSetMoveToFirst004 fail " + e); } done(); }) @@ -356,12 +356,12 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToFirst005', 0, async function(done) { try { var moved = resultSet.moveToLast(); - console.log("testKvStoreResultSetMoveToFirst004 moveToFirst " + moved); + console.info("testKvStoreResultSetMoveToFirst004 moveToFirst " + moved); expect(moved && (resultSet.getPosition() == 9)).assertTrue(); moved = resultSet.moveToFirst(); expect(moved && (resultSet.getPosition() == 0)).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetMoveToFirst004 fail " + e); + console.info("testKvStoreResultSetMoveToFirst004 fail " + e); } done(); }) @@ -374,11 +374,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToLast001', 0, async function(done) { try { var moved = resultSet.moveToLast(); - console.log("testKvStoreResultSetMoveToLast001 moveToLast " + moved); + console.info("testKvStoreResultSetMoveToLast001 moveToLast " + moved); expect(moved).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetMoveToLast001 fail " + e); + console.info("testKvStoreResultSetMoveToLast001 fail " + e); } done(); }) @@ -391,11 +391,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToLast002', 0, async function(done) { try { var moved = resultSet.moveToLast(); - console.log("testKvStoreResultSetMoveToLast002 moveToLast " + moved); + console.info("testKvStoreResultSetMoveToLast002 moveToLast " + moved); expect(moved && (resultSet.getPosition() == 9)).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetMoveToLast002 fail " + e); + console.info("testKvStoreResultSetMoveToLast002 fail " + e); } done(); }) @@ -408,10 +408,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToLast003', 0, async function(done) { try { var moved = resultSet.moveToLast(123); - console.log("testKvStoreResultSetMoveToLast003 moveToLast " + moved); + console.info("testKvStoreResultSetMoveToLast003 moveToLast " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToLast003 fail " + e); + console.info("testKvStoreResultSetMoveToLast003 fail " + e); } done(); }) @@ -424,10 +424,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToLast004', 0, async function(done) { try { var moved = resultSet.moveToLast(123, 'test_string'); - console.log("testKvStoreResultSetMoveToLast004 moveToLast " + moved); + console.info("testKvStoreResultSetMoveToLast004 moveToLast " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToLast004 fail " + e); + console.info("testKvStoreResultSetMoveToLast004 fail " + e); } done(); }) @@ -440,11 +440,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToNext001', 0, async function(done) { try { var moved = resultSet.moveToNext(); - console.log("testKvStoreResultSetMoveToNext001 moveToNext " + moved); + console.info("testKvStoreResultSetMoveToNext001 moveToNext " + moved); expect(moved && (resultSet.getPosition() == 0)).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetMoveToNext001 fail " + e); + console.info("testKvStoreResultSetMoveToNext001 fail " + e); } done(); }) @@ -457,13 +457,13 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToNext002', 0, async function(done) { try { var moved = resultSet.moveToNext(); - console.log("testKvStoreResultSetMoveToNext002 moveToNext " + moved); + console.info("testKvStoreResultSetMoveToNext002 moveToNext " + moved); expect(moved && (resultSet.getPosition() == 0)).assertTrue(); moved = resultSet.moveToNext(); expect(moved && (resultSet.getPosition() == 1)).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetMoveToNext002 fail " + e); + console.info("testKvStoreResultSetMoveToNext002 fail " + e); } done(); }) @@ -476,10 +476,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToNext003', 0, async function(done) { try { var moved = resultSet.moveToNext(123); - console.log("testKvStoreResultSetMoveToNext003 moveToNext " + moved); + console.info("testKvStoreResultSetMoveToNext003 moveToNext " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToNext003 fail " + e); + console.info("testKvStoreResultSetMoveToNext003 fail " + e); } done(); }) @@ -492,10 +492,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToNext004', 0, async function(done) { try { var moved = resultSet.moveToNext(123, 'test_string'); - console.log("testKvStoreResultSetMoveToNext004 moveToNext " + moved); + console.info("testKvStoreResultSetMoveToNext004 moveToNext " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToNext004 fail " + e); + console.info("testKvStoreResultSetMoveToNext004 fail " + e); } done(); }) @@ -508,11 +508,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToPrevious001', 0, async function(done) { try { var moved = resultSet.moveToPrevious(); - console.log("testKvStoreResultSetMoveToPrevious001 moveToPrevious " + moved); + console.info("testKvStoreResultSetMoveToPrevious001 moveToPrevious " + moved); expect(!moved).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetMoveToPrevious001 fail " + e); + console.info("testKvStoreResultSetMoveToPrevious001 fail " + e); } done(); }) @@ -527,13 +527,13 @@ describe('KvStoreResultSetTest', function() { var moved = resultSet.moveToFirst(); expect(moved && (resultSet.getPosition() == 0)).assertTrue(); moved = resultSet.moveToNext(); - console.log("testKvStoreResultSetMoveToPrevious002 moveToNext " + moved); + console.info("testKvStoreResultSetMoveToPrevious002 moveToNext " + moved); expect(moved && (resultSet.getPosition() == 1)).assertTrue(); moved = resultSet.moveToPrevious(); - console.log("testKvStoreResultSetMoveToPrevious002 moveToPrevious " + moved); + console.info("testKvStoreResultSetMoveToPrevious002 moveToPrevious " + moved); expect(moved && (resultSet.getPosition() == 0)).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetMoveToPrevious002 fail " + e); + console.info("testKvStoreResultSetMoveToPrevious002 fail " + e); expect(null).assertFail(); } done(); @@ -547,10 +547,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToPrevious003', 0, async function(done) { try { var moved = resultSet.moveToPrevious(123); - console.log("testKvStoreResultSetMoveToPrevious003 moveToPrevious " + moved); + console.info("testKvStoreResultSetMoveToPrevious003 moveToPrevious " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToPrevious003 fail " + e); + console.info("testKvStoreResultSetMoveToPrevious003 fail " + e); } done(); }) @@ -563,10 +563,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToPrevious004', 0, async function(done) { try { var moved = resultSet.moveToPrevious(123, 'test_string'); - console.log("testKvStoreResultSetMoveToPrevious004 moveToPrevious " + moved); + console.info("testKvStoreResultSetMoveToPrevious004 moveToPrevious " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToPrevious004 fail " + e); + console.info("testKvStoreResultSetMoveToPrevious004 fail " + e); } done(); }) @@ -581,12 +581,12 @@ describe('KvStoreResultSetTest', function() { var moved = resultSet.moveToFirst(); expect(moved && (resultSet.getPosition() == 0)).assertTrue(); moved = resultSet.moveToPrevious(); - console.log("testKvStoreResultSetMoveToPrevious005 from 0 to -1 return" + moved); + console.info("testKvStoreResultSetMoveToPrevious005 from 0 to -1 return" + moved); expect(moved == false).assertTrue(); - console.log("testKvStoreResultSetMoveToPrevious005 from 0 to " + resultSet.getPosition()); + console.info("testKvStoreResultSetMoveToPrevious005 from 0 to " + resultSet.getPosition()); expect(-1).assertEqual(resultSet.getPosition()); } catch (e) { - console.log("testKvStoreResultSetMoveToPrevious005 fail " + e); + console.info("testKvStoreResultSetMoveToPrevious005 fail " + e); expect(null).assertFail(); } done(); @@ -600,10 +600,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMove001', 0, async function(done) { try { var moved = resultSet.move(); - console.log("testKvStoreResultSetMove001 move " + moved); + console.info("testKvStoreResultSetMove001 move " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMove001 fail " + e); + console.info("testKvStoreResultSetMove001 fail " + e); } done(); }) @@ -618,11 +618,11 @@ describe('KvStoreResultSetTest', function() { resultSet.moveToFirst(); expect(resultSet.getPosition() == 0).assertTrue(); var moved = resultSet.move(3); - console.log("testKvStoreResultSetMove002 move " + moved); + console.info("testKvStoreResultSetMove002 move " + moved); expect(moved).assertTrue(); expect(3).assertEqual(resultSet.getPosition()); } catch (e) { - console.log("testKvStoreResultSetMove002 fail " + e); + console.info("testKvStoreResultSetMove002 fail " + e); expect(null).assertFail(); } done(); @@ -637,13 +637,13 @@ describe('KvStoreResultSetTest', function() { try { expect(resultSet.getPosition() == -1).assertTrue(); var moved = resultSet.move(3); - console.log("testKvStoreResultSetMove003 move " + moved); + console.info("testKvStoreResultSetMove003 move " + moved); expect(moved && (resultSet.getPosition() == 2)).assertTrue(); moved = resultSet.move(2); - console.log("testKvStoreResultSetMove003 move " + moved); + console.info("testKvStoreResultSetMove003 move " + moved); expect(moved && (resultSet.getPosition() == 4)).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetMove003 fail " + e); + console.info("testKvStoreResultSetMove003 fail " + e); expect(null).assertFail(); } done(); @@ -657,10 +657,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMove004', 0, async function(done) { try { var moved = resultSet.move(3, 'test_string'); - console.log("testKvStoreResultSetMove004 move " + moved); + console.info("testKvStoreResultSetMove004 move " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMove004 fail " + e); + console.info("testKvStoreResultSetMove004 fail " + e); } done(); }) @@ -673,10 +673,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToPosition001', 0, async function(done) { try { var moved = resultSet.moveToPosition(); - console.log("testKvStoreResultSetMoveToPosition001 moveToPosition " + moved); + console.info("testKvStoreResultSetMoveToPosition001 moveToPosition " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToPosition001 fail " + e); + console.info("testKvStoreResultSetMoveToPosition001 fail " + e); } done(); }) @@ -689,10 +689,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToPosition002', 0, async function(done) { try { var moved = resultSet.moveToPosition(1, 'test_string'); - console.log("testKvStoreResultSetMoveToPosition002 moveToPosition " + moved); + console.info("testKvStoreResultSetMoveToPosition002 moveToPosition " + moved); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetMoveToPosition002 fail " + e); + console.info("testKvStoreResultSetMoveToPosition002 fail " + e); } done(); }) @@ -705,10 +705,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToPosition003', 0, async function(done) { try { var moved = resultSet.moveToPosition(5); - console.log("testKvStoreResultSetMoveToPosition003 moveToPosition " + moved); + console.info("testKvStoreResultSetMoveToPosition003 moveToPosition " + moved); expect(moved && (resultSet.getPosition() == 5)).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetMoveToPosition003 fail " + e); + console.info("testKvStoreResultSetMoveToPosition003 fail " + e); } done(); }) @@ -721,13 +721,13 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetMoveToPosition004', 0, async function(done) { try { var moved = resultSet.move(3); - console.log("testKvStoreResultSetMoveToPosition004 moveToPosition " + moved); + console.info("testKvStoreResultSetMoveToPosition004 moveToPosition " + moved); expect(moved && (resultSet.getPosition() == 2)).assertTrue(); moved = resultSet.moveToPosition(5); - console.log("testKvStoreResultSetMoveToPosition004 moveToPosition " + moved); + console.info("testKvStoreResultSetMoveToPosition004 moveToPosition " + moved); expect(moved && (resultSet.getPosition() == 5)).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetMoveToPosition004 fail " + e); + console.info("testKvStoreResultSetMoveToPosition004 fail " + e); } done(); }) @@ -740,11 +740,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsFirst001', 0, async function(done) { try { var flag = resultSet.isFirst(); - console.log("testKvStoreResultSetIsFirst001 isFirst " + flag); + console.info("testKvStoreResultSetIsFirst001 isFirst " + flag); expect(!flag).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetIsFirst001 fail " + e); + console.info("testKvStoreResultSetIsFirst001 fail " + e); } done(); }) @@ -757,15 +757,15 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsFirst002', 0, async function(done) { try { var flag = resultSet.isFirst(); - console.log("testKvStoreResultSetIsFirst002 isFirst " + flag); + console.info("testKvStoreResultSetIsFirst002 isFirst " + flag); expect(!flag).assertTrue(); resultSet.move(3); flag = resultSet.isFirst(); - console.log("testKvStoreResultSetIsFirst002 isFirst " + flag); + console.info("testKvStoreResultSetIsFirst002 isFirst " + flag); expect(!flag).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetIsFirst002 fail " + e); + console.info("testKvStoreResultSetIsFirst002 fail " + e); } done(); }) @@ -778,10 +778,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsFirst003', 0, async function(done) { try { var flag = resultSet.isFirst(1); - console.log("testKvStoreResultSetIsFirst003 isFirst " + flag); + console.info("testKvStoreResultSetIsFirst003 isFirst " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsFirst003 fail " + e); + console.info("testKvStoreResultSetIsFirst003 fail " + e); } done(); }) @@ -794,10 +794,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsFirst004', 0, async function(done) { try { var flag = resultSet.isFirst(1, 'test_string'); - console.log("testKvStoreResultSetIsFirst004 isFirst " + flag); + console.info("testKvStoreResultSetIsFirst004 isFirst " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsFirst004 fail " + e); + console.info("testKvStoreResultSetIsFirst004 fail " + e); } done(); }) @@ -810,11 +810,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsLast001', 0, async function(done) { try { var flag = resultSet.isLast(); - console.log("testKvStoreResultSetIsLast001 isLast " + flag); + console.info("testKvStoreResultSetIsLast001 isLast " + flag); expect(!flag).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetIsFirst004 fail " + e); + console.info("testKvStoreResultSetIsFirst004 fail " + e); } done(); }) @@ -828,11 +828,11 @@ describe('KvStoreResultSetTest', function() { try { resultSet.moveToLast(); var flag = resultSet.isLast(); - console.log("testKvStoreResultSetIsLast002 isLast " + flag); + console.info("testKvStoreResultSetIsLast002 isLast " + flag); expect(flag).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetIsLast002 fail " + e); + console.info("testKvStoreResultSetIsLast002 fail " + e); } done(); }) @@ -845,10 +845,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsLast003', 0, async function(done) { try { var flag = resultSet.isLast(1); - console.log("testKvStoreResultSetIsLast003 isLast " + flag); + console.info("testKvStoreResultSetIsLast003 isLast " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsLast003 fail " + e); + console.info("testKvStoreResultSetIsLast003 fail " + e); } done(); }) @@ -861,10 +861,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsLast004', 0, async function(done) { try { var flag = resultSet.isLast(1, 'test_string'); - console.log("testKvStoreResultSetIsLast004 isLast " + flag); + console.info("testKvStoreResultSetIsLast004 isLast " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsLast004 fail " + e); + console.info("testKvStoreResultSetIsLast004 fail " + e); } done(); }) @@ -877,11 +877,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsBeforeFirst001', 0, async function(done) { try { var flag = resultSet.isBeforeFirst(); - console.log("testKvStoreResultSetIsBeforeFirst001 isBeforeFirst " + flag); + console.info("testKvStoreResultSetIsBeforeFirst001 isBeforeFirst " + flag); expect(flag).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetIsBeforeFirst001 fail " + e); + console.info("testKvStoreResultSetIsBeforeFirst001 fail " + e); } done(); }) @@ -896,11 +896,11 @@ describe('KvStoreResultSetTest', function() { var moved = resultSet.moveToPrevious(); expect(!moved).assertTrue(); var flag = resultSet.isBeforeFirst(); - console.log("testKvStoreResultSetIsBeforeFirst002 isBeforeFirst " + flag); + console.info("testKvStoreResultSetIsBeforeFirst002 isBeforeFirst " + flag); expect(flag).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetIsBeforeFirst002 fail " + e); + console.info("testKvStoreResultSetIsBeforeFirst002 fail " + e); } done(); }) @@ -913,10 +913,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsBeforeFirst003', 0, async function(done) { try { var flag = resultSet.isBeforeFirst(1); - console.log("testKvStoreResultSetIsBeforeFirst003 isBeforeFirst " + flag); + console.info("testKvStoreResultSetIsBeforeFirst003 isBeforeFirst " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsBeforeFirst003 fail " + e); + console.info("testKvStoreResultSetIsBeforeFirst003 fail " + e); } done(); }) @@ -929,10 +929,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsBeforeFirst004', 0, async function(done) { try { var flag = resultSet.isBeforeFirst(1, 'test_string'); - console.log("testKvStoreResultSetIsBeforeFirst004 isBeforeFirst " + flag); + console.info("testKvStoreResultSetIsBeforeFirst004 isBeforeFirst " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsBeforeFirst004 fail " + e); + console.info("testKvStoreResultSetIsBeforeFirst004 fail " + e); } done(); }) @@ -945,11 +945,11 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsAfterLast001', 0, async function(done) { try { var flag = resultSet.isAfterLast(); - console.log("testKvStoreResultSetIsAfterLast001 isAfterLast " + flag); + console.info("testKvStoreResultSetIsAfterLast001 isAfterLast " + flag); expect(!flag).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetIsAfterLast001 fail " + e); + console.info("testKvStoreResultSetIsAfterLast001 fail " + e); } done(); }) @@ -962,16 +962,16 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsAfterLast002', 0, async function(done) { try { var moved = resultSet.moveToLast(); - console.log("testKvStoreResultSetIsAfterLast002 moveToLast moved=" + moved); + console.info("testKvStoreResultSetIsAfterLast002 moveToLast moved=" + moved); expect(moved).assertTrue(); moved = resultSet.moveToNext(); - console.log("testKvStoreResultSetIsAfterLast002 moveToNext moved=" + moved); + console.info("testKvStoreResultSetIsAfterLast002 moveToNext moved=" + moved); expect(moved == false).assertTrue(); var flag = resultSet.isAfterLast(); - console.log("testKvStoreResultSetIsAfterLast002 isAfterLast true=" + flag); + console.info("testKvStoreResultSetIsAfterLast002 isAfterLast true=" + flag); expect(flag).assertTrue(); } catch (e) { - console.log("testKvStoreResultSetIsAfterLast002 fail " + e); + console.info("testKvStoreResultSetIsAfterLast002 fail " + e); expect(null).assertFail(); } done(); @@ -985,10 +985,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsAfterLast003', 0, async function(done) { try { var flag = resultSet.isAfterLast(1); - console.log("testKvStoreResultSetIsAfterLast003 isAfterLast " + flag); + console.info("testKvStoreResultSetIsAfterLast003 isAfterLast " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsAfterLast003 fail " + e); + console.info("testKvStoreResultSetIsAfterLast003 fail " + e); } done(); }) @@ -1001,10 +1001,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetIsAfterLast004', 0, async function(done) { try { var flag = resultSet.isAfterLast(1, 'test_string'); - console.log("testKvStoreResultSetIsAfterLast004 isAfterLast " + flag); + console.info("testKvStoreResultSetIsAfterLast004 isAfterLast " + flag); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetIsAfterLast004 fail " + e); + console.info("testKvStoreResultSetIsAfterLast004 fail " + e); } done(); }) @@ -1018,12 +1018,12 @@ describe('KvStoreResultSetTest', function() { try { var moved = resultSet.moveToNext(); var entry = resultSet.getEntry(); - console.log("testKvStoreResultSetGetEntry001 getEntry " + entry); + console.info("testKvStoreResultSetGetEntry001 getEntry " + entry); expect(moved && (entry.key == 'batch_test_string_key0')).assertTrue(); expect(moved && (entry.value.value == 'batch_test_string_value')).assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetGetEntry001 fail " + e); + console.info("testKvStoreResultSetGetEntry001 fail " + e); } done(); }) @@ -1037,18 +1037,18 @@ describe('KvStoreResultSetTest', function() { try { var moved = resultSet.moveToNext(); var entry = resultSet.getEntry(); - console.log("testKvStoreResultSetGetEntry002 getEntry " + entry); + console.info("testKvStoreResultSetGetEntry002 getEntry " + entry); expect(entry.key == 'batch_test_string_key0').assertTrue(); expect(entry.value.value == 'batch_test_string_value').assertTrue(); moved = resultSet.moveToNext(); expect(moved).assertTrue(); entry = resultSet.getEntry(); - console.log("testKvStoreResultSetGetEntry002 getEntry " + entry); + console.info("testKvStoreResultSetGetEntry002 getEntry " + entry); expect(entry.key == 'batch_test_string_key1').assertTrue(); expect(entry.value.value == 'batch_test_string_value').assertTrue(); } catch (e) { expect(null).assertFail(); - console.log("testKvStoreResultSetGetEntry002 fail " + e); + console.info("testKvStoreResultSetGetEntry002 fail " + e); } done(); }) @@ -1061,10 +1061,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetEntry003', 0, async function(done) { try { var entry = resultSet.getEntry(1); - console.log("testKvStoreResultSetGetEntry003 getEntry " + entry); + console.info("testKvStoreResultSetGetEntry003 getEntry " + entry); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetGetEntry003 fail " + e); + console.info("testKvStoreResultSetGetEntry003 fail " + e); } done(); }) @@ -1077,10 +1077,10 @@ describe('KvStoreResultSetTest', function() { it('testKvStoreResultSetGetEntry004', 0, async function(done) { try { var entry = resultSet.getEntry(1, 'test_string'); - console.log("testKvStoreResultSetGetEntry004 getEntry " + entry); + console.info("testKvStoreResultSetGetEntry004 getEntry " + entry); expect(null).assertFail(); } catch (e) { - console.log("testKvStoreResultSetGetEntry004 fail " + e); + console.info("testKvStoreResultSetGetEntry004 fail " + e); } done(); }) diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/QueryJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/QueryJsunit.test.js index 8f3e1be5637cccd90b5c3c6d001a01f2c7c0a900..93e4a45928c163f15e6ca42d620d1a411e9ebf5a 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/QueryJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/QueryJsunit.test.js @@ -28,13 +28,13 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.equalTo("test", 3); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); expect(query.getSqlLike() !== "").assertTrue(); query.reset(); expect("").assertEqual(query.getSqlLike()); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("simply calls should be ok : " + e); + console.info("simply calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -54,16 +54,16 @@ describe('QueryTest', function() { query.equalTo("number", 5); query.equalTo("string", 'v'); query.equalTo("boolean", false); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); expect(query.getSqlLike() !== "").assertTrue(); query.reset(); query.reset(); query.reset(); expect("").assertEqual(query.getSqlLike()); - console.log("sql after reset: " + query.getSqlLike()); - console.log("query is " + query.getSqlLike()); + console.info("sql after reset: " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -84,10 +84,10 @@ describe('QueryTest', function() { expect(query.getSqlLike() !== "").assertTrue(); let sql = query.getSqlLike(); query.reset().equalTo("key", "value"); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); expect(sql === query.getSqlLike()).assertTrue(); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -107,10 +107,10 @@ describe('QueryTest', function() { query.equalTo("key", "value"); expect(query.getSqlLike() !== "").assertTrue(); query.reset(3); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -131,9 +131,9 @@ describe('QueryTest', function() { query.equalTo("key3", false); query.equalTo("key3", "string"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -152,9 +152,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.equalTo("key1", 1).equalTo("key2", 2).equalTo("key3", 3); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -173,7 +173,7 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.equalTo("key2", NaN); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -192,11 +192,11 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.equalTo("key1", "value", "too more"); - console.log("should throw exception on invalid arguments"); - console.log("query is " + query.getSqlLike()); + console.info("should throw exception on invalid arguments"); + console.info("query is " + query.getSqlLike()); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -217,9 +217,9 @@ describe('QueryTest', function() { query.notEqualTo("key3", false); query.notEqualTo("key4", "string"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -240,9 +240,9 @@ describe('QueryTest', function() { query.reset(); query.notEqualTo("key0", 5).equalTo("key1", 5).notEqualTo("key2", "str").notEqualTo("key3", false); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -261,7 +261,7 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key2", NaN); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -280,9 +280,9 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key1", "value", "too more", 4); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -303,9 +303,9 @@ describe('QueryTest', function() { query.greaterThan("key3", true); query.greaterThan("key4", "string"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -326,9 +326,9 @@ describe('QueryTest', function() { query.reset(); query.greaterThan("key0", 5).greaterThan("key1", "v5").greaterThan("key3", false); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -346,8 +346,8 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.greaterThan("key2", NaN); - console.log("should throw exception on invalid arguments"); - console.log("query is " + query.getSqlLike()); + console.info("should throw exception on invalid arguments"); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -366,10 +366,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.greaterThan("key1", "value", "too more", 4); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -390,9 +390,9 @@ describe('QueryTest', function() { query.lessThan("key3", true); query.lessThan("key4", "string"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); } query = null; done(); @@ -412,9 +412,9 @@ describe('QueryTest', function() { query.reset(); query.lessThan("key0", 5).lessThan("key1", "v5").lessThan("key3", false); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertTrue(); } query = null; @@ -432,7 +432,7 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.lessThan("key2", NaN); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -451,10 +451,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.lessThan("key1", "value", "too more", 4); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -475,9 +475,9 @@ describe('QueryTest', function() { query.greaterThanOrEqualTo("key3", true); query.greaterThanOrEqualTo("key4", "string"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -500,9 +500,9 @@ describe('QueryTest', function() { .greaterThanOrEqualTo("key1", "v5") .greaterThanOrEqualTo("key3", false); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -521,7 +521,7 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.greaterThanOrEqualTo("key2", NaN); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -540,10 +540,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.greaterThanOrEqualTo("key1", "value", "too more", 4); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -564,9 +564,9 @@ describe('QueryTest', function() { query.lessThanOrEqualTo("key3", true); query.lessThanOrEqualTo("key4", "string"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -587,9 +587,9 @@ describe('QueryTest', function() { query.reset(); query.lessThanOrEqualTo("key0", 5).lessThanOrEqualTo("key1", "v5").lessThanOrEqualTo("key3", false); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -607,7 +607,7 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.lessThanOrEqualTo("key2", NaN); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -626,10 +626,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.lessThanOrEqualTo("key1", "value", "too more", 4); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -648,9 +648,9 @@ describe('QueryTest', function() { query.isNull("key"); query.isNull("key2"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -669,9 +669,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.isNull("key").notEqualTo("key1", 4).isNull("key2"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -689,10 +689,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.isNull("key", 0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -709,10 +709,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.isNull(0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -745,40 +745,40 @@ describe('QueryTest', function() { try { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); - console.log("testInNumber001 start "); + console.info("testInNumber001 start "); var i8 = new Int8Array([-21,31]); query.reset().inNumber("key", i8); - console.log("inNumber(Int8Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Int8Array([-21,31]) => " + query.getSqlLike()); var u8 = new Uint8Array([-21,31]); query.reset().inNumber("key", u8); - console.log("inNumber(Uint8Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Uint8Array([-21,31]) => " + query.getSqlLike()); var c8 = new Uint8ClampedArray([-21,31]); query.reset().inNumber("key", c8); - console.log("inNumber(Uint8Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Uint8Array([-21,31]) => " + query.getSqlLike()); var i16 = new Int16Array([-21,31]); query.reset().inNumber("key", i16); - console.log("inNumber(Int16Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Int16Array([-21,31]) => " + query.getSqlLike()); var u16 = new Uint16Array([-21,31]); query.reset().inNumber("key", u16); - console.log("inNumber(Uint16Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Uint16Array([-21,31]) => " + query.getSqlLike()); var i32 = new Int32Array([-21, 31]); query.reset().inNumber("key", i32); - console.log("inNumber(Int32Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Int32Array([-21,31]) => " + query.getSqlLike()); var u32 = new Uint32Array([-21, 31]); query.reset().inNumber("key", u32); - console.log("inNumber(UInt32Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(UInt32Array([-21,31]) => " + query.getSqlLike()); var f32 = new Float32Array([-21, 31]); query.reset().inNumber("key", f32); - console.log("inNumber(Float32Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Float32Array([-21,31]) => " + query.getSqlLike()); var f32e = new Float32Array([21, 31, "a"]); // "a" will be ignored as not a float. query.reset().inNumber("key", f32e); - console.log("inNumber(Float32Array([-21,31, 'a']) => " + query.getSqlLike()); + console.info("inNumber(Float32Array([-21,31, 'a']) => " + query.getSqlLike()); var f64 = new Float64Array([-21, 31]); query.reset().inNumber("key", f64); - console.log("inNumber(Float64Array([-21,31]) => " + query.getSqlLike()); + console.info("inNumber(Float64Array([-21,31]) => " + query.getSqlLike()); query.reset(); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -800,9 +800,9 @@ describe('QueryTest', function() { inNumber("key2", [0xf0123456]). inNumber("key2", [0b10101]); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -820,10 +820,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.inNumber("key", 0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -840,10 +840,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.inNumber([0, 1]); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -863,10 +863,10 @@ describe('QueryTest', function() { query.inNumber("key", u64); var b64 = new BigInt64Array([21, 31]); query.inNumber("key", b64); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -881,27 +881,27 @@ describe('QueryTest', function() { var query = null; try { query = new ddm.Query(); - console.log("typeof([1, 2, 97])" + typeof([1, 2, 97])) - console.log("typeof([1, 2, 97][0])" + typeof([1, 2, 97][0])) + console.info("typeof([1, 2, 97])" + typeof([1, 2, 97])) + console.info("typeof([1, 2, 97][0])" + typeof([1, 2, 97][0])) query.inNumber("key", [1, 2, 97]); - console.log("inNumber([1, 2, 97]) => " + query.getSqlLike()); + console.info("inNumber([1, 2, 97]) => " + query.getSqlLike()); query.reset(); query.inNumber("key1", [-1, 3, 987654.123, 0xabc123456]); - console.log("inNumber([1, 2, 0xa1234567890123456]) => " + query.getSqlLike()); + console.info("inNumber([1, 2, 0xa1234567890123456]) => " + query.getSqlLike()); query.reset(); query.inNumber("key2", [-1, 3, -987654.123, 0xabc123456]); - console.log("inNumber([1, 2, 0xa1234567890123456]) => " + query.getSqlLike()); + console.info("inNumber([1, 2, 0xa1234567890123456]) => " + query.getSqlLike()); query.reset(); query.inNumber("key3", [-1, 4, -987654.123, Number.MAX_VALUE]); - console.log("inNumber([1, 2, Number.MAX_VALUE]) => " + query.getSqlLike()); + console.info("inNumber([1, 2, Number.MAX_VALUE]) => " + query.getSqlLike()); query.reset(); query.inNumber("key4", [1, -2.3, Number.MIN_VALUE, Number.MAX_VALUE]); - console.log("inNumber([1, -2.3, Number.MAX_VALUE]) => " + query.getSqlLike()); + console.info("inNumber([1, -2.3, Number.MAX_VALUE]) => " + query.getSqlLike()); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); query.reset(); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -920,10 +920,10 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.inString("key", ["a2z" , 'z2a']); query.inString("key2", ["AAA" ]); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); expect(query.getSqlLike() !== "").assertTrue(); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -944,9 +944,9 @@ describe('QueryTest', function() { .inString("key2", ["AAA" ]) .inString("key2", ["AAA", "AAABBB","CCCAAA" ]); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -964,10 +964,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.inString("key", 0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -984,10 +984,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.inString("key", [0, 1]); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1006,9 +1006,9 @@ describe('QueryTest', function() { query.notInNumber("key", [1, 2]); query.notInNumber("key", [1000]); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1027,9 +1027,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.notInNumber("key", [1, 2, 3]).notInNumber("key", [1, 7, 8]).notEqualTo("kkk", 5); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1047,10 +1047,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notInNumber("key", [1], 2); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1068,10 +1068,10 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.notInNumber("key", ["string"]); expect(query.getSqlLike() !== "").assertTrue(); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1090,9 +1090,9 @@ describe('QueryTest', function() { query.notInString("key", ["v1", "v2"]); query.notInString("key", ["v1", "NaN"]); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1111,9 +1111,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.notInString("key", ["v1", "v2", "v3"]).notEqualTo("kkk", "v3"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1131,10 +1131,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notInString("key", ["", "abccd"], 2); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1151,10 +1151,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notInString("key", [1, 2]); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1173,9 +1173,9 @@ describe('QueryTest', function() { query.like("key", "v1"); query.like("key2", "v2"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1194,9 +1194,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.like("key", "v1").like("key", "v3").like("key", "v2"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1214,10 +1214,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.like("key", 0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1234,10 +1234,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.like("key", "str1", "str2"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1255,9 +1255,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.unlike("key", "v1"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1276,9 +1276,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.unlike("key", "v1").unlike("key", "v3").unlike("key", "v2"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1296,10 +1296,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.unlike("key", 0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1316,10 +1316,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.unlike("key", "str1", "str2"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1339,9 +1339,9 @@ describe('QueryTest', function() { query.and(); query.notEqualTo("key", "v1"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1360,9 +1360,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.equalTo("key1", 0).and().equalTo("key2", "v1"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1382,7 +1382,7 @@ describe('QueryTest', function() { query.notEqualTo("key", 0).and().notEqualTo("key", 1).and(); expect(query.getSqlLike() !== "").assertTrue(); query.reset(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -1401,10 +1401,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", 0).and(1).notInNumber("key", [1, 3]); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1424,9 +1424,9 @@ describe('QueryTest', function() { query.or(); query.notEqualTo("key", "v1"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1446,9 +1446,9 @@ describe('QueryTest', function() { query.equalTo("key1", 0).or().equalTo("key2", "v1"); expect(query.getSqlLike() !== "").assertTrue(); query.reset(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1466,12 +1466,12 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", 0).or(); - console.log("or ... sql:" + query.getSqlLike()); + console.info("or ... sql:" + query.getSqlLike()); expect(query.getSqlLike() !== "").assertTrue(); query.reset(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); expect(null).assertFail(); } query = null; @@ -1489,10 +1489,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", 0).or(1).notInNumber("key", [1, 3]); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1511,9 +1511,9 @@ describe('QueryTest', function() { query.notEqualTo("key", 0); query.orderByAsc("sortbykey"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1532,9 +1532,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", "V0").orderByAsc("sortbykey1").orderByAsc("sortbykey2"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1552,10 +1552,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", false).orderByAsc(1); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1572,10 +1572,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.orderByAsc(); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1594,9 +1594,9 @@ describe('QueryTest', function() { query.notEqualTo("key", 0); query.orderByDesc("sortbykey"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1615,9 +1615,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", "V0").orderByDesc("sortbykey1").orderByDesc("sortbykey2"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1635,10 +1635,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", false).orderByDesc(1); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1655,10 +1655,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.orderByDesc(); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1677,9 +1677,9 @@ describe('QueryTest', function() { query.notEqualTo("key", "vx"); query.limit(10, 2); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1699,9 +1699,9 @@ describe('QueryTest', function() { query.notEqualTo("key", "vx").limit(10, 2) .equalTo("key2", 2).limit(10, 2); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1719,11 +1719,11 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", false).limit(10, 2, "any"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1740,10 +1740,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", false).limit(10); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1760,11 +1760,11 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.notEqualTo("key", false).limit("any", 10); - console.log("should throw exception on invalid arguments"); - console.log("query is " + query.getSqlLike()); + console.info("should throw exception on invalid arguments"); + console.info("query is " + query.getSqlLike()); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1782,9 +1782,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.isNotNull("key"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1803,9 +1803,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.isNotNull("key1").and().notEqualTo("key1", 123); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1823,10 +1823,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.isNotNull("key2", "any"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1843,10 +1843,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.isNotNull(1); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1866,9 +1866,9 @@ describe('QueryTest', function() { query.isNotNull("$.name"); query.endGroup(); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -1891,9 +1891,9 @@ describe('QueryTest', function() { query.endGroup(); query.beginGroup(); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -1911,10 +1911,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.beginGroup(1); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1931,10 +1931,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.beginGroup("any", 1); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -1954,7 +1954,7 @@ describe('QueryTest', function() { query.isNotNull("$.name"); query.endGroup(); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -1977,7 +1977,7 @@ describe('QueryTest', function() { query.isNotNull("$.name"); query.endGroup(); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -1996,10 +1996,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.endGroup(0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2016,10 +2016,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.endGroup("any"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2038,7 +2038,7 @@ describe('QueryTest', function() { query.prefixKey("$.name"); query.prefixKey("0"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -2058,7 +2058,7 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.prefixKey("kx1").or().prefixKey("kx2").or().prefixKey("kx3"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -2077,10 +2077,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.prefixKey("k", "any"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2097,10 +2097,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.prefixKey(123); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2119,7 +2119,7 @@ describe('QueryTest', function() { query.setSuggestIndex("$.name"); query.setSuggestIndex("0"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -2139,7 +2139,7 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.setSuggestIndex("kxx").or().equalTo("key2", "v1"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { expect(null).assertFail(); } @@ -2158,10 +2158,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.setSuggestIndex("k", "any"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2178,10 +2178,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.setSuggestIndex(123); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2200,9 +2200,9 @@ describe('QueryTest', function() { query.deviceId("$.name"); query.deviceId("0"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -2221,9 +2221,9 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.deviceId("kxx").equalTo("key2", "v1"); expect(query.getSqlLike() !== "").assertTrue(); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -2241,10 +2241,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.deviceId("k", "any"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2261,10 +2261,10 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); query.deviceId(123); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2281,12 +2281,12 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); let sql1 = query.getSqlLike(); - console.log("testGetSqlLike001 sql=" + sql1); + console.info("testGetSqlLike001 sql=" + sql1); let sql2 = query.getSqlLike(); expect(sql1).assertEqual(sql2); - console.log("query is " + query.getSqlLike()); + console.info("query is " + query.getSqlLike()); } catch (e) { - console.log("dumplicated calls should be ok : " + e); + console.info("dumplicated calls should be ok : " + e); expect(null).assertFail(); } query = null; @@ -2304,16 +2304,16 @@ describe('QueryTest', function() { query = new ddm.Query(); expect("").assertEqual(query.getSqlLike()); let sql1 = query.getSqlLike(); - console.log("testGetSqlLike002 sql=" + sql1); + console.info("testGetSqlLike002 sql=" + sql1); query.inString("key1", ["AAA", "BBB"]) .or() .notEqualTo("key2", 0); let sql2 = query.getSqlLike(); - console.log("testGetSqlLike002 sql=" + sql2); - console.log("query is " + query.getSqlLike()); + console.info("testGetSqlLike002 sql=" + sql2); + console.info("query is " + query.getSqlLike()); expect(sql1 !== sql2).assertTrue(); } catch (e) { - console.log("should be ok on Method Chaining : " + e); + console.info("should be ok on Method Chaining : " + e); expect(null).assertFail(); } query = null; @@ -2332,10 +2332,10 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.inNumber("key"); query.getSqlLike(0); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); @@ -2353,10 +2353,10 @@ describe('QueryTest', function() { expect("").assertEqual(query.getSqlLike()); query.inNumber("key"); query.getSqlLike("any"); - console.log("should throw exception on invalid arguments"); + console.info("should throw exception on invalid arguments"); expect(null).assertFail(); } catch (e) { - console.log("throw exception is ok : " + e); + console.info("throw exception is ok : " + e); } query = null; done(); diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SchemaJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SchemaJsunit.test.js index 4cbba1fe1dea7bb04712dae3d7e69c069af0cdf0..489de4df5119076f48688303fe5b0678db298c2f 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SchemaJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SchemaJsunit.test.js @@ -38,21 +38,21 @@ function putBatchString(len, prefix) { async function testPutAndGet(kvManager, options) { try { await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { - console.log('testPutAndGet getKVStore success' + JSON.stringify(options)); + console.info('testPutAndGet getKVStore success' + JSON.stringify(options)); kvStore = store; expect(store != null).assertTrue(); }).catch((err) => { - console.log('testPutAndGet getKVStore fail ' + err); + console.info('testPutAndGet getKVStore fail ' + err); expect(null).assertFail(); }); var canGet = new Promise((resolve, reject) => { kvStore.on('dataChange', 0, function (data) { - console.log('testPutAndGet resolve on data change: ' + JSON.stringify(data)); + console.info('testPutAndGet resolve on data change: ' + JSON.stringify(data)); resolve(data.deviceId); }); let entries = putBatchString(10, 'test_key_'); kvStore.putBatch(entries).then((data) => { - console.log('testPutAndGet put success'); + console.info('testPutAndGet put success'); expect(data == undefined).assertTrue(); }); setTimeout(() => { @@ -64,22 +64,22 @@ async function testPutAndGet(kvManager, options) { query.prefixKey('test_key_'); query.like('$.english.first', 'led%'); if (options.kvStoreType == ddm.KVStoreType.DEVICE_COLLABORATION) { - console.log('testPutAndGet deviceId = ' + deviceId); + console.info('testPutAndGet deviceId = ' + deviceId); query.deviceId(deviceId); } await kvStore.getEntries(query).then((entries) => { - console.log('testPutAndGet get success : ' + JSON.stringify(entries)); + console.info('testPutAndGet get success : ' + JSON.stringify(entries)); expect(entries.length == 10).assertTrue(); }).catch((err) => { - console.log('testPutAndGet get fail ' + err); + console.info('testPutAndGet get fail ' + err); expect(null).assertFail(); }); }).catch((error) => { - console.log('testPutAndGet canGet fail: ' + error); + console.info('testPutAndGet canGet fail: ' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testPutAndGet get exception: ' + e); + console.info('testPutAndGet get exception: ' + e); } } @@ -104,43 +104,43 @@ describe('SchemaTest', function() { beforeAll(async function (done) { try { - console.log("beforeAll: createKVManager (single) with " + JSON.stringify(options)); + console.info("beforeAll: createKVManager (single) with " + JSON.stringify(options)); await ddm.createKVManager(config).then((manager) => { kvManager = manager; - console.log('beforeAll createKVManager success'); + console.info('beforeAll createKVManager success'); }).catch((err) => { - console.log('beforeAll createKVManager err ' + err); + console.info('beforeAll createKVManager err ' + err); }); } catch (e) { - console.log("fail on exception: " + e); + console.info("fail on exception: " + e); expect(null).assertFail(); } done(); }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); kvManager = null; kvStore = null; done(); }) beforeEach(async function (done) { - console.log('beforeEach testcase will update options:' + JSON.stringify(options)); + console.info('beforeEach testcase will update options:' + JSON.stringify(options)); done(); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); }).catch((err) => { - console.log('afterEach deleteKVStore err ' + err); + console.info('afterEach deleteKVStore err ' + err); }); }).catch((err) => { - console.log('afterEach closeKVStore err ' + err); + console.info('afterEach closeKVStore err ' + err); }); kvStore = null; done(); @@ -172,7 +172,7 @@ describe('SchemaTest', function() { schema.root.appendChild(english); schema.indexes = ['$.english.first', '$.english.second']; } catch (e) { - console.log("schema fail on exception: " + e); + console.info("schema fail on exception: " + e); expect(null).assertFail(); } done(); @@ -206,9 +206,9 @@ describe('SchemaTest', function() { options.kvStoreType = ddm.KVStoreType.DEVICE_COLLABORATION; options.schema = schema; await testPutAndGet(kvManager, options); - console.log("schematestPutAndGet done"); + console.info("schematestPutAndGet done"); } catch (e) { - console.log("schema fail on exception: " + e); + console.info("schema fail on exception: " + e); expect(null).assertFail(); } done(); @@ -233,27 +233,27 @@ describe('SchemaTest', function() { options.kvStoreType = ddm.KVStoreType.SINGLE_VERSION; options.schema = schema; await kvManager.getKVStore(TEST_STORE_ID, options).then(async (store) => { - console.log('testToJsonString003 getKVStore success' + JSON.stringify(options)); + console.info('testToJsonString003 getKVStore success' + JSON.stringify(options)); kvStore = store; expect(store != null).assertTrue(); await kvStore.put("test_key_1", '{"name":1}'); await kvStore.put("test_key_2", '{"name":2}'); await kvStore.put("test_key_3", '{"name":3}'); - console.log('testToJsonString003 Put success'); + console.info('testToJsonString003 Put success'); }); - console.log('testToJsonString003 start Query ...'); + console.info('testToJsonString003 start Query ...'); var query = new ddm.Query(); query.prefixKey('test_key_'); query.notEqualTo("$.name", 3); await kvStore.getEntries(query).then((entries) => { - console.log('testToJsonString003 get success : ' + JSON.stringify(entries)); + console.info('testToJsonString003 get success : ' + JSON.stringify(entries)); expect(entries.length == 2).assertTrue(); }).catch((err) => { - console.log('testToJsonString003 get fail ' + err); + console.info('testToJsonString003 get fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log("testToJsonString003 fail on exception: " + e); + console.info("testToJsonString003 fail on exception: " + e); expect(null).assertFail(); } done(); @@ -274,7 +274,7 @@ describe('SchemaTest', function() { schema.indexes = []; // indexex set to empty array -> invalid indexes. expect(null).assertFail(); } catch (e) { - console.log("schema exception is ok: " + e); + console.info("schema exception is ok: " + e); } done(); }) @@ -292,7 +292,7 @@ describe('SchemaTest', function() { let schema = new ddm.Schema(); expect(schema.root instanceof ddm.FieldNode).assertTrue(); } catch (e) { - console.log("schema fail on exception: " + e); + console.info("schema fail on exception: " + e); expect(null).assertFail(); } done(); @@ -310,7 +310,7 @@ describe('SchemaTest', function() { schema.indexes = ['$.english.first', '$.english.second']; expect(schema.indexes[0] === '$.english.first' && schema.indexes[1] === '$.english.second').assertTrue(); } catch (e) { - console.log("schema fail on exception: " + e); + console.info("schema fail on exception: " + e); expect(null).assertFail(); } done(); @@ -326,10 +326,10 @@ describe('SchemaTest', function() { let schema = new ddm.Schema(); schema.mode = 1; - console.log("schema mode = "+schema.mode) + console.info("schema mode = "+schema.mode) expect(schema.mode === 1).assertTrue(); } catch (e) { - console.log("schema fail on exception: " + e); + console.info("schema fail on exception: " + e); expect(null).assertFail(); } done(); @@ -345,10 +345,10 @@ describe('SchemaTest', function() { let schema = new ddm.Schema(); schema.mode = 0; - console.log("schema mode = "+schema.mode) + console.info("schema mode = "+schema.mode) expect(schema.mode === 0).assertTrue(); } catch (e) { - console.log("schema fail on exception: " + e); + console.info("schema fail on exception: " + e); expect(null).assertFail(); } done(); @@ -366,7 +366,7 @@ describe('SchemaTest', function() { schema.skip = 0; expect(schema.skip === 0).assertTrue(); } catch (e) { - console.log("schema fail on exception: " + e); + console.info("schema fail on exception: " + e); expect(null).assertFail(); } done(); diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStoreCallbackJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStoreCallbackJsunit.test.js index f66a983a810358b83e33b70aff9d2057e61b446f..dc6c3ebc846eb7734f93a33867d702beccbc6033 100755 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStoreCallbackJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStoreCallbackJsunit.test.js @@ -74,36 +74,36 @@ describe('SingleKvStoreCallbackTest', function () { } beforeAll(async function (done) { - console.log('beforeAll config:'+ JSON.stringify(config)); + console.info('beforeAll config:'+ JSON.stringify(config)); await factory.createKVManager(config, function (err, manager) { kvManager = manager; - console.log('beforeAll createKVManager success'); + console.info('beforeAll createKVManager success'); done(); }) }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); kvManager = null; kvStore = null; done(); }) beforeEach(async function (done) { - console.log('beforeEach' + JSON.stringify(options)); + console.info('beforeEach' + JSON.stringify(options)); await kvManager.getKVStore(TEST_STORE_ID, options, function (err, store) { kvStore = store; - console.log('beforeEach getKVStore success'); + console.info('beforeEach getKVStore success'); done(); }); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore, async function (err, data) { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, function (err, data) { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); done(); }); }); @@ -116,19 +116,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(String) testcase 101 */ it('testSingleKvStorePutString101', 0, async function (done) { - console.log('testSingleKvStorePutString101'); + console.info('testSingleKvStorePutString101'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStorePutString101 put success'); + console.info('testSingleKvStorePutString101 put success'); } else { - console.log('testSingleKvStorePutString101 put fail' + err); + console.info('testSingleKvStorePutString101 put fail' + err); expect(null).assertFail(); } done(); }); }catch (e) { - console.log('testSingleKvStorePutString101 put e' + e); + console.info('testSingleKvStorePutString101 put e' + e); expect(null).assertFail(); done(); } @@ -140,23 +140,23 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(String) testcase 102 */ it('testSingleKvStorePutString102', 0, async function (done) { - console.log('testSingleKvStorePutString102'); + console.info('testSingleKvStorePutString102'); try { var str = ''; for (var i = 0 ; i < 4095; i++) { str += 'x'; } await kvStore.put(KEY_TEST_STRING_ELEMENT+'102', str, async function (err,data) { - console.log('testSingleKvStorePutString102 put success'); + console.info('testSingleKvStorePutString102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_STRING_ELEMENT+'102', function (err,data) { - console.log('testSingleKvStorePutString102 get success'); + console.info('testSingleKvStorePutString102 get success'); expect(str == data).assertTrue(); done(); }); }); }catch (e) { - console.log('testSingleKvStorePutString102 put e' + e); + console.info('testSingleKvStorePutString102 put e' + e); expect(null).assertFail(); done(); } @@ -168,19 +168,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetString() testcase 101 */ it('testSingleKvStoreGetString101', 0, async function (done) { - console.log('testSingleKvStoreGetString101'); + console.info('testSingleKvStoreGetString101'); try{ await kvStore.get(KEY_TEST_STRING_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreGetString101 get success'); + console.info('testSingleKvStoreGetString101 get success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreGetString101 get fail'); + console.info('testSingleKvStoreGetString101 get fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreGetString101 get e' + e); + console.info('testSingleKvStoreGetString101 get e' + e); expect(null).assertFail(); done(); } @@ -192,19 +192,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetString() testcase 102 */ it('testSingleKvStoreGetString102', 0, async function (done) { - console.log('testSingleKvStoreGetString102'); + console.info('testSingleKvStoreGetString102'); try{ await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, async function (err,data) { - console.log('testSingleKvStoreGetString102 put success'); + console.info('testSingleKvStoreGetString102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_STRING_ELEMENT, function (err,data) { - console.log('testSingleKvStoreGetString102 get success'); + console.info('testSingleKvStoreGetString102 get success'); expect((err == undefined) && (VALUE_TEST_STRING_ELEMENT == data)).assertTrue(); done(); }); }) }catch(e) { - console.log('testSingleKvStoreGetString102 get e' + e); + console.info('testSingleKvStoreGetString102 get e' + e); expect(null).assertFail(); done(); } @@ -216,19 +216,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 101 */ it('testSingleKvStorePutInt101', 0, async function (done) { - console.log('testSingleKvStorePutInt101'); + console.info('testSingleKvStorePutInt101'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT, async function (err,data) { - console.log('testSingleKvStorePutInt101 put success'); + console.info('testSingleKvStorePutInt101 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testSingleKvStorePutInt101 get success'); + console.info('testSingleKvStorePutInt101 get success'); expect((err == undefined) && (VALUE_TEST_INT_ELEMENT == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testSingleKvStorePutInt101 put e' + e); + console.info('testSingleKvStorePutInt101 put e' + e); expect(null).assertFail(); done(); } @@ -240,20 +240,20 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 102 */ it('testSingleKvStorePutInt102', 0, async function (done) { - console.log('testSingleKvStorePutInt102'); + console.info('testSingleKvStorePutInt102'); try { var intValue = 987654321; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue, async function (err,data) { - console.log('testSingleKvStorePutInt102 put success'); + console.info('testSingleKvStorePutInt102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testSingleKvStorePutInt102 get success'); + console.info('testSingleKvStorePutInt102 get success'); expect((err == undefined) && (intValue == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testSingleKvStorePutInt102 put e' + e); + console.info('testSingleKvStorePutInt102 put e' + e); expect(null).assertFail(); done(); } @@ -265,20 +265,20 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 103 */ it('testSingleKvStorePutInt103', 0, async function (done) { - console.log('testSingleKvStorePutInt103'); + console.info('testSingleKvStorePutInt103'); try { var intValue = Number.MIN_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue, async function (err,data) { - console.log('testSingleKvStorePutInt103 put success'); + console.info('testSingleKvStorePutInt103 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testSingleKvStorePutInt103 get success'); + console.info('testSingleKvStorePutInt103 get success'); expect((err == undefined) && (intValue == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testSingleKvStorePutInt103 put e' + e); + console.info('testSingleKvStorePutInt103 put e' + e); expect(null).assertFail(); done(); } @@ -290,20 +290,20 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 104 */ it('testSingleKvStorePutInt104', 0, async function (done) { - console.log('testSingleKvStorePutInt104'); + console.info('testSingleKvStorePutInt104'); try { var intValue = Number.MAX_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue, async function (err,data) { - console.log('testSingleKvStorePutInt104 put success'); + console.info('testSingleKvStorePutInt104 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testSingleKvStorePutInt104 get success'); + console.info('testSingleKvStorePutInt104 get success'); expect((err == undefined) && (intValue == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testSingleKvStorePutInt104 put e' + e); + console.info('testSingleKvStorePutInt104 put e' + e); expect(null).assertFail(); done(); } @@ -315,19 +315,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetInt() testcase 101 */ it('testSingleKvStoreGetInt101', 0, async function (done) { - console.log('testSingleKvStoreGetInt101'); + console.info('testSingleKvStoreGetInt101'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT, async function (err,data) { - console.log('testSingleKvStoreGetInt101 put success'); + console.info('testSingleKvStoreGetInt101 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testSingleKvStoreGetInt101 get success'); + console.info('testSingleKvStoreGetInt101 get success'); expect((err == undefined) && (VALUE_TEST_INT_ELEMENT == data)).assertTrue(); done(); }) }); }catch(e) { - console.log('testSingleKvStoreGetInt101 put e' + e); + console.info('testSingleKvStoreGetInt101 put e' + e); expect(null).assertFail(); done(); } @@ -339,19 +339,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetInt() testcase 102 */ it('testSingleKvStoreGetInt102', 0, async function (done) { - console.log('testSingleKvStoreGetInt102'); + console.info('testSingleKvStoreGetInt102'); try { await kvStore.get(KEY_TEST_INT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreGetInt102 get success'); + console.info('testSingleKvStoreGetInt102 get success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreGetInt102 get fail'); + console.info('testSingleKvStoreGetInt102 get fail'); } done(); }) }catch(e) { - console.log('testSingleKvStoreGetInt102 put e' + e); + console.info('testSingleKvStoreGetInt102 put e' + e); expect(null).assertFail(); done(); } @@ -363,15 +363,15 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Bool) testcase 101 */ it('testSingleKvStorePutBool101', 0, async function (done) { - console.log('testSingleKvStorePutBool101'); + console.info('testSingleKvStorePutBool101'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT, function (err,data) { - console.log('testSingleKvStorePutBool101 put success'); + console.info('testSingleKvStorePutBool101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStorePutBool101 e ' + e); + console.info('testSingleKvStorePutBool101 e ' + e); expect(null).assertFail(); done(); } @@ -383,19 +383,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetBool() testcase 101 */ it('testSingleKvStoreGetBool101', 0, async function (done) { - console.log('testSingleKvStoreGetBool101'); + console.info('testSingleKvStoreGetBool101'); try { await kvStore.get(KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreGetBool101 get success'); + console.info('testSingleKvStoreGetBool101 get success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreGetBool101 get fail' + err); + console.info('testSingleKvStoreGetBool101 get fail' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreGetBool101 e' + e); + console.info('testSingleKvStoreGetBool101 e' + e); expect(null).assertFail(); done(); } @@ -407,19 +407,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetBool() testcase 102 */ it('testSingleKvStoreGetBool102', 0, async function (done) { - console.log('testSingleKvStoreGetBool102'); + console.info('testSingleKvStoreGetBool102'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT, async function (err, data) { - console.log('testSingleKvStoreGetBool102 put success'); + console.info('testSingleKvStoreGetBool102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { - console.log('testSingleKvStoreGetBool102 get success'); + console.info('testSingleKvStoreGetBool102 get success'); expect((err == undefined) && (VALUE_TEST_BOOLEAN_ELEMENT == data)).assertTrue(); done(); }); }) }catch(e) { - console.log('testSingleKvStoreGetBool102 e' + e); + console.info('testSingleKvStoreGetBool102 e' + e); expect(null).assertFail(); done(); } @@ -431,15 +431,15 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Float) testcase 101 */ it('testSingleKvStorePutFloat101', 0, async function (done) { - console.log('testSingleKvStorePutFloat101'); + console.info('testSingleKvStorePutFloat101'); try { await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testSingleKvStorePutFloat101 put success'); + console.info('testSingleKvStorePutFloat101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStorePutFloat101 e' + e); + console.info('testSingleKvStorePutFloat101 e' + e); expect(null).assertFail(); done(); } @@ -451,21 +451,21 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Float) testcase 102 */ it('testSingleKvStorePutFloat102', 0, async function (done) { - console.log('testSingleKvStorePutFloat102'); + console.info('testSingleKvStorePutFloat102'); try { var floatValue = 123456.654321; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) { - console.log('testSingleKvStorePutFloat102 put success'); + console.info('testSingleKvStorePutFloat102 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_FLOAT_ELEMENT, function (err, data) { - console.log('testSingleKvStorePutFloat102 get success'); + console.info('testSingleKvStorePutFloat102 get success'); expect((err == undefined) && (floatValue == data)).assertTrue(); done(); }) done(); }); }catch(e) { - console.log('testSingleKvStorePutFloat102 e' + e); + console.info('testSingleKvStorePutFloat102 e' + e); expect(null).assertFail(); done(); } @@ -477,21 +477,21 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Float) testcase 103 */ it('testSingleKvStorePutFloat103', 0, async function (done) { - console.log('testSingleKvStorePutFloat103'); + console.info('testSingleKvStorePutFloat103'); try { var floatValue = 123456.0; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) { - console.log('testSingleKvStorePutFloat103 put success'); + console.info('testSingleKvStorePutFloat103 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_FLOAT_ELEMENT, function (err, data) { - console.log('testSingleKvStorePutFloat103 get success'); + console.info('testSingleKvStorePutFloat103 get success'); expect((err == undefined) && (floatValue == data)).assertTrue(); done(); }) done(); }); }catch(e) { - console.log('testSingleKvStorePutFloat103 e' + e); + console.info('testSingleKvStorePutFloat103 e' + e); expect(null).assertFail(); done(); } @@ -503,21 +503,21 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Float) testcase 104 */ it('testSingleKvStorePutFloat104', 0, async function (done) { - console.log('testSingleKvStorePutFloat104'); + console.info('testSingleKvStorePutFloat104'); try { var floatValue = 123456.00; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue, async function (err,data) { - console.log('testSingleKvStorePutFloat104 put success'); + console.info('testSingleKvStorePutFloat104 put success'); expect(err == undefined).assertTrue(); await kvStore.get(KEY_TEST_FLOAT_ELEMENT, function (err, data) { - console.log('testSingleKvStorePutFloat104 get success'); + console.info('testSingleKvStorePutFloat104 get success'); expect((err == undefined) && (floatValue == data)).assertTrue(); done(); }) done(); }); }catch(e) { - console.log('testSingleKvStorePutFloat104 e' + e); + console.info('testSingleKvStorePutFloat104 e' + e); expect(null).assertFail(); done(); } @@ -529,19 +529,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetFloat() testcase 101 */ it('testSingleKvStoreGetFloat101', 0, async function (done) { - console.log('testSingleKvStoreGetFloat101'); + console.info('testSingleKvStoreGetFloat101'); try { await kvStore.get(KEY_TEST_FLOAT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreGetFloat101 get success'); + console.info('testSingleKvStoreGetFloat101 get success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreGetFloat101 get fail' + err); + console.info('testSingleKvStoreGetFloat101 get fail' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreGetFloat101 e' + e); + console.info('testSingleKvStoreGetFloat101 e' + e); expect(null).assertFail(); done(); } @@ -553,19 +553,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteString() testcase 101 */ it('testSingleKvStoreDeleteString101', 0, async function (done) { - console.log('testSingleKvStoreDeleteString101'); + console.info('testSingleKvStoreDeleteString101'); try { await kvStore.delete(KEY_TEST_STRING_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreDeleteString101 delete success'); + console.info('testSingleKvStoreDeleteString101 delete success'); } else { - console.log('testSingleKvStoreDeleteString101 delete fail' + err); + console.info('testSingleKvStoreDeleteString101 delete fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testSingleKvStoreDeleteString101 e' + e); + console.info('testSingleKvStoreDeleteString101 e' + e); expect(null).assertFail(); done(); } @@ -577,19 +577,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteString() testcase 102 */ it('testSingleKvStoreDeleteString102', 0, async function (done) { - console.log('testSingleKvStoreDeleteString102'); + console.info('testSingleKvStoreDeleteString102'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, async function (err, data) { - console.log('testSingleKvStoreDeleteString102 put success'); + console.info('testSingleKvStoreDeleteString102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_STRING_ELEMENT, function (err,data) { - console.log('testSingleKvStoreDeleteString102 delete success'); + console.info('testSingleKvStoreDeleteString102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testSingleKvStoreDeleteString102 e' + e); + console.info('testSingleKvStoreDeleteString102 e' + e); expect(null).assertFail(); done(); } @@ -601,19 +601,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteInt() testcase 101 */ it('testSingleKvStoreDeleteInt101', 0, async function (done) { - console.log('testSingleKvStoreDeleteInt101'); + console.info('testSingleKvStoreDeleteInt101'); try{ await kvStore.delete(KEY_TEST_INT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreDeleteInt101 get success'); + console.info('testSingleKvStoreDeleteInt101 get success'); } else { - console.log('testSingleKvStoreDeleteInt101 get fail' + err); + console.info('testSingleKvStoreDeleteInt101 get fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testSingleKvStoreDeleteInt101 e' + e); + console.info('testSingleKvStoreDeleteInt101 e' + e); expect(null).assertFail(); done(); } @@ -625,19 +625,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteInt() testcase 102 */ it('testSingleKvStoreDeleteInt102', 0, async function (done) { - console.log('testSingleKvStoreDeleteInt102'); + console.info('testSingleKvStoreDeleteInt102'); try{ await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT, async function (err,data) { - console.log('testSingleKvStoreDeleteInt102 put success'); + console.info('testSingleKvStoreDeleteInt102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_INT_ELEMENT, function (err,data) { - console.log('testSingleKvStoreDeleteInt102 delete success'); + console.info('testSingleKvStoreDeleteInt102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testSingleKvStoreDeleteInt102 e' + e); + console.info('testSingleKvStoreDeleteInt102 e' + e); expect(null).assertFail(); done(); } @@ -649,19 +649,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteFloat() testcase 101 */ it('testSingleKvStoreDeleteFloat101', 0, async function (done) { - console.log('testSingleKvStoreDeleteFloat101'); + console.info('testSingleKvStoreDeleteFloat101'); try{ await kvStore.delete(KEY_TEST_FLOAT_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreDeleteFloat101 get success'); + console.info('testSingleKvStoreDeleteFloat101 get success'); } else { - console.log('testSingleKvStoreDeleteFloat101 get fail' + err); + console.info('testSingleKvStoreDeleteFloat101 get fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testSingleKvStoreDeleteFloat101 e' + e); + console.info('testSingleKvStoreDeleteFloat101 e' + e); expect(null).assertFail(); done(); } @@ -673,19 +673,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteFloat() testcase 102 */ it('testSingleKvStoreDeleteFloat102', 0, async function (done) { - console.log('testSingleKvStoreDeleteFloat102'); + console.info('testSingleKvStoreDeleteFloat102'); try{ await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, async function (err, data) { - console.log('testSingleKvStoreDeleteFloat102 put success'); + console.info('testSingleKvStoreDeleteFloat102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testSingleKvStoreDeleteFloat102 delete success'); + console.info('testSingleKvStoreDeleteFloat102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testSingleKvStoreDeleteFloat102 e' + e); + console.info('testSingleKvStoreDeleteFloat102 e' + e); expect(null).assertFail(); done(); } @@ -697,19 +697,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteBool() testcase 101 */ it('testSingleKvStoreDeleteBool101', 0, async function (done) { - console.log('testSingleKvStoreDeleteBool101'); + console.info('testSingleKvStoreDeleteBool101'); try{ await kvStore.delete(KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreDeleteBool101 get success'); + console.info('testSingleKvStoreDeleteBool101 get success'); } else { - console.log('testSingleKvStoreDeleteBool101 get fail' + err); + console.info('testSingleKvStoreDeleteBool101 get fail' + err); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testSingleKvStoreDeleteBool101 e' + e); + console.info('testSingleKvStoreDeleteBool101 e' + e); expect(null).assertFail(); done(); } @@ -721,19 +721,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteBool() testcase 102 */ it('testSingleKvStoreDeleteBool102', 0, async function (done) { - console.log('testSingleKvStoreDeleteBool102'); + console.info('testSingleKvStoreDeleteBool102'); try{ await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT, async function (err, data) { - console.log('testSingleKvStoreDeleteBool102 put success'); + console.info('testSingleKvStoreDeleteBool102 put success'); expect(err == undefined).assertTrue(); await kvStore.delete(KEY_TEST_BOOLEAN_ELEMENT, function (err,data) { - console.log('testSingleKvStoreDeleteBool102 delete success'); + console.info('testSingleKvStoreDeleteBool102 delete success'); expect(err == undefined).assertTrue(); done(); }); }) }catch(e) { - console.log('testSingleKvStoreDeleteBool102 e' + e); + console.info('testSingleKvStoreDeleteBool102 e' + e); expect(null).assertFail(); done(); } @@ -745,19 +745,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.OnChange() testcase 101 */ it('testSingleKvStoreOnChange101', 0, async function (done) { - console.log('testSingleKvStoreOnChange101'); + console.info('testSingleKvStoreOnChange101'); try { kvStore.on('dataChange', 0, function (data) { - console.log('testSingleKvStoreOnChange101 dataChange'); + console.info('testSingleKvStoreOnChange101 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testSingleKvStoreOnChange101 put success'); + console.info('testSingleKvStoreOnChange101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreOnChange101 e' + e); + console.info('testSingleKvStoreOnChange101 e' + e); expect(null).assertFail(); done(); } @@ -769,19 +769,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.OnChange() testcase 102 */ it('testSingleKvStoreOnChange102', 0, async function (done) { - console.log('testSingleKvStoreOnChange102'); + console.info('testSingleKvStoreOnChange102'); try { kvStore.on('dataChange', 1, function (data) { - console.log('testSingleKvStoreOnChange102 dataChange'); + console.info('testSingleKvStoreOnChange102 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testSingleKvStoreOnChange102 put success'); + console.info('testSingleKvStoreOnChange102 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreOnChange102 e' + e); + console.info('testSingleKvStoreOnChange102 e' + e); expect(null).assertFail(); done(); } @@ -793,19 +793,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.OnChange() testcase 103 */ it('testSingleKvStoreOnChange103', 0, async function (done) { - console.log('testSingleKvStoreOnChange103'); + console.info('testSingleKvStoreOnChange103'); try { kvStore.on('dataChange', 2, function (data) { - console.log('testSingleKvStoreOnChange103 dataChange'); + console.info('testSingleKvStoreOnChange103 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT, function (err,data) { - console.log('testSingleKvStoreOnChange103 put success'); + console.info('testSingleKvStoreOnChange103 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreOnChange103 e' + e); + console.info('testSingleKvStoreOnChange103 e' + e); expect(null).assertFail(); done(); } @@ -819,22 +819,22 @@ describe('SingleKvStoreCallbackTest', function () { it('testSingleKvStoreOnSyncComplete101', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testSingleKvStoreOnSyncComplete101 dataChange'); + console.info('testSingleKvStoreOnSyncComplete101 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync101', VALUE_TEST_SYNC_ELEMENT, function (err,data) { - console.log('testSingleKvStoreOnSyncComplete101 put success'); + console.info('testSingleKvStoreOnSyncComplete101 put success'); expect(err == undefined).assertTrue(); }); try { var mode = factory.SyncMode.PULL_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode, 10); } catch (e) { - console.log('testSingleKvStoreOnSyncComplete101 sync no peer device :e:' + e); + console.info('testSingleKvStoreOnSyncComplete101 sync no peer device :e:' + e); } }catch(e) { - console.log('testSingleKvStoreOnSyncComplete101 e' + e); + console.info('testSingleKvStoreOnSyncComplete101 e' + e); expect(null).assertFail(); } done(); @@ -848,22 +848,22 @@ describe('SingleKvStoreCallbackTest', function () { it('testSingleKvStoreOnSyncComplete102', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testSingleKvStoreOnSyncComplete102 dataChange'); + console.info('testSingleKvStoreOnSyncComplete102 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync102', VALUE_TEST_SYNC_ELEMENT, function (err,data) { - console.log('testSingleKvStoreOnSyncComplete102 put success'); + console.info('testSingleKvStoreOnSyncComplete102 put success'); expect(err == undefined).assertTrue(); }); try { var mode = factory.SyncMode.PUSH_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode, 10); } catch (e) { - console.log('testSingleKvStoreOnSyncComplete102 sync no peer device :e:' + e); + console.info('testSingleKvStoreOnSyncComplete102 sync no peer device :e:' + e); } }catch(e) { - console.log('testSingleKvStoreOnSyncComplete102 e' + e); + console.info('testSingleKvStoreOnSyncComplete102 e' + e); expect(null).assertFail(); } done(); @@ -877,22 +877,22 @@ describe('SingleKvStoreCallbackTest', function () { it('testSingleKvStoreOnSyncComplete103', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testSingleKvStoreOnSyncComplete103 dataChange'); + console.info('testSingleKvStoreOnSyncComplete103 dataChange'); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT + 'testSync103', VALUE_TEST_SYNC_ELEMENT, function (err,data) { - console.log('testSingleKvStoreOnSyncComplete103 put success'); + console.info('testSingleKvStoreOnSyncComplete103 put success'); expect(err == undefined).assertTrue(); }); try { var mode = factory.SyncMode.PUSH_PULL; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode, 10); } catch (e) { - console.log('testSingleKvStoreOnSyncComplete103 sync no peer device :e:' + e); + console.info('testSingleKvStoreOnSyncComplete103 sync no peer device :e:' + e); } }catch(e) { - console.log('testSingleKvStoreOnSyncComplete103 e' + e); + console.info('testSingleKvStoreOnSyncComplete103 e' + e); expect(null).assertFail(); } done(); @@ -904,17 +904,17 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.SetSyncRange() testcase 101 */ it('testSingleKvStoreSetSyncRange101', 0, async function (done) { - console.log('testSingleKvStoreSetSyncRange101'); + console.info('testSingleKvStoreSetSyncRange101'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['C', 'D']; await kvStore.setSyncRange(localLabels, remoteSupportLabels, function (err,data) { - console.log('testSingleKvStoreSetSyncRange101 put success'); + console.info('testSingleKvStoreSetSyncRange101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncRange101 e ' + e); + console.info('testSingleKvStoreSetSyncRange101 e ' + e); expect(null).assertFail(); done(); } @@ -926,17 +926,17 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.SetSyncRange() testcase 102 */ it('testSingleKvStoreSetSyncRange102', 0, async function (done) { - console.log('testSingleKvStoreSetSyncRange102'); + console.info('testSingleKvStoreSetSyncRange102'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['B', 'C']; await kvStore.setSyncRange(localLabels, remoteSupportLabels, function (err,data) { - console.log('testSingleKvStoreSetSyncRange102 put success'); + console.info('testSingleKvStoreSetSyncRange102 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncRange102 e ' + e); + console.info('testSingleKvStoreSetSyncRange102 e ' + e); expect(null).assertFail(); done(); } @@ -948,17 +948,17 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.SetSyncRange() testcase 103 */ it('testSingleKvStoreSetSyncRange103', 0, async function (done) { - console.log('testSingleKvStoreSetSyncRange103'); + console.info('testSingleKvStoreSetSyncRange103'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['A', 'B']; await kvStore.setSyncRange(localLabels, remoteSupportLabels, function (err,data) { - console.log('testSingleKvStoreSetSyncRange103 put success'); + console.info('testSingleKvStoreSetSyncRange103 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncRange103 e ' + e); + console.info('testSingleKvStoreSetSyncRange103 e ' + e); expect(null).assertFail(); done(); } @@ -970,7 +970,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 101 */ it('testSingleKvStorePutBatch101', 0, async function (done) { - console.log('testSingleKvStorePutBatch101'); + console.info('testSingleKvStorePutBatch101'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -984,21 +984,21 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch101 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorePutBatch101 putBatch success'); + console.info('testSingleKvStorePutBatch101 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_string_key', function (err,entrys) { - console.log('testSingleKvStorePutBatch101 getEntries success'); - console.log('testSingleKvStorePutBatch101 entrys.length: ' + entrys.length); - console.log('testSingleKvStorePutBatch101 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStorePutBatch101 getEntries success'); + console.info('testSingleKvStorePutBatch101 entrys.length: ' + entrys.length); + console.info('testSingleKvStorePutBatch101 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 'batch_test_string_value').assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStorePutBatch101 e ' + e); + console.info('testSingleKvStorePutBatch101 e ' + e); expect(null).assertFail(); done(); } @@ -1010,7 +1010,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 102 */ it('testSingleKvStorePutBatch102', 0, async function (done) { - console.log('testSingleKvStorePutBatch102'); + console.info('testSingleKvStorePutBatch102'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1024,21 +1024,21 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch102 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch102 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorePutBatch102 putBatch success'); + console.info('testSingleKvStorePutBatch102 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_number_key', function (err,entrys) { - console.log('testSingleKvStorePutBatch102 getEntries success'); - console.log('testSingleKvStorePutBatch102 entrys.length: ' + entrys.length); - console.log('testSingleKvStorePutBatch102 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStorePutBatch102 getEntries success'); + console.info('testSingleKvStorePutBatch102 entrys.length: ' + entrys.length); + console.info('testSingleKvStorePutBatch102 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 222).assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStorePutBatch102 e ' + e); + console.info('testSingleKvStorePutBatch102 e ' + e); expect(null).assertFail(); done(); } @@ -1050,7 +1050,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 103 */ it('testSingleKvStorePutBatch103', 0, async function (done) { - console.log('testSingleKvStorePutBatch103'); + console.info('testSingleKvStorePutBatch103'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1064,21 +1064,21 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch103 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch103 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorePutBatch103 putBatch success'); + console.info('testSingleKvStorePutBatch103 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_number_key', function (err,entrys) { - console.log('testSingleKvStorePutBatch103 getEntries success'); - console.log('testSingleKvStorePutBatch103 entrys.length: ' + entrys.length); - console.log('testSingleKvStorePutBatch103 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStorePutBatch103 getEntries success'); + console.info('testSingleKvStorePutBatch103 entrys.length: ' + entrys.length); + console.info('testSingleKvStorePutBatch103 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.0).assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStorePutBatch103 e ' + e); + console.info('testSingleKvStorePutBatch103 e ' + e); expect(null).assertFail(); done(); } @@ -1090,7 +1090,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 104 */ it('testSingleKvStorePutBatch104', 0, async function (done) { - console.log('testSingleKvStorePutBatch104'); + console.info('testSingleKvStorePutBatch104'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1104,21 +1104,21 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch104 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch104 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorePutBatch104 putBatch success'); + console.info('testSingleKvStorePutBatch104 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_number_key', function (err,entrys) { - console.log('testSingleKvStorePutBatch104 getEntries success'); - console.log('testSingleKvStorePutBatch104 entrys.length: ' + entrys.length); - console.log('testSingleKvStorePutBatch104 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStorePutBatch104 getEntries success'); + console.info('testSingleKvStorePutBatch104 entrys.length: ' + entrys.length); + console.info('testSingleKvStorePutBatch104 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.00).assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStorePutBatch104 e ' + e); + console.info('testSingleKvStorePutBatch104 e ' + e); expect(null).assertFail(); done(); } @@ -1130,7 +1130,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 105 */ it('testSingleKvStorePutBatch105', 0, async function (done) { - console.log('testSingleKvStorePutBatch105'); + console.info('testSingleKvStorePutBatch105'); try { var bo = false; let entries = []; @@ -1145,21 +1145,21 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch105 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch105 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorePutBatch105 putBatch success'); + console.info('testSingleKvStorePutBatch105 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_bool_key', function (err,entrys) { - console.log('testSingleKvStorePutBatch105 getEntries success'); - console.log('testSingleKvStorePutBatch105 entrys.length: ' + entrys.length); - console.log('testSingleKvStorePutBatch105 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStorePutBatch105 getEntries success'); + console.info('testSingleKvStorePutBatch105 entrys.length: ' + entrys.length); + console.info('testSingleKvStorePutBatch105 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == bo).assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStorePutBatch105 e ' + e); + console.info('testSingleKvStorePutBatch105 e ' + e); expect(null).assertFail(); done(); } @@ -1171,7 +1171,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 106 */ it('testSingleKvStorePutBatch106', 0, async function (done) { - console.log('testSingleKvStorePutBatch106'); + console.info('testSingleKvStorePutBatch106'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -1186,21 +1186,21 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch106 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch106 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorePutBatch106 putBatch success'); + console.info('testSingleKvStorePutBatch106 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_bool_key', function (err,entrys) { - console.log('testSingleKvStorePutBatch106 getEntries success'); - console.log('testSingleKvStorePutBatch106 entrys.length: ' + entrys.length); - console.log('testSingleKvStorePutBatch106 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStorePutBatch106 getEntries success'); + console.info('testSingleKvStorePutBatch106 entrys.length: ' + entrys.length); + console.info('testSingleKvStorePutBatch106 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStorePutBatch106 e ' + e); + console.info('testSingleKvStorePutBatch106 e ' + e); expect(null).assertFail(); done(); } @@ -1212,7 +1212,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteBatch() testcase 101 */ it('testSingleKvStoreDeleteBatch101', 0, async function (done) { - console.log('testSingleKvStoreDeleteBatch101'); + console.info('testSingleKvStoreDeleteBatch101'); try { let entries = []; let keys = []; @@ -1228,18 +1228,18 @@ describe('SingleKvStoreCallbackTest', function () { entries.push(entry); keys.push(key + i); } - console.log('testSingleKvStoreDeleteBatch101 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreDeleteBatch101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStoreDeleteBatch101 putBatch success'); + console.info('testSingleKvStoreDeleteBatch101 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testSingleKvStoreDeleteBatch101 deleteBatch success'); + console.info('testSingleKvStoreDeleteBatch101 deleteBatch success'); expect(err == undefined).assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStoreDeleteBatch101 e ' + e); + console.info('testSingleKvStoreDeleteBatch101 e ' + e); expect(null).assertFail(); done(); } @@ -1251,16 +1251,16 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteBatch() testcase 102 */ it('testSingleKvStoreDeleteBatch102', 0, async function (done) { - console.log('testSingleKvStoreDeleteBatch102'); + console.info('testSingleKvStoreDeleteBatch102'); try { let keys = ['batch_test_string_key1', 'batch_test_string_key2']; await kvStore.deleteBatch(keys, function (err,data) { - console.log('testSingleKvStoreDeleteBatch102 deleteBatch success'); + console.info('testSingleKvStoreDeleteBatch102 deleteBatch success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreDeleteBatch102 e ' + e); + console.info('testSingleKvStoreDeleteBatch102 e ' + e); expect(null).assertFail(); done(); } @@ -1272,7 +1272,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.DeleteBatch() testcase 103 */ it('testSingleKvStoreDeleteBatch103', 0, async function (done) { - console.log('testSingleKvStoreDeleteBatch103'); + console.info('testSingleKvStoreDeleteBatch103'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1286,19 +1286,19 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStoreDeleteBatch103 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreDeleteBatch103 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStoreDeleteBatch103 putBatch success'); + console.info('testSingleKvStoreDeleteBatch103 putBatch success'); expect(err == undefined).assertTrue(); let keys = ['batch_test_string_key1', 'batch_test_string_keya']; await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testSingleKvStoreDeleteBatch103 deleteBatch success'); + console.info('testSingleKvStoreDeleteBatch103 deleteBatch success'); expect(err == undefined).assertTrue(); done(); }); }); }catch(e) { - console.log('testSingleKvStoreDeleteBatch103 e ' + e); + console.info('testSingleKvStoreDeleteBatch103 e ' + e); expect(null).assertFail(); done(); } @@ -1310,27 +1310,27 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.startTransaction() testcase 101 */ it('testSingleKvStorestartTransaction101', 0, async function (done) { - console.log('testSingleKvStorestartTransaction101'); + console.info('testSingleKvStorestartTransaction101'); try { var count = 0; kvStore.on('dataChange', 0, function (data) { - console.log('testSingleKvStorestartTransaction101 0' + data) + console.info('testSingleKvStorestartTransaction101 0' + data) count++; }); await kvStore.startTransaction(async function (err,data) { - console.log('testSingleKvStorestartTransaction101 startTransaction success'); + console.info('testSingleKvStorestartTransaction101 startTransaction success'); expect(err == undefined).assertTrue(); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testSingleKvStorestartTransaction101 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorestartTransaction101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorestartTransaction101 putBatch success'); + console.info('testSingleKvStorestartTransaction101 putBatch success'); expect(err == undefined).assertTrue(); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testSingleKvStorestartTransaction101 deleteBatch success'); + console.info('testSingleKvStorestartTransaction101 deleteBatch success'); expect(err == undefined).assertTrue(); await kvStore.commit(async function (err,data) { - console.log('testSingleKvStorestartTransaction101 commit success'); + console.info('testSingleKvStorestartTransaction101 commit success'); expect(err == undefined).assertTrue(); await sleep(2000); expect(count == 1).assertTrue(); @@ -1340,7 +1340,7 @@ describe('SingleKvStoreCallbackTest', function () { }); }); }catch(e) { - console.log('testSingleKvStorestartTransaction101 e ' + e); + console.info('testSingleKvStorestartTransaction101 e ' + e); expect(null).assertFail(); done(); } @@ -1352,27 +1352,27 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.startTransaction() testcase 102 */ it('testSingleKvStorestartTransaction102', 0, async function (done) { - console.log('testSingleKvStorestartTransaction102'); + console.info('testSingleKvStorestartTransaction102'); try { var count = 0; kvStore.on('dataChange', 0, function (data) { - console.log('testSingleKvStorestartTransaction102 0' + data) + console.info('testSingleKvStorestartTransaction102 0' + data) count++; }); await kvStore.startTransaction(async function (err,data) { - console.log('testSingleKvStorestartTransaction102 startTransaction success'); + console.info('testSingleKvStorestartTransaction102 startTransaction success'); expect(err == undefined).assertTrue(); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testSingleKvStorestartTransaction102 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorestartTransaction102 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStorestartTransaction102 putBatch success'); + console.info('testSingleKvStorestartTransaction102 putBatch success'); expect(err == undefined).assertTrue(); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys, async function (err,data) { - console.log('testSingleKvStorestartTransaction102 deleteBatch success'); + console.info('testSingleKvStorestartTransaction102 deleteBatch success'); expect(err == undefined).assertTrue(); await kvStore.rollback(async function (err,data) { - console.log('testSingleKvStorestartTransaction102 rollback success'); + console.info('testSingleKvStorestartTransaction102 rollback success'); expect(err == undefined).assertTrue(); await sleep(2000); expect(count == 0).assertTrue(); @@ -1382,7 +1382,7 @@ describe('SingleKvStoreCallbackTest', function () { }); }); }catch(e) { - console.log('testSingleKvStorestartTransaction102 e ' + e); + console.info('testSingleKvStorestartTransaction102 e ' + e); expect(null).assertFail(); done(); } @@ -1394,19 +1394,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.startTransaction() testcase 103 */ it('testSingleKvStorestartTransaction103', 0, async function (done) { - console.log('testSingleKvStorestartTransaction103'); + console.info('testSingleKvStorestartTransaction103'); try { await kvStore.startTransaction(1, function (err,data) { if (err == undefined) { - console.log('testSingleKvStorestartTransaction103 startTransaction success'); + console.info('testSingleKvStorestartTransaction103 startTransaction success'); expect(null).assertFail(); } else { - console.log('testSingleKvStorestartTransaction103 startTransaction fail'); + console.info('testSingleKvStorestartTransaction103 startTransaction fail'); } done(); }); }catch(e) { - console.log('testSingleKvStorestartTransaction103 e ' + e); + console.info('testSingleKvStorestartTransaction103 e ' + e); done(); } }) @@ -1417,19 +1417,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.startTransaction() testcase 104 */ it('testSingleKvStorestartTransaction104', 0, async function (done) { - console.log('testSingleKvStorestartTransaction104'); + console.info('testSingleKvStorestartTransaction104'); try { await kvStore.startTransaction('test_string', function (err,data) { if (err == undefined) { - console.log('testSingleKvStorestartTransaction104 startTransaction success'); + console.info('testSingleKvStorestartTransaction104 startTransaction success'); expect(null).assertFail(); } else { - console.log('testSingleKvStorestartTransaction104 startTransaction fail'); + console.info('testSingleKvStorestartTransaction104 startTransaction fail'); } done(); }); }catch(e) { - console.log('testSingleKvStorestartTransaction104 e ' + e); + console.info('testSingleKvStorestartTransaction104 e ' + e); done(); } }) @@ -1440,19 +1440,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.startTransaction() testcase 105 */ it('testSingleKvStorestartTransaction105', 0, async function (done) { - console.log('testSingleKvStorestartTransaction105'); + console.info('testSingleKvStorestartTransaction105'); try { await kvStore.startTransaction(2.000, function (err,data) { if (err == undefined) { - console.log('testSingleKvStorestartTransaction105 startTransaction success'); + console.info('testSingleKvStorestartTransaction105 startTransaction success'); expect(null).assertFail(); } else { - console.log('testSingleKvStorestartTransaction105 startTransaction fail'); + console.info('testSingleKvStorestartTransaction105 startTransaction fail'); } done(); }); }catch(e) { - console.log('testSingleKvStorestartTransaction105 e ' + e); + console.info('testSingleKvStorestartTransaction105 e ' + e); done(); } }) @@ -1463,19 +1463,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Commit() testcase 101 */ it('testSingleKvStoreCommit101', 0, async function (done) { - console.log('testSingleKvStoreCommit101'); + console.info('testSingleKvStoreCommit101'); try { await kvStore.commit(1, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreCommit101 commit success'); + console.info('testSingleKvStoreCommit101 commit success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreCommit101 commit fail'); + console.info('testSingleKvStoreCommit101 commit fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreCommit101 e ' + e); + console.info('testSingleKvStoreCommit101 e ' + e); done(); } }) @@ -1486,19 +1486,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Commit() testcase 102 */ it('testSingleKvStoreCommit102', 0, async function (done) { - console.log('testSingleKvStoreCommit102'); + console.info('testSingleKvStoreCommit102'); try { await kvStore.commit('test_string', function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreCommit102 commit success'); + console.info('testSingleKvStoreCommit102 commit success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreCommit102 commit fail'); + console.info('testSingleKvStoreCommit102 commit fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreCommit102 e ' + e); + console.info('testSingleKvStoreCommit102 e ' + e); done(); } }) @@ -1509,19 +1509,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Commit() testcase 103 */ it('testSingleKvStoreCommit103', 0, async function (done) { - console.log('testSingleKvStoreCommit103'); + console.info('testSingleKvStoreCommit103'); try { await kvStore.commit(2.000, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreCommit103 commit success'); + console.info('testSingleKvStoreCommit103 commit success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreCommit103 commit fail'); + console.info('testSingleKvStoreCommit103 commit fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreCommit103 e ' + e); + console.info('testSingleKvStoreCommit103 e ' + e); done(); } }) @@ -1532,19 +1532,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Rollback() testcase 101 */ it('testSingleKvStoreRollback101', 0, async function (done) { - console.log('testSingleKvStoreRollback101'); + console.info('testSingleKvStoreRollback101'); try { await kvStore.rollback(1, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreRollback101 commit success'); + console.info('testSingleKvStoreRollback101 commit success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreRollback101 commit fail'); + console.info('testSingleKvStoreRollback101 commit fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreRollback101 e ' + e); + console.info('testSingleKvStoreRollback101 e ' + e); done(); } }) @@ -1555,19 +1555,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Rollback() testcase 102 */ it('testSingleKvStoreRollback102', 0, async function (done) { - console.log('testSingleKvStoreRollback102'); + console.info('testSingleKvStoreRollback102'); try { await kvStore.rollback('test_string', function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreRollback102 commit success'); + console.info('testSingleKvStoreRollback102 commit success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreRollback102 commit fail'); + console.info('testSingleKvStoreRollback102 commit fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreRollback102 e ' + e); + console.info('testSingleKvStoreRollback102 e ' + e); done(); } }) @@ -1578,19 +1578,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.Rollback() testcase 103 */ it('testSingleKvStoreRollback103', 0, async function (done) { - console.log('testSingleKvStoreRollback103'); + console.info('testSingleKvStoreRollback103'); try { await kvStore.rollback(2.000, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreRollback103 commit success'); + console.info('testSingleKvStoreRollback103 commit success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreRollback103 commit fail'); + console.info('testSingleKvStoreRollback103 commit fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreRollback103 e ' + e); + console.info('testSingleKvStoreRollback103 e ' + e); done(); } }) @@ -1601,20 +1601,20 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.EnableSync() testcase 101 */ it('testSingleKvStoreEnableSync101', 0, async function (done) { - console.log('testSingleKvStoreEnableSync101'); + console.info('testSingleKvStoreEnableSync101'); try { await kvStore.enableSync(true, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreEnableSync101 enableSync success'); + console.info('testSingleKvStoreEnableSync101 enableSync success'); expect(err == undefined).assertTrue(); } else { - console.log('testSingleKvStoreEnableSync101 enableSync fail'); + console.info('testSingleKvStoreEnableSync101 enableSync fail'); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testSingleKvStoreEnableSync101 e ' + e); + console.info('testSingleKvStoreEnableSync101 e ' + e); expect(null).assertFail(); done(); } @@ -1626,20 +1626,20 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.EnableSync() testcase 102 */ it('testSingleKvStoreEnableSync102', 0, async function (done) { - console.log('testSingleKvStoreEnableSync102'); + console.info('testSingleKvStoreEnableSync102'); try { await kvStore.enableSync(false, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreEnableSync102 enableSync success'); + console.info('testSingleKvStoreEnableSync102 enableSync success'); expect(err == undefined).assertTrue(); } else { - console.log('testSingleKvStoreEnableSync102 enableSync fail'); + console.info('testSingleKvStoreEnableSync102 enableSync fail'); expect(null).assertFail(); } done(); }); }catch(e) { - console.log('testSingleKvStoreEnableSync102 e ' + e); + console.info('testSingleKvStoreEnableSync102 e ' + e); expect(null).assertFail(); done(); } @@ -1651,19 +1651,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.EnableSync() testcase 103 */ it('testSingleKvStoreEnableSync103', 0, async function (done) { - console.log('testSingleKvStoreEnableSync103'); + console.info('testSingleKvStoreEnableSync103'); try { await kvStore.enableSync(function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreEnableSync103 enableSync success'); + console.info('testSingleKvStoreEnableSync103 enableSync success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreEnableSync103 enableSync fail'); + console.info('testSingleKvStoreEnableSync103 enableSync fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreEnableSync103 e ' + e); + console.info('testSingleKvStoreEnableSync103 e ' + e); done(); } }) @@ -1674,19 +1674,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.EnableSync() testcase 104 */ it('testSingleKvStoreEnableSync104', 0, async function (done) { - console.log('testSingleKvStoreEnableSync104'); + console.info('testSingleKvStoreEnableSync104'); try { await kvStore.enableSync(null, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreEnableSync104 enableSync success'); + console.info('testSingleKvStoreEnableSync104 enableSync success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreEnableSync104 enableSync fail'); + console.info('testSingleKvStoreEnableSync104 enableSync fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreEnableSync104 e ' + e); + console.info('testSingleKvStoreEnableSync104 e ' + e); done(); } }) @@ -1697,21 +1697,21 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.RemoveDeviceData() testcase 101 */ it('testSingleKvStoreRemoveDeviceData101', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData101'); + console.info('testSingleKvStoreRemoveDeviceData101'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT, async function (err,data) { - console.log('testSingleKvStoreRemoveDeviceData101 put success'); + console.info('testSingleKvStoreRemoveDeviceData101 put success'); expect(err == undefined).assertTrue(); var deviceid = 'no_exist_device_id'; await kvStore.removeDeviceData(deviceid, async function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreRemoveDeviceData101 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData101 removeDeviceData success'); expect(null).assertFail(); done(); } else { - console.log('testSingleKvStoreRemoveDeviceData101 removeDeviceData fail'); + console.info('testSingleKvStoreRemoveDeviceData101 removeDeviceData fail'); await kvStore.get(KEY_TEST_STRING_ELEMENT, async function (err,data) { - console.log('testSingleKvStoreRemoveDeviceData101 get success'); + console.info('testSingleKvStoreRemoveDeviceData101 get success'); expect(data == VALUE_TEST_STRING_ELEMENT).assertTrue(); done(); }); @@ -1719,7 +1719,7 @@ describe('SingleKvStoreCallbackTest', function () { }); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData101 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData101 e ' + e); expect(null).assertFail(); done(); } @@ -1731,19 +1731,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.RemoveDeviceData() testcase 102 */ it('testSingleKvStoreRemoveDeviceData102', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData102'); + console.info('testSingleKvStoreRemoveDeviceData102'); try { await kvStore.removeDeviceData(function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreRemoveDeviceData102 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData102 removeDeviceData success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreRemoveDeviceData102 removeDeviceData fail'); + console.info('testSingleKvStoreRemoveDeviceData102 removeDeviceData fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData101 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData101 e ' + e); done(); } }) @@ -1754,19 +1754,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.RemoveDeviceData() testcase 103 */ it('testSingleKvStoreRemoveDeviceData103', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData103'); + console.info('testSingleKvStoreRemoveDeviceData103'); try { await kvStore.removeDeviceData('', function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreRemoveDeviceData103 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData103 removeDeviceData success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreRemoveDeviceData103 removeDeviceData fail'); + console.info('testSingleKvStoreRemoveDeviceData103 removeDeviceData fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData103 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData103 e ' + e); done(); } }) @@ -1777,19 +1777,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.RemoveDeviceData() testcase 104 */ it('testSingleKvStoreRemoveDeviceData104', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData104'); + console.info('testSingleKvStoreRemoveDeviceData104'); try { await kvStore.removeDeviceData(null, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreRemoveDeviceData104 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData104 removeDeviceData success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreRemoveDeviceData104 removeDeviceData fail'); + console.info('testSingleKvStoreRemoveDeviceData104 removeDeviceData fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData104 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData104 e ' + e); done(); } }) @@ -1800,16 +1800,16 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.SetSyncParam() testcase 101 */ it('testSingleKvStoreSetSyncParam101', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam101'); + console.info('testSingleKvStoreSetSyncParam101'); try { var defaultAllowedDelayMs = 500; await kvStore.setSyncParam(defaultAllowedDelayMs, function (err,data) { - console.log('testSingleKvStoreSetSyncParam101 put success'); + console.info('testSingleKvStoreSetSyncParam101 put success'); expect(err == undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam101 e ' + e); + console.info('testSingleKvStoreSetSyncParam101 e ' + e); expect(null).assertFail(); done(); } @@ -1821,19 +1821,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.SetSyncParam() testcase 102 */ it('testSingleKvStoreSetSyncParam102', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam102'); + console.info('testSingleKvStoreSetSyncParam102'); try { await kvStore.setSyncParam(function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreSetSyncParam102 put success'); + console.info('testSingleKvStoreSetSyncParam102 put success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreSetSyncParam102 put err' + err); + console.info('testSingleKvStoreSetSyncParam102 put err' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam102 e ' + e); + console.info('testSingleKvStoreSetSyncParam102 e ' + e); done(); } }) @@ -1844,19 +1844,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.SetSyncParam() testcase 103 */ it('testSingleKvStoreSetSyncParam103', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam103'); + console.info('testSingleKvStoreSetSyncParam103'); try { await kvStore.setSyncParam('', function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreSetSyncParam103 put success'); + console.info('testSingleKvStoreSetSyncParam103 put success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreSetSyncParam103 put err' + err); + console.info('testSingleKvStoreSetSyncParam103 put err' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam103 e ' + e); + console.info('testSingleKvStoreSetSyncParam103 e ' + e); done(); } }) @@ -1867,19 +1867,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.SetSyncParam() testcase 104 */ it('testSingleKvStoreSetSyncParam104', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam104'); + console.info('testSingleKvStoreSetSyncParam104'); try { await kvStore.setSyncParam(null, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreSetSyncParam104 put success'); + console.info('testSingleKvStoreSetSyncParam104 put success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreSetSyncParam104 put err' + err); + console.info('testSingleKvStoreSetSyncParam104 put err' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam104 e ' + e); + console.info('testSingleKvStoreSetSyncParam104 e ' + e); done(); } }) @@ -1890,15 +1890,15 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetSecurityLevel() testcase 101 */ // it('testSingleKvStoreGetSecurityLevel101', 0, async function (done) { - // console.log('testSingleKvStoreGetSecurityLevel101'); + // console.info('testSingleKvStoreGetSecurityLevel101'); // try { // await kvStore.getSecurityLevel(function (err,data) { - // console.log('testSingleKvStoreGetSecurityLevel101 getSecurityLevel success'); + // console.info('testSingleKvStoreGetSecurityLevel101 getSecurityLevel success'); // expect(data == factory.SecurityLevel.S2).assertTrue(); // done(); // }); // }catch(e) { - // console.log('testSingleKvStoreGetSecurityLevel101 e ' + e); + // console.info('testSingleKvStoreGetSecurityLevel101 e ' + e); // expect(null).assertFail(); // done(); // } @@ -1910,19 +1910,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetSecurityLevel() testcase 102 */ it('testSingleKvStoreGetSecurityLevel102', 0, async function (done) { - console.log('testSingleKvStoreGetSecurityLevel102'); + console.info('testSingleKvStoreGetSecurityLevel102'); try { await kvStore.getSecurityLevel(1, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreGetSecurityLevel102 getSecurityLevel success'); + console.info('testSingleKvStoreGetSecurityLevel102 getSecurityLevel success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreGetSecurityLevel102 getSecurityLevel fail' + err); + console.info('testSingleKvStoreGetSecurityLevel102 getSecurityLevel fail' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreGetSecurityLevel102 e ' + e); + console.info('testSingleKvStoreGetSecurityLevel102 e ' + e); expect(null).assertFail(); done(); } @@ -1934,19 +1934,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetSecurityLevel() testcase 103 */ it('testSingleKvStoreGetSecurityLevel103', 0, async function (done) { - console.log('testSingleKvStoreGetSecurityLevel103'); + console.info('testSingleKvStoreGetSecurityLevel103'); try { await kvStore.getSecurityLevel('test_string', function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreGetSecurityLevel103 getSecurityLevel success'); + console.info('testSingleKvStoreGetSecurityLevel103 getSecurityLevel success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreGetSecurityLevel103 getSecurityLevel fail' + err); + console.info('testSingleKvStoreGetSecurityLevel103 getSecurityLevel fail' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreGetSecurityLevel103 e ' + e); + console.info('testSingleKvStoreGetSecurityLevel103 e ' + e); expect(null).assertFail(); done(); } @@ -1958,19 +1958,19 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetSecurityLevel() testcase 104 */ it('testSingleKvStoreGetSecurityLevel104', 0, async function (done) { - console.log('testSingleKvStoreGetSecurityLevel104'); + console.info('testSingleKvStoreGetSecurityLevel104'); try { await kvStore.getSecurityLevel(2.00, function (err,data) { if (err == undefined) { - console.log('testSingleKvStoreGetSecurityLevel104 getSecurityLevel success'); + console.info('testSingleKvStoreGetSecurityLevel104 getSecurityLevel success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreGetSecurityLevel104 getSecurityLevel fail' + err); + console.info('testSingleKvStoreGetSecurityLevel104 getSecurityLevel fail' + err); } done(); }); }catch(e) { - console.log('testSingleKvStoreGetSecurityLevel104 e ' + e); + console.info('testSingleKvStoreGetSecurityLevel104 e ' + e); expect(null).assertFail(); done(); } @@ -1982,7 +1982,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSet() testcase 101 */ it('testSingleKvStoreGetResultSet101', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet101'); + console.info('testSingleKvStoreGetResultSet101'); try { let resultSet; let entries = []; @@ -1998,21 +1998,21 @@ describe('SingleKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testSingleKvStoreGetResultSet101 putBatch success'); + console.info('testSingleKvStoreGetResultSet101 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getResultSet('batch_test_string_key', async function (err, result) { - console.log('testSingleKvStoreGetResultSet101 getResultSet success'); + console.info('testSingleKvStoreGetResultSet101 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testSingleKvStoreGetResultSet101 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet101 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet101 e ' + e); + console.info('testSingleKvStoreGetResultSet101 e ' + e); expect(null).assertFail(); done(); } @@ -2024,21 +2024,21 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSet() testcase 102 */ it('testSingleKvStoreGetResultSet102', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet102'); + console.info('testSingleKvStoreGetResultSet102'); try { let resultSet; await kvStore.getResultSet('batch_test_string_key', async function (err, result) { - console.log('testSingleKvStoreGetResultSet102 getResultSet success'); + console.info('testSingleKvStoreGetResultSet102 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 0).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testSingleKvStoreGetResultSet102 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet102 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }catch(e) { - console.log('testSingleKvStoreGetResultSet102 e ' + e); + console.info('testSingleKvStoreGetResultSet102 e ' + e); expect(null).assertFail(); done(); } @@ -2050,16 +2050,16 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSet() testcase 103 */ it('testSingleKvStoreGetResultSet103', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet103'); + console.info('testSingleKvStoreGetResultSet103'); try { let resultSet; await kvStore.getResultSet(function (err, result) { - console.log('testSingleKvStoreGetResultSet103 getResultSet success'); + console.info('testSingleKvStoreGetResultSet103 getResultSet success'); expect(err != undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet103 e ' + e); + console.info('testSingleKvStoreGetResultSet103 e ' + e); expect(null).assertFail(); done(); } @@ -2071,16 +2071,16 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSet() testcase 104 */ it('testSingleKvStoreGetResultSet104', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet104'); + console.info('testSingleKvStoreGetResultSet104'); try { let resultSet; await kvStore.getResultSet('test_key_string', 123, function (err, result) { - console.log('testSingleKvStoreGetResultSet104 getResultSet success'); + console.info('testSingleKvStoreGetResultSet104 getResultSet success'); expect(err != undefined).assertTrue(); done(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet104 e ' + e); + console.info('testSingleKvStoreGetResultSet104 e ' + e); expect(null).assertFail(); done(); } @@ -2092,7 +2092,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSet() testcase 105 */ it('testSingleKvStoreGetResultSet105', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet105'); + console.info('testSingleKvStoreGetResultSet105'); try { let resultSet; let entries = []; @@ -2108,23 +2108,23 @@ describe('SingleKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testSingleKvStoreGetResultSet105 putBatch success'); + console.info('testSingleKvStoreGetResultSet105 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSet(query, async function (err, result) { - console.log('testSingleKvStoreGetResultSet105 getResultSet success'); + console.info('testSingleKvStoreGetResultSet105 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testSingleKvStoreGetResultSet105 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet105 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }); } catch(e) { - console.log('testSingleKvStoreGetResultSet105 e ' + e); + console.info('testSingleKvStoreGetResultSet105 e ' + e); expect(null).assertFail(); done(); } @@ -2136,7 +2136,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSet() testcase 106 */ it('testSingleKvStoreGetResultSet106', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet106'); + console.info('testSingleKvStoreGetResultSet106'); try { let resultSet; let entries = []; @@ -2152,23 +2152,23 @@ describe('SingleKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testSingleKvStoreGetResultSet106 putBatch success'); + console.info('testSingleKvStoreGetResultSet106 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSet(query, async function (err, result) { - console.log('testSingleKvStoreGetResultSet106 getResultSet success'); + console.info('testSingleKvStoreGetResultSet106 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); await kvStore.closeResultSet(resultSet, function (err, data) { - console.log('testSingleKvStoreGetResultSet106 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet106 closeResultSet success'); expect(err == undefined).assertTrue(); done(); }) }); }); } catch(e) { - console.log('testSingleKvStoreGetResultSet106 e ' + e); + console.info('testSingleKvStoreGetResultSet106 e ' + e); expect(null).assertFail(); done(); } @@ -2180,21 +2180,21 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.CloseResultSet() testcase 101 */ it('testSingleKvStoreCloseResultSet101', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet101'); + console.info('testSingleKvStoreCloseResultSet101'); try { - console.log('testSingleKvStoreCloseResultSet101 success'); + console.info('testSingleKvStoreCloseResultSet101 success'); let resultSet = null; await kvStore.closeResultSet(resultSet, function (err, data) { if (err == undefined) { - console.log('testSingleKvStoreCloseResultSet101 closeResultSet success'); + console.info('testSingleKvStoreCloseResultSet101 closeResultSet success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreCloseResultSet101 closeResultSet fail'); + console.info('testSingleKvStoreCloseResultSet101 closeResultSet fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreCloseResultSet101 e ' + e); + console.info('testSingleKvStoreCloseResultSet101 e ' + e); expect(null).assertFail(); done(); } @@ -2206,25 +2206,25 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.CloseResultSet() testcase 102 */ it('testSingleKvStoreCloseResultSet102', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet102'); + console.info('testSingleKvStoreCloseResultSet102'); try { let resultSet = null; await kvStore.getResultSet('batch_test_string_key', async function(err, result) { - console.log('testSingleKvStoreCloseResultSet102 getResultSet success'); + console.info('testSingleKvStoreCloseResultSet102 getResultSet success'); resultSet = result; await kvStore.closeResultSet(resultSet, function (err, data) { if (err == undefined) { - console.log('testSingleKvStoreCloseResultSet102 closeResultSet success'); + console.info('testSingleKvStoreCloseResultSet102 closeResultSet success'); expect(err == undefined).assertTrue(); } else { - console.log('testSingleKvStoreCloseResultSet102 closeResultSet fail'); + console.info('testSingleKvStoreCloseResultSet102 closeResultSet fail'); expect(null).assertFail(); } done(); }); }); }catch(e) { - console.log('testSingleKvStoreCloseResultSet102 e ' + e); + console.info('testSingleKvStoreCloseResultSet102 e ' + e); expect(null).assertFail(); done(); } @@ -2236,20 +2236,20 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.CloseResultSet() testcase 103 */ it('testSingleKvStoreCloseResultSet103', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet103'); + console.info('testSingleKvStoreCloseResultSet103'); try { - console.log('testSingleKvStoreCloseResultSet103 success'); + console.info('testSingleKvStoreCloseResultSet103 success'); await kvStore.closeResultSet(function (err, data) { if (err == undefined) { - console.log('testSingleKvStoreCloseResultSet103 closeResultSet success'); + console.info('testSingleKvStoreCloseResultSet103 closeResultSet success'); expect(null).assertFail(); } else { - console.log('testSingleKvStoreCloseResultSet103 closeResultSet fail'); + console.info('testSingleKvStoreCloseResultSet103 closeResultSet fail'); } done(); }); }catch(e) { - console.log('testSingleKvStoreCloseResultSet103 e ' + e); + console.info('testSingleKvStoreCloseResultSet103 e ' + e); expect(null).assertFail(); done(); } @@ -2261,11 +2261,11 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.CloseResultSet() testcase 104 */ it('testSingleKvStoreCloseResultSet104', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet104'); + console.info('testSingleKvStoreCloseResultSet104'); try { - console.log('testSingleKvStoreCloseResultSet104 success'); + console.info('testSingleKvStoreCloseResultSet104 success'); }catch(e) { - console.log('testSingleKvStoreCloseResultSet104 e ' + e); + console.info('testSingleKvStoreCloseResultSet104 e ' + e); expect(null).assertFail(); } done(); @@ -2277,7 +2277,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSize() testcase 101 */ it('testSingleKvStoreGetResultSize101', 0, async function (done) { - console.log('testSingleKvStoreGetResultSize101'); + console.info('testSingleKvStoreGetResultSize101'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2292,18 +2292,18 @@ describe('SingleKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testSingleKvStoreGetResultSize101 putBatch success'); + console.info('testSingleKvStoreGetResultSize101 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSize(query, async function (err, resultSize) { - console.log('testSingleKvStoreGetResultSize101 getResultSet success'); + console.info('testSingleKvStoreGetResultSize101 getResultSet success'); expect(resultSize == 10).assertTrue(); done(); }); }); } catch(e) { - console.log('testSingleKvStoreGetResultSize101 e ' + e); + console.info('testSingleKvStoreGetResultSize101 e ' + e); expect(null).assertFail(); done(); } @@ -2315,7 +2315,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetResultSize() testcase 102 */ it('testSingleKvStoreGetResultSize102', 0, async function (done) { - console.log('testSingleKvStoreGetResultSize102'); + console.info('testSingleKvStoreGetResultSize102'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2330,18 +2330,18 @@ describe('SingleKvStoreCallbackTest', function () { entries.push(entry); } await kvStore.putBatch(entries, async function (err, data) { - console.log('testSingleKvStoreGetResultSize102 putBatch success'); + console.info('testSingleKvStoreGetResultSize102 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSize(query, async function (err, resultSize) { - console.log('testSingleKvStoreGetResultSize102 getResultSet success'); + console.info('testSingleKvStoreGetResultSize102 getResultSet success'); expect(resultSize == 10).assertTrue(); done(); }); }); } catch(e) { - console.log('testSingleKvStoreGetResultSize102 e ' + e); + console.info('testSingleKvStoreGetResultSize102 e ' + e); expect(null).assertFail(); done(); } @@ -2353,7 +2353,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetEntries() testcase 101 */ it('testSingleKvStoreGetEntries101', 0, async function (done) { - console.log('testSingleKvStoreGetEntries101'); + console.info('testSingleKvStoreGetEntries101'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2368,24 +2368,24 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStoreGetEntries101 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreGetEntries101 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStoreGetEntries101 putBatch success'); + console.info('testSingleKvStoreGetEntries101 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getEntries(query, function (err,entrys) { - console.log('testSingleKvStoreGetEntries101 getEntries success'); - console.log('testSingleKvStoreGetEntries101 entrys.length: ' + entrys.length); - console.log('testSingleKvStoreGetEntries101 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStoreGetEntries101 getEntries success'); + console.info('testSingleKvStoreGetEntries101 entrys.length: ' + entrys.length); + console.info('testSingleKvStoreGetEntries101 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); done(); }); }); - console.log('testSingleKvStoreGetEntries101 success'); + console.info('testSingleKvStoreGetEntries101 success'); }catch(e) { - console.log('testSingleKvStoreGetEntries101 e ' + e); + console.info('testSingleKvStoreGetEntries101 e ' + e); expect(null).assertFail(); } done(); @@ -2397,7 +2397,7 @@ describe('SingleKvStoreCallbackTest', function () { * @tc.desc Test Js Api SingleKvStore.GetEntries() testcase 102 */ it('testSingleKvStoreGetEntries102', 0, async function (done) { - console.log('testSingleKvStoreGetEntries102'); + console.info('testSingleKvStoreGetEntries102'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2412,25 +2412,25 @@ describe('SingleKvStoreCallbackTest', function () { } entries.push(entry); } - console.log('testSingleKvStoreGetEntries102 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreGetEntries102 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries, async function (err,data) { - console.log('testSingleKvStoreGetEntries102 putBatch success'); + console.info('testSingleKvStoreGetEntries102 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getEntries(query, function (err,entrys) { - console.log('testSingleKvStoreGetEntries102 getEntries success'); - console.log('testSingleKvStoreGetEntries102 entrys.length: ' + entrys.length); - console.log('testSingleKvStoreGetEntries102 entrys[0]: ' + JSON.stringify(entrys[0])); + console.info('testSingleKvStoreGetEntries102 getEntries success'); + console.info('testSingleKvStoreGetEntries102 entrys.length: ' + entrys.length); + console.info('testSingleKvStoreGetEntries102 entrys[0]: ' + JSON.stringify(entrys[0])); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); done(); }); }); - console.log('testSingleKvStoreGetEntries101 success'); - console.log('testSingleKvStoreGetEntries102 success'); + console.info('testSingleKvStoreGetEntries101 success'); + console.info('testSingleKvStoreGetEntries102 success'); }catch(e) { - console.log('testSingleKvStoreGetEntries102 e ' + e); + console.info('testSingleKvStoreGetEntries102 e ' + e); expect(null).assertFail(); } done(); diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStorePromiseJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStorePromiseJsunit.test.js index 25f0b0571c5dcfd737cc1bd942dca9727cdf862b..a315f93542182321459a5f8711d3930386dd7466 100755 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStorePromiseJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/SingleKvStorePromiseJsunit.test.js @@ -74,47 +74,47 @@ describe('SingleKvStorePromiseTest', function () { } beforeAll(async function (done) { - console.log('beforeAll config:'+ JSON.stringify(config)); + console.info('beforeAll config:'+ JSON.stringify(config)); await factory.createKVManager(config).then((manager) => { kvManager = manager; - console.log('beforeAll createKVManager success'); + console.info('beforeAll createKVManager success'); }).catch((err) => { - console.log('beforeAll createKVManager err ' + err); + console.info('beforeAll createKVManager err ' + err); }); - console.log('beforeAll end'); + console.info('beforeAll end'); done(); }) afterAll(async function (done) { - console.log('afterAll'); + console.info('afterAll'); kvManager = null; kvStore = null; done(); }) beforeEach(async function (done) { - console.log('beforeEach' + JSON.stringify(options)); + console.info('beforeEach' + JSON.stringify(options)); await kvManager.getKVStore(TEST_STORE_ID, options).then((store) => { kvStore = store; - console.log('beforeEach getKVStore success'); + console.info('beforeEach getKVStore success'); }).catch((err) => { - console.log('beforeEach getKVStore err ' + err); + console.info('beforeEach getKVStore err ' + err); }); - console.log('beforeEach end'); + console.info('beforeEach end'); done(); }) afterEach(async function (done) { - console.log('afterEach'); + console.info('afterEach'); await kvManager.closeKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID, kvStore).then(async () => { - console.log('afterEach closeKVStore success'); + console.info('afterEach closeKVStore success'); await kvManager.deleteKVStore(TEST_BUNDLE_NAME, TEST_STORE_ID).then(() => { - console.log('afterEach deleteKVStore success'); + console.info('afterEach deleteKVStore success'); }).catch((err) => { - console.log('afterEach deleteKVStore err ' + err); + console.info('afterEach deleteKVStore err ' + err); }); }).catch((err) => { - console.log('afterEach closeKVStore err ' + err); + console.info('afterEach closeKVStore err ' + err); }); kvStore = null; done(); @@ -126,16 +126,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(String) testcase 001 */ it('testSingleKvStorePutString001', 0, async function (done) { - console.log('testSingleKvStorePutString001'); + console.info('testSingleKvStorePutString001'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, null).then((data) => { - console.log('testSingleKvStorePutString001 put success'); + console.info('testSingleKvStorePutString001 put success'); expect(null).assertFail(); }).catch((error) => { - console.log('testSingleKvStorePutString001 put error' + error); + console.info('testSingleKvStorePutString001 put error' + error); }); } catch (e) { - console.log('testSingleKvStorePutString001 e ' + e); + console.info('testSingleKvStorePutString001 e ' + e); expect(null).assertFail(); } done(); @@ -147,17 +147,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(String) testcase 002 */ it('testSingleKvStorePutString002', 0, async function (done) { - console.log('testSingleKvStorePutString002'); + console.info('testSingleKvStorePutString002'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, '').then((data) => { - console.log('testSingleKvStorePutString002 put success'); + console.info('testSingleKvStorePutString002 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStorePutString002 put error' + error); + console.info('testSingleKvStorePutString002 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutString002 e ' + e); + console.info('testSingleKvStorePutString002 e ' + e); expect(null).assertFail(); } done(); @@ -169,17 +169,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(String) testcase 003 */ it('testSingleKvStorePutString003', 0, async function (done) { - console.log('testSingleKvStorePutString003'); + console.info('testSingleKvStorePutString003'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStorePutString003 put success'); + console.info('testSingleKvStorePutString003 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStorePutString003 put error' + error); + console.info('testSingleKvStorePutString003 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutString003 e ' + e); + console.info('testSingleKvStorePutString003 e ' + e); expect(null).assertFail(); } done(); @@ -191,28 +191,28 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(String) testcase 004 */ it('testSingleKvStorePutString004', 0, async function (done) { - console.log('testSingleKvStorePutString004'); + console.info('testSingleKvStorePutString004'); try { var str = ''; for (var i = 0 ; i < 4095; i++) { str += 'x'; } await kvStore.put(KEY_TEST_STRING_ELEMENT, str).then(async (data) => { - console.log('testSingleKvStorePutString004 put success'); + console.info('testSingleKvStorePutString004 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStorePutString004 get success data ' + data); + console.info('testSingleKvStorePutString004 get success data ' + data); expect(str == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutString004 get fail ' + err); + console.info('testSingleKvStorePutString004 get fail ' + err); expect(null).assertFail(); }); }).catch((error) => { - console.log('testSingleKvStorePutString004 put error' + error); + console.info('testSingleKvStorePutString004 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutString004 e ' + e); + console.info('testSingleKvStorePutString004 e ' + e); expect(null).assertFail(); } done(); @@ -224,24 +224,24 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetString testcase 001 */ it('testSingleKvStoreGetString001', 0, async function (done) { - console.log('testSingleKvStoreGetString001'); + console.info('testSingleKvStoreGetString001'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then(async (data) => { - console.log('testSingleKvStoreGetString001 put success'); + console.info('testSingleKvStoreGetString001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStoreGetString001 get success'); + console.info('testSingleKvStoreGetString001 get success'); expect(VALUE_TEST_STRING_ELEMENT == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetString001 get fail ' + err); + console.info('testSingleKvStoreGetString001 get fail ' + err); expect(null).assertFail(); }); }).catch((error) => { - console.log('testSingleKvStoreGetString001 put error' + error); + console.info('testSingleKvStoreGetString001 put error' + error); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreGetString001 e ' + e); + console.info('testSingleKvStoreGetString001 e ' + e); expect(null).assertFail(); } done(); @@ -253,16 +253,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetString testcase 002 */ it('testSingleKvStoreGetString002', 0, async function (done) { - console.log('testSingleKvStoreGetString002'); + console.info('testSingleKvStoreGetString002'); try { await kvStore.get(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStoreGetString002 get success'); + console.info('testSingleKvStoreGetString002 get success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreGetString002 get fail ' + err); + console.info('testSingleKvStoreGetString002 get fail ' + err); }); } catch (e) { - console.log('testSingleKvStoreGetString002 get e ' + e); + console.info('testSingleKvStoreGetString002 get e ' + e); } done(); }) @@ -273,17 +273,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 001 */ it('testSingleKvStorePutInt001', 0, async function (done) { - console.log('testSingleKvStorePutInt001'); + console.info('testSingleKvStorePutInt001'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT).then((data) => { - console.log('testSingleKvStorePutInt001 put success'); + console.info('testSingleKvStorePutInt001 put success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutInt001 put fail ' + err); + console.info('testSingleKvStorePutInt001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutInt001 put e ' + e); + console.info('testSingleKvStorePutInt001 put e ' + e); expect(null).assertFail(); } done(); @@ -295,25 +295,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 002 */ it('testSingleKvStorePutInt002', 0, async function (done) { - console.log('testSingleKvStorePutInt002'); + console.info('testSingleKvStorePutInt002'); try { var intValue = 987654321; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue).then(async (data) => { - console.log('testSingleKvStorePutInt002 put success'); + console.info('testSingleKvStorePutInt002 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testSingleKvStorePutInt002 get success'); + console.info('testSingleKvStorePutInt002 get success'); expect(intValue == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutInt002 get fail ' + err); + console.info('testSingleKvStorePutInt002 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutInt002 put fail ' + err); + console.info('testSingleKvStorePutInt002 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutInt002 put e ' + e); + console.info('testSingleKvStorePutInt002 put e ' + e); expect(null).assertFail(); } done(); @@ -325,25 +325,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 003 */ it('testSingleKvStorePutInt003', 0, async function (done) { - console.log('testSingleKvStorePutInt003'); + console.info('testSingleKvStorePutInt003'); try { var intValue = Number.MAX_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue).then(async (data) => { - console.log('testSingleKvStorePutInt003 put success'); + console.info('testSingleKvStorePutInt003 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testSingleKvStorePutInt003 get success'); + console.info('testSingleKvStorePutInt003 get success'); expect(intValue == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutInt003 get fail ' + err); + console.info('testSingleKvStorePutInt003 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutInt003 put fail ' + err); + console.info('testSingleKvStorePutInt003 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutInt003 put e ' + e); + console.info('testSingleKvStorePutInt003 put e ' + e); expect(null).assertFail(); } done(); @@ -355,25 +355,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Int) testcase 004 */ it('testSingleKvStorePutInt004', 0, async function (done) { - console.log('testSingleKvStorePutInt004'); + console.info('testSingleKvStorePutInt004'); try { var intValue = Number.MIN_VALUE; await kvStore.put(KEY_TEST_INT_ELEMENT, intValue).then(async (data) => { - console.log('testSingleKvStorePutInt004 put success'); + console.info('testSingleKvStorePutInt004 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testSingleKvStorePutInt004 get success'); + console.info('testSingleKvStorePutInt004 get success'); expect(intValue == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutInt004 get fail ' + err); + console.info('testSingleKvStorePutInt004 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutInt004 put fail ' + err); + console.info('testSingleKvStorePutInt004 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutInt004 put e ' + e); + console.info('testSingleKvStorePutInt004 put e ' + e); expect(null).assertFail(); } done(); @@ -385,24 +385,24 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetInt testcase 001 */ it('testSingleKvStoreGetInt001', 0, async function (done) { - console.log('testSingleKvStoreGetInt001'); + console.info('testSingleKvStoreGetInt001'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT).then(async (data) => { - console.log('testSingleKvStoreGetInt001 put success'); + console.info('testSingleKvStoreGetInt001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testSingleKvStoreGetInt001 get success'); + console.info('testSingleKvStoreGetInt001 get success'); expect(VALUE_TEST_INT_ELEMENT == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetInt001 get fail ' + err); + console.info('testSingleKvStoreGetInt001 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreGetInt001 put fail ' + err); + console.info('testSingleKvStoreGetInt001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreGetInt001 put e ' + e); + console.info('testSingleKvStoreGetInt001 put e ' + e); expect(null).assertFail(); } done(); @@ -414,17 +414,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Bool) testcase 001 */ it('testSingleKvStorePutBool001', 0, async function (done) { - console.log('testSingleKvStorePutBool001'); + console.info('testSingleKvStorePutBool001'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT).then((data) => { - console.log('testSingleKvStorePutBool001 put success'); + console.info('testSingleKvStorePutBool001 put success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBool001 put fail ' + err); + console.info('testSingleKvStorePutBool001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutBool001 put e ' + e); + console.info('testSingleKvStorePutBool001 put e ' + e); expect(null).assertFail(); } done(); @@ -436,25 +436,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetBool testcase 001 */ it('testSingleKvStoreGetBool001', 0, async function (done) { - console.log('testSingleKvStoreGetBool001'); + console.info('testSingleKvStoreGetBool001'); try { var boolValue = false; await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, boolValue).then(async (data) => { - console.log('testSingleKvStoreGetBool001 put success'); + console.info('testSingleKvStoreGetBool001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_BOOLEAN_ELEMENT).then((data) => { - console.log('testSingleKvStoreGetBool001 get success'); + console.info('testSingleKvStoreGetBool001 get success'); expect(boolValue == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetBool001 get fail ' + err); + console.info('testSingleKvStoreGetBool001 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreGetBool001 put fail ' + err); + console.info('testSingleKvStoreGetBool001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreGetBool001 put e ' + e); + console.info('testSingleKvStoreGetBool001 put e ' + e); expect(null).assertFail(); } done(); @@ -466,17 +466,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.Put(Float) testcase 001 */ it('testSingleKvStorePutFloat001', 0, async function (done) { - console.log('testSingleKvStorePutFloat001'); + console.info('testSingleKvStorePutFloat001'); try { await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStorePutFloat001 put success'); + console.info('testSingleKvStorePutFloat001 put success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutFloat001 put fail ' + err); + console.info('testSingleKvStorePutFloat001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStorePutFloat001 put e ' + e); + console.info('testSingleKvStorePutFloat001 put e ' + e); expect(null).assertFail(); } done(); @@ -488,25 +488,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetFloat testcase 001 */ it('testSingleKvStoreGetFloat001', 0, async function (done) { - console.log('testSingleKvStoreGetFloat001'); + console.info('testSingleKvStoreGetFloat001'); try { var floatValue = 123456.654321; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => { - console.log('testSingleKvStoreGetFloat001 put success'); + console.info('testSingleKvStoreGetFloat001 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStoreGetFloat001 get success'); + console.info('testSingleKvStoreGetFloat001 get success'); expect(floatValue == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetFloat001 get fail ' + err); + console.info('testSingleKvStoreGetFloat001 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreGetFloat001 put fail ' + err); + console.info('testSingleKvStoreGetFloat001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreGetFloat001 put e ' + e); + console.info('testSingleKvStoreGetFloat001 put e ' + e); expect(null).assertFail(); } done(); @@ -518,25 +518,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetFloat testcase 002 */ it('testSingleKvStoreGetFloat002', 0, async function (done) { - console.log('testSingleKvStoreGetFloat002'); + console.info('testSingleKvStoreGetFloat002'); try { var floatValue = 123456.0; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => { - console.log('testSingleKvStoreGetFloat002 put success'); + console.info('testSingleKvStoreGetFloat002 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStoreGetFloat002 get success'); + console.info('testSingleKvStoreGetFloat002 get success'); expect(floatValue == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetFloat002 get fail ' + err); + console.info('testSingleKvStoreGetFloat002 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreGetFloat002 put fail ' + err); + console.info('testSingleKvStoreGetFloat002 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreGetFloat002 put e ' + e); + console.info('testSingleKvStoreGetFloat002 put e ' + e); expect(null).assertFail(); } done(); @@ -548,25 +548,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetFloat testcase 003 */ it('testSingleKvStoreGetFloat003', 0, async function (done) { - console.log('testSingleKvStoreGetFloat003'); + console.info('testSingleKvStoreGetFloat003'); try { var floatValue = 123456.00; await kvStore.put(KEY_TEST_FLOAT_ELEMENT, floatValue).then(async (data) => { - console.log('testSingleKvStoreGetFloat003 put success'); + console.info('testSingleKvStoreGetFloat003 put success'); expect(data == undefined).assertTrue(); await kvStore.get(KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStoreGetFloat003 get success'); + console.info('testSingleKvStoreGetFloat003 get success'); expect(floatValue == data).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetFloat003 get fail ' + err); + console.info('testSingleKvStoreGetFloat003 get fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreGetFloat003 put fail ' + err); + console.info('testSingleKvStoreGetFloat003 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreGetFloat003 put e ' + e); + console.info('testSingleKvStoreGetFloat003 put e ' + e); expect(null).assertFail(); } done(); @@ -578,25 +578,25 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteString testcase 001 */ it('testSingleKvStoreDeleteString001', 0, async function (done) { - console.log('testSingleKvStoreDeleteString001'); + console.info('testSingleKvStoreDeleteString001'); try { var str = 'this is a test string'; await kvStore.put(KEY_TEST_STRING_ELEMENT, str).then(async (data) => { - console.log('testSingleKvStoreDeleteString001 put success'); + console.info('testSingleKvStoreDeleteString001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStoreDeleteString001 delete success'); + console.info('testSingleKvStoreDeleteString001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteString001 delete fail ' + err); + console.info('testSingleKvStoreDeleteString001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreDeleteString001 put fail ' + err); + console.info('testSingleKvStoreDeleteString001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreDeleteString001 put e ' + e); + console.info('testSingleKvStoreDeleteString001 put e ' + e); expect(null).assertFail(); } done(); @@ -608,28 +608,28 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteString testcase 002 */ it('testSingleKvStoreDeleteString002', 0, async function (done) { - console.log('testSingleKvStoreDeleteString002'); + console.info('testSingleKvStoreDeleteString002'); try { var str = ''; for (var i = 0 ; i < 4096; i++) { str += 'x'; } await kvStore.put(KEY_TEST_STRING_ELEMENT, str).then(async (data) => { - console.log('testSingleKvStoreDeleteString002 put success'); + console.info('testSingleKvStoreDeleteString002 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStoreDeleteString002 delete success'); + console.info('testSingleKvStoreDeleteString002 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteString002 delete fail ' + err); + console.info('testSingleKvStoreDeleteString002 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreDeleteString002 put fail ' + err); + console.info('testSingleKvStoreDeleteString002 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreDeleteString002 put e ' + e); + console.info('testSingleKvStoreDeleteString002 put e ' + e); expect(null).assertFail(); } done(); @@ -641,17 +641,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteString testcase 003 */ it('testSingleKvStoreDeleteString003', 0, async function (done) { - console.log('testSingleKvStoreDeleteString003'); + console.info('testSingleKvStoreDeleteString003'); try { await kvStore.delete(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStoreDeleteString003 delete success'); + console.info('testSingleKvStoreDeleteString003 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteString003 delete fail ' + err); + console.info('testSingleKvStoreDeleteString003 delete fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreDeleteString003 put e ' + e); + console.info('testSingleKvStoreDeleteString003 put e ' + e); expect(null).assertFail(); } done(); @@ -663,24 +663,24 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteInt testcase 001 */ it('testSingleKvStoreDeleteInt001', 0, async function (done) { - console.log('testSingleKvStoreDeleteInt001'); + console.info('testSingleKvStoreDeleteInt001'); try { await kvStore.put(KEY_TEST_INT_ELEMENT, VALUE_TEST_INT_ELEMENT).then(async (data) => { - console.log('testSingleKvStoreDeleteInt001 put success'); + console.info('testSingleKvStoreDeleteInt001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_INT_ELEMENT).then((data) => { - console.log('testSingleKvStoreDeleteInt001 delete success'); + console.info('testSingleKvStoreDeleteInt001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteInt001 delete fail ' + err); + console.info('testSingleKvStoreDeleteInt001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreDeleteInt001 put fail ' + err); + console.info('testSingleKvStoreDeleteInt001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreDeleteInt001 put e ' + e); + console.info('testSingleKvStoreDeleteInt001 put e ' + e); expect(null).assertFail(); } done(); @@ -692,24 +692,24 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteFloat testcase 001 */ it('testSingleKvStoreDeleteFloat001', 0, async function (done) { - console.log('testSingleKvStoreDeleteFloat001'); + console.info('testSingleKvStoreDeleteFloat001'); try { await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then(async (data) => { - console.log('testSingleKvStoreDeleteFloat001 put success'); + console.info('testSingleKvStoreDeleteFloat001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStoreDeleteFloat001 delete success'); + console.info('testSingleKvStoreDeleteFloat001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteFloat001 delete fail ' + err); + console.info('testSingleKvStoreDeleteFloat001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreDeleteFloat001 put fail ' + err); + console.info('testSingleKvStoreDeleteFloat001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreDeleteFloat001 put e ' + e); + console.info('testSingleKvStoreDeleteFloat001 put e ' + e); expect(null).assertFail(); } done(); @@ -721,24 +721,24 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteBool testcase 001 */ it('testSingleKvStoreDeleteBool001', 0, async function (done) { - console.log('testSingleKvStoreDeleteBool001'); + console.info('testSingleKvStoreDeleteBool001'); try { await kvStore.put(KEY_TEST_BOOLEAN_ELEMENT, VALUE_TEST_BOOLEAN_ELEMENT).then(async (data) => { - console.log('testSingleKvStoreDeleteBool001 put success'); + console.info('testSingleKvStoreDeleteBool001 put success'); expect(data == undefined).assertTrue(); await kvStore.delete(KEY_TEST_BOOLEAN_ELEMENT).then((data) => { - console.log('testSingleKvStoreDeleteBool001 delete success'); + console.info('testSingleKvStoreDeleteBool001 delete success'); expect(data == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteBool001 delete fail ' + err); + console.info('testSingleKvStoreDeleteBool001 delete fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreDeleteBool001 put fail ' + err); + console.info('testSingleKvStoreDeleteBool001 put fail ' + err); expect(null).assertFail(); }); } catch (e) { - console.log('testSingleKvStoreDeleteBool001 put e ' + e); + console.info('testSingleKvStoreDeleteBool001 put e ' + e); expect(null).assertFail(); } done(); @@ -752,18 +752,18 @@ describe('SingleKvStorePromiseTest', function () { it('testSingleKvStoreOnChange001', 0, async function (done) { try { kvStore.on('dataChange', 0, function (data) { - console.log('testSingleKvStoreOnChange001 ' + JSON.stringify(data)); + console.info('testSingleKvStoreOnChange001 ' + JSON.stringify(data)); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStoreOnChange001 put success'); + console.info('testSingleKvStoreOnChange001 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStoreOnChange001 put fail ' + error); + console.info('testSingleKvStoreOnChange001 put fail ' + error); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreOnChange001 put e ' + e); + console.info('testSingleKvStoreOnChange001 put e ' + e); expect(null).assertFail(); } done(); @@ -777,18 +777,18 @@ describe('SingleKvStorePromiseTest', function () { it('testSingleKvStoreOnChange002', 0, async function (done) { try { kvStore.on('dataChange', 1, function (data) { - console.log('testSingleKvStoreOnChange002 on ' + JSON.stringify(data)); + console.info('testSingleKvStoreOnChange002 on ' + JSON.stringify(data)); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStoreOnChange002 put success'); + console.info('testSingleKvStoreOnChange002 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStoreOnChange002 put fail ' + error); + console.info('testSingleKvStoreOnChange002 put fail ' + error); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreOnChange002 put e ' + e); + console.info('testSingleKvStoreOnChange002 put e ' + e); expect(null).assertFail(); } done(); @@ -802,18 +802,18 @@ describe('SingleKvStorePromiseTest', function () { it('testSingleKvStoreOnChange003', 0, async function (done) { try { kvStore.on('dataChange', 2, function (data) { - console.log('testSingleKvStoreOnChange003 ' + JSON.stringify(data)); + console.info('testSingleKvStoreOnChange003 ' + JSON.stringify(data)); expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_FLOAT_ELEMENT, VALUE_TEST_FLOAT_ELEMENT).then((data) => { - console.log('testSingleKvStoreOnChange003 put success'); + console.info('testSingleKvStoreOnChange003 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStoreOnChange003 put fail ' + error); + console.info('testSingleKvStoreOnChange003 put fail ' + error); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreOnChange003 put e ' + e); + console.info('testSingleKvStoreOnChange003 put e ' + e); expect(null).assertFail(); } done(); @@ -827,25 +827,25 @@ describe('SingleKvStorePromiseTest', function () { it('testSingleKvStoreOnSyncComplete001', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testSingleKvStoreOnSyncComplete001 0' + data) + console.info('testSingleKvStoreOnSyncComplete001 0' + data) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT, VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testSingleKvStoreOnSyncComplete001 put success'); + console.info('testSingleKvStoreOnSyncComplete001 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStoreOnSyncComplete001 put fail ' + error); + console.info('testSingleKvStoreOnSyncComplete001 put fail ' + error); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PULL_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode, 10); } catch (e) { - console.log('testSingleKvStoreOnSyncComplete001 sync no peer device :e:' + e); + console.info('testSingleKvStoreOnSyncComplete001 sync no peer device :e:' + e); } }catch(e) { - console.log('testSingleKvStoreOnSyncComplete001 e ' + e); + console.info('testSingleKvStoreOnSyncComplete001 e ' + e); expect(null).assertFail(); } done(); @@ -859,25 +859,25 @@ describe('SingleKvStorePromiseTest', function () { it('testSingleKvStoreOnSyncComplete002', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testSingleKvStoreOnSyncComplete002 0' + data) + console.info('testSingleKvStoreOnSyncComplete002 0' + data) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT, VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testSingleKvStoreOnSyncComplete002 put success'); + console.info('testSingleKvStoreOnSyncComplete002 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStoreOnSyncComplete002 put fail ' + error); + console.info('testSingleKvStoreOnSyncComplete002 put fail ' + error); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PUSH_ONLY; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode, 10); } catch (e) { - console.log('testSingleKvStoreOnSyncComplete002 sync no peer device :e:' + e); + console.info('testSingleKvStoreOnSyncComplete002 sync no peer device :e:' + e); } }catch(e) { - console.log('testSingleKvStoreOnSyncComplete002 e ' + e); + console.info('testSingleKvStoreOnSyncComplete002 e ' + e); expect(null).assertFail(); } done(); @@ -891,25 +891,25 @@ describe('SingleKvStorePromiseTest', function () { it('testSingleKvStoreOnSyncComplete003', 0, async function (done) { try { kvStore.on('syncComplete', function (data) { - console.log('testSingleKvStoreOnSyncComplete003 0' + data) + console.info('testSingleKvStoreOnSyncComplete003 0' + data) expect(data != null).assertTrue(); }); await kvStore.put(KEY_TEST_SYNC_ELEMENT, VALUE_TEST_SYNC_ELEMENT).then((data) => { - console.log('testSingleKvStoreOnSyncComplete003 put success'); + console.info('testSingleKvStoreOnSyncComplete003 put success'); expect(data == undefined).assertTrue(); }).catch((error) => { - console.log('testSingleKvStoreOnSyncComplete003 put fail ' + error); + console.info('testSingleKvStoreOnSyncComplete003 put fail ' + error); expect(null).assertFail(); }); try { var mode = factory.SyncMode.PUSH_PULL; - console.log('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); + console.info('kvStore.sync to ' + JSON.stringify(syncDeviceIds)); kvStore.sync(syncDeviceIds, mode, 10); } catch (e) { - console.log('testSingleKvStoreOnSyncComplete003 sync no peer device :e:' + e); + console.info('testSingleKvStoreOnSyncComplete003 sync no peer device :e:' + e); } }catch(e) { - console.log('testSingleKvStoreOnSyncComplete003 e ' + e); + console.info('testSingleKvStoreOnSyncComplete003 e ' + e); expect(null).assertFail(); } done(); @@ -921,15 +921,15 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffChange testcase 001 */ it('testSingleKvStoreOffChange001', 0, async function (done) { - console.log('testSingleKvStoreOffChange001'); + console.info('testSingleKvStoreOffChange001'); try { var func = function (data) { - console.log('testSingleKvStoreOffChange001 ' + JSON.stringify(data)); + console.info('testSingleKvStoreOffChange001 ' + JSON.stringify(data)); }; kvStore.on('dataChange', 0, func); kvStore.off('dataChange', func); }catch(e) { - console.log('testSingleKvStoreOffChange001 e ' + e); + console.info('testSingleKvStoreOffChange001 e ' + e); expect(null).assertFail(); } done(); @@ -941,19 +941,19 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffChange testcase 002 */ it('testSingleKvStoreOffChange002', 0, async function (done) { - console.log('testSingleKvStoreOffChange002'); + console.info('testSingleKvStoreOffChange002'); try { var func = function (data) { - console.log('testSingleKvStoreOffChange002 ' + JSON.stringify(data)); + console.info('testSingleKvStoreOffChange002 ' + JSON.stringify(data)); }; var func1 = function (data) { - console.log('testSingleKvStoreOffChange002 ' + JSON.stringify(data)); + console.info('testSingleKvStoreOffChange002 ' + JSON.stringify(data)); }; kvStore.on('dataChange', 0, func); kvStore.on('dataChange', 0, func1); kvStore.off('dataChange', func); }catch(e) { - console.log('testSingleKvStoreOffChange002 e ' + e); + console.info('testSingleKvStoreOffChange002 e ' + e); expect(null).assertFail(); } done(); @@ -965,20 +965,20 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffChange testcase 003 */ it('testSingleKvStoreOffChange003', 0, async function (done) { - console.log('testSingleKvStoreOffChange003'); + console.info('testSingleKvStoreOffChange003'); try { var func = function (data) { - console.log('testSingleKvStoreOffChange003 0' + data) + console.info('testSingleKvStoreOffChange003 0' + data) }; var func1 = function (data) { - console.log('testSingleKvStoreOffChange003 0' + data) + console.info('testSingleKvStoreOffChange003 0' + data) }; kvStore.on('dataChange', 0, func); kvStore.on('dataChange', 0, func1); kvStore.off('dataChange', func); kvStore.off('dataChange', func1); }catch(e) { - console.log('testSingleKvStoreOffChange003 e ' + e); + console.info('testSingleKvStoreOffChange003 e ' + e); expect(null).assertFail(); } done(); @@ -990,15 +990,15 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffChange testcase 004 */ it('testSingleKvStoreOffChange004', 0, async function (done) { - console.log('testSingleKvStoreOffChange004'); + console.info('testSingleKvStoreOffChange004'); try { var func = function (data) { - console.log('testSingleKvStoreOffChange004 ' + JSON.stringify(data)); + console.info('testSingleKvStoreOffChange004 ' + JSON.stringify(data)); }; kvStore.on('dataChange', 0, func); kvStore.off('dataChange'); }catch(e) { - console.log('testSingleKvStoreOffChange004 e ' + e); + console.info('testSingleKvStoreOffChange004 e ' + e); expect(null).assertFail(); } done(); @@ -1010,15 +1010,15 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffSyncComplete testcase 001 */ it('testSingleKvStoreOffSyncComplete001', 0, async function (done) { - console.log('testSingleKvStoreOffSyncComplete001'); + console.info('testSingleKvStoreOffSyncComplete001'); try { var func = function (data) { - console.log('testSingleKvStoreOffSyncComplete001 0' + data) + console.info('testSingleKvStoreOffSyncComplete001 0' + data) }; kvStore.on('syncComplete', func); kvStore.off('syncComplete', func); }catch(e) { - console.log('testSingleKvStoreOffSyncComplete001 put e ' + e); + console.info('testSingleKvStoreOffSyncComplete001 put e ' + e); expect(null).assertFail(); } done(); @@ -1030,20 +1030,20 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffSyncComplete testcase 002 */ it('testSingleKvStoreOffSyncComplete002', 0, async function (done) { - console.log('testSingleKvStoreOffSyncComplete002'); + console.info('testSingleKvStoreOffSyncComplete002'); try { var func = function (data) { - console.log('testSingleKvStoreOffSyncComplete002 0' + data) + console.info('testSingleKvStoreOffSyncComplete002 0' + data) }; var func1 = function (data) { - console.log('testSingleKvStoreOffSyncComplete002 0' + data) + console.info('testSingleKvStoreOffSyncComplete002 0' + data) }; kvStore.on('syncComplete', func); kvStore.on('syncComplete', func1); kvStore.off('syncComplete', func); expect(null).assertFail(); }catch(e) { - console.log('testSingleKvStoreOffSyncComplete002 put e ' + e); + console.info('testSingleKvStoreOffSyncComplete002 put e ' + e); expect(true).assertTrue(); } done(); @@ -1055,13 +1055,13 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffSyncComplete testcase 003 */ it('testSingleKvStoreOffSyncComplete003', 0, async function (done) { - console.log('testSingleKvStoreOffSyncComplete003'); + console.info('testSingleKvStoreOffSyncComplete003'); try { var func = function (data) { - console.log('testSingleKvStoreOffSyncComplete003 0' + data) + console.info('testSingleKvStoreOffSyncComplete003 0' + data) }; var func1 = function (data) { - console.log('testSingleKvStoreOffSyncComplete003 0' + data) + console.info('testSingleKvStoreOffSyncComplete003 0' + data) }; kvStore.on('syncComplete', func); kvStore.on('syncComplete', func1); @@ -1069,7 +1069,7 @@ describe('SingleKvStorePromiseTest', function () { kvStore.off('syncComplete', func1); expect(null).assertFail(); }catch(e) { - console.log('testSingleKvStoreOffSyncComplete003 put e ' + e); + console.info('testSingleKvStoreOffSyncComplete003 put e ' + e); expect(true).assertTrue(); } done(); @@ -1081,15 +1081,15 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreOffSyncComplete testcase 004 */ it('testSingleKvStoreOffSyncComplete004', 0, async function (done) { - console.log('testSingleKvStoreOffSyncComplete004'); + console.info('testSingleKvStoreOffSyncComplete004'); try { var func = function (data) { - console.log('testSingleKvStoreOffSyncComplete004 0' + data) + console.info('testSingleKvStoreOffSyncComplete004 0' + data) }; kvStore.on('syncComplete', func); kvStore.off('syncComplete'); }catch(e) { - console.log('testSingleKvStoreOffSyncComplete004 put e ' + e); + console.info('testSingleKvStoreOffSyncComplete004 put e ' + e); expect(null).assertFail(); } done(); @@ -1101,19 +1101,19 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreSetSyncRange testcase 001 */ it('testSingleKvStoreSetSyncRange001', 0, async function (done) { - console.log('testSingleKvStoreSetSyncRange001'); + console.info('testSingleKvStoreSetSyncRange001'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['C', 'D']; await kvStore.setSyncRange(localLabels, remoteSupportLabels).then((err) => { - console.log('testSingleKvStoreSetSyncRange001 setSyncRange success'); + console.info('testSingleKvStoreSetSyncRange001 setSyncRange success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteString003 delete fail ' + err); + console.info('testSingleKvStoreDeleteString003 delete fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncRange001 e ' + e); + console.info('testSingleKvStoreSetSyncRange001 e ' + e); expect(null).assertFail(); } done(); @@ -1125,19 +1125,19 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreSetSyncRange testcase 002 */ it('testSingleKvStoreSetSyncRange002', 0, async function (done) { - console.log('testSingleKvStoreSetSyncRange002'); + console.info('testSingleKvStoreSetSyncRange002'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['B', 'C']; await kvStore.setSyncRange(localLabels, remoteSupportLabels).then((err) => { - console.log('testSingleKvStoreSetSyncRange002 setSyncRange success'); + console.info('testSingleKvStoreSetSyncRange002 setSyncRange success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreSetSyncRange002 delete fail ' + err); + console.info('testSingleKvStoreSetSyncRange002 delete fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncRange002 e ' + e); + console.info('testSingleKvStoreSetSyncRange002 e ' + e); expect(null).assertFail(); } done(); @@ -1149,19 +1149,19 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreSetSyncRange testcase 003 */ it('testSingleKvStoreSetSyncRange003', 0, async function (done) { - console.log('testSingleKvStoreSetSyncRange003'); + console.info('testSingleKvStoreSetSyncRange003'); try { var localLabels = ['A', 'B']; var remoteSupportLabels = ['A', 'B']; await kvStore.setSyncRange(localLabels, remoteSupportLabels).then((err) => { - console.log('testSingleKvStoreSetSyncRange003 setSyncRange success'); + console.info('testSingleKvStoreSetSyncRange003 setSyncRange success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreSetSyncRange003 delete fail ' + err); + console.info('testSingleKvStoreSetSyncRange003 delete fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncRange003 e ' + e); + console.info('testSingleKvStoreSetSyncRange003 e ' + e); expect(null).assertFail(); } done(); @@ -1173,28 +1173,28 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 001 */ it('testSingleKvStorePutBatch001', 0, async function (done) { - console.log('testSingleKvStorePutBatch001'); + console.info('testSingleKvStorePutBatch001'); try { let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testSingleKvStorePutBatch001 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorePutBatch001 putBatch success'); + console.info('testSingleKvStorePutBatch001 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_string_key').then((entrys) => { - console.log('testSingleKvStorePutBatch001 getEntries success'); - console.log('testSingleKvStorePutBatch001 ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch001 getEntries success'); + console.info('testSingleKvStorePutBatch001 ' + JSON.stringify(entries)); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 'batch_test_string_value').assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch001 getEntries fail ' + err); + console.info('testSingleKvStorePutBatch001 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutBatch001 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStorePutBatch001 e ' + e); + console.info('testSingleKvStorePutBatch001 e ' + e); expect(null).assertFail(); } done(); @@ -1206,7 +1206,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 002 */ it('testSingleKvStorePutBatch002', 0, async function (done) { - console.log('testSingleKvStorePutBatch002'); + console.info('testSingleKvStorePutBatch002'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1220,24 +1220,24 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch002 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch002 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorePutBatch002 putBatch success'); + console.info('testSingleKvStorePutBatch002 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_number_key').then((entrys) => { - console.log('testSingleKvStorePutBatch002 getEntries success'); + console.info('testSingleKvStorePutBatch002 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 222).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch002 getEntries fail ' + err); + console.info('testSingleKvStorePutBatch002 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutBatch002 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch002 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStorePutBatch002 e ' + e); + console.info('testSingleKvStorePutBatch002 e ' + e); expect(null).assertFail(); } done(); @@ -1249,7 +1249,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 003 */ it('testSingleKvStorePutBatch003', 0, async function (done) { - console.log('testSingleKvStorePutBatch003'); + console.info('testSingleKvStorePutBatch003'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1263,24 +1263,24 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch003 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch003 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorePutBatch003 putBatch success'); + console.info('testSingleKvStorePutBatch003 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_number_key').then((entrys) => { - console.log('testSingleKvStorePutBatch003 getEntries success'); + console.info('testSingleKvStorePutBatch003 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.0).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch003 getEntries fail ' + err); + console.info('testSingleKvStorePutBatch003 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutBatch003 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch003 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStorePutBatch003 e ' + e); + console.info('testSingleKvStorePutBatch003 e ' + e); expect(null).assertFail(); } done(); @@ -1292,7 +1292,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 004 */ it('testSingleKvStorePutBatch004', 0, async function (done) { - console.log('testSingleKvStorePutBatch004'); + console.info('testSingleKvStorePutBatch004'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1306,24 +1306,24 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch004 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch004 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorePutBatch004 putBatch success'); + console.info('testSingleKvStorePutBatch004 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_number_key').then((entrys) => { - console.log('testSingleKvStorePutBatch004 getEntries success'); + console.info('testSingleKvStorePutBatch004 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == 2.00).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch004 getEntries fail ' + err); + console.info('testSingleKvStorePutBatch004 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutBatch004 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch004 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStorePutBatch004 e ' + e); + console.info('testSingleKvStorePutBatch004 e ' + e); expect(null).assertFail(); } done(); @@ -1335,7 +1335,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 005 */ it('testSingleKvStorePutBatch005', 0, async function (done) { - console.log('testSingleKvStorePutBatch005'); + console.info('testSingleKvStorePutBatch005'); try { var bo = false; let entries = []; @@ -1350,24 +1350,24 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch005 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch005 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorePutBatch005 putBatch success'); + console.info('testSingleKvStorePutBatch005 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_bool_key').then((entrys) => { - console.log('testSingleKvStorePutBatch005 getEntries success'); + console.info('testSingleKvStorePutBatch005 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value == bo).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch005 getEntries fail ' + err); + console.info('testSingleKvStorePutBatch005 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutBatch005 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch005 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStorePutBatch005 e ' + e); + console.info('testSingleKvStorePutBatch005 e ' + e); expect(null).assertFail(); } done(); @@ -1379,7 +1379,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStore.PutBatch() testcase 006 */ it('testSingleKvStorePutBatch006', 0, async function (done) { - console.log('testSingleKvStorePutBatch006'); + console.info('testSingleKvStorePutBatch006'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -1394,24 +1394,24 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStorePutBatch006 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorePutBatch006 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorePutBatch006 putBatch success'); + console.info('testSingleKvStorePutBatch006 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.getEntries('batch_test_bool_key').then((entrys) => { - console.log('testSingleKvStorePutBatch006 getEntries success'); + console.info('testSingleKvStorePutBatch006 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch006 getEntries fail ' + err); + console.info('testSingleKvStorePutBatch006 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStorePutBatch006 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch006 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStorePutBatch005 e ' + e); + console.info('testSingleKvStorePutBatch005 e ' + e); expect(null).assertFail(); } done(); @@ -1423,7 +1423,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteBatch testcase 001 */ it('testSingleKvStoreDeleteBatch001', 0, async function (done) { - console.log('testSingleKvStoreDeleteBatch001'); + console.info('testSingleKvStoreDeleteBatch001'); try { let entries = []; let keys = []; @@ -1439,23 +1439,23 @@ describe('SingleKvStorePromiseTest', function () { entries.push(entry); keys.push(key + i); } - console.log('testSingleKvStoreDeleteBatch001 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreDeleteBatch001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreDeleteBatch001 putBatch success'); + console.info('testSingleKvStoreDeleteBatch001 putBatch success'); expect(err == undefined).assertTrue(); await kvStore.deleteBatch(keys).then((err) => { - console.log('testSingleKvStoreDeleteBatch001 deleteBatch success'); + console.info('testSingleKvStoreDeleteBatch001 deleteBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreDeleteBatch001 deleteBatch fail ' + err); + console.info('testSingleKvStoreDeleteBatch001 deleteBatch fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreDeleteBatch001 putBatch fail ' + err); + console.info('testSingleKvStoreDeleteBatch001 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreDeleteBatch001 e ' + e); + console.info('testSingleKvStoreDeleteBatch001 e ' + e); expect(null).assertFail(); } done(); @@ -1467,17 +1467,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteBatch testcase 002 */ it('testSingleKvStoreDeleteBatch002', 0, async function (done) { - console.log('testSingleKvStoreDeleteBatch002'); + console.info('testSingleKvStoreDeleteBatch002'); try { let keys = ['batch_test_string_key1', 'batch_test_string_key2']; await kvStore.deleteBatch(keys).then((err) => { - console.log('testSingleKvStoreDeleteBatch002 deleteBatch success'); + console.info('testSingleKvStoreDeleteBatch002 deleteBatch success'); }).catch((err) => { - console.log('testSingleKvStoreDeleteBatch002 deleteBatch fail ' + err); + console.info('testSingleKvStoreDeleteBatch002 deleteBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreDeleteBatch002 e ' + e); + console.info('testSingleKvStoreDeleteBatch002 e ' + e); expect(null).assertFail(); } done(); @@ -1489,7 +1489,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreDeleteBatch testcase 003 */ it('testSingleKvStoreDeleteBatch003', 0, async function (done) { - console.log('testSingleKvStoreDeleteBatch003'); + console.info('testSingleKvStoreDeleteBatch003'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -1503,23 +1503,23 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStoreDeleteBatch003 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreDeleteBatch003 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreDeleteBatch003 putBatch success'); + console.info('testSingleKvStoreDeleteBatch003 putBatch success'); expect(err == undefined).assertTrue(); let keys = ['batch_test_string_key1', 'batch_test_string_keya']; await kvStore.deleteBatch(keys).then((err) => { - console.log('testSingleKvStoreDeleteBatch003 deleteBatch success'); + console.info('testSingleKvStoreDeleteBatch003 deleteBatch success'); }).catch((err) => { - console.log('testSingleKvStoreDeleteBatch003 deleteBatch fail ' + err); + console.info('testSingleKvStoreDeleteBatch003 deleteBatch fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreDeleteBatch003 putBatch fail ' + err); + console.info('testSingleKvStoreDeleteBatch003 putBatch fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreDeleteBatch003 e ' + e); + console.info('testSingleKvStoreDeleteBatch003 e ' + e); expect(null).assertFail(); } done(); @@ -1531,48 +1531,48 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStorestartTransaction testcase 001 */ it('testSingleKvStorestartTransaction001', 0, async function (done) { - console.log('testSingleKvStorestartTransaction001'); + console.info('testSingleKvStorestartTransaction001'); try { var count = 0; kvStore.on('dataChange', factory.SubscribeType.SUBSCRIBE_TYPE_ALL, function (data) { - console.log('testSingleKvStorestartTransaction001 ' + JSON.stringify(data)); + console.info('testSingleKvStorestartTransaction001 ' + JSON.stringify(data)); count++; }); await kvStore.startTransaction().then(async (err) => { - console.log('testSingleKvStorestartTransaction001 startTransaction success'); + console.info('testSingleKvStorestartTransaction001 startTransaction success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction001 startTransaction fail ' + err); + console.info('testSingleKvStorestartTransaction001 startTransaction fail ' + err); expect(null).assertFail(); }); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testSingleKvStorestartTransaction001 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorestartTransaction001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorestartTransaction001 putBatch success'); + console.info('testSingleKvStorestartTransaction001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction001 putBatch fail ' + err); + console.info('testSingleKvStorestartTransaction001 putBatch fail ' + err); expect(null).assertFail(); }); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys).then((err) => { - console.log('testSingleKvStorestartTransaction001 deleteBatch success'); + console.info('testSingleKvStorestartTransaction001 deleteBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction001 deleteBatch fail ' + err); + console.info('testSingleKvStorestartTransaction001 deleteBatch fail ' + err); expect(null).assertFail(); }); await kvStore.commit().then(async (err) => { - console.log('testSingleKvStorestartTransaction001 commit success'); + console.info('testSingleKvStorestartTransaction001 commit success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction001 commit fail ' + err); + console.info('testSingleKvStorestartTransaction001 commit fail ' + err); expect(null).assertFail(); }); await sleep(2000); expect(count == 1).assertTrue(); }catch(e) { - console.log('testSingleKvStorestartTransaction001 e ' + e); + console.info('testSingleKvStorestartTransaction001 e ' + e); expect(null).assertFail(); } done(); @@ -1584,48 +1584,48 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStorestartTransaction testcase 002 */ it('testSingleKvStorestartTransaction002', 0, async function (done) { - console.log('testSingleKvStorestartTransaction002'); + console.info('testSingleKvStorestartTransaction002'); try { var count = 0; kvStore.on('dataChange', 0, function (data) { - console.log('testSingleKvStorestartTransaction002 ' + JSON.stringify(data)); + console.info('testSingleKvStorestartTransaction002 ' + JSON.stringify(data)); count++; }); await kvStore.startTransaction().then(async (err) => { - console.log('testSingleKvStorestartTransaction002 startTransaction success'); + console.info('testSingleKvStorestartTransaction002 startTransaction success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction002 startTransaction fail ' + err); + console.info('testSingleKvStorestartTransaction002 startTransaction fail ' + err); expect(null).assertFail(); }); let entries = putBatchString(10, 'batch_test_string_key'); - console.log('testSingleKvStorestartTransaction002 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStorestartTransaction002 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStorestartTransaction002 putBatch success'); + console.info('testSingleKvStorestartTransaction002 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction002 putBatch fail ' + err); + console.info('testSingleKvStorestartTransaction002 putBatch fail ' + err); expect(null).assertFail(); }); let keys = Object.keys(entries).slice(5); //delete 5 beginnings await kvStore.deleteBatch(keys).then((err) => { - console.log('testSingleKvStorestartTransaction002 deleteBatch success'); + console.info('testSingleKvStorestartTransaction002 deleteBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction002 deleteBatch fail ' + err); + console.info('testSingleKvStorestartTransaction002 deleteBatch fail ' + err); expect(null).assertFail(); }); await kvStore.rollback().then(async (err) => { - console.log('testSingleKvStorestartTransaction002 rollback success'); + console.info('testSingleKvStorestartTransaction002 rollback success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction002 rollback fail ' + err); + console.info('testSingleKvStorestartTransaction002 rollback fail ' + err); expect(null).assertFail(); }); await sleep(2000); expect(count == 0).assertTrue(); }catch(e) { - console.log('testSingleKvStorestartTransaction002 e ' + e); + console.info('testSingleKvStorestartTransaction002 e ' + e); expect(null).assertFail(); } done(); @@ -1637,16 +1637,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStorestartTransaction testcase 003 */ it('testSingleKvStorestartTransaction003', 0, async function (done) { - console.log('testSingleKvStorestartTransaction002'); + console.info('testSingleKvStorestartTransaction002'); try { await kvStore.startTransaction(1).then(async (err) => { - console.log('testSingleKvStorestartTransaction003 startTransaction success'); + console.info('testSingleKvStorestartTransaction003 startTransaction success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction003 startTransaction fail ' + err); + console.info('testSingleKvStorestartTransaction003 startTransaction fail ' + err); }); }catch(e) { - console.log('testSingleKvStorestartTransaction003 e ' + e); + console.info('testSingleKvStorestartTransaction003 e ' + e); } done(); }) @@ -1657,16 +1657,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStorestartTransaction testcase 004 */ it('testSingleKvStorestartTransaction004', 0, async function (done) { - console.log('testSingleKvStorestartTransaction004'); + console.info('testSingleKvStorestartTransaction004'); try { await kvStore.startTransaction('test_string').then(async (err) => { - console.log('testSingleKvStorestartTransaction004 startTransaction success'); + console.info('testSingleKvStorestartTransaction004 startTransaction success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction004 startTransaction fail ' + err); + console.info('testSingleKvStorestartTransaction004 startTransaction fail ' + err); }); }catch(e) { - console.log('testSingleKvStorestartTransaction004 e ' + e); + console.info('testSingleKvStorestartTransaction004 e ' + e); } done(); }) @@ -1677,16 +1677,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStorestartTransaction testcase 005 */ it('testSingleKvStorestartTransaction005', 0, async function (done) { - console.log('testSingleKvStorestartTransaction005'); + console.info('testSingleKvStorestartTransaction005'); try { await kvStore.startTransaction(2.000).then(async (err) => { - console.log('testSingleKvStorestartTransaction005 startTransaction success'); + console.info('testSingleKvStorestartTransaction005 startTransaction success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStorestartTransaction005 startTransaction fail ' + err); + console.info('testSingleKvStorestartTransaction005 startTransaction fail ' + err); }); }catch(e) { - console.log('testSingleKvStorestartTransaction005 e ' + e); + console.info('testSingleKvStorestartTransaction005 e ' + e); } done(); }) @@ -1697,16 +1697,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreCommit testcase 001 */ it('testSingleKvStoreCommit001', 0, async function (done) { - console.log('testSingleKvStoreCommit001'); + console.info('testSingleKvStoreCommit001'); try { await kvStore.commit(1).then(async (err) => { - console.log('testSingleKvStoreCommit001 commit success'); + console.info('testSingleKvStoreCommit001 commit success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreCommit001 commit fail ' + err); + console.info('testSingleKvStoreCommit001 commit fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreCommit001 e ' + e); + console.info('testSingleKvStoreCommit001 e ' + e); } done(); }) @@ -1717,16 +1717,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreCommit testcase 002 */ it('testSingleKvStoreCommit002', 0, async function (done) { - console.log('testSingleKvStoreCommit002'); + console.info('testSingleKvStoreCommit002'); try { await kvStore.commit('test_string').then(async (err) => { - console.log('testSingleKvStoreCommit002 commit success'); + console.info('testSingleKvStoreCommit002 commit success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreCommit002 commit fail ' + err); + console.info('testSingleKvStoreCommit002 commit fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreCommit002 e ' + e); + console.info('testSingleKvStoreCommit002 e ' + e); } done(); }) @@ -1737,16 +1737,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreCommit testcase 003 */ it('testSingleKvStoreCommit003', 0, async function (done) { - console.log('testSingleKvStoreCommit003'); + console.info('testSingleKvStoreCommit003'); try { await kvStore.commit(2.000).then(async (err) => { - console.log('testSingleKvStoreCommit003 commit success'); + console.info('testSingleKvStoreCommit003 commit success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreCommit003 commit fail ' + err); + console.info('testSingleKvStoreCommit003 commit fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreCommit003 e ' + e); + console.info('testSingleKvStoreCommit003 e ' + e); } done(); }) @@ -1757,16 +1757,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreRollback testcase 001 */ it('testSingleKvStoreRollback001', 0, async function (done) { - console.log('testSingleKvStoreRollback001'); + console.info('testSingleKvStoreRollback001'); try { await kvStore.rollback(1).then(async (err) => { - console.log('testSingleKvStoreRollback001 rollback success'); + console.info('testSingleKvStoreRollback001 rollback success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreRollback001 rollback fail ' + err); + console.info('testSingleKvStoreRollback001 rollback fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreRollback001 e ' + e); + console.info('testSingleKvStoreRollback001 e ' + e); } done(); }) @@ -1777,16 +1777,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreRollback testcase 002 */ it('testSingleKvStoreRollback002', 0, async function (done) { - console.log('testSingleKvStoreRollback002'); + console.info('testSingleKvStoreRollback002'); try { await kvStore.rollback('test_string').then(async (err) => { - console.log('testSingleKvStoreRollback002 rollback success'); + console.info('testSingleKvStoreRollback002 rollback success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreRollback002 rollback fail ' + err); + console.info('testSingleKvStoreRollback002 rollback fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreRollback002 e ' + e); + console.info('testSingleKvStoreRollback002 e ' + e); } done(); }) @@ -1797,16 +1797,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreRollback testcase 003 */ it('testSingleKvStoreRollback003', 0, async function (done) { - console.log('testSingleKvStoreRollback003'); + console.info('testSingleKvStoreRollback003'); try { await kvStore.rollback(2.000).then(async (err) => { - console.log('testSingleKvStoreRollback003 rollback success'); + console.info('testSingleKvStoreRollback003 rollback success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreRollback003 rollback fail ' + err); + console.info('testSingleKvStoreRollback003 rollback fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreRollback003 e ' + e); + console.info('testSingleKvStoreRollback003 e ' + e); } done(); }) @@ -1817,17 +1817,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreEnableSync testcase 001 */ it('testSingleKvStoreEnableSync001', 0, async function (done) { - console.log('testSingleKvStoreEnableSync001'); + console.info('testSingleKvStoreEnableSync001'); try { await kvStore.enableSync(true).then((err) => { - console.log('testSingleKvStoreEnableSync001 enableSync success'); + console.info('testSingleKvStoreEnableSync001 enableSync success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreEnableSync001 enableSync fail ' + err); + console.info('testSingleKvStoreEnableSync001 enableSync fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreEnableSync001 e ' + e); + console.info('testSingleKvStoreEnableSync001 e ' + e); expect(null).assertFail(); } done(); @@ -1839,17 +1839,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreEnableSync testcase 002 */ it('testSingleKvStoreEnableSync002', 0, async function (done) { - console.log('testSingleKvStoreEnableSync002'); + console.info('testSingleKvStoreEnableSync002'); try { await kvStore.enableSync(false).then((err) => { - console.log('testSingleKvStoreEnableSync002 enableSync success'); + console.info('testSingleKvStoreEnableSync002 enableSync success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreEnableSync002 enableSync fail ' + err); + console.info('testSingleKvStoreEnableSync002 enableSync fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreEnableSync002 e ' + e); + console.info('testSingleKvStoreEnableSync002 e ' + e); expect(null).assertFail(); } done(); @@ -1861,16 +1861,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreEnableSync testcase 003 */ it('testSingleKvStoreEnableSync003', 0, async function (done) { - console.log('testSingleKvStoreEnableSync003'); + console.info('testSingleKvStoreEnableSync003'); try { await kvStore.enableSync().then((err) => { - console.log('testSingleKvStoreEnableSync003 enableSync success'); + console.info('testSingleKvStoreEnableSync003 enableSync success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreEnableSync003 enableSync fail ' + err); + console.info('testSingleKvStoreEnableSync003 enableSync fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreEnableSync003 e ' + e); + console.info('testSingleKvStoreEnableSync003 e ' + e); } done(); }) @@ -1881,16 +1881,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreEnableSync testcase 004 */ it('testSingleKvStoreEnableSync004', 0, async function (done) { - console.log('testSingleKvStoreEnableSync004'); + console.info('testSingleKvStoreEnableSync004'); try { await kvStore.enableSync(null).then((err) => { - console.log('testSingleKvStoreEnableSync004 enableSync success'); + console.info('testSingleKvStoreEnableSync004 enableSync success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreEnableSync004 enableSync fail ' + err); + console.info('testSingleKvStoreEnableSync004 enableSync fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreEnableSync004 e ' + e); + console.info('testSingleKvStoreEnableSync004 e ' + e); } done(); }) @@ -1901,31 +1901,31 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreRemoveDeviceData testcase 001 */ it('testSingleKvStoreRemoveDeviceData001', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData001'); + console.info('testSingleKvStoreRemoveDeviceData001'); try { await kvStore.put(KEY_TEST_STRING_ELEMENT, VALUE_TEST_STRING_ELEMENT).then((err) => { - console.log('testSingleKvStoreRemoveDeviceData001 put success'); + console.info('testSingleKvStoreRemoveDeviceData001 put success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreRemoveDeviceData001 put fail ' + err); + console.info('testSingleKvStoreRemoveDeviceData001 put fail ' + err); expect(null).assertFail(); }); var deviceid = 'no_exist_device_id'; await kvStore.removeDeviceData(deviceid).then((err) => { - console.log('testSingleKvStoreRemoveDeviceData001 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData001 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreRemoveDeviceData001 removeDeviceData fail ' + err); + console.info('testSingleKvStoreRemoveDeviceData001 removeDeviceData fail ' + err); }); await kvStore.get(KEY_TEST_STRING_ELEMENT).then((data) => { - console.log('testSingleKvStoreRemoveDeviceData001 get success data:' + data); + console.info('testSingleKvStoreRemoveDeviceData001 get success data:' + data); expect(data == VALUE_TEST_STRING_ELEMENT).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreRemoveDeviceData001 get fail ' + err); + console.info('testSingleKvStoreRemoveDeviceData001 get fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData001 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData001 e ' + e); expect(null).assertFail(); } done(); @@ -1937,16 +1937,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreRemoveDeviceData testcase 002 */ it('testSingleKvStoreRemoveDeviceData002', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData002'); + console.info('testSingleKvStoreRemoveDeviceData002'); try { await kvStore.removeDeviceData().then((err) => { - console.log('testSingleKvStoreRemoveDeviceData002 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData002 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreRemoveDeviceData002 removeDeviceData fail ' + err); + console.info('testSingleKvStoreRemoveDeviceData002 removeDeviceData fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData002 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData002 e ' + e); } done(); }) @@ -1957,16 +1957,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreRemoveDeviceData testcase 003 */ it('testSingleKvStoreRemoveDeviceData003', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData003'); + console.info('testSingleKvStoreRemoveDeviceData003'); try { await kvStore.removeDeviceData('').then((err) => { - console.log('testSingleKvStoreRemoveDeviceData003 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData003 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreRemoveDeviceData003 removeDeviceData fail ' + err); + console.info('testSingleKvStoreRemoveDeviceData003 removeDeviceData fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData003 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData003 e ' + e); } done(); }) @@ -1977,16 +1977,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreRemoveDeviceData testcase 004 */ it('testSingleKvStoreRemoveDeviceData004', 0, async function (done) { - console.log('testSingleKvStoreRemoveDeviceData004'); + console.info('testSingleKvStoreRemoveDeviceData004'); try { await kvStore.removeDeviceData(null).then((err) => { - console.log('testSingleKvStoreRemoveDeviceData004 removeDeviceData success'); + console.info('testSingleKvStoreRemoveDeviceData004 removeDeviceData success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreRemoveDeviceData004 removeDeviceData fail ' + err); + console.info('testSingleKvStoreRemoveDeviceData004 removeDeviceData fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreRemoveDeviceData004 e ' + e); + console.info('testSingleKvStoreRemoveDeviceData004 e ' + e); } done(); }) @@ -1997,18 +1997,18 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreSetSyncParam testcase 001 */ it('testSingleKvStoreSetSyncParam001', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam001'); + console.info('testSingleKvStoreSetSyncParam001'); try { var defaultAllowedDelayMs = 500; await kvStore.setSyncParam(defaultAllowedDelayMs).then((err) => { - console.log('testSingleKvStoreSetSyncParam001 put success'); + console.info('testSingleKvStoreSetSyncParam001 put success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreSetSyncParam001 put fail ' + err); + console.info('testSingleKvStoreSetSyncParam001 put fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam001 e ' + e); + console.info('testSingleKvStoreSetSyncParam001 e ' + e); expect(null).assertFail(); } done(); @@ -2020,16 +2020,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreSetSyncParam testcase 002 */ it('testSingleKvStoreSetSyncParam002', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam002'); + console.info('testSingleKvStoreSetSyncParam002'); try { await kvStore.setSyncParam().then((err) => { - console.log('testSingleKvStoreSetSyncParam002 put success'); + console.info('testSingleKvStoreSetSyncParam002 put success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreSetSyncParam002 put fail ' + err); + console.info('testSingleKvStoreSetSyncParam002 put fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam002 e ' + e); + console.info('testSingleKvStoreSetSyncParam002 e ' + e); } done(); }) @@ -2040,16 +2040,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreSetSyncParam testcase 003 */ it('testSingleKvStoreSetSyncParam003', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam003'); + console.info('testSingleKvStoreSetSyncParam003'); try { await kvStore.setSyncParam('').then((err) => { - console.log('testSingleKvStoreSetSyncParam003 put success'); + console.info('testSingleKvStoreSetSyncParam003 put success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreSetSyncParam003 put fail ' + err); + console.info('testSingleKvStoreSetSyncParam003 put fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam003 e ' + e); + console.info('testSingleKvStoreSetSyncParam003 e ' + e); } done(); }) @@ -2060,16 +2060,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreSetSyncParam testcase 004 */ it('testSingleKvStoreSetSyncParam004', 0, async function (done) { - console.log('testSingleKvStoreSetSyncParam004'); + console.info('testSingleKvStoreSetSyncParam004'); try { await kvStore.setSyncParam(null).then((err) => { - console.log('testSingleKvStoreSetSyncParam004 put success'); + console.info('testSingleKvStoreSetSyncParam004 put success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreSetSyncParam004 put fail ' + err); + console.info('testSingleKvStoreSetSyncParam004 put fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreSetSyncParam004 e ' + e); + console.info('testSingleKvStoreSetSyncParam004 e ' + e); } done(); }) @@ -2080,17 +2080,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetSecurityLevel testcase 001 */ // it('testSingleKvStoreGetSecurityLevel001', 0, async function (done) { - // console.log('testSingleKvStoreGetSecurityLevel001'); + // console.info('testSingleKvStoreGetSecurityLevel001'); // try { // await kvStore.getSecurityLevel().then((data) => { - // console.log('testSingleKvStoreGetSecurityLevel001 getSecurityLevel success'); + // console.info('testSingleKvStoreGetSecurityLevel001 getSecurityLevel success'); // expect(data == factory.SecurityLevel.S2).assertTrue(); // }).catch((err) => { - // console.log('testSingleKvStoreGetSecurityLevel001 getSecurityLevel fail ' + err); + // console.info('testSingleKvStoreGetSecurityLevel001 getSecurityLevel fail ' + err); // expect(null).assertFail(); // }); // }catch(e) { - // console.log('testSingleKvStoreGetSecurityLevel001 e ' + e); + // console.info('testSingleKvStoreGetSecurityLevel001 e ' + e); // expect(null).assertFail(); // } // done(); @@ -2102,16 +2102,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetSecurityLevel testcase 002 */ it('testSingleKvStoreGetSecurityLevel002', 0, async function (done) { - console.log('testSingleKvStoreGetSecurityLevel002'); + console.info('testSingleKvStoreGetSecurityLevel002'); try { await kvStore.getSecurityLevel(1).then((data) => { - console.log('testSingleKvStoreGetSecurityLevel002 getSecurityLevel success'); + console.info('testSingleKvStoreGetSecurityLevel002 getSecurityLevel success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreGetSecurityLevel002 getSecurityLevel fail ' + err); + console.info('testSingleKvStoreGetSecurityLevel002 getSecurityLevel fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreGetSecurityLevel002 e ' + e); + console.info('testSingleKvStoreGetSecurityLevel002 e ' + e); } done(); }) @@ -2122,16 +2122,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetSecurityLevel testcase 003 */ it('testSingleKvStoreGetSecurityLevel003', 0, async function (done) { - console.log('testSingleKvStoreGetSecurityLevel003'); + console.info('testSingleKvStoreGetSecurityLevel003'); try { await kvStore.getSecurityLevel('test_string').then((data) => { - console.log('testSingleKvStoreGetSecurityLevel003 getSecurityLevel success'); + console.info('testSingleKvStoreGetSecurityLevel003 getSecurityLevel success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreGetSecurityLevel003 getSecurityLevel fail ' + err); + console.info('testSingleKvStoreGetSecurityLevel003 getSecurityLevel fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreGetSecurityLevel003 e ' + e); + console.info('testSingleKvStoreGetSecurityLevel003 e ' + e); } done(); }) @@ -2142,16 +2142,16 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetSecurityLevel testcase 004 */ it('testSingleKvStoreGetSecurityLevel004', 0, async function (done) { - console.log('testSingleKvStoreGetSecurityLevel004'); + console.info('testSingleKvStoreGetSecurityLevel004'); try { await kvStore.getSecurityLevel(2.000).then((data) => { - console.log('testSingleKvStoreGetSecurityLevel004 getSecurityLevel success'); + console.info('testSingleKvStoreGetSecurityLevel004 getSecurityLevel success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreGetSecurityLevel004 getSecurityLevel fail ' + err); + console.info('testSingleKvStoreGetSecurityLevel004 getSecurityLevel fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreGetSecurityLevel004 e ' + e); + console.info('testSingleKvStoreGetSecurityLevel004 e ' + e); } done(); }) @@ -2162,7 +2162,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSet testcase 001 */ it('testSingleKvStoreGetResultSet001', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet001'); + console.info('testSingleKvStoreGetResultSet001'); try { let resultSet; let entries = []; @@ -2178,29 +2178,29 @@ describe('SingleKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreGetResultSet001 putBatch success'); + console.info('testSingleKvStoreGetResultSet001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch001 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); await kvStore.getResultSet('batch_test_string_key').then((result) => { - console.log('testSingleKvStoreGetResultSet001 getResultSet success'); + console.info('testSingleKvStoreGetResultSet001 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet001 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet001 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testSingleKvStoreGetResultSet001 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet001 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet001 closeResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet001 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet001 e ' + e); + console.info('testSingleKvStoreGetResultSet001 e ' + e); expect(null).assertFail(); } done(); @@ -2212,26 +2212,26 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSet testcase 002 */ it('testSingleKvStoreGetResultSet002', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet002'); + console.info('testSingleKvStoreGetResultSet002'); try { let resultSet; await kvStore.getResultSet('batch_test_string_key').then((result) => { - console.log('testSingleKvStoreGetResultSet002 getResultSet success'); + console.info('testSingleKvStoreGetResultSet002 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 0).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet002 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet002 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testSingleKvStoreGetResultSet002 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet002 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet002 closeResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet002 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet002 e ' + e); + console.info('testSingleKvStoreGetResultSet002 e ' + e); expect(null).assertFail(); } done(); @@ -2243,17 +2243,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSet testcase 003 */ it('testSingleKvStoreGetResultSet003', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet003'); + console.info('testSingleKvStoreGetResultSet003'); try { let resultSet; await kvStore.getResultSet().then((result) => { - console.log('testSingleKvStoreGetResultSet003 getResultSet success'); + console.info('testSingleKvStoreGetResultSet003 getResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet003 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet003 getResultSet fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet003 e ' + e); + console.info('testSingleKvStoreGetResultSet003 e ' + e); expect(null).assertFail(); } done(); @@ -2265,17 +2265,17 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSet testcase 004 */ it('testSingleKvStoreGetResultSet004', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet004'); + console.info('testSingleKvStoreGetResultSet004'); try { let resultSet; await kvStore.getResultSet('test_key_string', 123).then((result) => { - console.log('testSingleKvStoreGetResultSet004 getResultSet success'); + console.info('testSingleKvStoreGetResultSet004 getResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet004 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet004 getResultSet fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet004 e ' + e); + console.info('testSingleKvStoreGetResultSet004 e ' + e); expect(null).assertFail(); } done(); @@ -2287,7 +2287,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSet testcase 005 */ it('testSingleKvStoreGetResultSet005', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet005'); + console.info('testSingleKvStoreGetResultSet005'); try { let resultSet; let entries = []; @@ -2303,31 +2303,31 @@ describe('SingleKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreGetResultSet005 putBatch success'); + console.info('testSingleKvStoreGetResultSet005 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch001 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSet(query).then((result) => { - console.log('testSingleKvStoreGetResultSet005 getResultSet success'); + console.info('testSingleKvStoreGetResultSet005 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet005 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet005 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testSingleKvStoreGetResultSet005 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet005 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet005 closeResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet005 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet005 e ' + e); + console.info('testSingleKvStoreGetResultSet005 e ' + e); expect(null).assertFail(); } done(); @@ -2339,7 +2339,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSet testcase 006 */ it('testSingleKvStoreGetResultSet006', 0, async function (done) { - console.log('testSingleKvStoreGetResultSet006'); + console.info('testSingleKvStoreGetResultSet006'); try { let resultSet; let entries = []; @@ -2355,31 +2355,31 @@ describe('SingleKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreGetResultSet006 putBatch success'); + console.info('testSingleKvStoreGetResultSet006 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch001 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSet(query).then((result) => { - console.log('testSingleKvStoreGetResultSet006 getResultSet success'); + console.info('testSingleKvStoreGetResultSet006 getResultSet success'); resultSet = result; expect(resultSet.getCount() == 10).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet006 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet006 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testSingleKvStoreGetResultSet006 closeResultSet success'); + console.info('testSingleKvStoreGetResultSet006 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSet006 closeResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSet006 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSet006 e ' + e); + console.info('testSingleKvStoreGetResultSet006 e ' + e); expect(null).assertFail(); } done(); @@ -2391,18 +2391,18 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreCloseResultSet testcase 001 */ it('testSingleKvStoreCloseResultSet001', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet001'); + console.info('testSingleKvStoreCloseResultSet001'); try { - console.log('testSingleKvStoreCloseResultSet001 success'); + console.info('testSingleKvStoreCloseResultSet001 success'); let resultSet = null; await kvStore.closeResultSet(resultSet).then(() => { - console.log('testSingleKvStoreCloseResultSet001 closeResultSet success'); + console.info('testSingleKvStoreCloseResultSet001 closeResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreCloseResultSet001 closeResultSet fail ' + err); + console.info('testSingleKvStoreCloseResultSet001 closeResultSet fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreCloseResultSet001 e ' + e); + console.info('testSingleKvStoreCloseResultSet001 e ' + e); expect(null).assertFail(); } done(); @@ -2414,26 +2414,26 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreCloseResultSet testcase 002 */ it('testSingleKvStoreCloseResultSet002', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet002'); + console.info('testSingleKvStoreCloseResultSet002'); try { - console.log('testSingleKvStoreCloseResultSet002 success'); + console.info('testSingleKvStoreCloseResultSet002 success'); let resultSet = null; await kvStore.getResultSet('batch_test_string_key').then((result) => { - console.log('testSingleKvStoreCloseResultSet002 getResultSet success'); + console.info('testSingleKvStoreCloseResultSet002 getResultSet success'); resultSet = result; }).catch((err) => { - console.log('testSingleKvStoreCloseResultSet002 getResultSet fail ' + err); + console.info('testSingleKvStoreCloseResultSet002 getResultSet fail ' + err); expect(null).assertFail(); }); await kvStore.closeResultSet(resultSet).then((err) => { - console.log('testSingleKvStoreCloseResultSet002 closeResultSet success'); + console.info('testSingleKvStoreCloseResultSet002 closeResultSet success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreCloseResultSet002 closeResultSet fail ' + err); + console.info('testSingleKvStoreCloseResultSet002 closeResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreCloseResultSet002 e ' + e); + console.info('testSingleKvStoreCloseResultSet002 e ' + e); expect(null).assertFail(); } done(); @@ -2445,18 +2445,18 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreCloseResultSet testcase 003 */ it('testSingleKvStoreCloseResultSet003', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet003'); + console.info('testSingleKvStoreCloseResultSet003'); try { - console.log('testSingleKvStoreCloseResultSet003 success'); + console.info('testSingleKvStoreCloseResultSet003 success'); let resultSet = null; await kvStore.closeResultSet().then(() => { - console.log('testSingleKvStoreCloseResultSet003 closeResultSet success'); + console.info('testSingleKvStoreCloseResultSet003 closeResultSet success'); expect(null).assertFail(); }).catch((err) => { - console.log('testSingleKvStoreCloseResultSet003 closeResultSet fail ' + err); + console.info('testSingleKvStoreCloseResultSet003 closeResultSet fail ' + err); }); }catch(e) { - console.log('testSingleKvStoreCloseResultSet003 e ' + e); + console.info('testSingleKvStoreCloseResultSet003 e ' + e); expect(null).assertFail(); } done(); @@ -2468,11 +2468,11 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreCloseResultSet testcase 004 */ it('testSingleKvStoreCloseResultSet004', 0, async function (done) { - console.log('testSingleKvStoreCloseResultSet004'); + console.info('testSingleKvStoreCloseResultSet004'); try { - console.log('testSingleKvStoreCloseResultSet004 success'); + console.info('testSingleKvStoreCloseResultSet004 success'); }catch(e) { - console.log('testSingleKvStoreCloseResultSet004 e ' + e); + console.info('testSingleKvStoreCloseResultSet004 e ' + e); expect(null).assertFail(); } done(); @@ -2484,7 +2484,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSize testcase 001 */ it('testSingleKvStoreGetResultSize001', 0, async function (done) { - console.log('testSingleKvStoreGetResultSize001'); + console.info('testSingleKvStoreGetResultSize001'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2499,23 +2499,23 @@ describe('SingleKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreGetResultSize001 putBatch success'); + console.info('testSingleKvStoreGetResultSize001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch001 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSize(query).then((resultSize) => { - console.log('testSingleKvStoreGetResultSize001 getResultSet success'); + console.info('testSingleKvStoreGetResultSize001 getResultSet success'); expect(resultSize == 10).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSize001 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSize001 getResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSize001 e ' + e); + console.info('testSingleKvStoreGetResultSize001 e ' + e); expect(null).assertFail(); } done(); @@ -2527,7 +2527,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetResultSize testcase 002 */ it('testSingleKvStoreGetResultSize002', 0, async function (done) { - console.log('testSingleKvStoreGetResultSize001'); + console.info('testSingleKvStoreGetResultSize001'); try { let entries = []; for (var i = 0; i < 10; i++) { @@ -2542,23 +2542,23 @@ describe('SingleKvStorePromiseTest', function () { entries.push(entry); } await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreGetResultSize001 putBatch success'); + console.info('testSingleKvStoreGetResultSize001 putBatch success'); expect(err == undefined).assertTrue(); }).catch((err) => { - console.log('testSingleKvStorePutBatch001 putBatch fail ' + err); + console.info('testSingleKvStorePutBatch001 putBatch fail ' + err); expect(null).assertFail(); }); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getResultSize(query).then((resultSize) => { - console.log('testSingleKvStoreGetResultSize001 getResultSet success'); + console.info('testSingleKvStoreGetResultSize001 getResultSet success'); expect(resultSize == 10).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetResultSize001 getResultSet fail ' + err); + console.info('testSingleKvStoreGetResultSize001 getResultSet fail ' + err); expect(null).assertFail(); }); }catch(e) { - console.log('testSingleKvStoreGetResultSize001 e ' + e); + console.info('testSingleKvStoreGetResultSize001 e ' + e); expect(null).assertFail(); } done(); @@ -2570,7 +2570,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetEntries testcase 001 */ it('testSingleKvStoreGetEntries001', 0, async function (done) { - console.log('testSingleKvStoreGetEntries001'); + console.info('testSingleKvStoreGetEntries001'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2585,27 +2585,27 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStoreGetEntries001 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreGetEntries001 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreGetEntries001 putBatch success'); + console.info('testSingleKvStoreGetEntries001 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getEntries(query).then((entrys) => { - console.log('testSingleKvStoreGetEntries001 getEntries success'); + console.info('testSingleKvStoreGetEntries001 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetEntries001 getEntries fail ' + err); + console.info('testSingleKvStoreGetEntries001 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreGetEntries001 putBatch fail ' + err); + console.info('testSingleKvStoreGetEntries001 putBatch fail ' + err); expect(null).assertFail(); }); - console.log('testSingleKvStoreGetEntries001 success'); + console.info('testSingleKvStoreGetEntries001 success'); }catch(e) { - console.log('testSingleKvStoreGetEntries001 e ' + e); + console.info('testSingleKvStoreGetEntries001 e ' + e); expect(null).assertFail(); } done(); @@ -2617,7 +2617,7 @@ describe('SingleKvStorePromiseTest', function () { * @tc.desc Test Js Api SingleKvStoreGetEntries testcase 002 */ it('testSingleKvStoreGetEntries002', 0, async function (done) { - console.log('testSingleKvStoreGetEntries002'); + console.info('testSingleKvStoreGetEntries002'); try { var arr = new Uint8Array([21,31]); let entries = []; @@ -2632,27 +2632,27 @@ describe('SingleKvStorePromiseTest', function () { } entries.push(entry); } - console.log('testSingleKvStoreGetEntries002 entries: ' + JSON.stringify(entries)); + console.info('testSingleKvStoreGetEntries002 entries: ' + JSON.stringify(entries)); await kvStore.putBatch(entries).then(async (err) => { - console.log('testSingleKvStoreGetEntries002 putBatch success'); + console.info('testSingleKvStoreGetEntries002 putBatch success'); expect(err == undefined).assertTrue(); var query = new factory.Query(); query.prefixKey("batch_test"); await kvStore.getEntries(query).then((entrys) => { - console.log('testSingleKvStoreGetEntries002 getEntries success'); + console.info('testSingleKvStoreGetEntries002 getEntries success'); expect(entrys.length == 10).assertTrue(); expect(entrys[0].value.value.toString() == arr.toString()).assertTrue(); }).catch((err) => { - console.log('testSingleKvStoreGetEntries002 getEntries fail ' + err); + console.info('testSingleKvStoreGetEntries002 getEntries fail ' + err); expect(null).assertFail(); }); }).catch((err) => { - console.log('testSingleKvStoreGetEntries002 putBatch fail ' + err); + console.info('testSingleKvStoreGetEntries002 putBatch fail ' + err); expect(null).assertFail(); }); - console.log('testSingleKvStoreGetEntries002 success'); + console.info('testSingleKvStoreGetEntries002 success'); }catch(e) { - console.log('testSingleKvStoreGetEntries002 e ' + e); + console.info('testSingleKvStoreGetEntries002 e ' + e); expect(null).assertFail(); } done();