提交 e663627f 编写于 作者: O openharmony_ci 提交者: Gitee

!738 同步修改设备管理xts测试套告警

Merge pull request !738 from 刘晓培/cherry-pick-1632561768
......@@ -21,7 +21,6 @@ ohos_js_hap_suite("devicemanager_js_test") {
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "devicemanagerjstest"
}
ohos_js_assets("devicemanager_js_assets") {
source_dir = "./src/main/js/default"
......
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export default {
onCreate() {
console.info('AceApplication onCreate');
......
import file from '@system.file'
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import app from '@system.app'
import {Core} from 'deccjsunit/index'
export default {
data: {
title: ""
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
const core = Core.getInstance()
/* const expectExtend = new ExpectExtend({
'id': 'extend'
})*/
/*const reportExtend = new ReportExtend(file)
core.addService('expect', expectExtend)
core.addService('report', reportExtend)*/
core.init()
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
}
export default {
data: {
title: ''
},
onInit() {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
const core = Core.getInstance()
core.init()
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../test/List.test')
core.execute()
},
onReady() {
},
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import app from '@system.app';
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import deviceManager from '@ohos.distributedHardware.deviceManager'
describe('deviceManagerTest', function() {
console.log("---deviceManager接口测试---")
/*
* @tc.number deviceManagerTest_createDeviceManager_0100
......@@ -288,7 +300,6 @@ describe('deviceManagerTest', function() {
done();
})
/*
* @tc.number deviceManagerTest_on-deviceStateChange_0100
* @tc.name testcase for deviceStateChange on
......@@ -448,6 +459,4 @@ describe('deviceManagerTest', function() {
console.log("----------stop running deviceManagerTest_off-serviceDie_0100----------");
done();
})
})
\ No newline at end of file
......@@ -38,6 +38,7 @@ _all_test_packages = [
"${ACTS_ROOT}/graphic:graphic",
"${ACTS_ROOT}/ace:ace",
"${ACTS_ROOT}/storage:storage",
"${ACTS_ROOT}/distributedhardware:distributedhardware",
]
_all_test_packages_ivi = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册