提交 f9ae1827 编写于 作者: C chenxuihui

xts suites format bugfix

Signed-off-by: Nchenxuihui <chenxuhui2@huawei.com>
上级 deef2fe5
...@@ -17,36 +17,21 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from ' ...@@ -17,36 +17,21 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
describe('hiSysEventJsTest', function () { describe('hiSysEventJsTest', function () {
beforeAll(function() { beforeAll(function() {
/**
* @tc.setup: setup invoked before all test cases
*/
console.info('hiSysEventJsTest beforeAll called') console.info('hiSysEventJsTest beforeAll called')
}) })
afterAll(function() { afterAll(function() {
/**
* @tc.teardown: teardown invoked after all test cases
*/
console.info('hiSysEventJsTest afterAll called') console.info('hiSysEventJsTest afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
/**
* @tc.setup: setup invoked before each test case
*/
console.info('hiSysEventJsTest beforeEach called') console.info('hiSysEventJsTest beforeEach called')
}) })
afterEach(function() { afterEach(function() {
/**
* @tc.teardown: teardown invoked after each test case
*/
console.info('hiSysEventJsTest afterEach called') console.info('hiSysEventJsTest afterEach called')
}) })
/** /**
* @tc.number DFX_DFT_HiSysEvent_JS_0100 * @tc.number DFX_DFT_HiSysEvent_JS_0100
* @tc.name testHiSysEventApi01 * @tc.name testHiSysEventApi01
...@@ -93,6 +78,7 @@ describe('hiSysEventJsTest', function () { ...@@ -93,6 +78,7 @@ describe('hiSysEventJsTest', function () {
) )
console.info('testHiSysEventApi02 end') console.info('testHiSysEventApi02 end')
}) })
/** /**
* @tc.number DFX_DFT_HiSysEvent_JS_0400 * @tc.number DFX_DFT_HiSysEvent_JS_0400
* @tc.name testHiSysEventApi04 * @tc.name testHiSysEventApi04
...@@ -197,11 +183,11 @@ describe('hiSysEventJsTest', function () { ...@@ -197,11 +183,11 @@ describe('hiSysEventJsTest', function () {
console.info('testHiSysEventApi07 end') console.info('testHiSysEventApi07 end')
}) })
/** /**
* @tc.number DFX_DFT_HiSysEvent_JS_0800 * @tc.number DFX_DFT_HiSysEvent_JS_0800
* @tc.name testHiSysEventApi08 * @tc.name testHiSysEventApi08
* @tc.desc 添加Js打点事件-添加成功后回调函数被调用(domain+eventName+params, eventType=FAULT) * @tc.desc 添加Js打点事件-添加成功后回调函数被调用(domain+eventName+params, eventType=FAULT)
*/ */
it('testHiSysEventApi08', 3, async function (done) { it('testHiSysEventApi08', 3, async function (done) {
console.info('testHiSysEventApi08 start') console.info('testHiSysEventApi08 start')
hiSysEvent.write({ hiSysEvent.write({
...@@ -345,7 +331,8 @@ describe('hiSysEventJsTest', function () { ...@@ -345,7 +331,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi12: OnEvent...`) console.info(`testHiSysEventApi12: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi12: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi12: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi12: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi12: ${key}: ${info.params[key]}`)
...@@ -366,7 +353,7 @@ describe('hiSysEventJsTest', function () { ...@@ -366,7 +353,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_1300 * @tc.number DFX_DFT_HiSysEvent_JS_1300
* @tc.name testHiSysEventApi13 * @tc.name testHiSysEventApi13
* @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName, rule=REGULAR) * @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName, rule=REGULAR)
*/ */
it('testHiSysEventApi13', 3, async function (done) { it('testHiSysEventApi13', 3, async function (done) {
console.info('testHiSysEventApi13 start') console.info('testHiSysEventApi13 start')
let watcher = { let watcher = {
...@@ -378,7 +365,8 @@ describe('hiSysEventJsTest', function () { ...@@ -378,7 +365,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi13: OnEvent...`) console.info(`testHiSysEventApi13: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi13: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi13: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi13: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi13: ${key}: ${info.params[key]}`)
...@@ -399,7 +387,7 @@ describe('hiSysEventJsTest', function () { ...@@ -399,7 +387,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_1400 * @tc.number DFX_DFT_HiSysEvent_JS_1400
* @tc.name testHiSysEventApi14 * @tc.name testHiSysEventApi14
* @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName, rule=WHOLE_WORD) * @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName, rule=WHOLE_WORD)
*/ */
it('testHiSysEventApi14', 3, async function (done) { it('testHiSysEventApi14', 3, async function (done) {
console.info('testHiSysEventApi14 start') console.info('testHiSysEventApi14 start')
let watcher = { let watcher = {
...@@ -411,7 +399,8 @@ describe('hiSysEventJsTest', function () { ...@@ -411,7 +399,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi14: OnEvent...`) console.info(`testHiSysEventApi14: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi14: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi14: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi14: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi14: ${key}: ${info.params[key]}`)
...@@ -432,7 +421,7 @@ describe('hiSysEventJsTest', function () { ...@@ -432,7 +421,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_1500 * @tc.number DFX_DFT_HiSysEvent_JS_1500
* @tc.name testHiSysEventApi15 * @tc.name testHiSysEventApi15
* @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName+tag, rule=PREFIX) * @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName+tag, rule=PREFIX)
*/ */
it('testHiSysEventApi15', 3, async function (done) { it('testHiSysEventApi15', 3, async function (done) {
console.info('testHiSysEventApi15 start') console.info('testHiSysEventApi15 start')
let watcher = { let watcher = {
...@@ -445,7 +434,8 @@ describe('hiSysEventJsTest', function () { ...@@ -445,7 +434,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi15: OnEvent...`) console.info(`testHiSysEventApi15: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi15: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi15: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi15: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi15: ${key}: ${info.params[key]}`)
...@@ -466,7 +456,7 @@ describe('hiSysEventJsTest', function () { ...@@ -466,7 +456,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_1600 * @tc.number DFX_DFT_HiSysEvent_JS_1600
* @tc.name testHiSysEventApi16 * @tc.name testHiSysEventApi16
* @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName+tag, rule=REGULAR) * @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName+tag, rule=REGULAR)
*/ */
it('testHiSysEventApi16', 3, async function (done) { it('testHiSysEventApi16', 3, async function (done) {
console.info('testHiSysEventApi16 start') console.info('testHiSysEventApi16 start')
let watcher = { let watcher = {
...@@ -479,7 +469,8 @@ describe('hiSysEventJsTest', function () { ...@@ -479,7 +469,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi16: OnEvent...`) console.info(`testHiSysEventApi16: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi16: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi16: domain is : ${info.domain},
name is ${info.name}, eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi16: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi16: ${key}: ${info.params[key]}`)
...@@ -500,7 +491,7 @@ describe('hiSysEventJsTest', function () { ...@@ -500,7 +491,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_1700 * @tc.number DFX_DFT_HiSysEvent_JS_1700
* @tc.name testHiSysEventApi17 * @tc.name testHiSysEventApi17
* @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName+tag, rule=WHOLE_WORD) * @tc.desc HiSysEvent订阅接口测试-订阅成功回调函数被调用(domain+eventName+tag, rule=WHOLE_WORD)
*/ */
it('testHiSysEventApi17', 3, async function (done) { it('testHiSysEventApi17', 3, async function (done) {
console.info('testHiSysEventApi17 start') console.info('testHiSysEventApi17 start')
let watcher = { let watcher = {
...@@ -513,7 +504,8 @@ describe('hiSysEventJsTest', function () { ...@@ -513,7 +504,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi17: OnEvent...`) console.info(`testHiSysEventApi17: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi17: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi17: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi17: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi17: ${key}: ${info.params[key]}`)
...@@ -546,7 +538,8 @@ describe('hiSysEventJsTest', function () { ...@@ -546,7 +538,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi18: OnEvent...`) console.info(`testHiSysEventApi18: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi18: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi18: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi18: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi18: ${key}: ${info.params[key]}`)
...@@ -572,7 +565,7 @@ describe('hiSysEventJsTest', function () { ...@@ -572,7 +565,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_1900 * @tc.number DFX_DFT_HiSysEvent_JS_1900
* @tc.name testHiSysEventApi19 * @tc.name testHiSysEventApi19
* @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName, rule=REGULAR) * @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName, rule=REGULAR)
*/ */
it('testHiSysEventApi19', 3, async function (done) { it('testHiSysEventApi19', 3, async function (done) {
console.info('testHiSysEventApi19 start') console.info('testHiSysEventApi19 start')
let watcher = { let watcher = {
...@@ -584,7 +577,8 @@ describe('hiSysEventJsTest', function () { ...@@ -584,7 +577,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi19: OnEvent...`) console.info(`testHiSysEventApi19: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi19: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi19: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi19: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi19: ${key}: ${info.params[key]}`)
...@@ -610,7 +604,7 @@ describe('hiSysEventJsTest', function () { ...@@ -610,7 +604,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_2000 * @tc.number DFX_DFT_HiSysEvent_JS_2000
* @tc.name testHiSysEventApi20 * @tc.name testHiSysEventApi20
* @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName, rule=WHOLE_WORD) * @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName, rule=WHOLE_WORD)
*/ */
it('testHiSysEventApi20', 3, async function (done) { it('testHiSysEventApi20', 3, async function (done) {
console.info('testHiSysEventApi14 start') console.info('testHiSysEventApi14 start')
let watcher = { let watcher = {
...@@ -622,7 +616,8 @@ describe('hiSysEventJsTest', function () { ...@@ -622,7 +616,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi20: OnEvent...`) console.info(`testHiSysEventApi20: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi20: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi20: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi20: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi20: ${key}: ${info.params[key]}`)
...@@ -648,7 +643,7 @@ describe('hiSysEventJsTest', function () { ...@@ -648,7 +643,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_2100 * @tc.number DFX_DFT_HiSysEvent_JS_2100
* @tc.name testHiSysEventApi21 * @tc.name testHiSysEventApi21
* @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName+tag, rule=PREFIX) * @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName+tag, rule=PREFIX)
*/ */
it('testHiSysEventApi21', 3, async function (done) { it('testHiSysEventApi21', 3, async function (done) {
console.info('testHiSysEventApi21 start') console.info('testHiSysEventApi21 start')
let watcher = { let watcher = {
...@@ -661,7 +656,8 @@ describe('hiSysEventJsTest', function () { ...@@ -661,7 +656,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi21: OnEvent...`) console.info(`testHiSysEventApi21: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi21: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi21: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi21: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi21: ${key}: ${info.params[key]}`)
...@@ -687,7 +683,7 @@ describe('hiSysEventJsTest', function () { ...@@ -687,7 +683,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_2200 * @tc.number DFX_DFT_HiSysEvent_JS_2200
* @tc.name testHiSysEventApi22 * @tc.name testHiSysEventApi22
* @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName+tag, rule=REGULAR) * @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName+tag, rule=REGULAR)
*/ */
it('testHiSysEventApi22', 3, async function (done) { it('testHiSysEventApi22', 3, async function (done) {
console.info('testHiSysEventApi22 start') console.info('testHiSysEventApi22 start')
let watcher = { let watcher = {
...@@ -700,7 +696,8 @@ describe('hiSysEventJsTest', function () { ...@@ -700,7 +696,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi22: OnEvent...`) console.info(`testHiSysEventApi22: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi22: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi22: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi22: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi22: ${key}: ${info.params[key]}`)
...@@ -726,7 +723,7 @@ describe('hiSysEventJsTest', function () { ...@@ -726,7 +723,7 @@ describe('hiSysEventJsTest', function () {
* @tc.number DFX_DFT_HiSysEvent_JS_2300 * @tc.number DFX_DFT_HiSysEvent_JS_2300
* @tc.name testHiSysEventApi23 * @tc.name testHiSysEventApi23
* @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName+tag, rule=WHOLE_WORD) * @tc.desc HiSysEvent删除订阅接口测试-删除订阅成功回调函数被调用(domain+eventName+tag, rule=WHOLE_WORD)
*/ */
it('testHiSysEventApi23', 3, async function (done) { it('testHiSysEventApi23', 3, async function (done) {
console.info('testHiSysEventApi23 start') console.info('testHiSysEventApi23 start')
let watcher = { let watcher = {
...@@ -739,7 +736,8 @@ describe('hiSysEventJsTest', function () { ...@@ -739,7 +736,8 @@ describe('hiSysEventJsTest', function () {
onEvent: (info) => { onEvent: (info) => {
console.info(`testHiSysEventApi23: OnEvent...`) console.info(`testHiSysEventApi23: OnEvent...`)
expect(Object.keys(info).length > 0).assertTrue() expect(Object.keys(info).length > 0).assertTrue()
console.info(`testHiSysEventApi23: domain is : ${info.domain}, name is ${info.name}, eventType is ${info.eventType}`) console.info(`testHiSysEventApi23: domain is : ${info.domain}, name is ${info.name},
eventType is ${info.eventType}`)
if (info.params instanceof Object) { if (info.params instanceof Object) {
for (const key in info.params) { for (const key in info.params) {
console.info(`testHiSysEventApi23: ${key}: ${info.params[key]}`) console.info(`testHiSysEventApi23: ${key}: ${info.params[key]}`)
...@@ -806,7 +804,8 @@ describe('hiSysEventJsTest', function () { ...@@ -806,7 +804,8 @@ describe('hiSysEventJsTest', function () {
if (infos instanceof Array) { if (infos instanceof Array) {
for (let i = 0; i < infos.length; i++) { for (let i = 0; i < infos.length; i++) {
let item = infos[i]; let item = infos[i];
console.info(`testHiSysEventApi24: domain is ${item.domain}, name is ${item.name}, eventType is ${item.eventType}`) console.info(`testHiSysEventApi24: domain is ${item.domain}, name is ${item.name},
eventType is ${item.eventType}`)
if (item.params instanceof Object) { if (item.params instanceof Object) {
for (const key in item.params) { for (const key in item.params) {
console.info(`testHiSysEventApi24: ${key}: ${item.params[key]}`) console.info(`testHiSysEventApi24: ${key}: ${item.params[key]}`)
...@@ -884,7 +883,8 @@ describe('hiSysEventJsTest', function () { ...@@ -884,7 +883,8 @@ describe('hiSysEventJsTest', function () {
if (infos instanceof Array) { if (infos instanceof Array) {
for (let i = 0; i < infos.length; i++) { for (let i = 0; i < infos.length; i++) {
let item = infos[i]; let item = infos[i];
console.info(`testHiSysEventApi25: domain is ${item.domain}, name is ${item.name}, eventType is ${item.eventType}`) console.info(`testHiSysEventApi25: domain is ${item.domain}, name is ${item.name},
eventType is ${item.eventType}`)
if (item.params instanceof Object) { if (item.params instanceof Object) {
for (const key in item.params) { for (const key in item.params) {
console.info(`testHiSysEventApi25: ${key}: ${item.params[key]}`) console.info(`testHiSysEventApi25: ${key}: ${item.params[key]}`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册