提交 37070929 编写于 作者: T tianfenxia

tianfenxia1@huawei.com

Signed-off-by: Ntianfenxia <tianfenxia1@huawei.com>
上级 971b4768
...@@ -3,26 +3,25 @@ ...@@ -3,26 +3,25 @@
"bundleName": "ohos.acts.multimedia.audio.audiomanager", "bundleName": "ohos.acts.multimedia.audio.audiomanager",
"vendor": "acts", "vendor": "acts",
"version": { "version": {
"code": 1000000, "code": 1,
"name": "1.0.0" "name": "1.0"
},
"apiVersion": {
"compatible": 6,
"target": 5
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "ohos.acts.multimedia.audio.audiomanager", "package": "ohos.acts.multimedia.audio.audiomanager",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "ohos.acts.multimedia.audio.audiomanager.MainAbility",
"deviceType": [ "deviceType": [
"phone", "phone"
"tablet",
"tv",
"wearable"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry"
"installationFree": false
}, },
"abilities": [ "abilities": [
{ {
......
/*
* 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.
*/
package ohos.acts.multimedia.audio.audiomanager;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* 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.
*/
package ohos.acts.multimedia.audio.audiomanager;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
...@@ -13,11 +13,7 @@ ...@@ -13,11 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file' import {Core, ExpectExtend} from 'deccjsunit/index'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index'
export default { export default {
data: { data: {
...@@ -32,22 +28,11 @@ export default { ...@@ -32,22 +28,11 @@ export default {
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
}) })
const reportExtend = new ReportExtend(file)
const instrumentLog = new InstrumentLog({
'id': 'report',
'version': '1.0.3'
})
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.addService('report', instrumentLog)
core.init() core.init()
core.subscribeEvent('spec', instrumentLog)
core.subscribeEvent('suite', instrumentLog)
core.subscribeEvent('task', instrumentLog)
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 60000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
}, },
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"pre-push": [ "pre-push": [
], ],
"push": [ "push": [
"resource/audio/01.mP3 ->/data/media/", "resource/audio/01.mp3 ->/data/media/",
"resource/audio/02.mp3 ->/data/media/", "resource/audio/02.mp3 ->/data/media/",
"resource/audio/03.mp3 ->/data/media/", "resource/audio/03.mp3 ->/data/media/",
"resource/audio/04.mp3 ->/data/media/", "resource/audio/04.mp3 ->/data/media/",
...@@ -38,6 +38,13 @@ ...@@ -38,6 +38,13 @@
"resource/audio/98.mp4 ->/data/media/" "resource/audio/98.mp4 ->/data/media/"
] ]
}, },
{
"test-file-name": [
"AudioPlayerJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
...@@ -47,13 +54,6 @@ ...@@ -47,13 +54,6 @@
"teardown-command":[ "teardown-command":[
"setenforce 1" "setenforce 1"
] ]
},
{
"test-file-name": [
"AudioPlayerApiJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
} }
] ]
} }
\ No newline at end of file
...@@ -3,26 +3,25 @@ ...@@ -3,26 +3,25 @@
"bundleName": "ohos.acts.multimedia.audio.audioplayer", "bundleName": "ohos.acts.multimedia.audio.audioplayer",
"vendor": "acts", "vendor": "acts",
"version": { "version": {
"code": 1000000, "code": 1,
"name": "1.0.0" "name": "1.0"
},
"apiVersion": {
"compatible": 6,
"target": 5
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "ohos.acts.multimedia.audio.audioplayer", "package": "ohos.acts.multimedia.audio.audioplayer",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "ohos.acts.multimedia.audio.audioplayer.MainAbility",
"deviceType": [ "deviceType": [
"phone", "phone"
"tablet",
"tv",
"wearable"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry"
"installationFree": false
}, },
"abilities": [ "abilities": [
{ {
......
/*
* 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.
*/
package ohos.acts.multimedia.audio.audioplayer;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* 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.
*/
package ohos.acts.multimedia.audio.audioplayer;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
...@@ -13,11 +13,7 @@ ...@@ -13,11 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file' import {Core, ExpectExtend} from 'deccjsunit/index'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index'
export default { export default {
data: { data: {
...@@ -32,22 +28,11 @@ export default { ...@@ -32,22 +28,11 @@ export default {
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
}) })
const reportExtend = new ReportExtend(file)
const instrumentLog = new InstrumentLog({
'id': 'report',
'version': '1.0.3'
})
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.addService('report', instrumentLog)
core.init() core.init()
core.subscribeEvent('spec', instrumentLog)
core.subscribeEvent('suite', instrumentLog)
core.subscribeEvent('task', instrumentLog)
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 60000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
}, },
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"pre-push": [ "pre-push": [
], ],
"push": [ "push": [
"resource/audio/01.mP3 ->/data/media/", "resource/audio/01.mp3 ->/data/media/",
"resource/audio/02.mp3 ->/data/media/", "resource/audio/02.mp3 ->/data/media/",
"resource/audio/03.mp3 ->/data/media/", "resource/audio/03.mp3 ->/data/media/",
"resource/audio/04.mp3 ->/data/media/", "resource/audio/04.mp3 ->/data/media/",
...@@ -38,6 +38,13 @@ ...@@ -38,6 +38,13 @@
"resource/audio/98.mp4 ->/data/media/" "resource/audio/98.mp4 ->/data/media/"
] ]
}, },
{
"test-file-name": [
"AudioPlayerApiJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
},
{ {
"type": "ShellKit", "type": "ShellKit",
"run-command": [ "run-command": [
...@@ -47,13 +54,6 @@ ...@@ -47,13 +54,6 @@
"teardown-command":[ "teardown-command":[
"setenforce 1" "setenforce 1"
] ]
},
{
"test-file-name": [
"AudioPlayerApiJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
} }
] ]
} }
\ No newline at end of file
...@@ -3,26 +3,25 @@ ...@@ -3,26 +3,25 @@
"bundleName": "ohos.acts.multimedia.audio.audioplayerapi", "bundleName": "ohos.acts.multimedia.audio.audioplayerapi",
"vendor": "acts", "vendor": "acts",
"version": { "version": {
"code": 1000000, "code": 1,
"name": "1.0.0" "name": "1.0"
},
"apiVersion": {
"compatible": 6,
"target": 5
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "ohos.acts.multimedia.audio.audioplayerapi", "package": "ohos.acts.multimedia.audio.audioplayerapi",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "ohos.acts.multimedia.audio.audioplayerapi.MainAbility",
"deviceType": [ "deviceType": [
"phone", "phone"
"tablet",
"tv",
"wearable"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry"
"installationFree": false
}, },
"abilities": [ "abilities": [
{ {
......
/*
* 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.
*/
package ohos.acts.multimedia.audio.audioplayerapi;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* 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.
*/
package ohos.acts.multimedia.audio.audioplayerapi;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
...@@ -13,11 +13,7 @@ ...@@ -13,11 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file' import {Core, ExpectExtend} from 'deccjsunit/index'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index'
export default { export default {
data: { data: {
...@@ -32,22 +28,11 @@ export default { ...@@ -32,22 +28,11 @@ export default {
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
}) })
const reportExtend = new ReportExtend(file)
const instrumentLog = new InstrumentLog({
'id': 'report',
'version': '1.0.3'
})
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.addService('report', instrumentLog)
core.init() core.init()
core.subscribeEvent('spec', instrumentLog)
core.subscribeEvent('suite', instrumentLog)
core.subscribeEvent('task', instrumentLog)
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 60000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
}, },
......
...@@ -3,26 +3,25 @@ ...@@ -3,26 +3,25 @@
"bundleName": "ohos.acts.multimedia.audio.audiorecorder", "bundleName": "ohos.acts.multimedia.audio.audiorecorder",
"vendor": "acts", "vendor": "acts",
"version": { "version": {
"code": 1000000, "code": 1,
"name": "1.0.0" "name": "1.0"
},
"apiVersion": {
"compatible": 6,
"target": 5
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "ohos.acts.multimedia.audio.audiorecorder", "package": "ohos.acts.multimedia.audio.audiorecorder",
"name": ".MyApplication", "name": ".MyApplication",
"mainAbility": "ohos.acts.multimedia.audio.audiorecorder.MainAbility",
"deviceType": [ "deviceType": [
"phone", "phone"
"tablet",
"tv",
"wearable"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry", "moduleName": "entry",
"moduleType": "entry", "moduleType": "entry"
"installationFree": false
}, },
"abilities": [ "abilities": [
{ {
......
/*
* 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.
*/
package ohos.acts.multimedia.audio.audiorecorder;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* 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.
*/
package ohos.acts.multimedia.audio.audiorecorder;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
...@@ -13,11 +13,7 @@ ...@@ -13,11 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import file from '@system.file' import {Core, ExpectExtend} from 'deccjsunit/index'
import app from '@system.app'
import device from '@system.device'
import router from '@system.router'
import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index'
export default { export default {
data: { data: {
...@@ -32,25 +28,14 @@ export default { ...@@ -32,25 +28,14 @@ export default {
const expectExtend = new ExpectExtend({ const expectExtend = new ExpectExtend({
'id': 'extend' 'id': 'extend'
}) })
const reportExtend = new ReportExtend(file)
const instrumentLog = new InstrumentLog({
'id': 'report',
'version': '1.0.3'
})
core.addService('expect', expectExtend) core.addService('expect', expectExtend)
core.addService('report', reportExtend)
core.addService('report', instrumentLog)
core.init() core.init()
core.subscribeEvent('spec', instrumentLog)
core.subscribeEvent('suite', instrumentLog)
core.subscribeEvent('task', instrumentLog)
const configService = core.getDefaultService('config') const configService = core.getDefaultService('config')
configService.setConfig(this) configService.setConfig(this)
this.timeout = 60000
require('../../../test/List.test') require('../../../test/List.test')
core.execute() core.execute()
}, },
onReady() { onReady() {
}, },
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册