提交 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") { ...@@ -21,7 +21,6 @@ ohos_js_hap_suite("devicemanager_js_test") {
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "devicemanagerjstest" hap_name = "devicemanagerjstest"
} }
ohos_js_assets("devicemanager_js_assets") { ohos_js_assets("devicemanager_js_assets") {
source_dir = "./src/main/js/default" 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 { export default {
onCreate() { onCreate() {
console.info('AceApplication 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 app from '@system.app'
import {Core} from 'deccjsunit/index' import {Core} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
title: "" title: ''
}, },
onInit() { onInit() {
this.title = this.$t('strings.world'); this.title = this.$t('strings.world');
...@@ -13,19 +30,12 @@ export default { ...@@ -13,19 +30,12 @@ export default {
onShow() { onShow() {
console.info('onShow finish') console.info('onShow finish')
const core = Core.getInstance() 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() core.init()
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
require('../../test/List.test')
require('../../../test/List.test')
core.execute() 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 app from '@system.app';
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
import deviceManager from '@ohos.distributedHardware.deviceManager' import deviceManager from '@ohos.distributedHardware.deviceManager'
describe('deviceManagerTest', function() { describe('deviceManagerTest', function() {
console.log("---deviceManager接口测试---")
/* /*
* @tc.number deviceManagerTest_createDeviceManager_0100 * @tc.number deviceManagerTest_createDeviceManager_0100
...@@ -288,7 +300,6 @@ describe('deviceManagerTest', function() { ...@@ -288,7 +300,6 @@ describe('deviceManagerTest', function() {
done(); done();
}) })
/* /*
* @tc.number deviceManagerTest_on-deviceStateChange_0100 * @tc.number deviceManagerTest_on-deviceStateChange_0100
* @tc.name testcase for deviceStateChange on * @tc.name testcase for deviceStateChange on
...@@ -448,6 +459,4 @@ describe('deviceManagerTest', function() { ...@@ -448,6 +459,4 @@ describe('deviceManagerTest', function() {
console.log("----------stop running deviceManagerTest_off-serviceDie_0100----------"); console.log("----------stop running deviceManagerTest_off-serviceDie_0100----------");
done(); done();
}) })
}) })
\ No newline at end of file
...@@ -38,6 +38,7 @@ _all_test_packages = [ ...@@ -38,6 +38,7 @@ _all_test_packages = [
"${ACTS_ROOT}/graphic:graphic", "${ACTS_ROOT}/graphic:graphic",
"${ACTS_ROOT}/ace:ace", "${ACTS_ROOT}/ace:ace",
"${ACTS_ROOT}/storage:storage", "${ACTS_ROOT}/storage:storage",
"${ACTS_ROOT}/distributedhardware:distributedhardware",
] ]
_all_test_packages_ivi = [ _all_test_packages_ivi = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册