未验证 提交 4393d5b6 编写于 作者: O openharmony_ci 提交者: Gitee

!6262 【媒体子系统】audio测试套权限整改

Merge pull request !6262 from 徐梦舒/monthly_20221018
......@@ -80,7 +80,11 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
}
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
......
......@@ -420,7 +420,8 @@ describe('audioCapturer', function () {
beforeAll(async function () {
console.info(`${Tag} AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`);
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionNameList = [permissionName1];
let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1,permissionName2];
let appName = 'ohos.acts.multimedia.audio.audiocapturer';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -80,7 +80,12 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
}
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
}
\ No newline at end of file
......@@ -28,7 +28,8 @@ describe('audioCapturerChange', function () {
beforeAll(async function () {
console.info(`AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`);
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionNameList = [permissionName1];
let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1,permissionName2];
let appName = 'ohos.acts.multimedia.audio.audiocapturerchangeInfo';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -79,7 +79,11 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
}
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
}
\ No newline at end of file
......@@ -110,7 +110,11 @@
{
"name": "ohos.permission.MODIFY_AUDIO_SETTINGS",
"reason": "use ohos.permission.MODIFY_AUDIO_SETTINGS"
}
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
}
\ No newline at end of file
......@@ -89,7 +89,11 @@
{
"name": "ohos.permission.MODIFY_AUDIO_SETTINGS",
"reason": "use ohos.permission.MODIFY_AUDIO_SETTINGS"
}
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
}
\ No newline at end of file
......@@ -100,7 +100,8 @@ describe('audioFramework', function () {
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionName2 = 'ohos.permission.ACCESS_NOTIFICATION_POLICY';
let permissionName3 = 'ohos.permission.MODIFY_AUDIO_SETTINGS';
let permissionNameList = [permissionName1, permissionName2, permissionName3];
let permissionName4 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1, permissionName2, permissionName3,permissionName4];
let appName = 'ohos.acts.multimedia.audio.audiomanager';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -80,7 +80,11 @@
{
"name": "ohos.permission.MICROPHONE",
"reason": "use ohos.permission.MICROPHONE"
}
},
{
"name": "ohos.permission.MANAGE_AUDIO_CONFIG",
"reason": "use ohos.permission.MANAGE_AUDIO_CONFIG"
}
]
}
}
\ No newline at end of file
......@@ -35,7 +35,8 @@ describe('audioVoip', function () {
beforeAll(async function () {
console.info(`AudioFrameworkTest: beforeAll: Prerequisites at the test suite level`);
let permissionName1 = 'ohos.permission.MICROPHONE';
let permissionNameList = [permissionName1];
let permissionName2 = 'ohos.permission.MANAGE_AUDIO_CONFIG';
let permissionNameList = [permissionName1,permissionName2];
let appName = 'ohos.acts.multimedia.audio.audiovoip';
await audioTestBase.applyPermission(appName, permissionNameList);
await sleep(100);
......
......@@ -42,7 +42,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -22,7 +22,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -34,6 +34,7 @@
"hilog -b D"
],
"teardown-command":[
"hilog -b X"
]
}
]
......
......@@ -43,7 +43,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -39,7 +39,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
......
......@@ -40,7 +40,8 @@
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/test_exif.jpg"
],
"teardown-command": [
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/*"
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.GetImageProperty/haps/entry/files/*",
"hilog -b X"
]
}
]
......
......@@ -40,7 +40,8 @@
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/test_exif.jpg"
],
"teardown-command": [
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/*"
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.ModifyProperty/haps/entry/files/*",
"hilog -b X"
]
}
]
......
......@@ -37,7 +37,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -22,7 +22,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -34,6 +34,7 @@
"hilog -b D"
],
"teardown-command":[
"hilog -b X"
]
}
]
......
......@@ -48,7 +48,8 @@
"chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.image.Raw/haps/entry/files/*"
],
"teardown-command": [
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.Raw/*"
"rm -rf /data/app/el2/100/base/ohos.acts.multimedia.image.Raw/*",
"hilog -b X"
]
}
]
......
......@@ -22,7 +22,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -37,7 +37,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -22,7 +22,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command":[
"hilog -b X"
]
}
]
}
\ No newline at end of file
......@@ -21,7 +21,9 @@
"hilog -Q pidoff",
"hilog -b D"
],
"teardown-command": []
"teardown-command": [
"hilog -b X"
]
}
]
}
......@@ -49,6 +49,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -46,6 +46,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -46,6 +46,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -50,6 +50,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -50,6 +50,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -42,6 +42,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -46,6 +46,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -47,6 +47,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -46,6 +46,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -50,6 +50,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -41,6 +41,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -53,6 +53,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -55,6 +55,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
......@@ -34,6 +34,9 @@
"hilog -b D -D 0xD002B70",
"scanner",
"sleep 10"
],
"teardown-command":[
"hilog -b X -D 0xD002B70"
]
},
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册