diff --git a/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js b/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js index 14898a39072a7658bf270c34d029eb4c7342cdbf..80cc39a7dff2302117f6f994300f484d6676f4e5 100755 --- a/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js +++ b/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js @@ -192,8 +192,8 @@ describe('MultimodalInput_test', function () { /** * @tc.number MultimodalInputDevice_js_0010 - * @tc.name remainingChargeTime_test - * @tc.desc Battry Present Interface Test + * @tc.name MultimodalInputDevice_KeyboardType_NONE_test + * @tc.desc inputDevice.KeyboardType.NONE test */ it('MultimodalInputDevice_KeyboardType_NONE_test', 0, function () { console.info('MultimodalInputDevice_KeyboardType_NONE_test = ' + inputDevice.KeyboardType.NONE); @@ -202,8 +202,8 @@ describe('MultimodalInput_test', function () { /** * @tc.number MultimodalInputDevice_js_0020 - * @tc.name remainingChargeTime_test - * @tc.desc Battry Present Interface Test + * @tc.name MultimodalInputDevice_KeyboardType_UNKNOWN_test + * @tc.desc inputDevice.KeyboardType.UNKNOWN test */ it('MultimodalInputDevice_KeyboardType_UNKNOWN_test', 0, function () { console.info('MultimodalInputDevice_KeyboardType_UNKNOWN_test = ' + inputDevice.KeyboardType.UNKNOWN); @@ -212,8 +212,8 @@ describe('MultimodalInput_test', function () { /** * @tc.number MultimodalInputDevice_js_0030 - * @tc.name remainingChargeTime_test - * @tc.desc Battry Present Interface Test + * @tc.name MultimodalInputDevice_KeyboardType_ALPHABETIC_KEYBOARD_test + * @tc.desc inputDevice.KeyboardType.ALPHABETIC_KEYBOARD test */ it('MultimodalInputDevice_KeyboardType_ALPHABETIC_KEYBOARD_test', 0, function () { console.info('MultimodalInputDevice_KeyboardType_ALPHABETIC_KEYBOARD_test = ' @@ -223,8 +223,8 @@ describe('MultimodalInput_test', function () { /** * @tc.number MultimodalInputDevice_js_0040 - * @tc.name remainingChargeTime_test - * @tc.desc Battry Present Interface Test + * @tc.name MultimodalInputDevice_KeyboardType_ALPHABETIC_DIGITAL_KEYBOARD_test + * @tc.desc inputDevice.KeyboardType.DIGITAL_KEYBOARD test */ it('MultimodalInputDevice_KeyboardType_ALPHABETIC_DIGITAL_KEYBOARD_test', 0, function () { console.info('MultimodalInputDevice_KeyboardType_ALPHABETIC_DIGITAL_KEYBOARD_test = ' @@ -233,9 +233,9 @@ describe('MultimodalInput_test', function () { }) /** - * @tc.number MultimodalInputDevice_js_0040 - * @tc.name remainingChargeTime_test - * @tc.desc Battry Present Interface Test + * @tc.number MultimodalInputDevice_js_0050 + * @tc.name MultimodalInputDevice_KeyboardType_ALPHABETIC_HANDWRITING_PEN_test + * @tc.desc inputDevice.KeyboardType.HANDWRITING_PEN test */ it('MultimodalInputDevice_KeyboardType_ALPHABETIC_HANDWRITING_PEN_test', 0, function () { console.info('MultimodalInputDevice_KeyboardType_ALPHABETIC_HANDWRITING_PEN_test = ' @@ -244,9 +244,9 @@ describe('MultimodalInput_test', function () { }) /** - * @tc.number MultimodalInputDevice_js_0040 - * @tc.name remainingChargeTime_test - * @tc.desc Battry Present Interface Test + * @tc.number MultimodalInputDevice_js_0060 + * @tc.name MultimodalInputDevice_KeyboardType_ALPHABETIC_REMOTE_CONTROL_test + * @tc.desc inputDevice.KeyboardType.REMOTE_CONTROL test */ it('MultimodalInputDevice_KeyboardType_ALPHABETIC_REMOTE_CONTROL_test', 0, function () { console.info('MultimodalInputDevice_KeyboardType_ALPHABETIC_REMOTE_CONTROL_test = ' @@ -254,240 +254,26 @@ describe('MultimodalInput_test', function () { expect(inputDevice.KeyboardType.REMOTE_CONTROL == 5).assertTrue(); }) - it('ultimodalInputDevice_Startlistening_InputDevice_Events_test',0,function(){ - inputDevice.on("change",()=>{ - var Type = inputDevice.DeviceListener.type - var IdNumber = inputDevice.DeviceListener.deviceId - console.info(Type) - expect(inputDevice.DeviceListener.type === 'add'|| inputDevice.DeviceListener.type === 'remove').assertTrue(); - console.info(IdNumber) - expect(inputDevice.DeviceListener.type).assertInstanceOf('number'); - }) - }) - - it('ultimodalInputDevice_Stoplistening_InputDevice_Events_test',0,function(){ - inputDevice.off("change",()=>{ - var Type = inputDevice.DeviceListener.type - var IdNumber = inputDevice.DeviceListener.deviceId - console.info(Type) - expect(inputDevice.DeviceListener.type === 'add'|| inputDevice.DeviceListener.type === 'remove').assertTrue(); - console.info(IdNumber) - expect(inputDevice.DeviceListener.type).assertInstanceOf('number'); - }) - }) - // 参数正确,返回一个数组 - it('inputDevice::getDeviceIds_test-01', 0, function () { - console.log(`inputDevice::getDeviceIds_test-01 enter`); - inputDevice.getDeviceIds() - .then((data)=>{ - expect(data).assertInstanceOf('Array'); - }) - .catch(error => { - expect(false).assertTrue(); - }) - }) - - // 参数正确,判断一种或多种设备 - it("inputDevice::getDeviceIds_test-02", 0, function () { - console.log(`inputDevice::getDeviceIds_test-02 enter`); - inputDevice.getDeviceIds() - .then((data)=>{ - expect(data.length > 0).assertTure(); - }) - .catch(error => { - expect(false).assertTrue(); - }) - }) - - - it("inputDevice::setPointerLocation_test-01", 0, function () { - console.log(`inputDevice::setPointerLocation_test-01 enter`); - inputDevice.setPointerLocation(1,2) - .then((data)=>{ - expect(data).assertTure(); - }) - .catch(error => { + /** + * @tc.number MultimodalInputDevice_js_0070 + * @tc.name MultimodalInputDevice_getDeviceIds_Promise_test + * @tc.desc inputdevice interface getDeviceIds & supportKeys test + */ + it("MultimodalInputDevice_getDeviceIds_Promise_test", 0, async function () { + console.log(`inputDevice::supportKeys_test-01 enter`); + await inputDevice.getDeviceIds().then((data, err) => { + if (err) { expect(false).assertTrue(); - }) - console.log(`inputDevice::setPointerLocation_test-01 exit`); - }) - - - - - it("inputDevice::setPointerLocation_test-02", 0, function () { - console.log(`inputDevice::setPointerLocation_test-02 enter`); - inputDevice.setPointerLocation(1,2,(data,error)=>{ - if(data){ - expect(true).assertTure(); - }else{ - expect(false).assertTrue(); - } - }) - }) - - - it('inputDevice::DeviceListener_test-01', 0, function () { - console.log(`inputDevice::DeviceListener_test-01 enter`); - - expect( (inputDevice.DeviceListener.type=='add' || 'remove')).assertTrue(); - - console.log(`inputDevice::DeviceListener_test-01 exit`); - }) - - it('inputDevice::DeviceListener_test-02', 0, function () { - console.log(`inputDevice::DeviceListener_test-02 enter`); - - expect( (inputDevice.DeviceListener.deviceId)).assertInstanceOf("number"); - - console.log(`inputDevice::DeviceListener_test-02 exit`); - }) - - it('inputDevice::AxisRange_test-01', 0, function () { - console.log(`inputDevice::AxisRange_test-01 enter`); - - expect((inputDevice.AxisRange.source=='keyboard'||'mouse'||'touchpad'||'touchscreen' - ||'joystick'||'trackball')).assertTrue(); - - console.log(`inputDevice::AxisRange_test-01 exit`); - }) - - - it('inputDevice::AxisRange_test-02', 0, function () { - console.log(`inputDevice::AxisRange_test-02 enter`); - - expect((inputDevice.AxisRange.axis=='touchMajor' || 'touchMinor' || 'orientation' || 'x' || 'y' || 'pressure' - || 'toolMinor' || 'toolMajor' || 'NULL')).assertTrue(); - - console.log(`inputDevice::AxisRange_test-02 exit`); - }) - - it('inputDevice::AxisRange_test-03', 0, function () { - console.log(`inputDevice::AxisRange_test-03 enter`); - - expect( (inputDevice.AxisRange.max)).assertInstanceOf("number"); - - console.log(`inputDevice::AxisRange_test-03 exit`); - }) - - it('inputDevice::AxisRange_test-04', 0, function () { - console.log(`inputDevice::AxisRange_test-04 enter`); - - expect( (inputDevice.AxisRange.min)).assertInstanceOf("number"); - - console.log(`inputDevice::AxisRange_test-04 exit`); - }) - - it('inputDevice::AxisRange_test-05', 0, function () { - console.log(`inputDevice::AxisRange_test-05 enter`); - - expect( (inputDevice.AxisRange.fuzz)).assertInstanceOf("number"); - - console.log(`inputDevice::AxisRange_test-05 exit`); - }) - - - it('inputDevice::AxisRange_test-06', 0, function () { - console.log(`inputDevice::AxisRange_test-06 enter`); - - expect( (inputDevice.AxisRange.flat)).assertInstanceOf("number"); - - console.log(`inputDevice::AxisRange_test-06 exit`); - }) - - it('inputDevice::AxisRange_test-07', 0, function () { - console.log(`inputDevice::AxisRange_test-07 enter`); - - expect( (inputDevice.AxisRange.resolution)).assertInstanceOf("number"); - - console.log(`inputDevice::AxisRange_test-07 exit`); - }) - - it('inputDevice::InputDeviceData_test-01', 0, function () { - console.log(`inputDevice::InputDeviceData_test-01 enter`); - - expect( (inputDevice.InputDeviceData.id)).assertInstanceOf("number"); - - console.log(`inputDevice::InputDeviceData_test-01 exit`); - }) - - it('inputDevice::InputDeviceData_test-02', 0, function () { - console.log(`inputDevice::InputDeviceData_test-02 enter`); - - expect( (inputDevice.InputDeviceData.name)).assertInstanceOf("string"); - - console.log(`inputDevice::InputDeviceData_test-02 exit`); - }) - - - it('inputDevice::InputDeviceData_test-03', 0, function () { - console.log(`inputDevice::InputDeviceData_test-03 enter`); - - expect( (inputDevice.InputDeviceData.sources)).assertInstanceOf("Array"); - - console.log(`inputDevice::InputDeviceData_test-03 exit`); - }) - - - it('inputDevice::InputDeviceData_test-04', 0, function () { - console.log(`inputDevice::InputDeviceData_test-04 enter`); - - expect( (inputDevice.InputDeviceData.axisRanges)).assertInstanceOf("Array"); - - console.log(`inputDevice::InputDeviceData_test-04 exit`); - }) - - - it('inputDevice::InputDeviceData_test-05', 0, function () { - console.log(`inputDevice::InputDeviceData_test-05 enter`); - - expect( (inputDevice.InputDeviceData.bus)).assertInstanceOf("Array"); - - console.log(`inputDevice::InputDeviceData_test-05 exit`); - }) - - - - it('inputDevice::InputDeviceData_test-06', 0, function () { - console.log(`inputDevice::InputDeviceData_test-06 enter`); - - expect( (inputDevice.InputDeviceData.product)).assertInstanceOf("number"); - - console.log(`inputDevice::InputDeviceData_test-06 exit`); - }) - - - it('inputDevice::InputDeviceData_test-07', 0, function () { - console.log(`inputDevice::InputDeviceData_test-07 enter`); - - expect( (inputDevice.InputDeviceData.vendor)).assertInstanceOf("number"); - - console.log(`inputDevice::InputDeviceData_test-07 exit`); - }) - - it('inputDevice::InputDeviceData_test-08', 0, function () { - console.log(`inputDevice::InputDeviceData_test-08 enter`); - - expect( (inputDevice.InputDeviceData.version)).assertInstanceOf("number"); - - console.log(`inputDevice::InputDeviceData_test-08 exit`); - }) - - - it('inputDevice::InputDeviceData_test-09', 0, function () { - console.log(`inputDevice::InputDeviceData_test-09 enter`); - - expect( (inputDevice.InputDeviceData.phys)).assertInstanceOf("string"); - - console.log(`inputDevice::InputDeviceData_test-09 exit`); - }) - - it('inputDevice::InputDeviceData_test-10', 0, function () { - console.log(`inputDevice::InputDeviceData_test-10 enter`); - - expect( (inputDevice.InputDeviceData.uniq)).assertInstanceOf("string"); - - console.log(`inputDevice::InputDeviceData_test-10 exit`); + done(); + } else { + for (let i = 0; i < data.length; ++i) { + inputDevice.supportKeys(data[i], [17, 22, 2055]).then((res, err) => { + expect(res).assertInstanceOf('Array'); + }) + } + done(); + } + console.log(`inputDevice::supportKeys_test-01 exit`); + }); }) - }) diff --git a/multimodalinput/input_js_standard/src/main/js/default/test/ListMultimodalinput.test.js b/multimodalinput/input_js_standard/src/main/js/default/test/ListMultimodalinput.test.js index 83408be00246d67e2f61d94cc0d3855a35494703..820c3badb29e0a9855e50962b30b858b65b209b3 100644 --- a/multimodalinput/input_js_standard/src/main/js/default/test/ListMultimodalinput.test.js +++ b/multimodalinput/input_js_standard/src/main/js/default/test/ListMultimodalinput.test.js @@ -16,4 +16,3 @@ require('./InputDevice.test.js') require('./MultimodalInputKey_Code.test.js') -require('./inputMonitor.test.js') diff --git a/multimodalinput/input_js_standard/src/main/js/default/test/MultimodalInputKey_Code.test.js b/multimodalinput/input_js_standard/src/main/js/default/test/MultimodalInputKey_Code.test.js index 2e07f2849b2bc2259552be7b0f07b72d67c45cae..db2126faa2c8db22c9710386a865f46e58faaaa2 100644 --- a/multimodalinput/input_js_standard/src/main/js/default/test/MultimodalInputKey_Code.test.js +++ b/multimodalinput/input_js_standard/src/main/js/default/test/MultimodalInputKey_Code.test.js @@ -25,7 +25,7 @@ import { describe('Multimodalinput_KeyCode_test', function () { - + it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0010', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0010 enter`); @@ -101,7 +101,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0100', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0100 enter`); - expect(inputkeyCode.KeyCode.KKEYCODE_MEDIA_FAST_FORWARD == 15).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_MEDIA_FAST_FORWARD == 15).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0100 exit`); }) @@ -302,7 +302,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0350', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0010 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_DPAD_CENTER = 2016).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_DPAD_CENTER == 2016).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0010 exit`); }) @@ -374,7 +374,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0440', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0010 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_I = 2025).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_I == 2025).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_0010 exit`); }) @@ -974,7 +974,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_119', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_119 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_F11 = 2100).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_F11 == 2100).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_119 exit`); }) @@ -1046,7 +1046,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_128', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_128 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_NUMPAD_6 = 2109).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_NUMPAD_6 == 2109).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_128 exit`); }) @@ -1174,7 +1174,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_144', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_144 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_ZENKAKU_HANKAKU = 2601).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_ZENKAKU_HANKAKU == 2601).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_144 exit`); }) @@ -1374,7 +1374,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_169', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_169 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_CALC = 2626).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_CALC == 2626).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_169 exit`); }) @@ -1427,22 +1427,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_175 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_176', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_176 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_STOPCD == 2632).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_176 exit`); - }) - - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_177', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_177 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_STOPCD == 2632).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_177 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_178', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_178 enter`); @@ -1499,14 +1483,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_184 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_185', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_185 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_NEW == 2640).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_185 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_186', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_186 enter`); @@ -1515,14 +1491,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_186 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_187', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_187 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_REDO == 2641).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_187 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_188', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_188 enter`); @@ -1547,14 +1515,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_190 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_191', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_191 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_BASSBOOST == 2644).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_191 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_192', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_192 enter`); @@ -1587,14 +1547,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_195 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_196', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_196 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_CANCEL == 2648).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_196 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_197', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_197 enter`); @@ -1635,14 +1587,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_201 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_202', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_202 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_REPLY == 2653).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_202 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_203', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_203 enter`); @@ -1651,14 +1595,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_203 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_204', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_204 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_FORWARDMAIL == 2654).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_204 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_205', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_205 enter`); @@ -1779,14 +1715,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_219 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_220', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_220 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_KEYBOARD == 2669).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_220 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_221', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_221 enter`); @@ -1819,14 +1747,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_224 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_225', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_225 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_TV2 == 2673).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_225 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_226', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_226 enter`); @@ -1851,14 +1771,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_228 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_229', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_229 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_SAT == 2676).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_229 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_230', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_230 enter`); @@ -1875,14 +1787,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_231 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_232', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_232 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_TAPE == 2678).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_232 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_232', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_232 enter`); @@ -1950,7 +1854,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_240', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_240 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_GREEN = 2687).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_GREEN == 2687).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_240 exit`); }) @@ -1979,14 +1883,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_243 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_244', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_244 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_CHANNELUP == 2690).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_244 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_245', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_245 enter`); @@ -2059,14 +1955,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_253 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_254', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_254 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_ZOOMOUT == 2699).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_254 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_255', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_255 enter`); @@ -2275,14 +2163,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_280 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_281', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_281 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_BRIGHTNESS_MAX == 2725).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_281 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_282', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_282 enter`); @@ -2355,22 +2235,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_290 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_291', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_291 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_WAKEUP == 2802).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_291 exit`); - }) - - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_292', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_292 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_WAKEUP == 2802).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_292 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_293', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_293 enter`); @@ -2403,14 +2267,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_296 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_297', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_297 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_PROG1 == 2806).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_297 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_298', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_298 enter`); @@ -2510,7 +2366,7 @@ describe('Multimodalinput_KeyCode_test', function () { it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_310', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_310 enter`); - expect(inputkeyCode.KeyCode.KEYCODE_F16 = 2819).assertTrue(); + expect(inputkeyCode.KeyCode.KEYCODE_F16 == 2819).assertTrue(); console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_310 exit`); }) @@ -2539,14 +2395,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_313 exit`); }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_314', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_314 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_F19 == 2822).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_314 exit`); - }) - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_315', 0, function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_315 enter`); @@ -2818,29 +2666,6 @@ describe('Multimodalinput_KeyCode_test', function () { console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_348 exit`); }) - - - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_349', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_349 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_ADDRESSBOOK == 2709).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_349 exit`); - }) - - - it('Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_350', 0, function () { - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_350 enter`); - - expect(inputkeyCode.KeyCode.KEYCODE_BRIGHTNESS_MAX == 2725).assertTrue(); - - console.log(`Multimodalinput_KeyCode_test::SUB_MMI_KeyCodeTest_350 exit`); - }) - - - - - }) diff --git a/multimodalinput/input_js_standard/src/main/js/default/test/inputMonitor.test.js b/multimodalinput/input_js_standard/src/main/js/default/test/inputMonitor.test.js deleted file mode 100644 index 97660853550fb0c6a844ca012da1aa0f500fa3bb..0000000000000000000000000000000000000000 --- a/multimodalinput/input_js_standard/src/main/js/default/test/inputMonitor.test.js +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import inputDevice from ' @ohos.multimodalInput.inputMonitor'; -import { - describe, - beforeAll, - beforeEach, - afterEach, - afterAll, - it, - expect -} from 'deccjsunit/index' - -describe('MultimodalInput_test', function () { - - - it("inputDevice::off-01", 0, function () { - - inputMonitor.on("touch",(event)=>{ - if(event){ - expect(true).assertTure(); - }else{ - expect(false).assertTrue(); - } - }) - inputMonitor.off("touch") - }) - - it("inputDevice::off-01", 0, function () { - - inputMonitor.on("mouse",(event)=>{ - if(event){ - expect(true).assertTure(); - }else{ - expect(false).assertTrue(); - } - }) - inputMonitor.off("touch") - }) - -}) \ No newline at end of file diff --git a/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_new.test.js b/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_new.test.js index 8e114c8743e7882b560453fcb3f262b5633fd303..ea26fd3ba39708253413ece20ee7242e032426af 100644 --- a/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_new.test.js +++ b/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_new.test.js @@ -1,278 +1,488 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import vibrator from '@system.vibrator'; - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' - -describe("VibratorJsTest_misc_2", function () { - beforeAll(function () { - - /* - * @tc.setup: setup invoked before all testcases - */ - console.info('beforeAll caled') - }) - - afterAll(function () { - - /* - * @tc.teardown: teardown invoked after all testcases - */ - console.info('afterAll caled') - }) - - beforeEach(function () { - - /* - * @tc.setup: setup invoked before each testcases - */ - console.info('beforeEach caled') - }) - - afterEach(function () { - - /* - * @tc.teardown: teardown invoked after each testcases - */ - console.info('afterEach caled') - }) - - let errMessages = ['Param number is invalid', 'Wrong argument type. function expected', - 'Wrong argument type', 'Wrong argument number'] - - let errMessage; - - /* - * @tc.name:SubVibratorJsTest0001 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0190 - */ - it("SubVibratorJsTest0001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { - console.info('----------------------SubVibratorJsTest0001---------------------------'); - vibrator.vibrate({ - mode: 'long', - success: function () { - console.info("SubVibratorJsTest0001 success"); - done(); - }, - fail: function (data, code) { - console.log("SubVibratorJsTest0001 is failed, data: " + data + ", code: " + code); - expect(false).assertTrue(); - }, - complete: function () { - console.log('SubVibratorJsTest0001 is completed'); - } - }); - }) - - /* - * @tc.name:SubVibratorJsTest0002 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0200 - */ - it("SubVibratorJsTest0002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0002---------------------------'); - vibrator.vibrate({ - mode: 'short', - success: function () { - console.info("SubVibratorJsTest0002 success"); - done(); - }, - fail: function (data, code) { - console.log("SubVibratorJsTest0002 is failed, data: " + data + ", code: " + code); - expect(false).assertTrue(); - }, - complete: function () { - console.log('SubVibratorJsTest0002 is completed'); - } - }); - }) - - /* - * @tc.name:SubVibratorJsTest0003 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0210 - */ - it("SubVibratorJsTest0003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0003---------------------------'); - vibrator.vibrate({ - mode: 'short', - success: function () { - console.info("SubVibratorJsTest0003 success"); - done(); - }, - fail: function (data, code) { - console.error('SubVibratorJsTest0003 failed. Code: ' + code + '; Data: ' + data); - expect(false).assertTrue(); - }, - }); - }) - - /* - * @tc.name:SubVibratorJsTest0004 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0220 - */ - it("SubVibratorJsTest0004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0004---------------------------'); - vibrator.vibrate({ - mode: 'short', - success: function () { - console.info("SubVibratorJsTest0004 success"); - done(); - }, - }); - }) - - /* - * @tc.name:SubVibratorJsTest0005 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0230 - */ - it("SubVibratorJsTest0005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0005---------------------------'); - vibrator.vibrate({ - success: function () { - console.info("SubVibratorJsTest0005 success"); - done(); - }, - fail: function (data, code) { - console.error('SubVibratorJsTest0005 failed. Code: ' + code + '; Data: ' + data); - expect(false).assertTrue(); - }, - }); - }) - - /* - * @tc.name:SubVibratorJsTest0006 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0240 - */ - it("SubVibratorJsTest0006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0006---------------------------'); - vibrator.vibrate({ - mode: 'long', - inInvalid: 2, - success: function () { - console.info("SubVibratorJsTest0006 success"); - done(); - }, - fail: function (data, code) { - console.error('SubVibratorJsTest0006 failed. Code: ' + code + '; Data: ' + data); - expect(false).assertTrue(); - }, - }); - }) - - /* - * @tc.name:SubVibratorJsTest0007 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0250 - */ - it("SubVibratorJsTest0007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0007---------------------------'); - try { - vibrator.vibrate({ - mode: 'short', - success: function () { - console.info("SubVibratorJsTest0007 success"); - expect(false).assertTrue(); - done(); - }, - }, 25); - } catch (error) { - errMessage = error.toString().slice(39); - console.info('SubVibratorJsTest0007 error:' + error); - expect(errMessage).assertEqual(errMessages[0]); - done(); - } - }) - - /* - * @tc.name:SubVibratorJsTest0008 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0260 - */ - it("SubVibratorJsTest0008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0008---------------------------'); - vibrator.vibrate({ - mode: 'short', - success: function () { - console.info("SubVibratorJsTest0008 success"); - }, - fail: function (data, code) { - console.error('SubVibratorJsTest0008 failed. Code: ' + code + '; Data: ' + data); - expect(false).assertTrue(); - }, - }); - vibrator.vibrate({ - mode: 'short', - success: function () { - console.info("SubVibratorJsTest0008_1 success"); - }, - fail: function (data, code) { - console.error('SubVibratorJsTest0008_1 failed. Code: ' + code + '; Data: ' + data); - expect(false).assertTrue(); - }, - }); - setTimeout(() => { - done(); - }, 500); - }) - - /* - * @tc.name:SubVibratorJsTest0009 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0270 - */ - it("SubVibratorJsTest0009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0009---------------------------'); - try { - vibrator.vibrate(); - } catch (error) { - errMessage = error.toString().slice(7); - console.info('SubVibratorJsTest0009 error:' + error); - expect(errMessage).assertEqual(errMessages[2]); - done(); - } - }) - - /* - * @tc.name:SubVibratorJsTest0010 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0280 - */ - it("SubVibratorJsTest0010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------SubVibratorJsTest0010---------------------------'); - try { - vibrator.vibrate({ - mode: 'short', - success: function () { - console.info("SubVibratorJsTest0010 success"); - expect(false).assertTrue(); - done(); - }, - }, function () { - }, 25); - } catch (error) { - errMessage = error.toString().slice(39); - console.info('SubVibratorJsTest0010 error:' + error); - expect(errMessage).assertEqual(errMessages[3]); - done(); - } - }) -}) - - \ No newline at end of file +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import vibrator from '@ohos.vibrator' + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' + +describe("VibratorJsTest_misc_2", function () { + beforeAll(function () { + + /* + * @tc.setup: setup invoked before all testcases + */ + console.info('beforeAll caled') + }) + + afterAll(function () { + + /* + * @tc.teardown: teardown invoked after all testcases + */ + console.info('afterAll caled') + }) + + beforeEach(function () { + + /* + * @tc.setup: setup invoked before each testcases + */ + console.info('beforeEach caled') + }) + + afterEach(function () { + + /* + * @tc.teardown: teardown invoked after each testcases + */ + console.info('afterEach caled') + }) + + /* + * @tc.name:VibratorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0010 + */ + it("VibratorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest001 vibrator error'); + expect(false).assertTrue(); + } else { + console.info('VibratorJsTest001 vibrator success'); + expect(true).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.vibrate(10, vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0020 + */ + it("VibratorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest002 vibrator success'); + expect(true).assertTrue(); + } else { + console.info('VibratorJsTest002 vibrator error'); + expect(false).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.vibrate(-1, vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0030 + */ + it("VibratorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest003 vibrator success'); + expect(true).assertTrue(); + } else { + console.info('VibratorJsTest003 vibrator error'); + expect(false).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.vibrate(1800000 + 1, vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0040 + */ + it("VibratorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest004 vibrator error'); + expect(false).assertTrue(); + } else { + console.info('VibratorJsTest004 vibrator success'); + expect(true).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.vibrate(1800000, vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0050 + */ + it("VibratorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest005 vibrator success'); + expect(true).assertTrue(); + } else { + console.info('VibratorJsTest005 vibrator error'); + expect(false).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.vibrate("", vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0060 + */ + it("VibratorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest006 vibrator success'); + expect(true).assertTrue(); + } else { + console.info('VibratorJsTest006 vibrator error'); + expect(false).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.vibrate("xxx", vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0070 + */ + it("VibratorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest007 vibrator error'); + expect(false).assertTrue(); + } else { + console.info('VibratorJsTest007 vibrator success'); + expect(true).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.vibrate("haptic.clock.timer", vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0080 + */ + it("VibratorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest008 stop error'); + expect(false).assertTrue(); + } else { + console.info('VibratorJsTest008 stop success'); + expect(true).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.stop(vibrator.VibratorStopMode.VIBRATOR_STOP_MODE_PRESET, vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0090 + */ + it("VibratorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------VibratorJsTest001---------------------------'); + function stopPromise() { + return new Promise((resolve, reject) => { + vibrator.stop("time", (error) => { + if (error) { + console.info('VibratorJsTest009 stop error'); + expect(false).assertTrue(); + setTimeout((err) => { + reject(err); + }, 500); + } else { + console.info('VibratorJsTest009 stop success'); + expect(true).assertTrue(); + setTimeout(() => { + resolve(); + }, 500); + } + }); + }) + } + + let promise = new Promise((resolve, reject) => { + vibrator.vibrate(180000, (error) => { + if (error) { + console.info('VibratorJsTest009 vibrate error'); + expect(false).assertTrue(); + setTimeout((err) => { + reject(err); + }, 500); + } else { + console.info('VibratorJsTest009 vibrate success'); + expect(true).assertTrue(); + setTimeout(() => { + resolve(); + }, 500); + } + }); + }) + + await promise.then(() => { + return stopPromise(); + }, () => { + console.info("VibratorJsTest009 reject"); + }) + done(); + }) + + /* + * @tc.name:VibratorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0100 + */ + it("VibratorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function vibrateCallback(error) { + if (error) { + console.info('VibratorJsTest010 stop success'); + expect(true).assertTrue(); + } else { + console.info('VibratorJsTest010 stop off'); + expect(false).assertTrue(); + } + setTimeout(() => { + done(); + }, 500); + } + vibrator.stop("", vibrateCallback); + }) + + /* + * @tc.name:VibratorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0110 + */ + it("VibratorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + vibrator.vibrate(1000).then(() => { + console.log("VibratorJsTest011 vibrate success"); + expect(true).assertTrue(); + setTimeout(() => { + done(); + }, 500); + }, (error) => { + expect(false).assertTrue(); + console.log("VibratorJsTest011 vibrate error"); + setTimeout(() => { + done(); + }, 500); + }); + }) + + /* + * @tc.name:VibratorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0120 + */ + it("VibratorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + vibrator.vibrate(-1).then(() => { + console.log("VibratorJsTest012 vibrate error"); + expect(false).assertTrue(); + setTimeout(() => { + done(); + }, 500); + }, (error) => { + expect(true).assertTrue(); + console.log("VibratorJsTest012 vibrate success"); + setTimeout(() => { + done(); + }, 500); + }); + }) + + /* + * @tc.name:VibratorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0130 + */ + it("VibratorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + vibrator.vibrate(1800000 + 1).then(() => { + console.log("VibratorJsTest013 vibrate error"); + expect(false).assertTrue(); + setTimeout(() => { + done(); + }, 500); + }, (error) => { + expect(true).assertTrue(); + console.log("VibratorJsTest013 vibrate success"); + setTimeout(() => { + done(); + }, 500); + }); + }) + + /* + * @tc.name:VibratorJsTest014 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0140 + */ + it("VibratorJsTest014", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + vibrator.vibrate(vibrator.EffectId.EFFECT_CLOCK_TIMER).then(() => { + console.log("VibratorJsTest014 vibrate success"); + expect(true).assertTrue(); + setTimeout(() => { + done(); + }, 500); + }, (error) => { + expect(false).assertTrue(); + console.log("VibratorJsTest014 vibrate error"); + setTimeout(() => { + done(); + }, 500); + }); + }) + + /* + * @tc.name:VibratorJsTest015 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0150 + */ + it("VibratorJsTest015", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + vibrator.vibrate("").then(() => { + console.log("VibratorJsTest015 vibrate error"); + expect(false).assertTrue(); + setTimeout(() => { + done(); + }, 500); + }, (error) => { + expect(true).assertTrue(); + console.log("VibratorJsTest015 vibrate success"); + setTimeout(() => { + done(); + }, 500); + }); + }) + + /* + * @tc.name:VibratorJsTest016 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0160 + */ + it("VibratorJsTest016", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + vibrator.stop("").then(() => { + console.log("VibratorJsTest016 stop error"); + expect(false).assertTrue(); + setTimeout(() => { + done(); + }, 500); + }, (error) => { + expect(true).assertTrue(); + console.log("VibratorJsTest016 stop success"); + setTimeout(() => { + done(); + }, 500); + }); + }) + + /* + * @tc.name:VibratorJsTest017 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0170 + */ + it("VibratorJsTest017", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + vibrator.stop("preset").then(() => { + console.log("VibratorJsTest017 off success"); + expect(true).assertTrue(); + setTimeout(() => { + done(); + }, 500); + }, (error) => { + expect(false).assertTrue(); + console.log("VibratorJsTest017 off error"); + setTimeout(() => { + done(); + }, 500); + }); + }) + + /* + * @tc.name:VibratorJsTest018 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0180 + */ + it("VibratorJsTest018", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + function stopPromise() { + return new Promise((resolve, reject) => { + vibrator.stop(vibrator.VibratorStopMode.VIBRATOR_STOP_MODE_TIME).then(() => { + console.log("VibratorJsTest018 stop success"); + expect(true).assertTrue(); + setTimeout(() => { + resolve(); + }, 500); + }, (error) => { + expect(false).assertTrue(); + console.log("VibratorJsTest018 stop error"); + setTimeout((err) => { + reject(err); + }, 500); + }); + }) + } + + let promise = new Promise((resolve, reject) => { + vibrator.vibrate(180000).then(() => { + console.log("VibratorJsTest018 vibrate success"); + expect(true).assertTrue(); + setTimeout(() => { + resolve(); + }, 500); + }, (error) => { + expect(false).assertTrue(); + console.log("VibratorJsTest018 vibrate error"); + setTimeout((err) => { + reject(err); + }, 500); + }); + }) + + await promise.then(() => { + return stopPromise(); + }, () => { + console.info("VibratorJsTest018 reject"); + }) + done(); + }) +}) diff --git a/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_old.test.js b/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_old.test.js index 14762c5b14015e247a8e28900ead6f53aa0365ab..efa1a14ef0aee8f261e850316c7600b494c5be14 100644 --- a/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_old.test.js +++ b/sensors/miscdevice_standard/src/main/js/default/test/Vibrator_old.test.js @@ -1,488 +1,278 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import vibrator from '@ohos.vibrator' - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' - -describe("VibratorJsTest_misc_1", function () { - beforeAll(function () { - - /* - * @tc.setup: setup invoked before all testcases - */ - console.info('beforeAll caled') - }) - - afterAll(function () { - - /* - * @tc.teardown: teardown invoked after all testcases - */ - console.info('afterAll caled') - }) - - beforeEach(function () { - - /* - * @tc.setup: setup invoked before each testcases - */ - console.info('beforeEach caled') - }) - - afterEach(function () { - - /* - * @tc.teardown: teardown invoked after each testcases - */ - console.info('afterEach caled') - }) - - /* - * @tc.name:VibratorJsTest001 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0010 - */ - it("VibratorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest001 vibrator error'); - expect(false).assertTrue(); - } else { - console.info('VibratorJsTest001 vibrator success'); - expect(true).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.vibrate(10, vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest002 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0020 - */ - it("VibratorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest002 vibrator success'); - expect(true).assertTrue(); - } else { - console.info('VibratorJsTest002 vibrator error'); - expect(false).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.vibrate(-1, vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest003 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0030 - */ - it("VibratorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest003 vibrator success'); - expect(true).assertTrue(); - } else { - console.info('VibratorJsTest003 vibrator error'); - expect(false).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.vibrate(1800000 + 1, vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest004 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0040 - */ - it("VibratorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest004 vibrator error'); - expect(false).assertTrue(); - } else { - console.info('VibratorJsTest004 vibrator success'); - expect(true).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.vibrate(1800000, vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest005 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0050 - */ - it("VibratorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest005 vibrator success'); - expect(true).assertTrue(); - } else { - console.info('VibratorJsTest005 vibrator error'); - expect(false).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.vibrate("", vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest006 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0060 - */ - it("VibratorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest006 vibrator success'); - expect(true).assertTrue(); - } else { - console.info('VibratorJsTest006 vibrator error'); - expect(false).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.vibrate("xxx", vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest007 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0070 - */ - it("VibratorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest007 vibrator error'); - expect(false).assertTrue(); - } else { - console.info('VibratorJsTest007 vibrator success'); - expect(true).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.vibrate("haptic.clock.timer", vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest008 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0080 - */ - it("VibratorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest008 stop error'); - expect(false).assertTrue(); - } else { - console.info('VibratorJsTest008 stop success'); - expect(true).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.stop(vibrator.VibratorStopMode.VIBRATOR_STOP_MODE_PRESET, vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest009 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0090 - */ - it("VibratorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - console.info('----------------------VibratorJsTest001---------------------------'); - function stopPromise() { - return new Promise((resolve, reject) => { - vibrator.stop("time", (error) => { - if (error) { - console.info('VibratorJsTest009 stop error'); - expect(false).assertTrue(); - setTimeout((err) => { - reject(err); - }, 500); - } else { - console.info('VibratorJsTest009 stop success'); - expect(true).assertTrue(); - setTimeout(() => { - resolve(); - }, 500); - } - }); - }) - } - - let promise = new Promise((resolve, reject) => { - vibrator.vibrate(180000, (error) => { - if (error) { - console.info('VibratorJsTest009 vibrate error'); - expect(false).assertTrue(); - setTimeout((err) => { - reject(err); - }, 500); - } else { - console.info('VibratorJsTest009 vibrate success'); - expect(true).assertTrue(); - setTimeout(() => { - resolve(); - }, 500); - } - }); - }) - - await promise.then(() => { - return stopPromise(); - }, () => { - console.info("VibratorJsTest009 reject"); - }) - done(); - }) - - /* - * @tc.name:VibratorJsTest010 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0100 - */ - it("VibratorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function vibrateCallback(error) { - if (error) { - console.info('VibratorJsTest010 stop success'); - expect(true).assertTrue(); - } else { - console.info('VibratorJsTest010 stop off'); - expect(false).assertTrue(); - } - setTimeout(() => { - done(); - }, 500); - } - vibrator.stop("", vibrateCallback); - }) - - /* - * @tc.name:VibratorJsTest011 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0110 - */ - it("VibratorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - vibrator.vibrate(1000).then(() => { - console.log("VibratorJsTest011 vibrate success"); - expect(true).assertTrue(); - setTimeout(() => { - done(); - }, 500); - }, (error) => { - expect(false).assertTrue(); - console.log("VibratorJsTest011 vibrate error"); - setTimeout(() => { - done(); - }, 500); - }); - }) - - /* - * @tc.name:VibratorJsTest012 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0120 - */ - it("VibratorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - vibrator.vibrate(-1).then(() => { - console.log("VibratorJsTest012 vibrate error"); - expect(false).assertTrue(); - setTimeout(() => { - done(); - }, 500); - }, (error) => { - expect(true).assertTrue(); - console.log("VibratorJsTest012 vibrate success"); - setTimeout(() => { - done(); - }, 500); - }); - }) - - /* - * @tc.name:VibratorJsTest013 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0130 - */ - it("VibratorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - vibrator.vibrate(1800000 + 1).then(() => { - console.log("VibratorJsTest013 vibrate error"); - expect(false).assertTrue(); - setTimeout(() => { - done(); - }, 500); - }, (error) => { - expect(true).assertTrue(); - console.log("VibratorJsTest013 vibrate success"); - setTimeout(() => { - done(); - }, 500); - }); - }) - - /* - * @tc.name:VibratorJsTest014 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0140 - */ - it("VibratorJsTest014", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - vibrator.vibrate(vibrator.EffectId.EFFECT_CLOCK_TIMER).then(() => { - console.log("VibratorJsTest014 vibrate success"); - expect(true).assertTrue(); - setTimeout(() => { - done(); - }, 500); - }, (error) => { - expect(false).assertTrue(); - console.log("VibratorJsTest014 vibrate error"); - setTimeout(() => { - done(); - }, 500); - }); - }) - - /* - * @tc.name:VibratorJsTest015 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0150 - */ - it("VibratorJsTest015", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - vibrator.vibrate("").then(() => { - console.log("VibratorJsTest015 vibrate error"); - expect(false).assertTrue(); - setTimeout(() => { - done(); - }, 500); - }, (error) => { - expect(true).assertTrue(); - console.log("VibratorJsTest015 vibrate success"); - setTimeout(() => { - done(); - }, 500); - }); - }) - - /* - * @tc.name:VibratorJsTest016 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0160 - */ - it("VibratorJsTest016", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - vibrator.stop("").then(() => { - console.log("VibratorJsTest016 stop error"); - expect(false).assertTrue(); - setTimeout(() => { - done(); - }, 500); - }, (error) => { - expect(true).assertTrue(); - console.log("VibratorJsTest016 stop success"); - setTimeout(() => { - done(); - }, 500); - }); - }) - - /* - * @tc.name:VibratorJsTest017 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0170 - */ - it("VibratorJsTest017", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - vibrator.stop("preset").then(() => { - console.log("VibratorJsTest017 off success"); - expect(true).assertTrue(); - setTimeout(() => { - done(); - }, 500); - }, (error) => { - expect(false).assertTrue(); - console.log("VibratorJsTest017 off error"); - setTimeout(() => { - done(); - }, 500); - }); - }) - - /* - * @tc.name:VibratorJsTest018 - * @tc.desc:verify app info is not null - * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0180 - */ - it("VibratorJsTest018", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { - function stopPromise() { - return new Promise((resolve, reject) => { - vibrator.stop(vibrator.VibratorStopMode.VIBRATOR_STOP_MODE_TIME).then(() => { - console.log("VibratorJsTest018 stop success"); - expect(true).assertTrue(); - setTimeout(() => { - resolve(); - }, 500); - }, (error) => { - expect(false).assertTrue(); - console.log("VibratorJsTest018 stop error"); - setTimeout((err) => { - reject(err); - }, 500); - }); - }) - } - - let promise = new Promise((resolve, reject) => { - vibrator.vibrate(180000).then(() => { - console.log("VibratorJsTest018 vibrate success"); - expect(true).assertTrue(); - setTimeout(() => { - resolve(); - }, 500); - }, (error) => { - expect(false).assertTrue(); - console.log("VibratorJsTest018 vibrate error"); - setTimeout((err) => { - reject(err); - }, 500); - }); - }) - - await promise.then(() => { - return stopPromise(); - }, () => { - console.info("VibratorJsTest018 reject"); - }) - done(); - }) -}) +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import vibrator from '@system.vibrator'; + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' + +describe("VibratorJsTest_misc_1", function () { + beforeAll(function () { + + /* + * @tc.setup: setup invoked before all testcases + */ + console.info('beforeAll caled') + }) + + afterAll(function () { + + /* + * @tc.teardown: teardown invoked after all testcases + */ + console.info('afterAll caled') + }) + + beforeEach(function () { + + /* + * @tc.setup: setup invoked before each testcases + */ + console.info('beforeEach caled') + }) + + afterEach(function () { + + /* + * @tc.teardown: teardown invoked after each testcases + */ + console.info('afterEach caled') + }) + + let errMessages = ['Param number is invalid', 'Wrong argument type. function expected', + 'Wrong argument type', 'Wrong argument number'] + + let errMessage; + + /* + * @tc.name:SubVibratorJsTest0001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0190 + */ + it("SubVibratorJsTest0001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { + console.info('----------------------SubVibratorJsTest0001---------------------------'); + vibrator.vibrate({ + mode: 'long', + success: function () { + console.info("SubVibratorJsTest0001 success"); + done(); + }, + fail: function (data, code) { + console.log("SubVibratorJsTest0001 is failed, data: " + data + ", code: " + code); + expect(false).assertTrue(); + }, + complete: function () { + console.log('SubVibratorJsTest0001 is completed'); + } + }); + }) + + /* + * @tc.name:SubVibratorJsTest0002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0200 + */ + it("SubVibratorJsTest0002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0002---------------------------'); + vibrator.vibrate({ + mode: 'short', + success: function () { + console.info("SubVibratorJsTest0002 success"); + done(); + }, + fail: function (data, code) { + console.log("SubVibratorJsTest0002 is failed, data: " + data + ", code: " + code); + expect(false).assertTrue(); + }, + complete: function () { + console.log('SubVibratorJsTest0002 is completed'); + } + }); + }) + + /* + * @tc.name:SubVibratorJsTest0003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0210 + */ + it("SubVibratorJsTest0003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0003---------------------------'); + vibrator.vibrate({ + mode: 'short', + success: function () { + console.info("SubVibratorJsTest0003 success"); + done(); + }, + fail: function (data, code) { + console.error('SubVibratorJsTest0003 failed. Code: ' + code + '; Data: ' + data); + expect(false).assertTrue(); + }, + }); + }) + + /* + * @tc.name:SubVibratorJsTest0004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0220 + */ + it("SubVibratorJsTest0004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0004---------------------------'); + vibrator.vibrate({ + mode: 'short', + success: function () { + console.info("SubVibratorJsTest0004 success"); + done(); + }, + }); + }) + + /* + * @tc.name:SubVibratorJsTest0005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0230 + */ + it("SubVibratorJsTest0005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0005---------------------------'); + vibrator.vibrate({ + success: function () { + console.info("SubVibratorJsTest0005 success"); + done(); + }, + fail: function (data, code) { + console.error('SubVibratorJsTest0005 failed. Code: ' + code + '; Data: ' + data); + expect(false).assertTrue(); + }, + }); + }) + + /* + * @tc.name:SubVibratorJsTest0006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0240 + */ + it("SubVibratorJsTest0006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0006---------------------------'); + vibrator.vibrate({ + mode: 'long', + inInvalid: 2, + success: function () { + console.info("SubVibratorJsTest0006 success"); + done(); + }, + fail: function (data, code) { + console.error('SubVibratorJsTest0006 failed. Code: ' + code + '; Data: ' + data); + expect(false).assertTrue(); + }, + }); + }) + + /* + * @tc.name:SubVibratorJsTest0007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0250 + */ + it("SubVibratorJsTest0007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0007---------------------------'); + try { + vibrator.vibrate({ + mode: 'short', + success: function () { + console.info("SubVibratorJsTest0007 success"); + expect(false).assertTrue(); + done(); + }, + }, 25); + } catch (error) { + errMessage = error.toString().slice(39); + console.info('SubVibratorJsTest0007 error:' + error); + expect(errMessage).assertEqual(errMessages[0]); + done(); + } + }) + + /* + * @tc.name:SubVibratorJsTest0008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0260 + */ + it("SubVibratorJsTest0008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0008---------------------------'); + vibrator.vibrate({ + mode: 'short', + success: function () { + console.info("SubVibratorJsTest0008 success"); + }, + fail: function (data, code) { + console.error('SubVibratorJsTest0008 failed. Code: ' + code + '; Data: ' + data); + expect(false).assertTrue(); + }, + }); + vibrator.vibrate({ + mode: 'short', + success: function () { + console.info("SubVibratorJsTest0008_1 success"); + }, + fail: function (data, code) { + console.error('SubVibratorJsTest0008_1 failed. Code: ' + code + '; Data: ' + data); + expect(false).assertTrue(); + }, + }); + setTimeout(() => { + done(); + }, 500); + }) + + /* + * @tc.name:SubVibratorJsTest0009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0270 + */ + it("SubVibratorJsTest0009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0009---------------------------'); + try { + vibrator.vibrate(); + } catch (error) { + errMessage = error.toString().slice(7); + console.info('SubVibratorJsTest0009 error:' + error); + expect(errMessage).assertEqual(errMessages[2]); + done(); + } + }) + + /* + * @tc.name:SubVibratorJsTest0010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorSystem_Vibrator_JsTest_0280 + */ + it("SubVibratorJsTest0010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('----------------------SubVibratorJsTest0010---------------------------'); + try { + vibrator.vibrate({ + mode: 'short', + success: function () { + console.info("SubVibratorJsTest0010 success"); + expect(false).assertTrue(); + done(); + }, + }, function () { + }, 25); + } catch (error) { + errMessage = error.toString().slice(39); + console.info('SubVibratorJsTest0010 error:' + error); + expect(errMessage).assertEqual(errMessages[3]); + done(); + } + }) +}) + + \ No newline at end of file diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorGeneralalgorithm.test.js b/sensors/sensor_standard/src/main/js/default/test/SensorGeneralalgorithm.test.js old mode 100755 new mode 100644 index 198f90af4ca4d17f20c464190fde95e6440b3ad6..373898450e99be3d295eea077029fb605b183ae1 --- a/sensors/sensor_standard/src/main/js/default/test/SensorGeneralalgorithm.test.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorGeneralalgorithm.test.js @@ -115,13 +115,12 @@ describe("SensorJsTest_sensor_1", function () { [30, 25, 41], [3, 2, 4], [-123, -456, -564], [3.40282e+38, 3.40282e+38, 3.40282e+38], [NaN, NaN, NaN] ] - /** - * test - * - * @tc.name: SensorJsTest_068 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_068 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0010 */ - it('SensorJsTest_068', 0, async function (done) { + it('SensorJsTest_068', FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { sensor.createRotationMatrix(gravity[0], geomagnetic[0], (error, data) => { if (error) { console.info('SensorJsTest_068 failed'); @@ -134,14 +133,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_069 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_069 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0020 */ - - it('SensorJsTest_069', 0, async function (done) { + it('SensorJsTest_069', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.createRotationMatrix(gravity[2], geomagnetic[2], (error, data) => { if (error) { console.info('SensorJsTest_069 failed'); @@ -154,13 +151,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_070 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_070 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0030 */ - it('SensorJsTest_070', 0, async function (done) { + it('SensorJsTest_070', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.getDirection(rotationMatrix[0], (error, data) => { if (error) { console.info('SensorJsTest_070 failed'); @@ -175,13 +171,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_071 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_071 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0040 */ - it('SensorJsTest_071', 0, async function (done) { + it('SensorJsTest_071', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.getDirection(rotationMatrix[1], function (error, data) { if (error) { console.info('SensorJsTest_071 failed'); @@ -196,13 +191,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_072 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_072 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0050 */ - it('SensorJsTest_072', 0, async function (done) { + it('SensorJsTest_072', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.createRotationMatrix(gravity[0], geomagnetic[0]).then((data) => { console.info("SensorJsTest_072" + JSON.stringify(data)) expect(JSON.stringify(data)).assertEqual(JSON.stringify(SENSOR_DATA_MATRIX[0])) @@ -213,13 +207,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_073 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_073 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0060 */ - it('SensorJsTest_073', 0, async function (done) { + it('SensorJsTest_073', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.createRotationMatrix(gravity[1], geomagnetic[1]).then((data) => { console.info("SensorJsTest_073" + JSON.stringify(data)) expect(JSON.stringify(data)).assertEqual(JSON.stringify(SENSOR_DATA_MATRIX[1])) @@ -230,13 +223,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_074 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_074 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0070 */ - it('SensorJsTest_074', 0, async function (done) { + it('SensorJsTest_074', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.createRotationMatrix(gravity[2], geomagnetic[2]).then((data) => { console.info("SensorJsTest_074" + JSON.stringify(data)) expect(JSON.stringify(data)).assertEqual(JSON.stringify(SENSOR_DATA_MATRIX[2])) @@ -247,13 +239,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_075 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_075 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0080 */ - it('SensorJsTest_075', 0, async function (done) { + it('SensorJsTest_075', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.getDirection(rotationMatrix[0]).then((data) => { for (let i = 0; i < data.length; i++) { console.info("SensorJsTest_075" + data[i]) @@ -266,13 +257,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_076 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_076 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0090 */ - it('SensorJsTest_076', 0, async function (done) { + it('SensorJsTest_076', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.getDirection(rotationMatrix[1]).then((data) => { for (let i = 0; i < data.length; i++) { console.info("SensorJsTest_076" + data[i]) @@ -285,13 +275,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_077 - * @tc.desc: Verification results of the incorrect parameters of the test interface. + /* + * @tc.name:SensorJsTest_077 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0100 */ - it('SensorJsTest_077', 0, async function (done) { + it('SensorJsTest_077', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.getDirection([1, 2, 3, 1, 2, 3, 1, 2, 3, 0]).then((data) => { for (let i = 0; i < data.length; i++) { console.info("SensorJsTest_077 failed") @@ -312,13 +301,12 @@ describe("SensorJsTest_sensor_1", function () { [0.7853981852531433, NaN, -0.7853981852531433], //FLOAT.MAXVALUE+1 ]; - /** - * test - * - * @tc.name: SensorJsTest_078 - * @tc.desc: + /* + * @tc.name:SensorJsTest_078 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0110 */ - it('SensorJsTest_078', 0, async function (done) { + it('SensorJsTest_078', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_078"); sensor.getAngleModify([1, 2, 3, 1, 2, 3, 1, 2, 3], [2, 2, 2, 2, 2, 2, 2, 2, 2], function (error, data) { if (error) { @@ -336,13 +324,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_079 - * @tc.desc: + /* + * @tc.name:SensorJsTest_079 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0120 */ - it('SensorJsTest_079', 0, async function (done) { + it('SensorJsTest_079', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_079"); sensor.getAngleModify([3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38], @@ -364,13 +351,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_080 - * @tc.desc: + /* + * @tc.name:SensorJsTest_080 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0130 */ - it('SensorJsTest_080', 0, async function (done) { + it('SensorJsTest_080', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_080"); sensor.getAngleModify([1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38], @@ -392,13 +378,12 @@ describe("SensorJsTest_sensor_1", function () { }); }) - /** - * test - * - * @tc.name: SensorJsTest_081 - * @tc.desc: + /* + * @tc.name:SensorJsTest_081 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0140 */ - it('SensorJsTest_081', 0, async function (done) { + it('SensorJsTest_081', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_081"); sensor.getAngleModify([3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1], @@ -420,13 +405,12 @@ describe("SensorJsTest_sensor_1", function () { }); }) - /** - * test - * - * @tc.name: SensorJsTest_082 - * @tc.desc: + /* + * @tc.name:SensorJsTest_082 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0150 */ - it('SensorJsTest_082', 0, async function (done) { + it('SensorJsTest_082', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_082"); sensor.getAngleModify([0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0], @@ -445,13 +429,12 @@ describe("SensorJsTest_sensor_1", function () { }); }) - /** - * test - * - * @tc.name: SensorJsTest_083 - * @tc.desc: + /* + * @tc.name:SensorJsTest_083 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0160 */ - it('SensorJsTest_083', 0, async function (done) { + it('SensorJsTest_083', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_083"); sensor.getAngleModify([1, 2, 3, 1, 2, 3, 1, 2, 3], [2, 2, 2, 2, 2, 2, 2, 2, 2]).then((data) => { console.info("SensorJsAPI--->SensorJsTest_083"); @@ -468,13 +451,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_084 - * @tc.desc: + /* + * @tc.name:SensorJsTest_084 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0170 */ - it('SensorJsTest_084', 0, async function (done) { + it('SensorJsTest_084', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_084"); sensor.getAngleModify([3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38], @@ -494,13 +476,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_085 - * @tc.desc: + /* + * @tc.name:SensorJsTest_085 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0180 */ - it('SensorJsTest_085', 0, async function (done) { + it('SensorJsTest_085', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_085"); sensor.getAngleModify([1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38, 1.17549e-38], @@ -520,13 +501,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_086 - * @tc.desc: + /* + * @tc.name:SensorJsTest_086 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0190 */ - it('SensorJsTest_086', 0, async function (done) { + it('SensorJsTest_086', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_076"); sensor.getAngleModify([3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1, 3.40282e+38 + 1], @@ -546,13 +526,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /** - * test - * - * @tc.name: SensorJsTest_087 - * @tc.desc: + /* + * @tc.name:SensorJsTest_087 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0200 */ - it('SensorJsTest_087', 0, async function (done) { + it('SensorJsTest_087', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsAPI--->SensorJsTest_087"); sensor.getAngleModify([0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0, 0.0 / 0.0], @@ -579,10 +558,11 @@ describe("SensorJsTest_sensor_1", function () { ] /* - * @tc.name: SensorJsTest_088 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_088', 0, async function (done) { + * @tc.name:SensorJsTest_088 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0210 + */ + it('SensorJsTest_088', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_088 start') sensor.createQuaternion([0.52, -0.336, -0.251], (error, data) => { console.info('SensorJsTest_088' + 'length:' + data.length); @@ -599,11 +579,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /* - * @tc.name: SensorJsTest_089 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_089', 0, async function (done) { + /* + * @tc.name:SensorJsTest_089 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0220 + */ + it('SensorJsTest_089', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_089 start') sensor.createQuaternion([3.40282e+38, 3.40282e+38, 3.40282e+38], (error, data) => { if (error) { @@ -620,10 +601,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * @tc.name: SensorJsTest_090 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_090', 0, async function (done) { + * @tc.name:SensorJsTest_090 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0230 + */ + it('SensorJsTest_090', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_090 start') sensor.createQuaternion([0, 0, 0], (error, data) => { if (error) { @@ -640,11 +622,12 @@ describe("SensorJsTest_sensor_1", function () { console.info("SensorJsTest_090 end") }) - /* - * @tc.name: SensorJsTest_091 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_091', 0, async function (done) { + /* + * @tc.name:SensorJsTest_091 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0240 + */ + it('SensorJsTest_091', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_091 start') sensor.createQuaternion([-0.325, -0.562, -0.25], (error, data) => { if (error) { @@ -662,10 +645,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * @tc.name: SensorJsTest_092 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_092', 0, async function (done) { + * @tc.name:SensorJsTest_092 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0250 + */ + it('SensorJsTest_092', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_092 start') sensor.createQuaternion([0.25, 0.14], (error, data) => { if (error) { @@ -679,11 +663,12 @@ describe("SensorJsTest_sensor_1", function () { console.info("SensorJsTest_092 end") }) - /* - * @tc.name: SensorJsTest_093 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_093', 0, async function (done) { + /* + * @tc.name:SensorJsTest_093 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0260 + */ + it('SensorJsTest_093', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_093 start') sensor.createQuaternion([0.52, -0.336, -0.251]).then((data) => { console.info('SensorJsTest_093'); @@ -700,11 +685,12 @@ describe("SensorJsTest_sensor_1", function () { console.info("SensorJsTest_093 end") }) - /* - * @tc.name: SensorJsTest_094 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_094', 0, async function (done) { + /* + * @tc.name:SensorJsTest_094 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0270 + */ + it('SensorJsTest_094', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_094 start') sensor.createQuaternion([0, 0]).then((data) => { console.info('SensorJsTest_094'); @@ -719,10 +705,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * @tc.name: SensorJsTest_095 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_095', 0, async function (done) { + * @tc.name:SensorJsTest_095 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0280 + */ + it('SensorJsTest_095', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_095 start') sensor.createQuaternion([0, 0, 0]).then((data) => { console.info('SensorJsTest_095'); @@ -740,10 +727,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * @tc.name: SensorJsTest_096 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_096', 0, async function (done) { + * @tc.name:SensorJsTest_096 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0290 + */ + it('SensorJsTest_096', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_096 start') sensor.createQuaternion([-0.325, -0.562, -0.25]).then((data) => { console.info('SensorJsTest_096'); @@ -760,10 +748,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * @tc.name: SensorJsTest_097 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_097', 0, async function (done) { + * @tc.name:SensorJsTest_097 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0300 + */ + it('SensorJsTest_097', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_097 start') sensor.createQuaternion([0.25, 0.14]).then((data) => { console.info('SensorJsTest_097'); @@ -783,10 +772,11 @@ describe("SensorJsTest_sensor_1", function () { ] /* - * @tc.name: SensorJsTest_098 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_098', 0, async function (done) { + * @tc.name:SensorJsTest_098 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0310 + */ + it('SensorJsTest_098', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("SensorJsTest_098 start"); sensor.createRotationMatrix([-0.0245, 0.402, 0.0465], (error, data) => { console.info("SensorJsTest_098"); @@ -804,11 +794,12 @@ describe("SensorJsTest_sensor_1", function () { console.info(LABEL + "SensorJsTest_098 end"); }) - /* - * tc.name: SensorJsTest_099 - * tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_099', 0, async function (done) { + /* + * @tc.name:SensorJsTest_099 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0320 + */ + it('SensorJsTest_099', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_099 start') sensor.createRotationMatrix([-0.0245, 0.402, 0.0465]).then((data) => { for (let i = 0; i < data.length; i++) { @@ -825,10 +816,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * tc.name: SensorJsTest_100 - * tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_100', 0, async function (done) { + * @tc.name:SensorJsTest_100 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0330 + */ + it('SensorJsTest_100', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_100 start') sensor.createRotationMatrix([0, 0, 0]).then((data) => { for (let i = 0; i < data.length; i++) { @@ -846,11 +838,12 @@ describe("SensorJsTest_sensor_1", function () { let getGeomagneticDipResult = [0.8760581016540527, 0.862170, -Infinity, 44330] - /* - * @tc.name: SensorJsTest_101 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_101', 0, async function (done) { + /* + * @tc.name:SensorJsTest_101 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0340 + */ + it('SensorJsTest_101', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_101 start') sensor.getGeomagneticDip([1, 2, 3, 4, 5, 6, 7, 8, 9], (error, data) => { if (error) { @@ -866,11 +859,12 @@ describe("SensorJsTest_sensor_1", function () { console.info("SensorJsTest_101 end") }) - /* - * @tc.name: SensorJsTest_102 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_102', 0, async function (done) { + /* + * @tc.name:SensorJsTest_102 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0350 + */ + it('SensorJsTest_102', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_102 start') sensor.getGeomagneticDip([1, 2, 3, 4], (error, data) => { if (error) { @@ -885,11 +879,12 @@ describe("SensorJsTest_sensor_1", function () { console.info("SensorJsTest_102 end") }) - /* - * @tc.name: SensorJsTest_103 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_103', 0, async function (done) { + /* + * @tc.name:SensorJsTest_103 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0360 + */ + it('SensorJsTest_103', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_103 start') sensor.getAltitude(0, 100, (error, data) => { if (error) { @@ -904,11 +899,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /* - * @tc.name: SensorJsTest_104 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_104', 0, async function (done) { + /* + * @tc.name:SensorJsTest_104 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0370 + */ + it('SensorJsTest_104', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SensorJsTest_104 start') sensor.getAltitude(5, 0, (error, data) => { if (error) { @@ -924,10 +920,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * @tc.name: SensorJsTest_105 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_105', 0, async function (done) { + * @tc.name:SensorJsTest_105 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0380 + */ + it('SensorJsTest_105', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.getAltitude(0, 100).then((data) => { console.info("SensorJsTest_104" + data) expect(data).assertEqual(getGeomagneticDipResult[2]) @@ -940,10 +937,11 @@ describe("SensorJsTest_sensor_1", function () { }) /* - * @tc.name: SensorJsTest_106 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_106', 0, async function (done) { + * @tc.name:SensorJsTest_106 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0390 + */ + it('SensorJsTest_106', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.getAltitude(5, 0).then((data) => { console.info("SensorJsTest_104" + data) expect(data).assertEqual(getGeomagneticDipResult[3]) @@ -965,11 +963,12 @@ describe("SensorJsTest_sensor_1", function () { 340282001837565600000000000000000000000.000000], [Infinity, -Infinity, Infinity, Infinity, -Infinity, Infinity, Infinity, -Infinity, Infinity]] - /* - * @tc.name: SensorJsTest_107 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_107', 0, async function (done) { + /* + * @tc.name:SensorJsTest_107 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0400 + */ + it('SensorJsTest_107', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_107----------------------------------"); sensor.transformCoordinateSystem([1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5], { 'axisX': 1, @@ -986,11 +985,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /* - * @tc.name: SensorJsTest_108 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it('SensorJsTest_108', 0, async function (done) { + /* + * @tc.name:SensorJsTest_108 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0410 + */ + it('SensorJsTest_108', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_108----------------------------------"); sensor.transformCoordinateSystem([3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38, 3.40282e+38], { 'axisX': 1, 'axisY': 2 }, (error, data) => { @@ -1005,11 +1005,12 @@ describe("SensorJsTest_sensor_1", function () { }) }) - /* - * @tc.name: SensorJsTest_109 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it("SensorJsTest_109", 0, async function (done) { + /* + * @tc.name:SensorJsTest_109 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0420 + */ + it("SensorJsTest_109", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_109----------------------------------"); sensor.transformCoordinateSystem([1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5], { 'axisX': 1, @@ -1027,11 +1028,12 @@ describe("SensorJsTest_sensor_1", function () { }); }) - /* - * @tc.name: SensorJsTest_110 - * @tc.desc: Verfication results of the incorrect parameters of test interface. - */ - it("SensorJsTest_110", 0, async function (done) { + /* + * @tc.name:SensorJsTest_110 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + * @tc.number:SUB_SensorsSystem_GeneralAlgorithm_JsTest_0430 + */ + it("SensorJsTest_110", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info("---------------------------SensorJsTest_110----------------------------------"); sensor.transformCoordinateSystem([3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39, 3.40282e+39], { 'axisX': 1, 'axisY': 3 }).then((data) => { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorGeomagneticTest.test.js b/sensors/sensor_standard/src/main/js/default/test/SensorGeomagneticTest.test.js old mode 100755 new mode 100644 index e468af38ad4a81c9ef3f3b6799f0632790b627f0..c4b734c2639242bd2fc6737cf3d52034fcd903ea --- a/sensors/sensor_standard/src/main/js/default/test/SensorGeomagneticTest.test.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorGeomagneticTest.test.js @@ -13,6 +13,7 @@ * limitations under the License. */ import sensor from '@ohos.sensor' + import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' describe("SensorJsTest_sensor_2", function () { @@ -81,12 +82,12 @@ describe("SensorJsTest_sensor_2", function () { let timeMillis = [1580486400000, 1612108800000, 1643644800000, 1675180800000, 1706716800000] /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0010 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0010 * @tc.name: SensorGeomagenticAlgorithmJSTest001 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0010', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0010-------------------------"); + it('SensorGeomagenticAlgorithmJSTest001', FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest001-------------------------"); let promiseArray = [] for (let i = 0; i < timeMillis.length; i++) { promiseArray.push(new Promise((resolve, reject) => { @@ -122,12 +123,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0020 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0020 * @tc.name: SensorGeomagenticAlgorithmJSTest002 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0020', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0020-------------------------"); + it('SensorGeomagenticAlgorithmJSTest002', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest002-------------------------"); let promiseArray = [] for (let i = 0; i < GEOMAGNETIC_COORDINATES.length; i++) { promiseArray.push(new Promise((resolve, reject) => { @@ -166,12 +167,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0030 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0030 * @tc.name: SensorGeomagenticAlgorithmJSTest003 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0030', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0030-------------------------"); + it('SensorGeomagenticAlgorithmJSTest003', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest003-------------------------"); let geomagneticComponent = [-1417119616, 23146989568, -6406359552, -15.442885398864746, 93.50342559814453, 23190329344, 24058943488] sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': 0 }, Number.MAX_VALUE, @@ -199,12 +200,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0040 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0040 * @tc.name: SensorGeomagenticAlgorithmJSTest004 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0040', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0040-------------------------"); + it('SensorGeomagenticAlgorithmJSTest004', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest004-------------------------"); let geomagneticComponent = [27779.234375, -6214.9794921875, -14924.6611328125, -27.667943954467773, -12.610970497131348, 28465.9765625, 32141.2109375] sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': 0 }, Number.MIN_VALUE, @@ -233,12 +234,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0050 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0050 * @tc.name: SensorGeomagenticAlgorithmJSTest005 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0050', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0050-------------------------"); + it('SensorGeomagenticAlgorithmJSTest005', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest005-------------------------"); let geomagneticComponent = [1824.141845703125, 116.58167266845703, 56727.7734375, 88.15447235107422, 3.6568238735198975, 1827.8634033203125, 56757.21484375] sensor.getGeomagneticField({ 'latitude': Number.MAX_VALUE, 'longitude': 0, 'altitude': 0 }, @@ -266,12 +267,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0060 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0060 * @tc.name: SensorGeomagenticAlgorithmJSTest006 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0060', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0060-------------------------"); + it('SensorGeomagenticAlgorithmJSTest006', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest006-------------------------"); let geomagneticComponent = [1824.141845703125, 116.58167266845703, 56727.7734375, 88.15447235107422, 3.6568238735198975, 1827.8634033203125, 56757.21484375] sensor.getGeomagneticField({ 'latitude': Number.NaN, 'longitude': 0, 'altitude': 0 }, timeMillis[0], @@ -299,12 +300,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0070 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0070 * @tc.name: SensorGeomagenticAlgorithmJSTest007 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0070', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0070-------------------------"); + it('SensorGeomagenticAlgorithmJSTest007', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest007-------------------------"); let geomagneticComponent = [14425.57421875, -17156.767578125, -52023.21484375, -66.69005584716797, -49.94255447387695, 22415.4375, 56646.859375] sensor.getGeomagneticField({ 'latitude': Number.NEGATIVE_INFINITY, 'longitude': 0, 'altitude': 0 }, @@ -333,12 +334,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0080 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0080 * @tc.name: SensorGeomagenticAlgorithmJSTest008 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0080', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0080-------------------------"); + it('SensorGeomagenticAlgorithmJSTest008', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest008-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.MAX_VALUE, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -359,12 +360,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0090 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0090 * @tc.name: SensorGeomagenticAlgorithmJSTest009 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0090', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0090-------------------------"); + it('SensorGeomagenticAlgorithmJSTest009', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest009-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NaN, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -385,12 +386,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0100 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0100 * @tc.name: SensorGeomagenticAlgorithmJSTest010 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0100', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0100-------------------------"); + it('SensorGeomagenticAlgorithmJSTest010', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest010-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NEGATIVE_INFINITY, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -411,12 +412,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0110 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0110 * @tc.name: SensorGeomagenticAlgorithmJSTest011 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0110', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0110-------------------------"); + it('SensorGeomagenticAlgorithmJSTest011', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest011-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MAX_VALUE }, timeMillis[0], (error, data) => { if (error) { @@ -437,12 +438,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0120 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0120 * @tc.name: SensorGeomagenticAlgorithmJSTest012 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0120', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0120-------------------------"); + it('SensorGeomagenticAlgorithmJSTest012', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest012-------------------------"); let geomagneticComponent = [27536.40234375, -2248.586669921875, -16022.4306640625, -30.110872268676758, -4.66834020614624, 27628.05859375, 31937.875] sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MIN_VALUE }, timeMillis[0], @@ -471,12 +472,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0130 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0130 * @tc.name: SensorGeomagenticAlgorithmJSTest013 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0130', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0130-------------------------"); + it('SensorGeomagenticAlgorithmJSTest013', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest013-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NaN }, timeMillis[0], (error, data) => { if (error) { @@ -497,12 +498,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0140 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0140 * @tc.name: SensorGeomagenticAlgorithmJSTest014 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0140', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0140-------------------------"); + it('SensorGeomagenticAlgorithmJSTest014', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest014-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NEGATIVE_INFINITY }, timeMillis[0], (error, data) => { if (error) { @@ -523,12 +524,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0150 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0150 * @tc.name: SensorGeomagenticAlgorithmJSTest015 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0150', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0150-------------------------"); + it('SensorGeomagenticAlgorithmJSTest015', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest015-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NaN, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -549,12 +550,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0160 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0160 * @tc.name: SensorGeomagenticAlgorithmJSTest016 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0160', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0160-------------------------"); + it('SensorGeomagenticAlgorithmJSTest016', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest016-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NEGATIVE_INFINITY, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -575,12 +576,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0170 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0170 * @tc.name: SensorGeomagenticAlgorithmJSTest017 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0170', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0170-------------------------"); + it('SensorGeomagenticAlgorithmJSTest017', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest017-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MAX_VALUE }, timeMillis[0], (error, data) => { if (error) { @@ -600,12 +601,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0180 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0180 * @tc.name: SensorGeomagenticAlgorithmJSTest018 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0180', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0180-------------------------"); + it('SensorGeomagenticAlgorithmJSTest018', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest018-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NaN }, timeMillis[0], (error, data) => { if (error) { @@ -626,12 +627,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0190 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0190 * @tc.name: SensorGeomagenticAlgorithmJSTest019 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0190', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0190-------------------------"); + it('SensorGeomagenticAlgorithmJSTest019', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest019-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NEGATIVE_INFINITY }, timeMillis[0], (error, data) => { if (error) { @@ -652,12 +653,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0200 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0200 * @tc.name: SensorGeomagenticAlgorithmJSTest020 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0200', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0200-------------------------"); + it('SensorGeomagenticAlgorithmJSTest020', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest020-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.MAX_VALUE, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -677,12 +678,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0210 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0210 * @tc.name: SensorGeomagenticAlgorithmJSTest021 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0210', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0210-------------------------"); + it('SensorGeomagenticAlgorithmJSTest021', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest021-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NaN, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -703,12 +704,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0220 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0220 * @tc.name: SensorGeomagenticAlgorithmJSTest022 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0220', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0220-------------------------"); + it('SensorGeomagenticAlgorithmJSTest022', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest022-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NEGATIVE_INFINITY, 'altitude': 0 }, timeMillis[0], (error, data) => { if (error) { @@ -729,12 +730,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0230 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0230 * @tc.name: SensorGeomagenticAlgorithmJSTest023 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0230', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0230-------------------------"); + it('SensorGeomagenticAlgorithmJSTest023', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest023-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MAX_VALUE }, timeMillis[0], (error, data) => { if (error) { @@ -755,12 +756,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0240 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0240 * @tc.name: SensorGeomagenticAlgorithmJSTest024 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0240', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0240-------------------------"); + it('SensorGeomagenticAlgorithmJSTest024', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest024-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NaN }, timeMillis[0], (error, data) => { if (error) { @@ -780,12 +781,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0250 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0250 * @tc.name: SensorGeomagenticAlgorithmJSTest025 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0250', 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0250-------------------------"); + it('SensorGeomagenticAlgorithmJSTest025', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest025-------------------------"); sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NEGATIVE_INFINITY }, timeMillis[0], (error, data) => { if (error) { @@ -805,12 +806,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0260 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0260 * @tc.name: SensorGeomagenticAlgorithmJSTest026 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0260", 0, async function (done) { - console.info("------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0260-------------------------"); + it("SensorGeomagenticAlgorithmJSTest026", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info("------------------SensorGeomagenticAlgorithmJSTest026-------------------------"); for (let i = 0; i < timeMillis.length; i++) { await sensor.getGeomagneticField({ 'latitude': 80, 'longitude': 0, 'altitude': 0 }, timeMillis[i]).then((data) => { @@ -833,12 +834,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0270 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0270 * @tc.name: SensorGeomagenticAlgorithmJSTest027 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0270", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0270------------------'); + it("SensorGeomagenticAlgorithmJSTest027", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest027------------------'); let geomagneticComponent = [-1417119616, 23146989568, -6406359552, -15.442885398864746, 93.50342559814453, 23190329344, 24058943488] await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': 0 }, @@ -861,12 +862,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0280 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0280 * @tc.name: SensorGeomagenticAlgorithmJSTest028 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0280", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0280------------------'); + it("SensorGeomagenticAlgorithmJSTest028", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest028------------------'); let geomagneticComponent = [27779.234375, -6214.9794921875, -14924.6611328125, -27.667943954467773, -12.610970497131348, 28465.9765625, 32141.2109375] await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': 0 }, @@ -889,12 +890,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0290 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0290 * @tc.name: SensorGeomagenticAlgorithmJSTest029 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0290", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0290------------------'); + it("SensorGeomagenticAlgorithmJSTest029", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest029------------------'); let geomagneticComponent = [1824.141845703125, 116.58167266845703, 56727.7734375, 88.15447235107422, 3.6568238735198975, 1827.8634033203125, 56757.21484375] await sensor.getGeomagneticField({ 'latitude': Number.MAX_VALUE, 'longitude': 0, 'altitude': 0 }, @@ -917,12 +918,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0300 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0300 * @tc.name: SensorGeomagenticAlgorithmJSTest030 * @tc.desc: Verification results of the incorrect parameters of the test interface. */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0300", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0300------------------'); + it("SensorGeomagenticAlgorithmJSTest030", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest030------------------'); let geomagneticComponent = [1824.141845703125, 116.58167266845703, 56727.7734375, 88.15447235107422, 3.6568238735198975, 1827.8634033203125, 56757.21484375] await sensor.getGeomagneticField({ 'latitude': Number.NaN, 'longitude': 0, 'altitude': 0 }, @@ -945,12 +946,12 @@ describe("SensorJsTest_sensor_2", function () { }) /** - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0310 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0310 * @tc.name: SensorGeomagenticAlgorithmJSTest031 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0310", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0310------------------'); + it("SensorGeomagenticAlgorithmJSTest031", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest031------------------'); let geomagneticComponent = [14425.57421875, -17156.767578125, -52023.21484375, -66.69005584716797, -49.94255447387695, 22415.4375, 56646.859375] await sensor.getGeomagneticField({ 'latitude': Number.NEGATIVE_INFINITY, 'longitude': 0, 'altitude': 0 }, @@ -973,12 +974,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0320 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0320 * @tc.name: SensorGeomagenticAlgorithmJSTest032 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0320", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0320------------------'); + it("SensorGeomagenticAlgorithmJSTest032", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest032------------------'); let geomagneticComponent = [NaN, NaN, NaN] await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.MAX_VALUE, 'altitude': 0 }, timeMillis[0]).then((data) => { @@ -994,12 +995,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0330 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0330 * @tc.name: SensorGeomagenticAlgorithmJSTest033 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0330", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0330------------------'); + it("SensorGeomagenticAlgorithmJSTest033", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest033------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NaN, 'altitude': 0 }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest033 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1014,12 +1015,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0340 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0340 * @tc.name: SensorGeomagenticAlgorithmJSTest034 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0340", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0340------------------'); + it("SensorGeomagenticAlgorithmJSTest034", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest034------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NEGATIVE_INFINITY, 'altitude': 0 }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest034 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1034,12 +1035,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0350 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0350 * @tc.name: SensorGeomagenticAlgorithmJSTest035 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0350", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0350------------------'); + it("SensorGeomagenticAlgorithmJSTest035", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest035------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MAX_VALUE }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest035 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1054,12 +1055,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0360 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0360 * @tc.name: SensorGeomagenticAlgorithmJSTest036 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0360", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0360------------------'); + it("SensorGeomagenticAlgorithmJSTest036", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest036------------------'); let geomagneticComponent = [27536.40234375, -2248.586669921875, -16022.4306640625, -30.110872268676758, -4.66834020614624, 27628.05859375, 31937.875] await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MIN_VALUE }, @@ -1082,12 +1083,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0370 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0370 * @tc.name: SensorGeomagenticAlgorithmJSTest037 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0370", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0370------------------start'); + it("SensorGeomagenticAlgorithmJSTest037", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest037------------------start'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NaN }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest037 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1102,14 +1103,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0380 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0380 * @tc.name: SensorGeomagenticAlgorithmJSTest038 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0380", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0380------------------'); + it("SensorGeomagenticAlgorithmJSTest038", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest038------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NEGATIVE_INFINITY }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest038 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1124,13 +1123,13 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0390 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0390 * @tc.name: SensorGeomagenticAlgorithmJSTest039 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0390', 0, async function (done) { + it('SensorGeomagenticAlgorithmJSTest039', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { for (let i = 0; i < timeMillis.length; i++) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0390------------------'); + console.info('------------------SensorGeomagenticAlgorithmJSTest039------------------'); await sensor.getGeomagneticField({ 'latitude': 80, 'longitude': 0, 'altitude': 0 }, timeMillis[i]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest039 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1152,12 +1151,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0400 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0400 * @tc.name: SensorGeomagenticAlgorithmJSTest040 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0400", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0400------------------'); + it("SensorGeomagenticAlgorithmJSTest040", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest040------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NaN, 'altitude': 0 }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest040 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1172,12 +1171,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0410 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0410 * @tc.name: SensorGeomagenticAlgorithmJSTest041 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0410", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0410------------------'); + it("SensorGeomagenticAlgorithmJSTest041", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest041------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NEGATIVE_INFINITY, 'altitude': 0 }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest041 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1192,12 +1191,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0420 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0420 * @tc.name: SensorGeomagenticAlgorithmJSTest042 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0420", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0420 max ------------------'); + it("SensorGeomagenticAlgorithmJSTest042", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest042 max ------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MAX_VALUE }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest042 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1212,12 +1211,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0430 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0430 * @tc.name: SensorGeomagenticAlgorithmJSTest043 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0430", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0430------------------'); + it("SensorGeomagenticAlgorithmJSTest043", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest043------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NaN }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest043 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1232,12 +1231,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0440 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0440 * @tc.name: SensorGeomagenticAlgorithmJSTest044 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0440", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0440------------------'); + it("SensorGeomagenticAlgorithmJSTest044", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest044------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NEGATIVE_INFINITY }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest044 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1252,12 +1251,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0450 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0450 * @tc.name: SensorGeomagenticAlgorithmJSTest045 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it('SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0450', 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0450------------------'); + it('SensorGeomagenticAlgorithmJSTest045', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest045------------------'); for (let i = 0; i < GEOMAGNETIC_COORDINATES.length; i++) { await sensor.getGeomagneticField({ 'latitude': GEOMAGNETIC_COORDINATES[i][0], @@ -1283,12 +1282,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0460 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0460 * @tc.name: SensorGeomagenticAlgorithmJSTest046 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0460", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0460------------------'); + it("SensorGeomagenticAlgorithmJSTest046", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest046------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.MAX_VALUE, 'altitude': 0 }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest046 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1303,12 +1302,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0470 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0470 * @tc.name: SensorGeomagenticAlgorithmJSTest047 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0470", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0470------------------'); + it("SensorGeomagenticAlgorithmJSTest047", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest047------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NaN, 'altitude': 0 }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest047 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1323,12 +1322,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0480 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0480 * @tc.name: SensorGeomagenticAlgorithmJSTest048 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0480", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0480------------------'); + it("SensorGeomagenticAlgorithmJSTest048", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest048------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': Number.NEGATIVE_INFINITY, 'altitude': 0 }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest048 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1343,12 +1342,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0490 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0490 * @tc.name: SensorGeomagenticAlgorithmJSTest049 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0490", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0490------------------'); + it("SensorGeomagenticAlgorithmJSTest049", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest049------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.MAX_VALUE }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest049 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1363,12 +1362,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0500 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0500 * @tc.name: SensorGeomagenticAlgorithmJSTest050 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0500", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0500------------------'); + it("SensorGeomagenticAlgorithmJSTest050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest050------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NaN }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest050 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z @@ -1383,12 +1382,12 @@ describe("SensorJsTest_sensor_2", function () { }) /* - * @tc.number: SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0510 + * @tc.number:SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0510 * @tc.name: SensorGeomagenticAlgorithmJSTest051 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0510", 0, async function (done) { - console.info('------------------SUB_SensorsSystem_GeomagneticAlgorithm_JSTest_0510------------------'); + it("SensorGeomagenticAlgorithmJSTest051", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { + console.info('------------------SensorGeomagenticAlgorithmJSTest051------------------'); await sensor.getGeomagneticField({ 'latitude': 0, 'longitude': 0, 'altitude': Number.NEGATIVE_INFINITY }, timeMillis[0]).then((data) => { console.info('SensorGeomagenticAlgorithmJSTest051 x: ' + data.x + ',y: ' + data.y + ',z: ' + data.z diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js index be732cc72540182a21ec8fdb5595921f222f2214..1470a8d4354cad5873425f928400ecfa12997f6e 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js @@ -51,11 +51,11 @@ describe('SystemParameterTest', function () { /** - * @tc.number SUB_SENSORS_Sensor_JSTest_0010 - * @tc.name testRegisterSensortest001 - * @tc.desc test get sensor data by sensor id. + * @tc.number SUB_SENSORS_Sensor_JSTest_0010 + * @tc.name testRegisterSensortest001 + * @tc.desc test get sensor data by sensor id. */ - it('SUB_SENSORS_Sensor_JSTest_0010', 0, async function (done) { + it('SUB_SENSORS_Sensor_JSTest_0010', FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('SUB_SENSORS_Sensor_JSTest_0010 start'); try { sensor.on(testSensorId, function (data) { @@ -79,11 +79,11 @@ describe('SystemParameterTest', function () { }) /** - * @tc.number SUB_SENSORS_Sensor_JSTest_0020 - * @tc.name testRegisterSensortest002 - * @tc.desc test get sensor data by wrong sensor id. + * @tc.number SUB_SENSORS_Sensor_JSTest_0020 + * @tc.name testRegisterSensortest002 + * @tc.desc test get sensor data by wrong sensor id. */ - it('SUB_SENSORS_Sensor_JSTest_0020', 0, async function (done) { + it('SUB_SENSORS_Sensor_JSTest_0020', FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('SUB_SENSORS_Sensor_JSTest_0020 start'); function onSensorCallback(data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Accelerometer_Uncalibrated.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Accelerometer_Uncalibrated.js old mode 100755 new mode 100644 index 3afb57c2ef45ae03abc25971773e158115a64fca..1ac6957915338b768d6974512d6e6c3b6ec3fe20 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Accelerometer_Uncalibrated.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Accelerometer_Uncalibrated.js @@ -51,10 +51,10 @@ describe("SensorJsTest_sensor_6", function () { /* * @tc.number: SUB_SensorsSystem_Accelerometer_Uncalibrated_JSTest_0010 - * @tc.name: SensorAccelerometerUncalibratedJSTest001 - * @tc.desc:verify app info is not null + * @tc.name: SensorAccelerometerUncalibratedJSTest001 + * @tc.desc: Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Accelerometer_Uncalibrated_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Accelerometer_Uncalibrated_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('------------SUB_SensorsSystem_Accelerometer_Uncalibrated_JSTest_0010-----------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -112,10 +112,10 @@ describe("SensorJsTest_sensor_6", function () { /* * @tc.number: SUB_SensorsSystem_Accelerometer_Uncalibrated_JSTest_0020 - * @tc.name: SensorAccelerometerUncalibratedJSTest002 - * @tc.desc:verify app info is not null + * @tc.name: SensorAccelerometerUncalibratedJSTest002 + * @tc.desc: Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Accelerometer_Uncalibrated_JSTest_0020", 0, async function (done) { + it("SUB_SensorsSystem_Accelerometer_Uncalibrated_JSTest_0020", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorAccelerometerUncalibratedJSTest002 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Barometer.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Barometer.js old mode 100755 new mode 100644 index 0e0c93e10f40fd76b7d7df596e8f6bf768b7b39c..c63935750160fca511dff2d213be86e166c53892 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Barometer.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Barometer.js @@ -51,10 +51,10 @@ describe("SensorJsTest_sensor_8", function () { /* * @tc.number: SUB_SensorsSystem_Barometer_JSTest_0010 - * @tc.name: SensorBarometerJSTest001 - * @tc.desc:verify app info is not null + * @tc.name: SensorBarometerJSTest001 + * @tc.desc: Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Barometer_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Barometer_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SUB_SensorsSystem_Barometer_JSTest_0010---------------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -105,10 +105,10 @@ describe("SensorJsTest_sensor_8", function () { /* * @tc.number: SUB_SensorsSystem_Barometer_JSTest_0050 - * @tc.name: SensorBarometerJSTest005 - * @tc.desc:verify app info is not null + * @tc.name: SensorBarometerJSTest005 + * @tc.desc: Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Barometer_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Barometer_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorBarometerJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gravity.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gravity.js index 0a8a6189e45db55407b3020a9c421d0711e4958b..8cf6fc95d8beae309126db6ae264f1e187285562 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gravity.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gravity.js @@ -70,7 +70,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0010 */ it("gravity_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { @@ -84,7 +84,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest002 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0020 */ it("gravity_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -100,7 +100,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest003 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0030 */ it("gravity_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -122,7 +122,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest004 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0040 */ it("gravity_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -135,7 +135,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0050 */ it("gravity_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -156,7 +156,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest006 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0060 */ it("gravity_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -172,7 +172,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest007 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0070 */ it("gravity_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -191,7 +191,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest008 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0080 */ it("gravity_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -212,7 +212,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest009 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0090 */ it("gravity_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -228,7 +228,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest010 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0100 */ it("gravity_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -249,7 +249,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest011 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0110 */ it("gravity_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -266,7 +266,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest012 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0120 */ it("gravity_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -288,7 +288,7 @@ describe("SensorJsTest_sensor_9", function () { /* * @tc.name:gravity_SensorJsTest013 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorsSystem_GRAVITY_JsTest_0130 */ it("gravity_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gyroscope_Uncalibrated.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gyroscope_Uncalibrated.js old mode 100755 new mode 100644 index 23ddfa5e776dcb45eef829cc5564af3140754ad2..3c5984d0a7e9dc6d25d6fe9e99729f0cccffaef9 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gyroscope_Uncalibrated.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Gyroscope_Uncalibrated.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_10", function () { /* * @tc.number: SUB_SensorsSystem_Gyroscope_Uncalibrated_JSTest_0010 * @tc.name: SensorGyroscopeUncalibratedJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Gyroscope_Uncalibrated_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Gyroscope_Uncalibrated_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('-----------------SUB_SensorsSystem_Gyroscope_Uncalibrated_JSTest_0010----------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -113,9 +113,9 @@ describe("SensorJsTest_sensor_10", function () { /* * @tc.number: SUB_SensorsSystem_Gyroscope_Uncalibrated_JSTest_0050 * @tc.name: SensorGyroscopeUncalibratedJSTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Gyroscope_Uncalibrated_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Gyroscope_Uncalibrated_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorGyroscopeUncalibratedJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Heart_Rate.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Heart_Rate.js old mode 100755 new mode 100644 index 3bdc83a47d9cfb5c5a58b4db210688c2c10cea5e..ce59dbd1b4450dec800fb2b4376fea5ccfb0e346 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Heart_Rate.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Heart_Rate.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_11", function () { /* * @tc.number: SUB_SensorsSystem_Heart_Rate_JSTest_0010 * @tc.name: SensorHeartRateJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Heart_Rate_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Heart_Rate_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SUB_SensorsSystem_Heart_Rate_JSTest_0010---------------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -106,9 +106,9 @@ describe("SensorJsTest_sensor_11", function () { /* * @tc.number: SUB_SensorsSystem_Heart_Rate_JSTest_0050 * @tc.name: SensorHeartRateJSTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Heart_Rate_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Heart_Rate_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorHeartRateJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Humidity.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Humidity.js old mode 100755 new mode 100644 index a932d7d11de776eadd123017fb22ec3b1c18208b..2d999485752b30fc5d3c87c6f20a25a09bc98386 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Humidity.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Humidity.js @@ -50,11 +50,11 @@ describe("SensorJsTest_sensor_12", function () { }) /* - * @tc.number: SUB_SensorsSystem_Humidity_JSTest_0010 + * @tc.number:SUB_SensorsSystem_Humidity_JSTest_0010 * @tc.name: SensorHumidityJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Humidity_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Humidity_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SUB_SensorsSystem_Humidity_JSTest_0010---------------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -106,9 +106,9 @@ describe("SensorJsTest_sensor_12", function () { /* * @tc.number: SUB_SensorsSystem_Humidity_JSTest_0050 * @tc.name: SensorHumidityJSTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Humidity_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Humidity_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorHumidityJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Linear_Acceleration.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Linear_Acceleration.js old mode 100755 new mode 100644 index 319067116a9a761b3d7bd8fcbcb3004a7fcbec78..531b59d4d473d03f38700ca2e621566415b77e53 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Linear_Acceleration.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Linear_Acceleration.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_13", function () { /* * @tc.number: SUB_SensorsSystem_Linear_Acceleration_JSTest_0010 * @tc.name: SensorLinearAccelerationJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Linear_Acceleration_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Linear_Acceleration_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('---------------SUB_SensorsSystem_Linear_Acceleration_JSTest_0010-----------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -109,9 +109,9 @@ describe("SensorJsTest_sensor_13", function () { /* * @tc.number: SUB_SensorsSystem_Linear_Acceleration_JSTest_0050 * @tc.name: SensorLinearAccelerationJSTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Linear_Acceleration_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Linear_Acceleration_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorLinearAccelerationJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_MagneticField.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_MagneticField.js index 27f700ba4c610ddb57b25ef6d2cf6bc0c50d784c..cdd106d6677b0fd02f52fbd8e62c6a66b44e408e 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_MagneticField.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_MagneticField.js @@ -70,7 +70,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0010 */ it("magnetic_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { @@ -84,7 +84,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest002 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0020 */ it("magnetic_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -100,7 +100,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest003 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0030 */ it("magnetic_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -122,7 +122,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest004 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0040 */ it("magnetic_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -135,7 +135,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0050 */ it("magnetic_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -156,7 +156,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest006 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0060 */ it("magnetic_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -172,7 +172,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest007 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0070 */ it("magnetic_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -191,7 +191,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest008 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0080 */ it("magnetic_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -212,7 +212,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest009 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0090 */ it("magnetic_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -228,7 +228,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest010 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0100 */ it("magnetic_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -249,7 +249,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest011 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0110 */ it("magnetic_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -266,7 +266,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest012 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0120 */ it("magnetic_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -288,7 +288,7 @@ describe("SensorJsTest_sensor_15", function () { /* * @tc.name:magnetic_SensorJsTest013 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_MAGNETIC_FIELD_JsTest_0130 */ it("magnetic_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Magnetic_Field_Uncalibrated.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Magnetic_Field_Uncalibrated.js old mode 100755 new mode 100644 index c82e35a63cf97694f81e5a947cbe48ccbb8b4800..de8aefea48ac6c9446082f166de6de59fd45f316 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Magnetic_Field_Uncalibrated.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Magnetic_Field_Uncalibrated.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_14", function () { /* * @tc.number: SUB_SensorsSystem_Magnetic_Field_Uncalibrated_JSTest_0010 * @tc.name: SensorMagneticFieldUncalibratedJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Magnetic_Field_Uncalibrated_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Magnetic_Field_Uncalibrated_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------SUB_SensorsSystem_Magnetic_Field_Uncalibrated_JSTest_0010-------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -113,9 +113,9 @@ describe("SensorJsTest_sensor_14", function () { /* * @tc.number: SUB_SensorsSystem_Magnetic_Field_Uncalibrated_JSTest_0050 * @tc.name: SensorMagneticFieldUncalibratedJSTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Magnetic_Field_Uncalibrated_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Magnetic_Field_Uncalibrated_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorMagneticFieldUncalibratedJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Orientating.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Orientating.js index 448766d9c0651564e74f1998461d00e88f2f3c5a..a213e84cf535115d27ad77b487befcf2fc9f3051 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Orientating.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Orientating.js @@ -70,7 +70,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0010 */ it("orientating_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { @@ -84,7 +84,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest002 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0020 */ it("orientating_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -100,7 +100,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest003 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0030 */ it("orientating_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -122,7 +122,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest004 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0040 */ it("orientating_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -135,7 +135,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0050 */ it("orientating_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -156,7 +156,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest006 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0060 */ it("orientating_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -172,7 +172,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest007 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0070 */ it("orientating_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -191,7 +191,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest008 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0080 */ it("orientating_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -212,7 +212,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest009 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0090 */ it("orientating_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -228,7 +228,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest010 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0100 */ it("orientating_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -249,7 +249,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest011 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0110 */ it("orientating_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -266,7 +266,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest012 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0120 */ it("orientating_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -288,7 +288,7 @@ describe("SensorJsTest_sensor_16", function () { /* * @tc.name:orientating_SensorJsTest013 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ORIENTATION_JsTest_0130 */ it("orientating_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer.js old mode 100755 new mode 100644 index d8ff9375070c0438fb647bddf7ca37dd930b9903..a5a8d4af06841d0d7211e55ed336486ce27d2d91 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_18", function () { /* * @tc.number: SUB_SensorsSystem_Pedometer_JSTest_0010 * @tc.name: SensorPedometerJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Pedometer_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Pedometer_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SUB_SensorsSystem_Pedometer_JSTest_0010---------------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -104,11 +104,11 @@ describe("SensorJsTest_sensor_18", function () { }) /* - * @tc.number: SUB_SensorsSystem_Pedometer_JSTest_0050 + * @tc.number: SUB_SensorsSystem_Pedometer_JSTest_0020 * @tc.name: SensorPedometerJSTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Pedometer_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Pedometer_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorPedometerJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer_Detection.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer_Detection.js old mode 100755 new mode 100644 index 756e093d89db86bde98d45fd4a90489702bcfdbc..fc9967790eaa3effebc11ad3cea120436256572f --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer_Detection.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Pedometer_Detection.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_17", function () { /* * @tc.number: SUB_SensorsSystem_Pedometer_Detection_JSTest_0010 * @tc.name: SensorPedometerDetectionJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Pedometer_Detection_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Pedometer_Detection_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SUB_SensorsSystem_Pedometer_Detection_JSTest_0010-----------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -104,11 +104,11 @@ describe("SensorJsTest_sensor_17", function () { }) /* - * @tc.number: SUB_SensorsSystem_Pedometer_Detection_JSTest_0050 + * @tc.number: SUB_SensorsSystem_Pedometer_Detection_JSTest_0020 * @tc.name: SensorPedometerDetectionJSTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Pedometer_Detection_JSTest_0050", 0, async function (done) { + it("SUB_SensorsSystem_Pedometer_Detection_JSTest_0050", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { console.info('SensorPedometerDetectionJSTest005 once error'); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Proxinity.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Proxinity.js old mode 100755 new mode 100644 index b860c66bbb33ea084a713cc5bd751c85e1f40493..a3057113f1a442149a6bfd3e1ae78d67d887c551 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Proxinity.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Proxinity.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_19", function () { /* * @tc.number: SUB_SensorsSystem_Proxinity_JSTest_0010 * @tc.name: SensorProxinityJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Proxinity_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Proxinity_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SUB_SensorsSystem_Proxinity_JSTest_0010---------------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -104,17 +104,17 @@ describe("SensorJsTest_sensor_19", function () { }) /* - * @tc.number: SUB_SensorsSystem_Proxinity_JSTest_0050 - * @tc.name: SensorProxinityJSTest005 - * @tc.desc:verify app info is not null + * @tc.number: SUB_SensorsSystem_Proxinity_JSTest_0020 + * @tc.name: SensorProxinityJSTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Proxinity_JSTest_0050", 0, async function (done) { + it("SensorProxinityJSTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { - console.info('SensorProxinityJSTest005 once error'); + console.info('SensorProxinityJSTest002 once error'); expect(false).assertTrue(); } else { - console.info('SensorProxinityJSTest005 once success distance: ' + data.distance); + console.info('SensorProxinityJSTest002 once success distance: ' + data.distance); expect(typeof (data.distance)).assertEqual("number"); } setTimeout(() => { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_RotatingVector.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_RotatingVector.js index a58afa212e73d5a70a2acf2ccd343d8a37c53211..43675cd52a4c5d95cc44b04f14905490c3c9f498 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_RotatingVector.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_RotatingVector.js @@ -72,7 +72,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0010 */ it("rotatingvector_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { @@ -86,7 +86,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest002 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0020 */ it("rotatingvector_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -102,7 +102,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest003 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0030 */ it("rotatingvector_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -124,7 +124,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest004 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0040 */ it("rotatingvector_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -137,7 +137,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest005 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0050 */ it("rotatingvector_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { @@ -158,7 +158,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest006 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0060 */ it("rotatingvector_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -174,7 +174,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest007 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0070 */ it("rotatingvector_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -193,7 +193,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest008 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0080 */ it("rotatingvector_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -214,7 +214,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest009 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0090 */ it("rotatingvector_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -230,7 +230,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest010 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0100 */ it("rotatingvector_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -251,7 +251,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest011 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0110 */ it("rotatingvector_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -268,7 +268,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest012 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0120 */ it("rotatingvector_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { @@ -290,7 +290,7 @@ describe("SensorJsTest_sensor_20", function () { /* * @tc.name:rotatingvector_SensorJsTest013 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface * @tc.number:SUB_SensorSystem_ROTATION_VECTOR_JsTest_0130 */ it("rotatingvector_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Significant_Motion.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Significant_Motion.js old mode 100755 new mode 100644 index 66fd7cb1735982b7157d1ef6d8aef1b17bce2885..872c1d7458acc1a8fb41605e39eb116236c2f1d8 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Significant_Motion.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Significant_Motion.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_21", function () { /* * @tc.number: SUB_SensorsSystem_Significant_Motion_JSTest_0010 * @tc.name: SensorSignificantMotionJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Significant_Motion_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Significant_Motion_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SUB_SensorsSystem_Significant_Motion_JSTest_0010------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -104,17 +104,17 @@ describe("SensorJsTest_sensor_21", function () { }) /* - * @tc.number: SUB_SensorsSystem_Significant_Motion_JSTest_0050 - * @tc.name: SensorSignificantMotionJSTest005 - * @tc.desc:verify app info is not null + * @tc.number: SUB_SensorsSystem_Significant_Motion_JSTest_0020 + * @tc.name: SensorSignificantMotionJSTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Significant_Motion_JSTest_0050", 0, async function (done) { + it("SensorSignificantMotionJSTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { - console.info('SensorSignificantMotionJSTest005 once error'); + console.info('SensorSignificantMotionJSTest002 once error'); expect(false).assertTrue(); } else { - console.info('SensorSignificantMotionJSTest005 once success scalar: ' + data.scalar); + console.info('SensorSignificantMotionJSTest002 once success scalar: ' + data.scalar); expect(typeof (data.scalar)).assertEqual("number"); } setTimeout(() => { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Temperature.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Temperature.js old mode 100755 new mode 100644 index 012355ae2fc172573046445142c8b8cccd3bc7e4..1b249902a97a629681cb5370038168c4477942c0 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Temperature.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Temperature.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_22", function () { /* * @tc.number: SUB_SensorsSystem_Ambient_Temperature_JSTest_0010 * @tc.name: SensorAmbientTemperatureJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Ambient_Temperature_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Ambient_Temperature_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('--------------------SUB_SensorsSystem_Ambient_Temperature_JSTest_0010-------------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -104,17 +104,17 @@ describe("SensorJsTest_sensor_22", function () { }) /* - * @tc.number: SUB_SensorsSystem_Ambient_Temperature_JSTest_0050 - * @tc.name: SensorAmbientTemperatureJSTest005 - * @tc.desc:verify app info is not null + * @tc.number: SUB_SensorsSystem_Ambient_Temperature_JSTest_0020 + * @tc.name: SensorAmbientTemperatureJSTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Ambient_Temperature_JSTest_0050", 0, async function (done) { + it("SensorAmbientTemperatureJSTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { - console.info('SensorAmbientTemperatureJSTest005 once error'); + console.info('SensorAmbientTemperatureJSTest002 once error'); expect(false).assertTrue(); } else { - console.info('SensorAmbientTemperatureJSTest005 once success temperature: ' + data.temperature); + console.info('SensorAmbientTemperatureJSTest002s once success temperature: ' + data.temperature); expect(typeof (data.temperature)).assertEqual("number"); } setTimeout(() => { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Wear_Detection.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Wear_Detection.js old mode 100755 new mode 100644 index 6e696335df268eac8864990c504c98cd7fd15745..14aebfd3353ef44e143acc470ac05d35d6916cb0 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Wear_Detection.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test_Wear_Detection.js @@ -52,9 +52,9 @@ describe("SensorJsTest_sensor_23", function () { /* * @tc.number: SUB_SensorsSystem_Wear_Detection_JSTest_0010 * @tc.name: SensorWearDetectionJSTest001 - * @tc.desc:verify app info is not null + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Wear_Detection_JSTest_0010", 0, async function (done) { + it("SUB_SensorsSystem_Wear_Detection_JSTest_0010", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------SensorWearDetectionJSTest001---------------------------'); function offPromise() { return new Promise((resolve, reject) => { @@ -104,17 +104,17 @@ describe("SensorJsTest_sensor_23", function () { }) /* - * @tc.number: SUB_SensorsSystem_Wear_Detection_JSTest_0050 - * @tc.name: SensorWearDetectionJSTest005 - * @tc.desc:verify app info is not null + * @tc.number: SUB_SensorsSystem_Wear_Detection_JSTest_0020 + * @tc.name: SensorWearDetectionJSTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("SUB_SensorsSystem_Wear_Detection_JSTest_0050", 0, async function (done) { + it("SensorWearDetectionJSTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(error, data) { if (error) { - console.info('SensorWearDetectionJSTest005 once error'); + console.info('SensorWearDetectionJSTest002 once error'); expect(false).assertTrue(); } else { - console.info('SensorWearDetectionJSTest005 once success value: ' + data.value); + console.info('SensorWearDetectionJSTest002 once success value: ' + data.value); expect(typeof (data.value)).assertEqual("number"); } setTimeout(() => { diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Accelerometer.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Accelerometer.js index 5d5b19bf69ae027a2ecf8e012bc2c860d08555bd..32339041000460543f67e2ffb7a9b4ffb152f090 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Accelerometer.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Accelerometer.js @@ -67,13 +67,12 @@ describe("SensorJsTest_sensor_3", function () { let errMessage; - /* - * @tc.name:Accelerometer_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_ACCELEROMETER_JSTest_0010 + * @tc.name: Accelerometer_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest001", 0, async function (done) { + it("Accelerometer_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------Accelerometer_SensorJsTest001---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback); setTimeout(() => { @@ -83,12 +82,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0020 + * @tc.name: Accelerometer_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest002", 0, async function (done) { + it("Accelerometer_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest002---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback, { 'interval': 100000000 }); setTimeout(() => { @@ -100,12 +98,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0030 + * @tc.name: Accelerometer_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest003", 0, async function (done) { + it("Accelerometer_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest003---------------------------'); function onSensorCallback(data) { console.info('Accelerometer_SensorJsTest003 on error'); @@ -123,12 +120,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0040 + * @tc.name: Accelerometer_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest004", 0, async function (done) { + it("Accelerometer_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest004---------------------------'); sensor.once(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback); setTimeout(() => { @@ -138,12 +134,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0050 + * @tc.name: Accelerometer_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest005", 0, async function (done) { + it("Accelerometer_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest005---------------------------'); function onceSensorCallback(data) { console.info('Accelerometer_SensorJsTest005 on error'); @@ -160,13 +155,12 @@ describe("SensorJsTest_sensor_3", function () { } }) - /* - * @tc.name:Accelerometer_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0060 + * @tc.name: Accelerometer_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest006", 0, async function (done) { + it("Accelerometer_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest006---------------------------'); try { sensor.off(string, ""); @@ -178,13 +172,12 @@ describe("SensorJsTest_sensor_3", function () { } }) - /* - * @tc.name:Accelerometer_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0070 + * @tc.name: Accelerometer_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest007", 0, async function (done) { + it("Accelerometer_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest007---------------------------'); function onSensorCallback(data) { console.info('Accelerometer_SensorJsTest007 on error'); @@ -200,12 +193,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0080 + * @tc.name: Accelerometer_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest008", 0, async function (done) { + it("Accelerometer_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest008---------------------------'); function onSensorCallback(data) { console.info('Accelerometer_SensorJsTest008 on error'); @@ -223,12 +215,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0090 + * @tc.name: Accelerometer_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest009", 0, async function (done) { + it("Accelerometer_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest009---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2); @@ -241,12 +232,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0100 + * @tc.name: Accelerometer_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest010", 0, async function (done) { + it("Accelerometer_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest010---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2); @@ -264,12 +254,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0110 + * @tc.name: Accelerometer_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest011", 0, async function (done) { + it("Accelerometer_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest011---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback, { 'interval': 100000000 }); sensor.once(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2); @@ -282,12 +271,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0120 + * @tc.name: Accelerometer_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest012", 0, async function (done) { + it("Accelerometer_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest012---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2, { 'interval': 100000000 }); @@ -305,12 +293,11 @@ describe("SensorJsTest_sensor_3", function () { }) /* - * @tc.name:Accelerometer_SensorJsTest013 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number: SUB_SensorsSystem_ACCELEROMETER_JSTest_0130 + * @tc.name: Accelerometer_SensorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Accelerometer_SensorJsTest013", 0, async function (done) { + it("Accelerometer_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Accelerometer_SensorJsTest013---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2, { 'interval': 100000000 }); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Ambient_light.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Ambient_light.js index 6a2983792a1bdf9f8eee039cc8e871276a368e82..be7382882ee9a68461b196cc66c5439017f4fd58 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Ambient_light.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Ambient_light.js @@ -13,6 +13,7 @@ * limitations under the License. */ import sensor from '@ohos.sensor' + import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' describe("SensorJsTest_sensor_4", function () { @@ -64,12 +65,11 @@ describe("SensorJsTest_sensor_4", function () { let errMessage; /* - * @tc.name:Ambient_Light_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0010 + * @tc.name: Ambient_Light_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest001", 0, async function (done) { + it("Ambient_Light_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest001---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback); setTimeout(() => { @@ -79,12 +79,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0020 + * @tc.name: Ambient_Light_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest002", 0, async function (done) { + it("Ambient_Light_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest002---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback, { 'interval': 100000000 }); setTimeout(() => { @@ -96,12 +95,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0030 + * @tc.name: Ambient_Light_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest003", 0, async function (done) { + it("Ambient_Light_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest003---------------------------'); function onSensorCallback(data) { console.info('Ambient_Light_SensorJsTest003 on error'); @@ -120,12 +118,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0040 + * @tc.name: Ambient_Light_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest004", 0, async function (done) { + it("Ambient_Light_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest004---------------------------'); sensor.once(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback); setTimeout(() => { @@ -135,12 +132,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0050 + * @tc.name: Ambient_Light_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest005", 0, async function (done) { + it("Ambient_Light_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest005---------------------------'); function onceSensorCallback(data) { console.info('Ambient_Light_SensorJsTest005 on error'); @@ -159,12 +155,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0060 + * @tc.name: Ambient_Light_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest006", 0, async function (done) { + it("Ambient_Light_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest006---------------------------'); try { sensor.off(string, ""); @@ -177,13 +172,12 @@ describe("SensorJsTest_sensor_4", function () { } }) - /* - * @tc.name:Ambient_Light_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0070 + * @tc.name: Ambient_Light_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest007", 0, async function (done) { + it("Ambient_Light_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest007---------------------------'); function onSensorCallback(data) { console.info('Ambient_Light_SensorJsTest007 on error'); @@ -199,12 +193,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0080 + * @tc.name: Ambient_Light_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest008", 0, async function (done) { + it("Ambient_Light_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest008---------------------------'); function onSensorCallback(data) { console.info('Ambient_Light_SensorJsTest008 on error'); @@ -223,12 +216,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0090 + * @tc.name: Ambient_Light_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest009", 0, async function (done) { + it("Ambient_Light_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest009---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2); @@ -241,12 +233,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0100 + * @tc.name: Ambient_Light_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest010", 0, async function (done) { + it("Ambient_Light_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest010---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2); @@ -263,13 +254,12 @@ describe("SensorJsTest_sensor_4", function () { }, 2000); }) - /* - * @tc.name:Ambient_Light_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0110 + * @tc.name: Ambient_Light_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest011", 0, async function (done) { + it("Ambient_Light_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest011---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback, { 'interval': 100000000 }); sensor.once(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2); @@ -282,12 +272,11 @@ describe("SensorJsTest_sensor_4", function () { }) /* - * @tc.name:Ambient_Light_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0120 + * @tc.name: Ambient_Light_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest012", 0, async function (done) { + it("Ambient_Light_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest012---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2, { 'interval': 100000000 }); @@ -304,13 +293,12 @@ describe("SensorJsTest_sensor_4", function () { }, 1000); }) - /* - * @tc.name:Ambient_Light_SensorJsTest013 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Ambient_Light_JSTest_0130 + * @tc.name: Ambient_Light_SensorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("Ambient_Light_SensorJsTest013", 0, async function (done) { + it("Ambient_Light_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Ambient_Light_SensorJsTest013---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2, { 'interval': 100000000 }); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_GyroScope.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_GyroScope.js index c531e9267f9ebab3693132e692a78a168c35f603..a589c9a2c1d232e5082770427615acbb2e688117 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_GyroScope.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_GyroScope.js @@ -68,12 +68,11 @@ describe("SensorJsTest_sensor_5", function () { let errMessage; /* - * @tc.name:GYROSCOPE_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0010 + * @tc.name: GYROSCOPE_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest001", 0, async function (done) { + it("GYROSCOPE_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest001---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback); setTimeout(() => { @@ -82,13 +81,12 @@ describe("SensorJsTest_sensor_5", function () { }, 500); }) - /* - * @tc.name:GYROSCOPE_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0020 + * @tc.name: GYROSCOPE_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest002", 0, async function (done) { + it("GYROSCOPE_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest002---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback, { 'interval': 100000000 }); setTimeout(() => { @@ -99,13 +97,12 @@ describe("SensorJsTest_sensor_5", function () { }, 500); }) - /* - * @tc.name:GYROSCOPE_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0030 + * @tc.name: GYROSCOPE_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest003", 0, async function (done) { + it("GYROSCOPE_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest003---------------------------'); function onSensorCallback(data) { console.info('GYROSCOPE_SensorJsTest003 on error'); @@ -123,12 +120,11 @@ describe("SensorJsTest_sensor_5", function () { }) /* - * @tc.name:GYROSCOPE_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0040 + * @tc.name: GYROSCOPE_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest004", 0, async function (done) { + it("GYROSCOPE_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest004---------------------------'); sensor.once(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback); setTimeout(() => { @@ -137,13 +133,12 @@ describe("SensorJsTest_sensor_5", function () { }, 500); }) - /* - * @tc.name:GYROSCOPE_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0050 + * @tc.name: GYROSCOPE_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest005", 0, async function (done) { + it("GYROSCOPE_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest005---------------------------'); function onceSensorCallback(data) { console.info('GYROSCOPE_SensorJsTest005 on error'); @@ -160,13 +155,12 @@ describe("SensorJsTest_sensor_5", function () { } }) - /* - * @tc.name:GYROSCOPE_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0060 + * @tc.name: GYROSCOPE_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest006", 0, async function (done) { + it("GYROSCOPE_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest006---------------------------'); try { sensor.off(string, ""); @@ -178,13 +172,12 @@ describe("SensorJsTest_sensor_5", function () { } }) - /* - * @tc.name:GYROSCOPE_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0070 + * @tc.name: GYROSCOPE_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest007", 0, async function (done) { + it("GYROSCOPE_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest007---------------------------'); function onSensorCallback(data) { console.info('GYROSCOPE_SensorJsTest007 on error'); @@ -199,13 +192,12 @@ describe("SensorJsTest_sensor_5", function () { }, 500); }) - /* - * @tc.name:GYROSCOPE_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0080 + * @tc.name: GYROSCOPE_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest008", 0, async function (done) { + it("GYROSCOPE_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest008---------------------------'); function onSensorCallback(data) { console.info('GYROSCOPE_SensorJsTest008 on error'); @@ -222,13 +214,12 @@ describe("SensorJsTest_sensor_5", function () { } }) - /* - * @tc.name:GYROSCOPE_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0090 + * @tc.name: GYROSCOPE_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest009", 0, async function (done) { + it("GYROSCOPE_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest009---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback2); @@ -240,13 +231,12 @@ describe("SensorJsTest_sensor_5", function () { }, 1000); }) - /* - * @tc.name:GYROSCOPE_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0100 + * @tc.name: GYROSCOPE_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest010", 0, async function (done) { + it("GYROSCOPE_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest010---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback2); @@ -264,12 +254,11 @@ describe("SensorJsTest_sensor_5", function () { }) /* - * @tc.name:GYROSCOPE_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0110 + * @tc.name: GYROSCOPE_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest011", 0, async function (done) { + it("GYROSCOPE_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest011---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback, { 'interval': 100000000 }); sensor.once(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback2); @@ -282,12 +271,11 @@ describe("SensorJsTest_sensor_5", function () { }) /* - * @tc.name:GYROSCOPE_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0120 + * @tc.name: GYROSCOPE_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest012", 0, async function (done) { + it("GYROSCOPE_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest012---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback2, { 'interval': 100000000 }); @@ -304,13 +292,12 @@ describe("SensorJsTest_sensor_5", function () { }, 1000); }) - /* - * @tc.name:GYROSCOPE_SensorJsTest013 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_GYROSCOPE_JSTest_0130 + * @tc.name: GYROSCOPE_SensorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface */ - it("GYROSCOPE_SensorJsTest013", 0, async function (done) { + it("GYROSCOPE_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------GYROSCOPE_SensorJsTest013---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GYROSCOPE, callback2, { 'interval': 100000000 }); diff --git a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Hall.js b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Hall.js index fee7c95cc481d251ba085be889856e6d3d1a662c..b2a9bb5d46336252d1d65329588316b0bc7cc431 100644 --- a/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Hall.js +++ b/sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest_Hall.js @@ -63,13 +63,12 @@ describe("SensorJsTest_sensor_7", function () { let errMessage; - /* - * @tc.name:Hall_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0010 + * @tc.name: Hall_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest001", 0, async function (done) { + it("Hall_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------Hall_SensorJsTest001---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback); setTimeout(() => { @@ -78,13 +77,12 @@ describe("SensorJsTest_sensor_7", function () { }, 500); }) - /* - * @tc.name:Hall_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0020 + * @tc.name: Hall_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest002", 0, async function (done) { + it("Hall_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Hall_SensorJsTest002---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback, { 'interval': 100000000 }); setTimeout(() => { @@ -95,13 +93,12 @@ describe("SensorJsTest_sensor_7", function () { }, 500); }) - /* - * @tc.name:Hall_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0030 + * @tc.name: Hall_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest003", 0, async function (done) { + it("Hall_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Hall_SensorJsTest003---------------------------'); function onSensorCallback(data) { console.info('Hall_SensorJsTest003 on error'); @@ -118,13 +115,12 @@ describe("SensorJsTest_sensor_7", function () { } }) - /* - * @tc.name:Hall_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0040 + * @tc.name: Hall_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest004", 0, async function (done) { + it("Hall_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.once(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback); setTimeout(() => { expect(true).assertTrue(); @@ -132,13 +128,12 @@ describe("SensorJsTest_sensor_7", function () { }, 500); }) - /* - * @tc.name:Hall_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0050 + * @tc.name: Hall_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest005", 0, async function (done) { + it("Hall_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onceSensorCallback(data) { console.info('Hall_SensorJsTest005 on error'); expect(false).assertTrue(); @@ -154,13 +149,12 @@ describe("SensorJsTest_sensor_7", function () { } }) - /* - * @tc.name:Hall_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0060 + * @tc.name: Hall_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest006", 0, async function (done) { + it("Hall_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { try { sensor.off(string, ""); } catch (error) { @@ -171,13 +165,12 @@ describe("SensorJsTest_sensor_7", function () { } }) - /* - * @tc.name:Hall_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0070 + * @tc.name: Hall_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest007", 0, async function (done) { + it("Hall_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onSensorCallback(data) { console.info('Hall_SensorJsTest007 on error'); expect(false).assertTrue(); @@ -191,13 +184,12 @@ describe("SensorJsTest_sensor_7", function () { }, 500); }) - /* - * @tc.name:Hall_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0080 + * @tc.name: Hall_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest008", 0, async function (done) { + it("Hall_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { function onSensorCallback(data) { console.info('Hall_SensorJsTest008 on error'); expect(false).assertTrue(); @@ -214,12 +206,11 @@ describe("SensorJsTest_sensor_7", function () { }) /* - * @tc.name:Hall_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0090 + * @tc.name: Hall_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest009", 0, async function (done) { + it("Hall_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback2); setTimeout(() => { @@ -230,13 +221,12 @@ describe("SensorJsTest_sensor_7", function () { }, 1000); }) - /* - * @tc.name:Hall_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0100 + * @tc.name: Hall_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest010", 0, async function (done) { + it("Hall_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback2); setTimeout(() => { @@ -252,13 +242,12 @@ describe("SensorJsTest_sensor_7", function () { }, 1000); }) - /* - * @tc.name:Hall_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0110 + * @tc.name: Hall_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest011", 0, async function (done) { + it("Hall_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Hall_SensorJsTest011---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback, { 'interval': 100000000 }); sensor.once(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback2); @@ -270,13 +259,12 @@ describe("SensorJsTest_sensor_7", function () { }, 1000); }) - /* - * @tc.name:Hall_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0120 + * @tc.name: Hall_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest012", 0, async function (done) { + it("Hall_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Hall_SensorJsTest012---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback2, { 'interval': 100000000 }); @@ -293,13 +281,12 @@ describe("SensorJsTest_sensor_7", function () { }, 1000); }) - /* - * @tc.name:Hall_SensorJsTest013 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: Issue Number + /* + * @tc.number:SUB_SensorsSystem_Hall_JSTest_0130 + * @tc.name: Hall_SensorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("Hall_SensorJsTest013", 0, async function (done) { + it("Hall_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------Hall_SensorJsTest013---------------------------'); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback, { 'interval': 100000000 }); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_HALL, callback2, { 'interval': 100000000 }); diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_getOnBodyState.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_getOnBodyState.js index 121d99a3e0beb47e9f72bef5e29ae4eee900d2ca..9cee3a3ee64fbde08299db25c2dd70c1d72b3012 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_getOnBodyState.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_getOnBodyState.js @@ -13,6 +13,7 @@ * limitations under the License. */ import sensor from '@system.sensor'; + import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' describe("SensorJsTest_sensor_24", function () { @@ -53,13 +54,12 @@ describe("SensorJsTest_sensor_24", function () { let errMessage; - /* - * @tc.name:getOnBodyState_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("getOnBodyState_SensorJsTest001", 0, async function (done) { + /* + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0010 + * @tc.name: getOnBodyState_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("getOnBodyState_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest001---------------------------'); try { sensor.getOnBodyState(); @@ -72,12 +72,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("getOnBodyState_SensorJsTest002", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0020 + * @tc.name: getOnBodyState_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("getOnBodyState_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest002---------------------------'); try { sensor.getOnBodyState({ @@ -95,12 +94,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0030 + * @tc.name: getOnBodyState_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest003", 0, async function (done) { + it("getOnBodyState_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest003---------------------------'); sensor.getOnBodyState({ success: function (data) { @@ -119,12 +117,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("getOnBodyState_SensorJsTest004", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0040 + * @tc.name: getOnBodyState_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("getOnBodyState_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest004---------------------------'); sensor.getOnBodyState({ success: function (data) { @@ -136,12 +133,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0050 + * @tc.name: getOnBodyState_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest005", 0, async function (done) { + it("getOnBodyState_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest005---------------------------'); sensor.getOnBodyState({ success: function (data) { @@ -156,13 +152,12 @@ describe("SensorJsTest_sensor_24", function () { }); }) - /* - * @tc.name:getOnBodyState_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0060 + * @tc.name: getOnBodyState_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest006", 0, async function (done) { + it("getOnBodyState_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest006---------------------------'); sensor.getOnBodyState({ inInvalid: 2, @@ -179,12 +174,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0070 + * @tc.name: getOnBodyState_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest007", 0, async function (done) { + it("getOnBodyState_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest007---------------------------'); try { sensor.getOnBodyState({ @@ -202,12 +196,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0080 + * @tc.name: getOnBodyState_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest008", 0, async function (done) { + it("getOnBodyState_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest008---------------------------'); sensor.getOnBodyState({ success: function (data) { @@ -235,12 +228,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0090 + * @tc.name: getOnBodyState_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest009", 0, async function (done) { + it("getOnBodyState_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest009---------------------------'); try { sensor.getOnBodyState('xxx'); @@ -254,12 +246,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0100 + * @tc.name: getOnBodyState_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest010", 0, async function (done) { + it("getOnBodyState_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest010---------------------------'); try { sensor.getOnBodyState(); @@ -272,12 +263,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0110 + * @tc.name: getOnBodyState_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("getOnBodyState_SensorJsTest011", 0, async function (done) { + it("getOnBodyState_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest011---------------------------'); try { sensor.getOnBodyState({ @@ -297,12 +287,11 @@ describe("SensorJsTest_sensor_24", function () { }) /* - * @tc.name:getOnBodyState_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("getOnBodyState_SensorJsTest012", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_GetOnBodyState_JSTest_0120 + * @tc.name: getOnBodyState_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("getOnBodyState_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------getOnBodyState_SensorJsTest012---------------------------'); sensor.getOnBodyState({ success: function (data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeAccelerometer.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeAccelerometer.js index 8c47c4d7cd5042c82d1857dc9a06ba23494fdb08..bc03705fa0ebd1e99639af3dc35b7331d6f62221 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeAccelerometer.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeAccelerometer.js @@ -13,6 +13,7 @@ * limitations under the License. */ import sensor from '@system.sensor' + import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' describe("SensorJsTest_sensor_25", function () { @@ -54,12 +55,11 @@ describe("SensorJsTest_sensor_25", function () { let errMessage; /* - * @tc.name:subscribeAccelerometer_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0010 + * @tc.name: subscribeAccelerometer_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest001", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest001---------------------------'); sensor.subscribeAccelerometer({ interval: 'game', @@ -88,13 +88,12 @@ describe("SensorJsTest_sensor_25", function () { }, 1000); }) - /* - * @tc.name:subscribeAccelerometer_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0020 + * @tc.name: subscribeAccelerometer_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest002", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest002---------------------------'); sensor.subscribeAccelerometer({ interval: 'ui', @@ -124,12 +123,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0030 + * @tc.name: subscribeAccelerometer_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest003", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest003---------------------------'); sensor.subscribeAccelerometer({ interval: 'normal', @@ -160,12 +158,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0040 + * @tc.name: subscribeAccelerometer_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest004", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest004---------------------------'); try { sensor.subscribeAccelerometer({ @@ -190,12 +187,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0050 + * @tc.name: subscribeAccelerometer_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest005", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest005---------------------------'); try { sensor.subscribeAccelerometer({ @@ -221,12 +217,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0060 + * @tc.name: subscribeAccelerometer_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest006", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest006---------------------------'); sensor.subscribeAccelerometer({ interval: 'normal', @@ -271,12 +266,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0070 + * @tc.name: subscribeAccelerometer_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest007", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest007---------------------------'); try { sensor.subscribeAccelerometer(); @@ -289,12 +283,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0080 + * @tc.name: subscribeAccelerometer_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest008", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest008---------------------------'); try { sensor.subscribeAccelerometer('xxx'); @@ -307,12 +300,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0090 + * @tc.name: subscribeAccelerometer_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest009", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest009---------------------------'); try { sensor.unsubscribeAccelerometer('xxx'); @@ -325,12 +317,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0100 + * @tc.name: subscribeAccelerometer_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest010", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest010---------------------------'); sensor.subscribeAccelerometer({ interval: 'xxx', @@ -349,12 +340,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0110 + * @tc.name: subscribeAccelerometer_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest011", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest011---------------------------'); try { sensor.unsubscribeAccelerometer(); @@ -367,12 +357,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0120 + * @tc.name: subscribeAccelerometer_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest012", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest012---------------------------'); sensor.subscribeAccelerometer({ interval: 'normal', @@ -387,12 +376,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest013 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0130 + * @tc.name: subscribeAccelerometer_SensorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest013", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest013---------------------------'); sensor.subscribeAccelerometer({ interval: 'normal', @@ -411,12 +399,11 @@ describe("SensorJsTest_sensor_25", function () { }) /* - * @tc.name:subscribeAccelerometer_SensorJsTest014 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeAccelerometer_JSTest_0140 + * @tc.name: subscribeAccelerometer_SensorJsTest014 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeAccelerometer_SensorJsTest014", 0, async function (done) { + it("subscribeAccelerometer_SensorJsTest014", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeAccelerometer_SensorJsTest014---------------------------'); sensor.subscribeAccelerometer({ interval: 'normal', diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeBarometer.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeBarometer.js index fc90ae7fd24f1180943756c3d7636c24f7c3ec94..0304f4551eddc6534e751064832b5518d49ba9f0 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeBarometer.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeBarometer.js @@ -13,6 +13,7 @@ * limitations under the License. */ import sensor from '@system.sensor' + import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' describe("SensorJsTest_sensor_26", function () { @@ -54,12 +55,11 @@ describe("SensorJsTest_sensor_26", function () { let errMessage; /* - * @tc.name:subscribeBarometer_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("subscribeBarometer_SensorJsTest001", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0010 + * @tc.name:subscribeBarometer_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("subscribeBarometer_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeBarometer_SensorJsTest001---------------------------'); sensor.subscribeBarometer({ success: function (data) { @@ -84,13 +84,12 @@ describe("SensorJsTest_sensor_26", function () { }, 1000); }) - /* - * @tc.name:subscribeBarometer_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0020 + * @tc.name: subscribeBarometer_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest002", 0, function (done) { + it("subscribeBarometer_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeBarometer_SensorJsTest002---------------------------'); try { sensor.subscribeBarometer({ @@ -111,13 +110,12 @@ describe("SensorJsTest_sensor_26", function () { } }) - /* - * @tc.name:subscribeBarometer_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0030 + * @tc.name: subscribeBarometer_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest003", 0, function (done) { + it("subscribeBarometer_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeBarometer_SensorJsTest003---------------------------'); try { sensor.subscribeBarometer({ @@ -139,13 +137,12 @@ describe("SensorJsTest_sensor_26", function () { } }) - /* - * @tc.name:subscribeBarometer_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0040 + * @tc.name: subscribeBarometer_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest004", 0, async function (done) { + it("subscribeBarometer_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeBarometer_SensorJsTest004---------------------------'); try { sensor.unsubscribeBarometer('xxx'); @@ -157,13 +154,12 @@ describe("SensorJsTest_sensor_26", function () { } }) - /* - * @tc.name:subscribeBarometer_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0050 + * @tc.name: subscribeBarometer_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest005", 0, async function (done) { + it("subscribeBarometer_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeBarometer_SensorJsTest005---------------------------'); try { sensor.subscribeBarometer(); @@ -175,13 +171,12 @@ describe("SensorJsTest_sensor_26", function () { } }) - /* - * @tc.name:subscribeBarometer_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0060 + * @tc.name: subscribeBarometer_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest006", 0, async function (done) { + it("subscribeBarometer_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeBarometer_SensorJsTest006---------------------------'); try { sensor.subscribeBarometer('xxx'); @@ -193,13 +188,12 @@ describe("SensorJsTest_sensor_26", function () { } }) - /* - * @tc.name:subscribeBarometer_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0070 + * @tc.name: subscribeBarometer_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest007", 0, function (done) { + it("subscribeBarometer_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeBarometer_SensorJsTest007---------------------------'); sensor.subscribeBarometer({ success: function (data) { @@ -234,13 +228,12 @@ describe("SensorJsTest_sensor_26", function () { }, 1000); }) - /* - * @tc.name:subscribeBarometer_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0080 + * @tc.name: subscribeBarometer_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest008", 0, async function (done) { + it("subscribeBarometer_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeBarometer_SensorJsTest008---------------------------'); try { sensor.unsubscribeBarometer(); @@ -252,13 +245,12 @@ describe("SensorJsTest_sensor_26", function () { } }) - /* - * @tc.name:subscribeBarometer_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeBarometer_JSTest_0090 + * @tc.name: subscribeBarometer_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeBarometer_SensorJsTest009", 0, function (done) { + it("subscribeBarometer_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeBarometer_SensorJsTest009---------------------------'); sensor.subscribeBarometer({ success: function (data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeCompass.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeCompass.js index eb97244a532a36c976897b5048ef7bcaa8e4e585..6aea41650bb6b1619c82acc2d27aa0534be2c547 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeCompass.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeCompass.js @@ -53,13 +53,12 @@ describe("SensorJsTest_sensor_28", function () { let errMessage; - /* - * @tc.name:subscribeCompass_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0010 + * @tc.name: subscribeCompass_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest001", 0, function (done) { + it("subscribeCompass_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, function (done) { console.info('----------------------subscribeCompass_SensorJsTest001---------------------------'); sensor.subscribeCompass({ success: function (data) { @@ -86,12 +85,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0020 + * @tc.name: subscribeCompass_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest002", 0, function (done) { + it("subscribeCompass_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeCompass_SensorJsTest002---------------------------'); try { sensor.subscribeCompass({ @@ -113,12 +111,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("subscribeCompass_SensorJsTest003", 0, function (done) { + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0030 + * @tc.name: subscribeCompass_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("subscribeCompass_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeCompass_SensorJsTest003---------------------------'); sensor.subscribeCompass({ success: function (data) { @@ -141,12 +138,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0040 + * @tc.name: subscribeCompass_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest004", 0, function (done) { + it("subscribeCompass_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeCompass_SensorJsTest004---------------------------'); try { sensor.subscribeCompass({ @@ -169,12 +165,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0050 + * @tc.name: subscribeCompass_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest005", 0, async function (done) { + it("subscribeCompass_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeCompass_SensorJsTest005---------------------------'); try { sensor.unsubscribeCompass('xxx'); @@ -187,12 +182,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0060 + * @tc.name: subscribeCompass_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest006", 0, async function (done) { + it("subscribeCompass_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeCompass_SensorJsTest006---------------------------'); try { sensor.subscribeCompass(); @@ -205,12 +199,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0070 + * @tc.name: subscribeCompass_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest007", 0, async function (done) { + it("subscribeCompass_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeCompass_SensorJsTest007---------------------------'); try { sensor.subscribeCompass('xxx'); @@ -223,12 +216,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0080 + * @tc.name: subscribeCompass_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest008", 0, function (done) { + it("subscribeCompass_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeCompass_SensorJsTest008---------------------------'); sensor.subscribeCompass({ success: function (data) { @@ -265,12 +257,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0090 + * @tc.name: subscribeCompass_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest009", 0, async function (done) { + it("subscribeCompass_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeCompass_SensorJsTest009---------------------------'); try { sensor.unsubscribeCompass(); @@ -283,12 +274,11 @@ describe("SensorJsTest_sensor_28", function () { }) /* - * @tc.name:subscribeCompass_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeCompass_JSTest_0100 + * @tc.name: subscribeCompass_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeCompass_SensorJsTest010", 0, function (done) { + it("subscribeCompass_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeCompass_SensorJsTest010---------------------------'); sensor.subscribeCompass({ success: function (data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeDeviceOrientation.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeDeviceOrientation.js index fff4a5137f8a87c2e3598e5dacd3b54c08a17481..6f5c0fe202cea3ea4701f622bf08e89e1b725020 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeDeviceOrientation.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeDeviceOrientation.js @@ -54,12 +54,11 @@ describe("SensorJsTest_sensor_27", function () { let errMessage; /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0010 + * @tc.name: subscribeDeviceOrientation_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest001", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest001---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'game', @@ -89,13 +88,12 @@ describe("SensorJsTest_sensor_27", function () { }, 1000); }) - /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0020 + * @tc.name: subscribeDeviceOrientation_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest002", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest002---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'ui', @@ -126,12 +124,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0030 + * @tc.name: subscribeDeviceOrientation_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest003", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest003---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'normal', @@ -162,12 +159,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0040 + * @tc.name: subscribeDeviceOrientation_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest004", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest004---------------------------'); try { sensor.subscribeDeviceOrientation({ @@ -192,12 +188,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0050 + * @tc.name: subscribeDeviceOrientation_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest005", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest005---------------------------'); try { sensor.subscribeDeviceOrientation({ @@ -223,12 +218,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0060 + * @tc.name: subscribeDeviceOrientation_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest006", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest006---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'normal', @@ -273,12 +267,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0070 + * @tc.name: subscribeDeviceOrientation_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest007", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest007---------------------------'); try { sensor.subscribeDeviceOrientation(); @@ -291,12 +284,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0080 + * @tc.name: subscribeDeviceOrientation_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest008", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest008---------------------------'); try { sensor.subscribeDeviceOrientation('xxx'); @@ -309,12 +301,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0090 + * @tc.name: subscribeDeviceOrientation_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest009", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest009---------------------------'); try { sensor.unsubscribeDeviceOrientation('xxx'); @@ -326,13 +317,12 @@ describe("SensorJsTest_sensor_27", function () { } }) - /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0100 + * @tc.name: subscribeDeviceOrientation_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest010", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest010---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'xxx', @@ -351,12 +341,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0110 + * @tc.name: subscribeDeviceOrientation_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest011", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest011---------------------------'); try { sensor.unsubscribeDeviceOrientation(); @@ -369,12 +358,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0120 + * @tc.name: subscribeDeviceOrientation_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest012", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest012---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'normal', @@ -389,12 +377,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest013 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_0130 + * @tc.name: subscribeDeviceOrientation_SensorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest013", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest013---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'normal', @@ -413,12 +400,11 @@ describe("SensorJsTest_sensor_27", function () { }) /* - * @tc.name:subscribeDeviceOrientation_SensorJsTest014 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeDeviceOrientation_JSTest_010 + * @tc.name: subscribeDeviceOrientation_SensorJsTest014 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeDeviceOrientation_SensorJsTest014", 0, async function (done) { + it("subscribeDeviceOrientation_SensorJsTest014", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeDeviceOrientation_SensorJsTest014---------------------------'); sensor.subscribeDeviceOrientation({ interval: 'normal', diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeGyroscope.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeGyroscope.js index f2a4bc37943bfc91adcd88f2912d711a2032aee2..7bb2a6b1f52de78761904953f8c568c793276799 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeGyroscope.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeGyroscope.js @@ -54,12 +54,11 @@ describe("SensorJsTest_sensor_29", function () { let errMessage; /* - * @tc.name:subscribeGyroscope_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0010 + * @tc.name: subscribeGyroscope_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest001", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest001---------------------------'); sensor.subscribeGyroscope({ interval: 'game', @@ -89,12 +88,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0020 + * @tc.name: subscribeGyroscope_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest002", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest002---------------------------'); sensor.subscribeGyroscope({ interval: 'ui', @@ -124,12 +122,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0030 + * @tc.name: subscribeGyroscope_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest003", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest003---------------------------'); sensor.subscribeGyroscope({ interval: 'normal', @@ -160,12 +157,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0040 + * @tc.name: subscribeGyroscope_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest004", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest004---------------------------'); sensor.subscribeGyroscope({ interval: 'xxx', @@ -184,12 +180,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0050 + * @tc.name: subscribeGyroscope_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest005", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest005---------------------------'); sensor.subscribeGyroscope({ interval: 'normal', @@ -208,12 +203,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0060 + * @tc.name: subscribeGyroscope_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest006", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest006---------------------------'); try { sensor.subscribeGyroscope({ @@ -238,12 +232,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0070 + * @tc.name: subscribeGyroscope_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest007", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest007---------------------------'); try { sensor.subscribeGyroscope({ @@ -269,12 +262,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0080 + * @tc.name: subscribeGyroscope_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest008", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest008---------------------------'); sensor.subscribeGyroscope({ interval: 'normal', @@ -317,12 +309,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0090 + * @tc.name: subscribeGyroscope_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest009", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest009---------------------------'); try { sensor.subscribeGyroscope(); @@ -335,12 +326,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0100 + * @tc.name: subscribeGyroscope_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest010", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest010---------------------------'); try { sensor.subscribeGyroscope('xxx'); @@ -352,13 +342,12 @@ describe("SensorJsTest_sensor_29", function () { } }) - /* - * @tc.name:subscribeGyroscope_SensorJsTest011 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0110 + * @tc.name: subscribeGyroscope_SensorJsTest011 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest011", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest011", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest011---------------------------'); try { sensor.unsubscribeGyroscope(); @@ -371,12 +360,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest012 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0120 + * @tc.name: subscribeGyroscope_SensorJsTest012 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest012", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest012", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest012---------------------------'); try { sensor.unsubscribeGyroscope('xxx'); @@ -389,12 +377,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest013 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0130 + * @tc.name: subscribeGyroscope_SensorJsTest013 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest013", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest013", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest013---------------------------'); sensor.subscribeGyroscope({ interval: 'normal', @@ -409,12 +396,11 @@ describe("SensorJsTest_sensor_29", function () { }) /* - * @tc.name:subscribeGyroscope_SensorJsTest014 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeGyroscope_JSTest_0140 + * @tc.name: subscribeGyroscope_SensorJsTest014 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeGyroscope_SensorJsTest014", 0, async function (done) { + it("subscribeGyroscope_SensorJsTest014", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeGyroscope_SensorJsTest014---------------------------'); sensor.subscribeGyroscope({ interval: 'normal', diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeHeartRate.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeHeartRate.js index 966cdf3b1068d499b613766f1eb7ae230922b1d3..beecb6b0f14cf84da74086148da6aafe01abff67 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeHeartRate.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeHeartRate.js @@ -54,12 +54,11 @@ describe("SensorJsTest_sensor_30", function () { let errMessage; /* - * @tc.name:subscribeHeartRate_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("subscribeHeartRate_SensorJsTest001", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0010 + * @tc.name: subscribeHeartRate_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("subscribeHeartRate_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest001---------------------------'); sensor.subscribeHeartRate({ success: function (data) { @@ -85,12 +84,11 @@ describe("SensorJsTest_sensor_30", function () { }) /* - * @tc.name:subscribeHeartRate_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0020 + * @tc.name: subscribeHeartRate_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest002", 0, function (done) { + it("subscribeHeartRate_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest002---------------------------'); try { sensor.subscribeHeartRate({ @@ -112,12 +110,11 @@ describe("SensorJsTest_sensor_30", function () { }) /* - * @tc.name:subscribeHeartRate_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0030 + * @tc.name: subscribeHeartRate_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest003", 0, function (done) { + it("subscribeHeartRate_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest003---------------------------'); try { sensor.subscribeHeartRate({ @@ -140,12 +137,11 @@ describe("SensorJsTest_sensor_30", function () { }) /* - * @tc.name:subscribeHeartRate_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0040 + * @tc.name: subscribeHeartRate_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest004", 0, async function (done) { + it("subscribeHeartRate_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest004---------------------------'); try { sensor.unsubscribeHeartRate('xxx'); @@ -158,12 +154,11 @@ describe("SensorJsTest_sensor_30", function () { }) /* - * @tc.name:subscribeHeartRate_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0050 + * @tc.name: subscribeHeartRate_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest005", 0, async function (done) { + it("subscribeHeartRate_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest005---------------------------'); try { sensor.subscribeHeartRate(); @@ -176,12 +171,11 @@ describe("SensorJsTest_sensor_30", function () { }) /* - * @tc.name:subscribeHeartRate_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0060 + * @tc.name: subscribeHeartRate_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest006", 0, async function (done) { + it("subscribeHeartRate_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest006---------------------------'); try { sensor.subscribeHeartRate('xxx'); @@ -194,12 +188,11 @@ describe("SensorJsTest_sensor_30", function () { }) /* - * @tc.name:subscribeHeartRate_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0070 + * @tc.name: subscribeHeartRate_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest007", 0, function (done) { + it("subscribeHeartRate_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest007---------------------------'); sensor.subscribeHeartRate({ success: function (data) { @@ -235,12 +228,11 @@ describe("SensorJsTest_sensor_30", function () { }) /* - * @tc.name:subscribeHeartRate_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0080 + * @tc.name: subscribeHeartRate_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest008", 0, async function (done) { + it("subscribeHeartRate_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest008---------------------------'); try { sensor.unsubscribeHeartRate(); @@ -252,13 +244,12 @@ describe("SensorJsTest_sensor_30", function () { } }) - /* - * @tc.name:subscribeHeartRate_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeHeartRate_JSTest_0090 + * @tc.name: subscribeHeartRate_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeHeartRate_SensorJsTest009", 0, function (done) { + it("subscribeHeartRate_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeHeartRate_SensorJsTest009---------------------------'); sensor.subscribeHeartRate({ success: function (data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeLight.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeLight.js index 153f228cc55874281dcfd087842dbe3b2291e8d7..ed0a089f3345cc96fd26275569d79f16c0d072df 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeLight.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeLight.js @@ -54,12 +54,11 @@ describe("SensorJsTest_sensor_31", function () { let errMessage; /* - * @tc.name:subscribeLight_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0010 + * @tc.name: subscribeLight_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest001", 0, function (done) { + it("subscribeLight_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, function (done) { console.info('----------------------subscribeLight_SensorJsTest001---------------------------'); sensor.subscribeLight({ success: function (data) { @@ -86,12 +85,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0020 + * @tc.name: subscribeLight_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest002", 0, function (done) { + it("subscribeLight_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeLight_SensorJsTest002---------------------------'); try { sensor.subscribeLight({ @@ -113,12 +111,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("subscribeLight_SensorJsTest003", 0, function (done) { + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0030 + * @tc.name: subscribeLight_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("subscribeLight_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeLight_SensorJsTest003---------------------------'); sensor.subscribeLight({ success: function (data) { @@ -141,12 +138,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0040 + * @tc.name: subscribeLight_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest004", 0, function (done) { + it("subscribeLight_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeLight_SensorJsTest004---------------------------'); try { sensor.subscribeLight({ @@ -169,12 +165,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0050 + * @tc.name: subscribeLight_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest005", 0, async function (done) { + it("subscribeLight_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeLight_SensorJsTest005---------------------------'); try { sensor.unsubscribeLight('xxx'); @@ -187,12 +182,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0060 + * @tc.name: subscribeLight_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest006", 0, async function (done) { + it("subscribeLight_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeLight_SensorJsTest006---------------------------'); try { sensor.subscribeLight(); @@ -205,12 +199,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0070 + * @tc.name: subscribeLight_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest007", 0, async function (done) { + it("subscribeLight_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeLight_SensorJsTest007---------------------------'); try { sensor.subscribeLight('xxx'); @@ -223,12 +216,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0080 + * @tc.name: subscribeLight_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest008", 0, function (done) { + it("subscribeLight_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeLight_SensorJsTest008---------------------------'); sensor.subscribeLight({ success: function (data) { @@ -265,12 +257,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0090 + * @tc.name: subscribeLight_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest009", 0, async function (done) { + it("subscribeLight_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeLight_SensorJsTest009---------------------------'); try { sensor.unsubscribeLight(); @@ -283,12 +274,11 @@ describe("SensorJsTest_sensor_31", function () { }) /* - * @tc.name:subscribeLight_SensorJsTest010 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeLight_JSTest_0100 + * @tc.name: subscribeLight_SensorJsTest010 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeLight_SensorJsTest010", 0, function (done) { + it("subscribeLight_SensorJsTest010", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeLight_SensorJsTest010---------------------------'); sensor.subscribeLight({ success: function (data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeOnBodyState.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeOnBodyState.js index ab0e8d8df5f61b38b44f94f656b03da6eacb576f..690e1cd1858a59c6f0ec3e367315926d8217ed65 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeOnBodyState.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeOnBodyState.js @@ -54,12 +54,11 @@ describe("SensorJsTest_sensor_32", function () { let errMessage; /* - * @tc.name:subscribeOnBodyState_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("subscribeOnBodyState_SensorJsTest001", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0010 + * @tc.name: subscribeOnBodyState_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("subscribeOnBodyState_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest001---------------------------'); sensor.subscribeOnBodyState({ success: function (data) { @@ -85,12 +84,11 @@ describe("SensorJsTest_sensor_32", function () { }) /* - * @tc.name:subscribeOnBodyState_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0020 + * @tc.name: subscribeOnBodyState_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest002", 0, function (done) { + it("subscribeOnBodyState_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest002---------------------------'); try { sensor.subscribeOnBodyState({ @@ -112,12 +110,11 @@ describe("SensorJsTest_sensor_32", function () { }) /* - * @tc.name:subscribeOnBodyState_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0030 + * @tc.name: subscribeOnBodyState_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest003", 0, function (done) { + it("subscribeOnBodyState_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest003---------------------------'); try { sensor.subscribeOnBodyState({ @@ -140,12 +137,11 @@ describe("SensorJsTest_sensor_32", function () { }) /* - * @tc.name:subscribeOnBodyState_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0040 + * @tc.name: subscribeOnBodyState_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest004", 0, async function (done) { + it("subscribeOnBodyState_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest004---------------------------'); try { sensor.unsubscribeOnBodyState('xxx'); @@ -158,12 +154,11 @@ describe("SensorJsTest_sensor_32", function () { }) /* - * @tc.name:subscribeOnBodyState_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0050 + * @tc.name: subscribeOnBodyState_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest005", 0, async function (done) { + it("subscribeOnBodyState_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest005---------------------------'); try { sensor.subscribeOnBodyState(); @@ -176,12 +171,11 @@ describe("SensorJsTest_sensor_32", function () { }) /* - * @tc.name:subscribeOnBodyState_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0060 + * @tc.name: subscribeOnBodyState_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest006", 0, async function (done) { + it("subscribeOnBodyState_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest006---------------------------'); try { sensor.subscribeOnBodyState('xxx'); @@ -193,13 +187,12 @@ describe("SensorJsTest_sensor_32", function () { } }) - /* - * @tc.name:subscribeOnBodyState_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + /* + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0070 + * @tc.name: subscribeOnBodyState_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest007", 0, function (done) { + it("subscribeOnBodyState_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest007---------------------------'); sensor.subscribeOnBodyState({ success: function (data) { @@ -235,12 +228,11 @@ describe("SensorJsTest_sensor_32", function () { }) /* - * @tc.name:subscribeOnBodyState_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0080 + * @tc.name: subscribeOnBodyState_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest008", 0, async function (done) { + it("subscribeOnBodyState_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest008---------------------------'); try { sensor.unsubscribeOnBodyState(); @@ -253,12 +245,11 @@ describe("SensorJsTest_sensor_32", function () { }) /* - * @tc.name:subscribeOnBodyState_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeOnBodyState_JSTest_0090 + * @tc.name: subscribeOnBodyState_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeOnBodyState_SensorJsTest009", 0, function (done) { + it("subscribeOnBodyState_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeOnBodyState_SensorJsTest009---------------------------'); sensor.subscribeOnBodyState({ success: function (data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeProximity.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeProximity.js index a9aecb5550f63b664d704c1e93e8fc156bc65dcb..0704372077ea503ba04ec0e00ee9b4a56706c5b3 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeProximity.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeProximity.js @@ -54,12 +54,11 @@ describe("SensorJsTest_sensor_33", function () { let errMessage; /* - * @tc.name:subscribeProximity_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("subscribeProximity_SensorJsTest001", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0010 + * @tc.name: subscribeProximity_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("subscribeProximity_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeProximity_SensorJsTest001---------------------------'); sensor.subscribeProximity({ success: function (data) { @@ -85,12 +84,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0020 + * @tc.name: subscribeProximity_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest002", 0, function (done) { + it("subscribeProximity_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeProximity_SensorJsTest002---------------------------'); try { sensor.subscribeProximity({ @@ -112,12 +110,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0030 + * @tc.name: subscribeProximity_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest003", 0, function (done) { + it("subscribeProximity_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeProximity_SensorJsTest003---------------------------'); try { sensor.subscribeProximity({ @@ -140,12 +137,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0040 + * @tc.name: subscribeProximity_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest004", 0, async function (done) { + it("subscribeProximity_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeProximity_SensorJsTest004---------------------------'); try { sensor.unsubscribeProximity('xxx'); @@ -158,12 +154,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0050 + * @tc.name: subscribeProximity_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest005", 0, async function (done) { + it("subscribeProximity_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeProximity_SensorJsTest005---------------------------'); try { sensor.subscribeProximity(); @@ -176,12 +171,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0060 + * @tc.name: subscribeProximity_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest006", 0, async function (done) { + it("subscribeProximity_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeProximity_SensorJsTest006---------------------------'); try { sensor.subscribeProximity('xxx'); @@ -194,12 +188,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0070 + * @tc.name: subscribeProximity_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest007", 0, function (done) { + it("subscribeProximity_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeProximity_SensorJsTest007---------------------------'); sensor.subscribeProximity({ success: function (data) { @@ -235,12 +228,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0080 + * @tc.name: subscribeProximity_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest008", 0, async function (done) { + it("subscribeProximity_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeProximity_SensorJsTest008---------------------------'); try { sensor.unsubscribeProximity(); @@ -253,12 +245,11 @@ describe("SensorJsTest_sensor_33", function () { }) /* - * @tc.name:subscribeProximity_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeProximity_JSTest_0090 + * @tc.name: subscribeProximity_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeProximity_SensorJsTest009", 0, function (done) { + it("subscribeProximity_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeProximity_SensorJsTest009---------------------------'); sensor.subscribeProximity({ success: function (data) { diff --git a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeStepCounter.js b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeStepCounter.js index 0f124f34f04cc594e214856e37c488f11be1fe8d..92ecdb5011a6a0dcadaceedcd8be0284336978ce 100644 --- a/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeStepCounter.js +++ b/sensors/sensor_standard/src/main/js/default/test/Subscribe_subscribeStepCounter.js @@ -54,12 +54,11 @@ describe("SensorJsTest_sensor_34", function () { let errMessage; /* - * @tc.name:subscribeStepCounter_SensorJsTest001 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM - */ - it("subscribeStepCounter_SensorJsTest001", 0, async function (done) { + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0010 + * @tc.name: subscribeStepCounter_SensorJsTest001 + * @tc.desc:Verification results of the incorrect parameters of the test interface. + */ + it("subscribeStepCounter_SensorJsTest001", FUNCTION|MEDIUMTEST|LEVEL0, async function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest001---------------------------'); sensor.subscribeStepCounter({ success: function (data) { @@ -85,12 +84,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest002 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0020 + * @tc.name: subscribeStepCounter_SensorJsTest002 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest002", 0, function (done) { + it("subscribeStepCounter_SensorJsTest002", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest002---------------------------'); try { sensor.subscribeStepCounter({ @@ -112,12 +110,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest003 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0030 + * @tc.name: subscribeStepCounter_SensorJsTest003 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest003", 0, function (done) { + it("subscribeStepCounter_SensorJsTest003", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest003---------------------------'); try { sensor.subscribeStepCounter({ @@ -140,12 +137,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest004 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0040 + * @tc.name: subscribeStepCounter_SensorJsTest004 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest004", 0, async function (done) { + it("subscribeStepCounter_SensorJsTest004", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest004---------------------------'); try { sensor.unsubscribeStepCounter('xxx'); @@ -158,12 +154,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest005 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0050 + * @tc.name: subscribeStepCounter_SensorJsTest005 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest005", 0, async function (done) { + it("subscribeStepCounter_SensorJsTest005", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest005---------------------------'); try { sensor.subscribeStepCounter(); @@ -176,12 +171,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest006 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0060 + * @tc.name: subscribeStepCounter_SensorJsTest006 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest006", 0, async function (done) { + it("subscribeStepCounter_SensorJsTest006", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest006---------------------------'); try { sensor.subscribeStepCounter('xxx'); @@ -194,12 +188,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest007 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0070 + * @tc.name: subscribeStepCounter_SensorJsTest007 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest007", 0, function (done) { + it("subscribeStepCounter_SensorJsTest007", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest007---------------------------'); sensor.subscribeStepCounter({ success: function (data) { @@ -235,12 +228,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest008 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0080 + * @tc.name: subscribeStepCounter_SensorJsTest008 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest008", 0, async function (done) { + it("subscribeStepCounter_SensorJsTest008", FUNCTION|MEDIUMTEST|LEVEL3, async function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest008---------------------------'); try { sensor.unsubscribeStepCounter(); @@ -253,12 +245,11 @@ describe("SensorJsTest_sensor_34", function () { }) /* - * @tc.name:subscribeStepCounter_SensorJsTest009 - * @tc.desc:verify app info is not null - * @tc.type: FUNC - * @tc.require: SR000H0ALK, AR000H0ALM + * @tc.number:SUB_SensorsSystem_SubscribeStepCounter_JSTest_0090 + * @tc.name: subscribeStepCounter_SensorJsTest009 + * @tc.desc:Verification results of the incorrect parameters of the test interface. */ - it("subscribeStepCounter_SensorJsTest009", 0, function (done) { + it("subscribeStepCounter_SensorJsTest009", FUNCTION|MEDIUMTEST|LEVEL3, function (done) { console.info('----------------------subscribeStepCounter_SensorJsTest009---------------------------'); sensor.subscribeStepCounter({ success: function (data) {