提交 fcc171c9 编写于 作者: Y yexiangbin

telephony新增

Signed-off-by: Nyexiangbin <yexiangbin@huawei.com>
上级 bf560b99
# 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("//build/ohos_var.gni")
group("telephonyjstest") {
testonly = true
if (is_standard_system) {
deps = [
# "network_search_test:network_search_test",
# "sms_mms:sms_mms_test",
# "call_manager:call_manager",
]
}
}
# 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.
group("telephony") {
testonly = true
deps = [
#"telephonycpptest:telephonycpptest",
#"telephonyothertest:telephonyothertest",
"telephonyjstest:telephonyjstest",
]
}
{
"app": {
"bundleName": "com.ohos.callmanagertest",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.callmanagertest",
"name": "CallManagerTest",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "decc.testkit.runner.JsEntryAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import call from '@ohos.telephony_call'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe('CallManagementTest', function () {
const TEST_PHONY_NUMBER = "13788888888";
const TIMES_1000 = 1000;
const MSEC_500 = 500;
/*
* @tc.number Telephony_CallManager_dial_Async_0100
* @tc.name Call dial() by way of callback when the phone number is a normal number
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0100', 0, async function (done) {
call.dial( TEST_PHONY_NUMBER, (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertTrue();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0200
* @tc.name Call dial() by way of callback when the phone number is ''
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0200', 0, async function (done) {
call.dial( '', (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertFalse();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0300
* @tc.name Call dial() by way of callback when the phone number is '12345678901234567890012345678901'
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0300', 0, async function (done) {
call.dial( '12345678901234567890012345678901', (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertFalse();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0400
* @tc.name Call dial() by way of callback when the phone number is '13788888888,1234567890123456789123'
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0400', 0, async function (done) {
call.dial( '13788888888,1234567890123456789123', (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertTrue();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0500
* @tc.name Call dial() by way of callback when the phone number is 'abcde123456'
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0500', 0, async function (done) {
call.dial( 'abcde123456', (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertFalse();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0600
* @tc.name Call dial() by way of callback, phone number is 'abcde123456'
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0600', 0, async function (done) {
for (let index = 0; index < TIMES_1000; index++) {
call.dial( 'abcde123456', (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertFalse();
})
}
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0700
* @tc.name Call dail() by way of callback 1000 times, phone number is 'abcde123456'
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0700', 0, async function (done) {
const startTime = (new Date).getTime();
for (let index = 0; index < TIMES_1000; index++) {
call.dial( 'abcde123456', (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertFalse();
})
}
const endTime = (new Date).getTime();
expect(endTime - startTime).assertLess(MSEC_500);
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0800
* @tc.name Call dail() by way of callback, phoneNumber is a normal number, options is {extras: false}
* and the optional parameter options is {extras: false}
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0800', 0, async function (done) {
call.dial( TEST_PHONY_NUMBER, {extras: false}, (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value.result).assertEqual(0);
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_0900
* @tc.name Call dial() by way of callback, phoneNumber is a normal number, options is ''
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_0900', 0, async function (done) {
call.dial( '', {extras: false}, (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value.result).assertEqual(0);
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_1000
* @tc.name Call dial() by way of callback, phoneNumber is 'abcde123456', options is {extras: false}
* parameter options is {extras: false}
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_1000', 0, async function (done) {
for (let index = 0; index < TIMES_1000; index++) {
call.dial( 'abcde123456', {extras: false}, (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value.result).assertEqual(call.CALL_MANAGER_PHONENUM_NULL);
})
}
done();
})
/*
* @tc.number Telephony_CallManager_dial_Async_1100
* @tc.name Call dial() by way of callback check the time, phoneNumber is '~!@#$%^&*123', options is {extras: false}
* parameter options is empty
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Async_1100', 0, async function (done) {
const startTime = (new Date).getTime();
for (let index = 0; index < TIMES_1000; index++) {
call.dial( '~!@#$%^&*123', {extras: false}, (err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertFalse();
})
}
const endTime = (new Date).getTime();
expect(endTime - startTime).assertLess(MSEC_500);
done();
})
/*
* @tc.number Telephony_CallManager_dial_Promise_0100
* @tc.name Call dail(), phoneNumber is a normal number, options is {extras: false}
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Promise_0100', 0, async function (done) {
call.dial(TEST_PHONY_NUMBER, {extras: false}).then((data) => {
expect(data).assertTrue();
}).catch((err) => {
expect().assertFail();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Promise_0200
* @tc.name Call dail(), phoneNumber is '', options is {extras: false}
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Promise_0100', 0, async function (done) {
call.dial('', {extras: false}).then((data) => {
expect(data).assertFalse();
}).catch((err) => {
expect().assertFail();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Promise_0300
* @tc.name Call dail(), phoneNumber is 'abcde123456', options is {extras: false}
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Promise_0300', 0, async function (done) {
call.dial('abcde123456', {extras: false}).then((data) => {
expect(data).assertFalse();
}).catch((err) => {
expect().assertFail();
})
done();
})
/*
* @tc.number Telephony_CallManager_dial_Promise_0400
* @tc.name Call dail() 1000 times, phoneNumber is 'abcde123456', options is {extras: false}
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Promise_0400', 0, async function (done) {
for (let index = 0; index < TIMES_1000; index++) {
call.dial('abcde123456', {extras: false}).then((data) => {
expect(data).assertNull();
}).catch((err) => {
expect().assertFail();
})
}
done();
})
/*
* @tc.number Telephony_CallManager_dial_Promise_0500
* @tc.name Call dail() 1000 times check the time, phoneNumber is 'abcde123456', options is {extras: false}
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Promise_0400', 0, async function (done) {
const startTime = (new Date).getTime();
for (let index = 0; index < TIMES_1000; index++) {
call.dial('abcde123456', {extras: false}).then((data) => {
expect(data).assertNull();
}).catch((err) => {
expect().assertFail();
})
}
const endTime = (new Date).getTime();
expect(endTime - startTime).assertLess(MSEC_500);
done();
})
/*
* @tc.number Telephony_CallManager_dial_Promise_0600
* @tc.name Call dail(), phoneNumber is a normal number
* @tc.desc Function test
*/
it('Telephony_CallManager_dial_Promise_0100', 0, async function (done) {
call.dial(TEST_PHONY_NUMBER).then((data) => {
expect(data).assertTrue();
}).catch((err) => {
expect().assertFail();
})
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Async_0100
* @tc.name Call getCallState() by way of callback when idle
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Async_0100', 0, async function (done) {
call.getCallState((err, data) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertEqual(call.CALL_STATE_IDLE);
})
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Async_0200
* @tc.name Call getCallState() by way of callback when dialing
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Async_0100', 0, async function (done) {
call.dial(TEST_PHONY_NUMBER, (err, value) => {
if (err) {
expect().assertFail();
return;
}
call.getCallState((err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertEqual(call.CALL_STATE_OFFHOOK);
});
});
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Async_0300
* @tc.name Call getCallState() 1000 times by way of callback when idle
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Async_0300', 0, async function (done) {
for (let index = 0; index < TIMES_1000; index++) { //Get call status 1000 calls in a loop
call.getCallState((err, data) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertEqual(call.CALL_STATE_IDLE);
})
}
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Async_0400
* @tc.name Call getCallState() 1000 times by way of callback when idle, to check the time
* less than 500000us
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Async_0400', 0, async function (done) {
const startTime = (new Date).getTime();
for (let index = 0; index < TIMES_1000; index++) {
call.getCallState((err, value) => {
if (err) {
expect().assertFail();
return;
}
expect(value).assertEqual(call.CALL_STATE_IDLE);
})
}
const endTime = (new Date).getTime();
expect(endTime - startTime).assertLess(MSEC_500);
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Promise_0100
* @tc.name Call getCallState() when idle
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Promise_0100', 0, async function (done) {
call.getCallState().then((data) => {
expect(data).assertEqual(call.CALL_STATE_IDLE);
}).catch((err) => {
expect().assertFail();
});
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Promise_0200
* @tc.name Call getCallState() when dialing
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Promise_0200', 0, async function (done) {
call.dial(TEST_PHONY_NUMBER, (err, value) => {
if (err) {
expect().assertFail();
return;
}
call.getCallState().then((data) => {
expect(data).assertEqual(call.CALL_STATE_OFFHOOK);
}).catch((err) => {
expect().assertFail();
});
});
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Promise_0300'
* @tc.name Call getCallState() 1000 times when idle
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Promise_0300', 0, async function (done) {
for (let index = 0; index < TIMES_1000; index++) {
call.getCallState().then((data) => {
expect(data).assertEqual(call.CALL_STATE_IDLE);
}).catch((err) => {
expect().assertFail();
});
}
done();
})
/*
* @tc.number Telephony_CallManager_getCallState_Promise_0400'
* @tc.name Call getCallState() 1000 times when idle, to check the time
* @tc.desc Function test
*/
it('Telephony_CallManager_getCallState_Promise_0400', 0, async function (done) {
const startTime = (new Date).getTime();
for (let index = 0; index < TIMES_1000; index++) {
call.getCallState().then((data) => {
expect(data).assertEqual(call.CALL_STATE_IDLE);
}).catch((err) => {
expect().assertFail();
return;
});
}
const endTime = (new Date).getTime();
expect(endTime - startTime).assertLess(MSEC_500);
done();
})
})
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import cellular from '@ohos.telephony.data.d.ts'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index'
describe('Telephony_CellularData_isCellularDataEnabled_Async_0100', function () {
const USEC_500 = 500 ;
const TTEST_RUN_TIME_1000 = 1000 ;
/**
* @tc.number Telephony_CellularData_isCellularDataEnabled_Async_0100
* @tc.name User data switch default state
* @tc.desc Function test
*/
it('Telephony_CellularData_isCellularDataEnabled_Async_0100', 0, function () {
cellular.isCellularDataEnabled((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(false);
})
})
/**
* @tc.number Telephony_CellularData_isCellularDataEnabled_Promise_0200
* @tc.name User data switch default state
* @tc.desc Function test
*/
it('Telephony_CellularData_isCellularDataEnabled_Promise_0200', 0, function () {
cellular.isCellularDataEnabled().then((data) => {
expect(data).assertEqual(false);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_0300
* @tc.name Verify cellular data status with data switch off
* @tc.desc Function test
*/
it('Telephony_CellularData_getCellularDataState_Async_0300', 0, function () {
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_DISCONNECTED);
})
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Promise_0400
* @tc.name Verify cellular data status with data switch off
* @tc.desc Function test
*/
it('Telephony_CellularData_getCellularDataState_Promise_0400', 0, function () {
cellular.getCellularDataState().then((data) => {
expect(data).assertEqual(cellular.DATA_STATE_DISCONNECTED);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_0500
* @tc.name Open the data switch and query the switch status and data status
* @tc.desc Function test
*/
it('Telephony_CellularData_getCellularDataState_Async_0500', 0, function () {
cellular.enableCellularData((err) => {
if (err) {
expect(false == true).assertTrue();
return;
}
//Turn on the cellular data switch
})
cellular.isCellularDataEnabled((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(true);
})
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_CONNECTING);
})
setTimeout(() => {
}, 1000);
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_CONNECTED);
})
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_0600
* @tc.name Turn off the data switch and query the switch status and data status
* @tc.desc Function test
*/
it('Telephony_CellularData_getCellularDataState_Async_0600', 0, function () {
cellular.disableCellularData((err) => {
if (err) {
expect(false == true).assertTrue();
return;
}
//Turn off the cellular data switch
})
cellular.isCellularDataEnabled((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(false);
})
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_DISCONNECTED);
})
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Promise_0700
* @tc.name Open the data switch and query the switch status and data status
* @tc.desc Function test
*/
it('Telephony_CellularData_getCellularDataState_Promise_0700', 0, function () {
cellular.enableCellularData().then(() => {
//Turn on the cellular data switch
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
cellular.isCellularDataEnabled().then((data) => {
expect(data).assertEqual(true);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
cellular.getCellularDataState().then((data) => {
expect(data).assertEqual(cellular.DATA_STATE_CONNECTING);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
setTimeout(() => {
}, 1000);
cellular.getCellularDataState().then((data) => {
expect(data).assertEqual(cellular.DATA_STATE_CONNECTED);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Promise_0800
* @tc.name Turn off the data switch and query the switch status and data status
* @tc.desc Function test
*/
it('Telephony_CellularData_getCellularDataState_Promise_0800', 0, function () {
cellular.disableCellularData().then(() => {
//Turn off the cellular data switch
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
cellular.isCellularDataEnabled().then((data) => {
expect(data).assertEqual(false);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
cellular.getCellularDataState().then((data) => {
expect(data).assertEqual(cellular.DATA_STATE_DISCONNECTED);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_0900
* @tc.name CellularData Open state 1000 queries
* @tc.desc Reliability test
*/
it('Telephony_CellularData_getCellularDataState_Async_0900', 0, function () {
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.isCellularDataEnabled((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(false);
})
}
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_1000
* @tc.name CellularData Open state 1000 queries
* @tc.desc Reliability test
*/
it('Telephony_CellularData_getCellularDataState_Async_1000', 0, function () {
const startTime = (new Date).getTime();
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.isCellularDataEnabled((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
})
}
const endTime = (new Date).getTime();
const bool = (endTime - startTime) < USEC_500;
expect(bool).assertEqual(true);
})
/**
* @tc.number Telephony_CellularData_isCellularDataEnabled_Promise_1100
* @tc.name CellularData Open state 1000 queries
* @tc.desc Reliability test
*/
it('Telephony_CellularData_isCellularDataEnabled_Promise_1100', 0, function () {
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.isCellularDataEnabled().then((data) => {
expect(data).assertEqual(false);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
}
})
/**
* @tc.number Telephony_CellularData_isCellularDataEnabled_Promise_1200
* @tc.name IsCellularDataEnabled Perform an average of 20 performance tests
* @tc.desc Performance test
*/
it('Telephony_CellularData_isCellularDataEnabled_Promise_1200', 0, function () {
const startTime = (new Date).getTime();
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.isCellularDataEnabled().then((data) => {
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
}
const endTime = (new Date).getTime();
const bool = (endTime - startTime) < USEC_500;
expect(bool).assertEqual(true);
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_1300
* @tc.name GetCellularDataState Perform an average of 20 performance tests
* @tc.desc Performance test
*/
it('Telephony_CellularData_getCellularDataState_Async_1300', 0, function () {
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_DISCONNECTED);
})
}
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Promise_1400
* @tc.name GetCellularDataState Perform an average of 20 performance tests
* @tc.desc Performance test
*/
it('Telephony_CellularData_getCellularDataState_Promise_1400', 0, function () {
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.getCellularDataState().then((data) => {
expect(data).assertEqual(cellular.DATA_STATE_DISCONNECTED);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
}
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_1500
* @tc.name Access to cellular data has been linked 1000 times
* @tc.desc Reliability test
*/
it('Telephony_CellularData_getCellularDataState_Async_1500', 0, function () {
cellular.enableCellularData((err) => {
if (err) {
expect(false == true).assertTrue();
return;
}
//Turn on the cellular data switch
})
cellular.isCellularDataEnabled((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(true);
})
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_CONNECTING);
})
setTimeout(() => {
}, 1000);
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_CONNECTED);
})
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_CONNECTED);
})
}
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Async_1600
* @tc.name getCellularDataState Perform an average of 1000 performance tests
* @tc.desc Performance test
*/
it('Telephony_CellularData_getCellularDataState_Async_1600', 0, function () {
const startTime = (new Date).getTime();
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.getCellularDataState((err, data) => {
if (err) {
expect(false == true).assertTrue();
return;
}
expect(data).assertEqual(cellular.DATA_STATE_CONNECTED);
})
}
const endTime = (new Date).getTime();
const bool = (endTime - startTime) < USEC_500;
expect(bool).assertEqual(true);
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Promise_1700
* @tc.name Access to cellular data has been linked 1000 times
* @tc.desc Reliability test
*/
it('Telephony_CellularData_getCellularDataState_Promise_1700', 0, function () {
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.getCellularDataState().then((data) => {
expect(data).assertEqual(cellular.DATA_STATE_CONNECTED);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
}
})
/**
* @tc.number Telephony_CellularData_getCellularDataState_Promise_1800
* @tc.name getCellularDataState Perform an average of 1000 performance tests
* @tc.desc Performance test
*/
it('Telephony_CellularData_getCellularDataState_Promise_1800', 0, function () {
const startTime = (new Date).getTime();
for (let index = 0; index < TTEST_RUN_TIME_1000; index++) {
cellular.getCellularDataState((err, data) => {
expect(data).assertEqual(cellular.DATA_STATE_CONNECTED);
}).catch((err) => {
expect(false == true).assertTrue();
return;
});
}
const endTime = (new Date).getTime();
const bool = (endTime - startTime) < USEC_500;
expect(bool).assertEqual(true);
})
})
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "CellularDataJSTest"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
{
"app": {
"bundleName": "com.example.cellulardatajstest",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.cellulardatajstest",
"name": "testModule",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry_test",
"moduleType": "feature",
"installationFree": true
},
"abilities": [
{
"name": "decc.testkit.runner.JsEntryAbility",
"description": "Test Entry Ability",
"icon": "$media:icon",
"label": "$string:app_name",
"launchType": "standard",
"orientation": "landscape",
"visible": true,
"type": "page"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 750,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import app from '@system.app'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe('appInfoTest', function () {
it('app_info_test_001', 0, function () {
var info = app.getInfo()
expect(info.versionName).assertEqual('1.0')
expect(info.versionCode).assertEqual('3')
})
})
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "CellularDataJSTest"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
}
/*
* 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 file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend, ReportExtend, InstrumentLog} 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)
const instrumentLog = new InstrumentLog({
'id': 'report'
})
core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.addService('report', instrumentLog)
core.init()
core.subscribeEvent('spec', instrumentLog)
core.subscribeEvent('suite', instrumentLog)
core.subscribeEvent('task', instrumentLog)
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
\ No newline at end of file
{
"app": {
"bundleName": "com.ohos.simcard",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.simcard",
"name": "testModule",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry_test",
"moduleType": "feature",
"installationFree": true
},
"abilities": [
{
"name": "decc.testkit.runner.JsEntryAbility",
"description": "Test Entry Ability",
"icon": "$media:icon",
"label": "$string:app_name",
"launchType": "standard",
"orientation": "landscape",
"visible": true,
"type": "page"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 750,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend, ReportExtend, InstrumentLog} 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)
const instrumentLog = new InstrumentLog({
'id': 'report'
})
core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.addService('report', instrumentLog)
core.init()
core.subscribeEvent('spec', instrumentLog)
core.subscribeEvent('suite', instrumentLog)
core.subscribeEvent('task', instrumentLog)
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import app from '@system.app'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe('appInfoTest', function () {
it('app_info_test_001', 0, function () {
var info = app.getInfo()
expect(info.versionName).assertEqual('1.0')
expect(info.versionCode).assertEqual('3')
})
})
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "SimCard"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
}
......@@ -10,9 +10,15 @@
# 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("call_manager") {
test_hap_name = "CallManagerTest"
hap_source_path = "hap/entry-debug-rich-unsigned.hap"
import("//build/ohos_var.gni")
group("telephonyjstest") {
testonly = true
deps = [
#"network_search:network_search",
#"sms_mms:sms_mms",
#"call_manager:call_manager",
"sim:sim",
]
}
# Copyright (C) 2021 Huawei Device Co., Ltd.
# 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
......@@ -10,9 +10,16 @@
# 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("sms_mms") {
test_hap_name = "sms_mms"
hap_source_path = "hap/entry-debug-signed.hap"
group("call_manager") {
testonly = true
if (is_standard_system) {
deps = [
"call_manager_mmi:CallManagerMMI",
"call_manager_on_dail:CallManagerOnDail",
"call_manager_test:CallManagerTest",
]
}
}
# 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("CallManagerMMI") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "CallManagerMMI"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
......@@ -2,9 +2,10 @@
"description": "Configuration for callmanager Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "60000",
"package": "ohos.acts.aafwk.ability",
"shell-timeout": "60000"
"test-timeout": "120000",
"package": "com.ohos.callmanager",
"shell-timeout": "21600000",
"native-test-timeout":"21600000"
},
"kits": [
{
......
{
"app": {
"bundleName": "com.ohos.simcard",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.simcard",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.simcard.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
{
"app": {
"bundleName": "com.ohos.callmanager",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.callmanager",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.callmanager.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
......@@ -17,7 +17,10 @@ import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
......@@ -27,22 +30,13 @@ export default {
this.title = this.$t('strings.world');
},
onShow() {
console.info('onShow finish')
console.info('onShow finish!')
const core = Core.getInstance()
const expectExtend = new ExpectExtend({
'id': 'extend'
})
const reportExtend = new ReportExtend(file)
const instrumentLog = new InstrumentLog({
'id': 'report'
})
core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.addService('report', instrumentLog)
core.init()
core.subscribeEvent('spec', instrumentLog)
core.subscribeEvent('suite', instrumentLog)
core.subscribeEvent('task', instrumentLog)
const configService = core.getDefaultService('config')
configService.setConfig(this)
......@@ -52,4 +46,4 @@ export default {
},
onReady() {
},
}
\ No newline at end of file
}
{
"string": [
{
"name": "app_name",
"value": "SimCard"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import call from '@ohos.telephony_call';
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index';
describe('CallManagerMMI', function () {
/*
* @tc.number Telephony_CallManager_MMI_Async_0100
* @tc.name PhoneNumber: **21*12599*10# Call dial() to enable unconditional call transfer. The transfer
* number is 12599. The callback result is true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Async_0100', 0, async function (done) {
call.dial('**21*12599*10#', (err, data) => {
if (err) {
console.log('Telephony_CallManager_MMI_Async_0100 fail');
done();
return;
}
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Async_0100 finish data = ' + data);
done();
})
call.dial('##002#', (err, data) => {
if (err) {
console.log('Telephony_CallManager_MMI_Async_0100 fail');
done();
return;
}
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Async_0100 finish data = ' + data);
done();
})
})
/*
* @tc.number Telephony_CallManager_MMI_Async_0200
* @tc.name SphoneNumber为**33*0000#Dial () is called to enable limiting all calls. The result of
* the callback is true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Async_0200', 0, async function (done) {
call.dial('**33*0000#', (err, data) => {
if (err) {
console.log('Telephony_CallManager_MMI_Async_0200 fail');
done();
return;
}
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Async_0200 finish data = ' + data);
})
call.dial('#33*0000#', (err, data) => {
if (err) {
console.log('Telephony_CallManager_MMI_Async_0200 fail');
done();
return;
}
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Async_0200 finish data = ' + data);
done();
})
})
/*
* @tc.number Telephony_CallManager_MMI_Async_0300
* @tc.name SphoneNumber为*331*0000# Dial () is called to enable the restriction of all international
* outgoing calls. The result of the callback is true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Async_0300', 0, async function (done) {
call.dial('*331*0000#', (err, data) => {
if (err) {
console.log('Telephony_CallManager_MMI_Async_0300 fail');
done();
return;
}
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Async_0300 finish data = ' + data);
})
call.dial('#331#0000#', (err, data) => {
if (err) {
console.log('Telephony_CallManager_MMI_Async_0300 fail');
done();
return;
}
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Async_0300 finish data = ' + data);
done();
})
})
/*
* @tc.number Telephony_CallManager_MMI_Async_0400
* @tc.name If phoneNumber is #35*0000#, dial() is called to turn off the restriction of all incoming calls.
* The result of the callback is true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Async_0400', 0, async function (done) {
call.dial('#35*0000#', (err, data) => {
if (err) {
console.log('Telephony_CallManager_MMI_Async_0400 fail');
done();
return;
}
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Async_0400 finish data = ' + data);
done();
})
})
/*
* @tc.number Telephony_CallManager_MMI_Promise_0100
* @tc.name PhoneNumber is ##330* password #, call dial() to close all dials, the callback result is :true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Promise_0100', 0, async function (done) {
try {
var data = await call.dial('##330*0000#');
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Promise_0100 finish data = ' + data);
} catch (err) {
console.log('Telephony_CallManager_MMI_Promise_0100 fail');
expect().assertFail();
done();
}
done();
})
/*
* @tc.number Telephony_CallManager_MMI_Promise_0200
* @tc.name If phoneNumber is *#330#0000# password #, dial() is used to query all incoming calls. The callback
* result is true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Promise_0200', 0, async function (done) {
try {
var data = await call.dial('*#330#0000#');
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Promise_0200 finish data = ' + data);
} catch (err) {
expect().assertFail();
console.log('Telephony_CallManager_MMI_Promise_0200 fail');
done();
}
done();
})
/*
* @tc.number Telephony_CallManager_MMI_Promise_0300
* @tc.name If phoneNumber is *#31#, dial() is called to query the caller ID. The callback result is true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Promise_0300', 0, async function (done) {
try {
var data = await call.dial('*#31#');
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Promise_0300 finish data = ' + data);
} catch (err) {
expect().assertFail();
console.log('Telephony_CallManager_MMI_Promise_0300 fail');
done();
}
done();
})
/*
* @tc.number Telephony_CallManager_MMI_Promise_0400
* @tc.name If phoneNumber is #31#, call dial() to hide the caller ID. The callback result is true
* @tc.desc Function test
*/
it('Telephony_CallManager_MMI_Promise_0400', 0, async function (done) {
try {
var data = await call.dial('#31#');
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Promise_0400 finish data = ' + data);
} catch (err) {
expect().assertFail();
console.log('Telephony_CallManager_MMI_Promise_0400 fail');
done();
}
try {
var data = await call.dial('*31#');
expect(data).assertTrue();
console.log('Telephony_CallManager_MMI_Promise_0400 finish data = ' + data);
} catch (err) {
expect().assertFail();
console.log('Telephony_CallManager_MMI_Promise_0400 fail');
done();
}
done();
})
})
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./SmsMms.test.js')
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./CallManagerMMI.test.js')
{
"string": [
{
"name": "app_name",
"value": "CallManagerTest"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
{
"string": [
{
"name": "app_name",
"value": "CallManager"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("CallManagerOnDail") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "CallManagerOnDail"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for callmanager Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "360000",
"package": "com.ohos.callmanager",
"shell-timeout": "21600000",
"native-test-timeout":"21600000"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"bundleName": "com.ohos.networksearchtest",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.networksearchtest",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.networksearchtest.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
{
"app": {
"bundleName": "com.ohos.callmanager",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.callmanager",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.callmanager.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
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'
})
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./CallManager.test.js')
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./CallManagerOnDail.test.js')
{
"string": [
{
"name": "app_name",
"value": "CallManager"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("CallManagerTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "CallManagerTest"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for callmanager Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "240000",
"package": "com.ohos.callmanager",
"shell-timeout": "21600000",
"native-test-timeout":"21600000"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"bundleName": "com.ohos.sms_mms",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.sms_mms",
"name": "sms_mms",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "decc.testkit.runner.JsEntryAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
{
"app": {
"bundleName": "com.ohos.callmanager",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.callmanager",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.callmanager.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
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'
})
core.addService('expect', expectExtend)
core.init()
const configService = core.getDefaultService('config')
configService.setConfig(this)
require('../../../test/List.test')
core.execute()
},
onReady() {
},
}
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./CallManagerTest.test.js')
{
"string": [
{
"name": "app_name",
"value": "CallManager"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
group("network_search") {
testonly = true
if (is_standard_system) {
deps = [
"network_search_information:NetworkSearchInformation",
"network_search_performance:NetworkSearchPerformance",
"network_search_radio:NetworkSearchRadio",
"network_search_reliability:NetworkSearchReliability",
"network_search_selection_mode:NetworkSearchSelectionMoce",
]
}
}
# 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("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("NetworkSearchInformation") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "NetworkSearchInformation"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for NetworkSearch Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1800",
"package": "com.ohos.networksearch",
"shell-timeout": "1800",
"native-test-timeout":"1800"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"bundleName": "com.example.cellulardatajstest",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.cellulardatajstest",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.cellulardatajstest.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard",
"isVisible": "true"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
{
"app": {
"bundleName": "com.ohos.networksearch",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.networksearch",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.networksearch.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export default {
onCreate() {
console.info('AceApplication onCreate');
},
onDestroy() {
console.info('AceApplication onDestroy');
}
};
/*
* 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');
},
onDestroy() {
console.info('AceApplication onDestroy');
}
};
......@@ -18,7 +18,8 @@ import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./NetworkSearchInformation.test.js');
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "NetworkSearchTest"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
{
"string": [
{
"name": "app_name",
"value": "NetworkSearchTest"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("NetworkSearchPerformance") {
hap_profile = "./entry/src/main/config.json"
deps = [
":hjs_demo_js_assets",
":hjs_demo_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "NetworkSearchPerformance"
}
ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default"
}
ohos_resources("hjs_demo_resources") {
sources = [ "./entry/src/main/js/resources" ]
hap_profile = "./entry/src/main/config.json"
}
{
"description": "Configuration for NetworkSearch Tests",
"driver": {
"type": "JSUnitTest",
"test-timeout": "1800",
"package": "com.ohos.networksearch",
"shell-timeout": "1800",
"native-test-timeout":"1800"
},
"kits": [
{
"test-file-name": [
"$module.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
}
{
"app": {
"bundleName": "com.ohos.networksearch",
"vendor": "ohos",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 4,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.ohos.networksearch",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"visible": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.ohos.networksearch.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export default {
onCreate() {
console.info('AceApplication onCreate');
},
onDestroy() {
console.info('AceApplication onDestroy');
}
};
/*
* 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');
},
onDestroy() {
console.info('AceApplication onDestroy');
}
};
......@@ -12,13 +12,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import file from '@system.file'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, ExpectExtend} from 'deccjsunit/index'
const injectRef = Object.getPrototypeOf(global) || global
injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default {
data: {
title: ""
......@@ -43,4 +44,4 @@ export default {
},
onReady() {
},
}
}
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "MyApplication"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./NetworkSearchPerformance.test.js');
{
"string": [
{
"name": "app_name",
"value": "NetworkSearchTest"
},
{
"name": "mainability_description",
"value": "JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册