未验证 提交 dcc7651a 编写于 作者: O openharmony_ci 提交者: Gitee

!4054 【multimodalinput&sensors】【master】问题用例整改

Merge pull request !4054 from logic42/master
......@@ -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`);
});
})
})
......@@ -16,4 +16,3 @@
require('./InputDevice.test.js')
require('./MultimodalInputKey_Code.test.js')
require('./inputMonitor.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`);
})
})
/*
* 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
......@@ -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) {
......
......@@ -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');
......
......@@ -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');
......
......@@ -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) {
......
......@@ -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');
......
......@@ -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');
......
......@@ -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');
......
......@@ -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');
......
......@@ -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) {
......
......@@ -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');
......
......@@ -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) {
......
......@@ -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');
......
......@@ -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');
......
......@@ -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(() => {
......
......@@ -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) {
......
......@@ -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(() => {
......
......@@ -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(() => {
......
......@@ -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(() => {
......
......@@ -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 });
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册