Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1eb7124c
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1eb7124c
编写于
5月 30, 2023
作者:
Q
qinliwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete media stability testcase
Signed-off-by:
N
qinliwen
<
qinliwen3@huawei.com
>
上级
7b1dcd90
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
1684 addition
and
2186 deletion
+1684
-2186
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/List.test.ets
...s_standard/avPlayer/entry/src/main/ets/test/List.test.ets
+1
-1
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AVRecorderFuncTest.test.js
...rd/avRecorder/src/main/js/test/AVRecorderFuncTest.test.js
+1683
-2185
未找到文件。
multimedia/media/media_js_standard/avPlayer/entry/src/main/ets/test/List.test.ets
浏览文件 @
1eb7124c
...
...
@@ -26,5 +26,5 @@ export default function testsuite() {
// AVPlayerHttpSeekTest();
AvPlayerEnumTest();
AVPlayerLocalTest();
AVPlayerStabilityTest();
//
AVPlayerStabilityTest();
}
\ No newline at end of file
multimedia/media/media_js_standard/avRecorder/src/main/js/test/AVRecorderFuncTest.test.js
浏览文件 @
1eb7124c
...
...
@@ -13,21 +13,17 @@
* limitations under the License.
*/
import
media
from
'
@ohos.multimedia.media
'
import
*
as
mediaTestBase
from
'
../../../../../MediaTestBase.js
'
;
import
*
as
avRecorderTestBase
from
'
../../../../../AVRecorderTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
import
media
from
'
@ohos.multimedia.media
'
import
*
as
mediaTestBase
from
'
../../../../../MediaTestBase.js
'
;
import
*
as
avRecorderTestBase
from
'
../../../../../AVRecorderTestBase.js
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
export
default
function
avRecorderTest
()
{
export
default
function
avRecorderTest
()
{
describe
(
'
avRecorderTest
'
,
function
()
{
let
avRecorder
=
null
;
const
RECORDER_TIME
=
3000
;
const
RECORDER_LONG_TIME
=
3600000
;
const
LOOP_TIMES
=
1000
;
const
FORMAT_M4A
=
media
.
ContainerFormatType
.
CFT_MPEG_4A
;
const
ENCORDER_AAC
=
media
.
CodecMimeType
.
AUDIO_AAC
;
const
ONLYAUDIO_TYPE
=
'
only_audio
'
;
let
trackArray
;
let
fdObject
;
let
fdPath
;
...
...
@@ -675,505 +671,6 @@ export default function avRecorderTest() {
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_FORMAT_API_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0100
* @tc.name : 01.AVRecorder.prepare(promise)
* @tc.desc : Local Video AVRecorder.prepare(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0100 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithPreparePromise
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0200
* @tc.name : 02.AVRecorder.start(promise)
* @tc.desc : Local Video AVRecorder.start(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0200 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithStartPromise
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0300
* @tc.name : 03.AVRecorder.pause(promise)
* @tc.desc : Local Video AVRecorder.pause(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0300 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithPausePromise
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0400
* @tc.name : 04.AVRecorder.resume(promise)
* @tc.desc : Local Video AVRecorder.resume(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0400 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithResumePromise
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0500
* @tc.name : 05.AVRecorder.stop(promise)
* @tc.desc : Local Video AVRecorder.stop(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0500 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithStopPromise
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0600
* @tc.name : 06.AVRecorder.reset(promise)
* @tc.desc : Local Video AVRecorder.reset(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0600 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithResetPromise
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0700
* @tc.name : 07.AVRecorder.release(promise)
* @tc.desc : Local Video AVRecorder.release(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0700 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithReleasePromise
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_01_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0100
* @tc.name : 01.AVRecorder.prepare(callback)
* @tc.desc : Local Video AVRecorder.prepare(callback) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0100 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithPrepareCallback
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0200
* @tc.name : 02.AVRecorder.start(callbcak)
* @tc.desc : Local Video AVRecorder.start(callbcak) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0200 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithStartCallback
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0300
* @tc.name : 03.AVRecorder.pause(callbcak)
* @tc.desc : Local Video AVRecorder.pause(callbcak) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0300 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithPauseCallback
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0400
* @tc.name : 04.AVRecorder.resume(callbcak)
* @tc.desc : Local Video AVRecorder.resume(callbcak) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0400 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithResumeCallback
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0500
* @tc.name : 05.AVRecorder.stop(promise)
* @tc.desc : Local Video AVRecorder.stop(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0500 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithStopCallback
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0600
* @tc.name : 06.AVRecorder.reset(promise)
* @tc.desc : Local Video AVRecorder.reset(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0600
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0600 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithResetCallback
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0600 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0700
* @tc.name : 07.AVRecorder.release(promise)
* @tc.desc : Local Video AVRecorder.release(promise) 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0700
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0700 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderWithReleaseCallback
(
avConfig
,
avRecorder
,
RECORDER_TIME
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0700 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0100
* @tc.name : 01.prepare->start>reset
* @tc.desc : Local Video prepare->start>reset 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0100 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderLoopPrepare2ResetWithPromise
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0200
* @tc.name : 02.create->prepare->start->reset->release
* @tc.desc : Local Video create->prepare->start->reset->release 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0200 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderLoopCreate2ReleaseWithPromise
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0200 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0300
* @tc.name : 03.prepare->start->stop
* @tc.desc : Local Video prepare->start->stop 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0300 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderLoopPrepare2StopWithPromise
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0400
* @tc.name : 04.pause->resume
* @tc.desc : Local Video pause->resume 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0400 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderLoopPause2ResumeWithPromise
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0500
* @tc.name : 05.create->release
* @tc.desc : Local Video create->release 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0500 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderLoopCreate2Release2WithPromise
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_PROMISE_02_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0100
* @tc.name : 01.prepare->start>reset
* @tc.desc : Local Video prepare->start>reset 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0100
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0100 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderLoopPrepare2ResetWithCallback
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0100 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0300
* @tc.name : 03.prepare->start->stop
* @tc.desc : Local Video prepare->start->stop 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0300
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0300 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
let
mySteps
=
new
Array
();
for
(
let
i
=
0
;
i
<
LOOP_TIMES
;
i
++
)
{
mySteps
.
push
(
// prepare
PREPARE_EVENT
,
// start recorder
STARTRECORDER_EVENT
,
// stop recorder
STOPRECORDER_EVENT
,
)
}
mySteps
.
push
(
// release avRecorder
RELEASECORDER_EVENT
,
// end
END_EVENT
);
avRecorderTestBase
.
avRecorderLoopPrepare2StopWithCallback
(
avConfig
,
avRecorder
,
done
,
eventEmitter
,
mySteps
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0300 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_01_0400
* @tc.name : 04.pause->resume
* @tc.desc : Local Video pause->resume 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0400
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0400 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
let
mySteps
=
new
Array
();
for
(
let
i
=
0
;
i
<
LOOP_TIMES
;
i
++
)
{
mySteps
.
push
(
// pause recorder
PAUSERECORDER_EVENT
,
// resume recorder
RESUMERECORDER_EVENT
,
)
}
mySteps
.
push
(
// release avRecorder
RELEASECORDER_EVENT
,
// end
END_EVENT
);
avRecorderTestBase
.
avRecorderLoopPause2ResumeWithCallback
(
avConfig
,
avRecorder
,
done
,
eventEmitter
,
mySteps
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0400 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0500
* @tc.name : 05.create->release
* @tc.desc : Local Video create->release 1000 times
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level4
*/
it
(
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0500
'
,
0
,
async
function
(
done
)
{
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0500 start
'
)
let
fileName
=
avRecorderTestBase
.
resourceName
()
fdObject
=
await
mediaTestBase
.
getAvRecorderFd
(
fileName
,
"
audio
"
);
fdPath
=
"
fd://
"
+
fdObject
.
fdNumber
;
console
.
info
(
'
case fdPath is:
'
+
fdPath
);
avConfig
.
url
=
fdPath
;
console
.
info
(
'
avConfig.url
'
+
avConfig
.
url
);
avRecorderTestBase
.
avRecorderLoopCreate2Release2WithCallback
(
avConfig
,
avRecorder
,
LOOP_TIMES
,
done
);
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_STABILITY_CALLBACK_02_0500 end
'
)
})
/* *
* @tc.number : SUB_MULTIMEDIA_MEDIA_AVRECORDER_PREPARE_API_0100
...
...
@@ -2221,5 +1718,6 @@ export default function avRecorderTest() {
console
.
info
(
TAG
+
'
SUB_MULTIMEDIA_MEDIA_AVRECORDER_PERFORMANCE_PROMISE_01_0900 end
'
)
})
})
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录