提交 da80b65f 编写于 作者: R ruanmeng

media test 用例名称调整 Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>

Signed-off-by: Nruanmeng <ruanmeng@huawei.com>
上级 0b7d0ada
...@@ -231,7 +231,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -231,7 +231,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}; };
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0100 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0100
* @tc.name : 001.play * @tc.name : 001.play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -239,7 +239,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -239,7 +239,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0100', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0100', 0, async function (done) {
console.info(`case update`); console.info(`case update`);
let mySteps = new Array(SRC_STATE, PLAY_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -248,7 +248,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -248,7 +248,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0200 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0200
* @tc.name : 002.play->pause * @tc.name : 002.play->pause
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTestTest * @tc.size : MediumTestTest
...@@ -256,7 +256,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -256,7 +256,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0200', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0200', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, RESET_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -264,7 +264,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -264,7 +264,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0300 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0300
* @tc.name : 003.play->pause->play->reset * @tc.name : 003.play->pause->play->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -272,7 +272,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -272,7 +272,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0300', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, RESET_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -280,7 +280,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -280,7 +280,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0500 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0500
* @tc.name : 005.play->reset * @tc.name : 005.play->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -288,7 +288,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -288,7 +288,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0500', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0500', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, RESET_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -296,7 +296,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -296,7 +296,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0600 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0600
* @tc.name : 006.play->pause->play->pause * @tc.name : 006.play->pause->play->pause
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -304,7 +304,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -304,7 +304,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0600', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0600', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, PAUSE_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, PAUSE_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -312,7 +312,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -312,7 +312,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0700 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0700
* @tc.name : 007.play->pause->stop * @tc.name : 007.play->pause->stop
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -320,7 +320,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -320,7 +320,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0700', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0700', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, STOP_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, STOP_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -328,7 +328,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -328,7 +328,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0800 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0800
* @tc.name : 008.play->pause->play->stop * @tc.name : 008.play->pause->play->stop
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -336,7 +336,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -336,7 +336,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0800', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0800', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, STOP_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, STOP_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -344,7 +344,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -344,7 +344,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0900 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0900
* @tc.name : 009.play->stop->reset->play->pause->play->reset * @tc.name : 009.play->stop->reset->play->pause->play->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -352,7 +352,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -352,7 +352,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_0900', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_0900', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, RESET_STATE, SRC_STATE, PLAY_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, RESET_STATE, SRC_STATE, PLAY_STATE,
PAUSE_STATE, PLAY_STATE, RESET_STATE, END_STATE); PAUSE_STATE, PLAY_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -361,7 +361,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -361,7 +361,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1000 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1000
* @tc.name : 010.play->pause->stop->reset->play->pause->reset * @tc.name : 010.play->pause->stop->reset->play->pause->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -369,7 +369,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -369,7 +369,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1000', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1000', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, STOP_STATE, RESET_STATE, SRC_STATE, PLAY_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, STOP_STATE, RESET_STATE, SRC_STATE, PLAY_STATE,
PAUSE_STATE, RESET_STATE, END_STATE); PAUSE_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -378,7 +378,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -378,7 +378,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1100 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1100
* @tc.name : 011.play->stop->reset->play->reset * @tc.name : 011.play->stop->reset->play->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -386,7 +386,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -386,7 +386,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1100', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1100', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, RESET_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, RESET_STATE,
SRC_STATE, PLAY_STATE, RESET_STATE, END_STATE); SRC_STATE, PLAY_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -395,23 +395,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -395,23 +395,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1200 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1300
* @tc.name : 012.play->pause->play->reset
* @tc.desc : Audio playback control test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1200', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, RESET_STATE, END_STATE);
initAudioPlayer();
setCallback(mySteps, done);
audioPlayer.src = AUDIO_SOURCE;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1300
* @tc.name : 013.play->stop->pause * @tc.name : 013.play->stop->pause
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -419,7 +403,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -419,7 +403,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1300', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, PAUSE_STATE, ERROR_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, PAUSE_STATE, ERROR_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -427,7 +411,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -427,7 +411,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1400 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1400
* @tc.name : 014.play->seek->pause * @tc.name : 014.play->seek->pause
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -435,7 +419,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -435,7 +419,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1400', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1400', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, PAUSE_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, PAUSE_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -443,7 +427,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -443,7 +427,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1500 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1500
* @tc.name : 015.play->pause->seek(duration) * @tc.name : 015.play->pause->seek(duration)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -451,7 +435,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -451,7 +435,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1500', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1500', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME, let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME,
PLAY_STATE, FINISH_STATE, END_STATE); PLAY_STATE, FINISH_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -460,7 +444,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -460,7 +444,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1600 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1600
* @tc.name : 016.play->pause->play->seek(0)->pause * @tc.name : 016.play->pause->play->seek(0)->pause
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -468,7 +452,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -468,7 +452,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1600', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1600', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, SEEK_STATE, 0, PAUSE_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, SEEK_STATE, 0, PAUSE_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -476,7 +460,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -476,7 +460,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1700 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1700
* @tc.name : 017.play->seek(0)->reset * @tc.name : 017.play->seek(0)->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -484,7 +468,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -484,7 +468,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1700', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1700', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, RESET_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -492,7 +476,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -492,7 +476,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1800 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1800
* @tc.name : 018.play->seek->stop->reset * @tc.name : 018.play->seek->stop->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -500,7 +484,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -500,7 +484,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1800', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1800', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, STOP_STATE, RESET_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, STOP_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -508,7 +492,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -508,7 +492,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1900 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1900
* @tc.name : 019.play->stop->seek * @tc.name : 019.play->stop->seek
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -516,7 +500,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -516,7 +500,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_1900', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_1900', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, 0, ERROR_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, 0, ERROR_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -524,7 +508,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -524,7 +508,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2000 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2000
* @tc.name : 020.play->pause->seek->reset * @tc.name : 020.play->pause->seek->reset
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -532,7 +516,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -532,7 +516,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2000', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2000', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, 0, RESET_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, 0, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -540,7 +524,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -540,7 +524,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2100 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2100
* @tc.name : 021.play->pause->seek->stop * @tc.name : 021.play->pause->seek->stop
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -548,7 +532,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -548,7 +532,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2100', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2100', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME / RAND_NUM, let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME / RAND_NUM,
STOP_STATE, END_STATE); STOP_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -557,7 +541,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -557,7 +541,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2200 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2200
* @tc.name : 022.play->pause->play->seek(0) * @tc.name : 022.play->pause->play->seek(0)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -565,7 +549,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -565,7 +549,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2200', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2200', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, SEEK_STATE, 0, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, SEEK_STATE, 0, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -573,7 +557,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -573,7 +557,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2300 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2300
* @tc.name : 023.play->pause->play->seek(0)->stop * @tc.name : 023.play->pause->play->seek(0)->stop
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -581,7 +565,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -581,7 +565,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2300', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, SEEK_STATE, 0, STOP_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, SEEK_STATE, 0, STOP_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -589,7 +573,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -589,7 +573,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2400 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2400
* @tc.name : 024.play->stop->seek(0)->reset->play * @tc.name : 024.play->stop->seek(0)->reset->play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -597,7 +581,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -597,7 +581,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2400', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2400', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, 0, ERROR_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, 0, ERROR_STATE,
RESET_STATE, SRC_STATE, PLAY_STATE, END_STATE); RESET_STATE, SRC_STATE, PLAY_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -606,7 +590,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -606,7 +590,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2500 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2500
* @tc.name : 025.play->seek(0) * @tc.name : 025.play->seek(0)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -614,7 +598,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -614,7 +598,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2500', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2500', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, 0, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -622,7 +606,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -622,7 +606,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2600 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2600
* @tc.name : 026.play->stop->seek->pause * @tc.name : 026.play->stop->seek->pause
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -630,7 +614,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -630,7 +614,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level 3 * @tc.level : Level 3
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2600', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2600', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, SEEK_TIME, ERROR_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, SEEK_TIME, ERROR_STATE,
PAUSE_STATE, ERROR_STATE, RESET_STATE, END_STATE); PAUSE_STATE, ERROR_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -639,7 +623,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -639,7 +623,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2700 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2700
* @tc.name : 027.play->stop->seek->reset->play * @tc.name : 027.play->stop->seek->reset->play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -647,7 +631,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -647,7 +631,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level 3 * @tc.level : Level 3
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2700', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2700', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, SEEK_TIME, ERROR_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, STOP_STATE, SEEK_STATE, SEEK_TIME, ERROR_STATE,
RESET_STATE, SRC_STATE, PLAY_STATE, END_STATE); RESET_STATE, SRC_STATE, PLAY_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -656,7 +640,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -656,7 +640,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2800 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2800
* @tc.name : 028.play->seek(duration) * @tc.name : 028.play->seek(duration)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -664,7 +648,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -664,7 +648,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2800', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2800', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME, FINISH_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME, FINISH_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -672,7 +656,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -672,7 +656,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2900 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2900
* @tc.name : 029.play->seek(out of duration) * @tc.name : 029.play->seek(out of duration)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -680,7 +664,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -680,7 +664,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level 3 * @tc.level : Level 3
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_2900', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_2900', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME + DELTA_TIME, let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME + DELTA_TIME,
FINISH_STATE, END_STATE); FINISH_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -689,7 +673,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -689,7 +673,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3000 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3000
* @tc.name : 030.play->->seek(rand) * @tc.name : 030.play->->seek(rand)
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -697,7 +681,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -697,7 +681,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3000', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3000', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME / RAND_NUM, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME / RAND_NUM, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -705,7 +689,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -705,7 +689,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3200 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3200
* @tc.name : 032.play->pause->seek(0)->play * @tc.name : 032.play->pause->seek(0)->play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -713,7 +697,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -713,7 +697,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3200', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3200', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, 0, PLAY_STATE, RESET_STATE, END_STATE); let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, 0, PLAY_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
setCallback(mySteps, done); setCallback(mySteps, done);
...@@ -721,7 +705,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -721,7 +705,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3300 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3300
* @tc.name : 033.play->pause->seek(duration)->play * @tc.name : 033.play->pause->seek(duration)->play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -729,7 +713,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -729,7 +713,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3300', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME, PLAY_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME, PLAY_STATE,
FINISH_STATE, RESET_STATE, END_STATE); FINISH_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -738,7 +722,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -738,7 +722,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3400 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3400
* @tc.name : 034.play->pause->seek(out of duratin)->play * @tc.name : 034.play->pause->seek(out of duratin)->play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -746,7 +730,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -746,7 +730,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level 3 * @tc.level : Level 3
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3400', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3400', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME + DELTA_TIME, PLAY_STATE, let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, SEEK_STATE, DURATION_TIME + DELTA_TIME, PLAY_STATE,
FINISH_STATE, RESET_STATE, END_STATE); FINISH_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -755,7 +739,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -755,7 +739,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3500 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3500
* @tc.name : 035.play->seek(out of duratin)->play * @tc.name : 035.play->seek(out of duratin)->play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -763,7 +747,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -763,7 +747,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level 3 * @tc.level : Level 3
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3500', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3500', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME + DELTA_TIME, let mySteps = new Array(SRC_STATE, PLAY_STATE, SEEK_STATE, DURATION_TIME + DELTA_TIME,
FINISH_STATE, PLAY_STATE, RESET_STATE, END_STATE); FINISH_STATE, PLAY_STATE, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
...@@ -772,7 +756,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -772,7 +756,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3600 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3600
* @tc.name : 036.Loop Play * @tc.name : 036.Loop Play
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -780,7 +764,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -780,7 +764,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3600', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3600', 0, async function (done) {
let playCount = 0; let playCount = 0;
let seekCount = 0; let seekCount = 0;
let isTimeDone = false; let isTimeDone = false;
...@@ -839,7 +823,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -839,7 +823,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3700 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3700
* @tc.name : 037.set volume 0 to 1 * @tc.name : 037.set volume 0 to 1
* @tc.desc : Audio playback control test * @tc.desc : Audio playback control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -847,7 +831,7 @@ describe('PlayerLocalTestAudioFUNC', function () { ...@@ -847,7 +831,7 @@ describe('PlayerLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_Function_04_3700', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_AUDIO_FUNCTION_04_3700', 0, async function (done) {
let mySteps = new Array(SRC_STATE, PLAY_STATE, VOLUME_STATE, 0, let mySteps = new Array(SRC_STATE, PLAY_STATE, VOLUME_STATE, 0,
VOLUME_STATE, MAX_VOLUME, RESET_STATE, END_STATE); VOLUME_STATE, MAX_VOLUME, RESET_STATE, END_STATE);
initAudioPlayer(); initAudioPlayer();
......
...@@ -120,7 +120,7 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -120,7 +120,7 @@ describe('PlayerLocalTestAudioFormat', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0100 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0100
* @tc.name : 001.Playing mp3 streams * @tc.name : 001.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -132,12 +132,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -132,12 +132,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0100', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0100', 0, async function (done) {
playSource(BASIC_PATH + '01.mp3', done); playSource(BASIC_PATH + '01.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0200 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0200
* @tc.name : 002.Playing mp3 streams * @tc.name : 002.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -149,12 +149,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -149,12 +149,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0200', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0200', 0, async function (done) {
playSource(BASIC_PATH + '02.mp3', done); playSource(BASIC_PATH + '02.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0300 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0300
* @tc.name : 003.Playing mp3 streams * @tc.name : 003.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -166,12 +166,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -166,12 +166,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0300', 0, async function (done) {
playSource(BASIC_PATH + '03.mp3', done); playSource(BASIC_PATH + '03.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0400 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0400
* @tc.name : 004.Playing mp3 streams * @tc.name : 004.Playing mp3 streams
* @tc.desc : Format : MP3 * @tc.desc : Format : MP3
Codec : MP3 Codec : MP3
...@@ -183,12 +183,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -183,12 +183,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP3_01_0400', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP3_0400', 0, async function (done) {
playSource(BASIC_PATH + '04.mp3', done); playSource(BASIC_PATH + '04.mp3', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0100 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0100
* @tc.name : 001.Playing mp4 streams * @tc.name : 001.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -200,13 +200,13 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -200,13 +200,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0100', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0100', 0, async function (done) {
playSource(BASIC_PATH + '47.mp4', done); playSource(BASIC_PATH + '47.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0300 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0300
* @tc.name : 003.Playing mp4 streams * @tc.name : 003.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -218,12 +218,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -218,12 +218,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0300', 0, async function (done) {
playSource(BASIC_PATH + '49.mp4', done); playSource(BASIC_PATH + '49.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0400 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0400
* @tc.name : 004.Playing mp4 streams * @tc.name : 004.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -235,12 +235,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -235,12 +235,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0400', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0400', 0, async function (done) {
playSource(BASIC_PATH + '50.mp4', done); playSource(BASIC_PATH + '50.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0500 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0500
* @tc.name : 005.Playing mp4 streams * @tc.name : 005.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -252,12 +252,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -252,12 +252,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0500', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0500', 0, async function (done) {
playSource(BASIC_PATH + '51.mp4', done); playSource(BASIC_PATH + '51.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0600 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0600
* @tc.name : 006.Playing mp4 streams * @tc.name : 006.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : AAC LC Codec : AAC LC
...@@ -269,12 +269,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -269,12 +269,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0600', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0600', 0, async function (done) {
playSource(BASIC_PATH + '54.mp4', done); playSource(BASIC_PATH + '54.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0700 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0700
* @tc.name : 007.Playing mp4 streams * @tc.name : 007.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -286,12 +286,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -286,12 +286,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0700', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0700', 0, async function (done) {
playSource(BASIC_PATH + '64.mp4', done); playSource(BASIC_PATH + '64.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0800 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0800
* @tc.name : 008.Playing mp4 streams * @tc.name : 008.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -303,12 +303,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -303,12 +303,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0800', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0800', 0, async function (done) {
playSource(BASIC_PATH + '65.mp4', done); playSource(BASIC_PATH + '65.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0900 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0900
* @tc.name : 009.Playing mp4 streams * @tc.name : 009.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -320,12 +320,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -320,12 +320,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_0900', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_0900', 0, async function (done) {
playSource(BASIC_PATH + '66.mp4', done); playSource(BASIC_PATH + '66.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1000 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1000
* @tc.name : 010.Playing mp4 streams * @tc.name : 010.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : MP3 Codec : MP3
...@@ -337,12 +337,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -337,12 +337,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1000', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1000', 0, async function (done) {
playSource(BASIC_PATH + '67.mp4', done); playSource(BASIC_PATH + '67.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1100 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1100
* @tc.name : 011.Playing mp4 streams * @tc.name : 011.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -354,12 +354,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -354,12 +354,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1100', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1100', 0, async function (done) {
playSource(BASIC_PATH + '92.mp4', done); playSource(BASIC_PATH + '92.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1200 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1200
* @tc.name : 012.Playing mp4 streams * @tc.name : 012.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -371,12 +371,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -371,12 +371,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1200', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1200', 0, async function (done) {
playSource(BASIC_PATH + '93.mp4', done); playSource(BASIC_PATH + '93.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1300 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1300
* @tc.name : 013.Playing mp4 streams * @tc.name : 013.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -388,12 +388,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -388,12 +388,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1300', 0, async function (done) {
playSource(BASIC_PATH + '94.mp4', done); playSource(BASIC_PATH + '94.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1400 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1400
* @tc.name : 014.Playing mp4 streams * @tc.name : 014.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -405,12 +405,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -405,12 +405,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1400', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1400', 0, async function (done) {
playSource(BASIC_PATH + '96.mp4', done); playSource(BASIC_PATH + '96.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1500 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1500
* @tc.name : 015.Playing mp4 streams * @tc.name : 015.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -422,12 +422,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -422,12 +422,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1500', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1500', 0, async function (done) {
playSource(BASIC_PATH + '97.mp4', done); playSource(BASIC_PATH + '97.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1600 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1600
* @tc.name : 016.Playing mp4 streams * @tc.name : 016.Playing mp4 streams
* @tc.desc : Format : MP4 * @tc.desc : Format : MP4
Codec : Vorbis Codec : Vorbis
...@@ -439,12 +439,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -439,12 +439,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_MP4_01_1600', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_MP4_1600', 0, async function (done) {
playSource(BASIC_PATH + '98.mp4', done); playSource(BASIC_PATH + '98.mp4', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0100 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0100
* @tc.name : 001.Playing m4a streams * @tc.name : 001.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -456,13 +456,13 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -456,13 +456,13 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0100', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0100', 0, async function (done) {
playSource(BASIC_PATH + '55.m4a', done); playSource(BASIC_PATH + '55.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0300 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0300
* @tc.name : 003.Playing m4a streams * @tc.name : 003.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -474,12 +474,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -474,12 +474,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0300', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0300', 0, async function (done) {
playSource(BASIC_PATH + '57.m4a', done); playSource(BASIC_PATH + '57.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0400 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0400
* @tc.name : 004.Playing m4a streams * @tc.name : 004.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -491,12 +491,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -491,12 +491,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0400', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0400', 0, async function (done) {
playSource(BASIC_PATH + '58.m4a', done); playSource(BASIC_PATH + '58.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0500 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0500
* @tc.name : 005.Playing m4a streams * @tc.name : 005.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -508,12 +508,12 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -508,12 +508,12 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0500', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0500', 0, async function (done) {
playSource(BASIC_PATH + '59.m4a', done); playSource(BASIC_PATH + '59.m4a', done);
}) })
/* * /* *
* @tc.number : SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0700 * @tc.number : SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0700
* @tc.name : 007.Playing m4a streams * @tc.name : 007.Playing m4a streams
* @tc.desc : Format : M4A * @tc.desc : Format : M4A
Codec : AAC LC Codec : AAC LC
...@@ -525,7 +525,7 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -525,7 +525,7 @@ describe('PlayerLocalTestAudioFormat', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_PLAYER_LOCAL_Format_M4A_01_0700', 0, async function (done) { it('SUB_MEDIA_PLAYER_LOCAL_FORMAT_M4A_0700', 0, async function (done) {
playSource(BASIC_PATH + '62.m4a', done); playSource(BASIC_PATH + '62.m4a', done);
}) })
}) })
...@@ -173,7 +173,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -173,7 +173,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
} }
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0100 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0100
* @tc.name : 01.AAC * @tc.name : 01.AAC
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -181,7 +181,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -181,7 +181,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0100', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0100', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test1.m4a'; audioConfig.uri = BASIC_PATH + 'test1.m4a';
initAudioRecorder(); initAudioRecorder();
let mySteps = new Array(PRE_STATE, START_STATE, STOP_STATE, RELEASE_STATE, END_STATE); let mySteps = new Array(PRE_STATE, START_STATE, STOP_STATE, RELEASE_STATE, END_STATE);
...@@ -190,7 +190,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -190,7 +190,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0210 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0210
* @tc.name : 02.AAC_Different Channels 1 * @tc.name : 02.AAC_Different Channels 1
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -198,7 +198,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -198,7 +198,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0210', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0210', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test2.m4a'; audioConfig.uri = BASIC_PATH + 'test2.m4a';
audioConfig.numberOfChannels = CHANNEL_ONE; audioConfig.numberOfChannels = CHANNEL_ONE;
initAudioRecorder(); initAudioRecorder();
...@@ -208,7 +208,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -208,7 +208,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0220 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0220
* @tc.name : 02.AAC_Different Channels 2 * @tc.name : 02.AAC_Different Channels 2
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -216,7 +216,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -216,7 +216,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0220', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0220', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test3.m4a'; audioConfig.uri = BASIC_PATH + 'test3.m4a';
audioConfig.numberOfChannels = CHANNEL_TWO; audioConfig.numberOfChannels = CHANNEL_TWO;
initAudioRecorder(); initAudioRecorder();
...@@ -226,7 +226,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -226,7 +226,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0310 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0310
* @tc.name : 03.AAC_DifferentSampleRate 8000 * @tc.name : 03.AAC_DifferentSampleRate 8000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -234,7 +234,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -234,7 +234,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0310', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0310', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test4.m4a'; audioConfig.uri = BASIC_PATH + 'test4.m4a';
audioConfig.audioSampleRate = 8000; // samplerate 8000 audioConfig.audioSampleRate = 8000; // samplerate 8000
audioConfig.numberOfChannels = CHANNEL_TWO; audioConfig.numberOfChannels = CHANNEL_TWO;
...@@ -245,7 +245,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -245,7 +245,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0320 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0320
* @tc.name : 03.AAC_DifferentSampleRate 32000 * @tc.name : 03.AAC_DifferentSampleRate 32000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -253,7 +253,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -253,7 +253,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0320', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0320', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test5.mp4'; audioConfig.uri = BASIC_PATH + 'test5.mp4';
audioConfig.audioSampleRate = 32000; // samplerate 32000 audioConfig.audioSampleRate = 32000; // samplerate 32000
audioConfig.numberOfChannels = CHANNEL_ONE; audioConfig.numberOfChannels = CHANNEL_ONE;
...@@ -265,7 +265,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -265,7 +265,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0330 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0330
* @tc.name : 03.AAC_DifferentSampleRate 44100 * @tc.name : 03.AAC_DifferentSampleRate 44100
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -273,7 +273,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -273,7 +273,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0330', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0330', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test6.mp4'; audioConfig.uri = BASIC_PATH + 'test6.mp4';
audioConfig.audioSampleRate = 44100; // samplerate 44100 audioConfig.audioSampleRate = 44100; // samplerate 44100
audioConfig.numberOfChannels = CHANNEL_TWO; audioConfig.numberOfChannels = CHANNEL_TWO;
...@@ -285,7 +285,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -285,7 +285,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0340 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0340
* @tc.name : 03.AAC_DifferentSampleRate 64000 * @tc.name : 03.AAC_DifferentSampleRate 64000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -293,7 +293,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -293,7 +293,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0340', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0340', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test7.m4a'; audioConfig.uri = BASIC_PATH + 'test7.m4a';
audioConfig.audioSampleRate = 64000; // samplerate 64000 audioConfig.audioSampleRate = 64000; // samplerate 64000
audioConfig.numberOfChannels = CHANNEL_ONE; audioConfig.numberOfChannels = CHANNEL_ONE;
...@@ -305,7 +305,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -305,7 +305,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0350 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0350
* @tc.name : 03.AAC_DifferentSampleRate 96000 * @tc.name : 03.AAC_DifferentSampleRate 96000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -313,7 +313,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -313,7 +313,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0340', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0340', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test8.m4a'; audioConfig.uri = BASIC_PATH + 'test8.m4a';
audioConfig.audioSampleRate = 96000; // samplerate 96000 audioConfig.audioSampleRate = 96000; // samplerate 96000
audioConfig.numberOfChannels = CHANNEL_TWO; audioConfig.numberOfChannels = CHANNEL_TWO;
...@@ -325,7 +325,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -325,7 +325,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0410 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0410
* @tc.name : 04.AAC_DifferentBitrate 8000 * @tc.name : 04.AAC_DifferentBitrate 8000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -333,7 +333,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -333,7 +333,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0410', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0410', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test9.mp4'; audioConfig.uri = BASIC_PATH + 'test9.mp4';
audioConfig.audioSampleRate = 22050; // samplerate 22050 audioConfig.audioSampleRate = 22050; // samplerate 22050
audioConfig.audioEncodeBitRate = 8000; // encodeBitrate 8000 audioConfig.audioEncodeBitRate = 8000; // encodeBitrate 8000
...@@ -346,7 +346,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -346,7 +346,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0420 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0420
* @tc.name : 04.AAC_DifferentBitrate 16000 * @tc.name : 04.AAC_DifferentBitrate 16000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -354,7 +354,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -354,7 +354,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0420', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0420', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test10.mp4'; audioConfig.uri = BASIC_PATH + 'test10.mp4';
audioConfig.audioSampleRate = 44100; // samplerate 44100 audioConfig.audioSampleRate = 44100; // samplerate 44100
audioConfig.audioEncodeBitRate = 16000; // encodeBitrate 16000 audioConfig.audioEncodeBitRate = 16000; // encodeBitrate 16000
...@@ -367,7 +367,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -367,7 +367,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0430 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0430
* @tc.name : 04.AAC_DifferentBitrate 32000 * @tc.name : 04.AAC_DifferentBitrate 32000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -375,7 +375,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -375,7 +375,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0430', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0430', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test11.m4a'; audioConfig.uri = BASIC_PATH + 'test11.m4a';
audioConfig.audioSampleRate = 44100; // samplerate 44100 audioConfig.audioSampleRate = 44100; // samplerate 44100
audioConfig.audioEncodeBitRate = 32000; // encodeBitrate 32000 audioConfig.audioEncodeBitRate = 32000; // encodeBitrate 32000
...@@ -388,7 +388,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -388,7 +388,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0440 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0440
* @tc.name : 04.AAC_DifferentBitrate 64000 * @tc.name : 04.AAC_DifferentBitrate 64000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -396,7 +396,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -396,7 +396,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0440', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0440', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test12.m4a'; audioConfig.uri = BASIC_PATH + 'test12.m4a';
audioConfig.audioSampleRate = 44100; // samplerate 44100 audioConfig.audioSampleRate = 44100; // samplerate 44100
audioConfig.audioEncodeBitRate = 64000; // encodeBitrate 64000 audioConfig.audioEncodeBitRate = 64000; // encodeBitrate 64000
...@@ -409,7 +409,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -409,7 +409,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Codec_AAC_Function_0450 * @tc.number : SUB_MEDIA_RECORDER_CODEC_AAC_0450
* @tc.name : 04.AAC_DifferentBitrate 112000 * @tc.name : 04.AAC_DifferentBitrate 112000
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -417,7 +417,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -417,7 +417,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Codec_AAC_Function_0450', 0, async function (done) { it('SUB_MEDIA_RECORDER_CODEC_AAC_0450', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test13.m4a'; audioConfig.uri = BASIC_PATH + 'test13.m4a';
audioConfig.audioSampleRate = 44100; // samplerate 44100 audioConfig.audioSampleRate = 44100; // samplerate 44100
audioConfig.audioEncodeBitRate = 112000; // encodeBitrate 112000 audioConfig.audioEncodeBitRate = 112000; // encodeBitrate 112000
...@@ -430,7 +430,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -430,7 +430,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_Format_MP4_Function_0200 * @tc.number : SUB_MEDIA_RECORDER_FORMAT_MP4_0200
* @tc.name : 02.AAC,mp4 * @tc.name : 02.AAC,mp4
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -438,7 +438,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -438,7 +438,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Format_MP4_Function_0200', 0, async function (done) { it('SUB_MEDIA_RECORDER_FORMAT_MP4_0200', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test14.mp4'; audioConfig.uri = BASIC_PATH + 'test14.mp4';
audioConfig.audioEncodeBitRate = 22050; // samplerate 22050 audioConfig.audioEncodeBitRate = 22050; // samplerate 22050
audioConfig.audioSampleRate = 22050; // encodeBitrate 22050 audioConfig.audioSampleRate = 22050; // encodeBitrate 22050
...@@ -459,7 +459,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -459,7 +459,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_Format_MP4_Function_0200', 0, async function (done) { it('SUB_MEDIA_RECORDER_FORMAT_MP4_0200', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test15.m4a'; audioConfig.uri = BASIC_PATH + 'test15.m4a';
audioConfig.audioEncodeBitRate = 22050; // samplerate 22050 audioConfig.audioEncodeBitRate = 22050; // samplerate 22050
audioConfig.audioSampleRate = 22050; // encodeBitrate 22050 audioConfig.audioSampleRate = 22050; // encodeBitrate 22050
...@@ -472,7 +472,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -472,7 +472,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_LOCAL_AUDIO_Function_06_0100 * @tc.number : SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0100
* @tc.name : 001.start * @tc.name : 001.start
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -480,7 +480,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -480,7 +480,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_LOCAL_AUDIO_Function_06_0100', 0, async function (done) { it('SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0100', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test16.m4a'; audioConfig.uri = BASIC_PATH + 'test16.m4a';
audioConfig.fileFormat = FORMAT_M4A; audioConfig.fileFormat = FORMAT_M4A;
initAudioRecorder(); initAudioRecorder();
...@@ -490,7 +490,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -490,7 +490,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_LOCAL_AUDIO_Function_06_0500 * @tc.number : SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0500
* @tc.name : 005.reset * @tc.name : 005.reset
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -498,7 +498,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -498,7 +498,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_LOCAL_AUDIO_Function_06_0500', 0, async function (done) { it('SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_0500', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test17.m4a'; audioConfig.uri = BASIC_PATH + 'test17.m4a';
audioConfig.fileFormat = FORMAT_M4A; audioConfig.fileFormat = FORMAT_M4A;
initAudioRecorder(); initAudioRecorder();
...@@ -508,7 +508,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -508,7 +508,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
}) })
/* * /* *
* @tc.number : SUB_MEDIA_RECORDER_LOCAL_AUDIO_Function_06_1100 * @tc.number : SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_1100
* @tc.name : 011.start->reset->start->stop * @tc.name : 011.start->reset->start->stop
* @tc.desc : Audio recordr control test * @tc.desc : Audio recordr control test
* @tc.size : MediumTest * @tc.size : MediumTest
...@@ -516,7 +516,7 @@ describe('RecorderLocalTestAudioFUNC', function () { ...@@ -516,7 +516,7 @@ describe('RecorderLocalTestAudioFUNC', function () {
* @tc.level : Level0 * @tc.level : Level0
*/ */
it('SUB_MEDIA_RECORDER_LOCAL_AUDIO_Function_06_1100', 0, async function (done) { it('SUB_MEDIA_RECORDER_AUDIO_FUNCTION_06_1100', 0, async function (done) {
audioConfig.uri = BASIC_PATH + 'test18.mp4'; audioConfig.uri = BASIC_PATH + 'test18.mp4';
audioConfig.fileFormat = FORMAT_MP4; audioConfig.fileFormat = FORMAT_MP4;
initAudioRecorder(); initAudioRecorder();
......
...@@ -21,11 +21,11 @@ using namespace testing::ext; ...@@ -21,11 +21,11 @@ using namespace testing::ext;
using namespace TestPlayerBasic; using namespace TestPlayerBasic;
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_SetSource_0100 * @tc.number : SUB_MEDIA_PLAYER_SetSource_0100
* @tc.name : 01.SetSource操作在new之后 * @tc.name : 01.SetSource操作在new之后
* @tc.desc : test SetSource * @tc.desc : test SetSource
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetSource_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_SetSource_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -36,11 +36,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetSource_0100, Reliability ...@@ -36,11 +36,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetSource_0100, Reliability
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Prepare_0100 * @tc.number : SUB_MEDIA_PLAYER_Prepare_0100
* @tc.name : 03.Prepare操作在SetSource之后 * @tc.name : 03.Prepare操作在SetSource之后
* @tc.desc : test Prepare * @tc.desc : test Prepare
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Prepare_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Prepare_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -56,11 +56,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Prepare_0100, Reliability | ...@@ -56,11 +56,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Prepare_0100, Reliability |
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_PrepareAsync_0100 * @tc.number : SUB_MEDIA_PLAYER_PrepareAsync_0100
* @tc.name : 03.PrepareAsync操作在SetSource之后 * @tc.name : 03.PrepareAsync操作在SetSource之后
* @tc.desc : test PrepareAsync * @tc.desc : test PrepareAsync
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_PrepareAsync_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_PrepareAsync_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -76,11 +76,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_PrepareAsync_0100, Reliabil ...@@ -76,11 +76,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_PrepareAsync_0100, Reliabil
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Play_0100 * @tc.number : SUB_MEDIA_PLAYER_Play_0100
* @tc.name : 02.Play操作在PrepareAsync之后 * @tc.name : 02.Play操作在PrepareAsync之后
* @tc.desc : test Play * @tc.desc : test Play
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Play_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Play_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -101,11 +101,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Play_0100, Reliability | Me ...@@ -101,11 +101,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Play_0100, Reliability | Me
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Stop_0100 * @tc.number : SUB_MEDIA_PLAYER_Stop_0100
* @tc.name : 04.Stop操作在Play之后 * @tc.name : 04.Stop操作在Play之后
* @tc.desc : test Stop * @tc.desc : test Stop
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Stop_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Stop_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -126,11 +126,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Stop_0100, Reliability | Me ...@@ -126,11 +126,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Stop_0100, Reliability | Me
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Pause_0100 * @tc.number : SUB_MEDIA_PLAYER_Pause_0100
* @tc.name : 05.Pause操作在Play之后 * @tc.name : 05.Pause操作在Play之后
* @tc.desc : test Pause * @tc.desc : test Pause
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Pause_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Pause_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -152,11 +152,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Pause_0100, Reliability | M ...@@ -152,11 +152,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Pause_0100, Reliability | M
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Reset_0100 * @tc.number : SUB_MEDIA_PLAYER_Reset_0100
* @tc.name : 06.Reset操作在Seek之后 * @tc.name : 06.Reset操作在Seek之后
* @tc.desc : test Reset * @tc.desc : test Reset
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Reset_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Reset_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -180,11 +180,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Reset_0100, Reliability | M ...@@ -180,11 +180,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Reset_0100, Reliability | M
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Seek_0100 * @tc.number : SUB_MEDIA_PLAYER_Seek_0100
* @tc.name : 04.Seek操作在Play之后 * @tc.name : 04.Seek操作在Play之后
* @tc.desc : test Seek * @tc.desc : test Seek
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Seek_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -208,11 +208,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0100, Reliability | Me ...@@ -208,11 +208,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0100, Reliability | Me
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Seek_0200 * @tc.number : SUB_MEDIA_PLAYER_Seek_0200
* @tc.name : 06.Seek操作在Pause之后 * @tc.name : 06.Seek操作在Pause之后
* @tc.desc : test Seek * @tc.desc : test Seek
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0200, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Seek_0200, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -238,11 +238,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0200, Reliability | Me ...@@ -238,11 +238,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0200, Reliability | Me
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Seek_0300 * @tc.number : SUB_MEDIA_PLAYER_Seek_0300
* @tc.name : 10.Seek操作调用3次 * @tc.name : 10.Seek操作调用3次
* @tc.desc : test Seek * @tc.desc : test Seek
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0300, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_Seek_0300, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -279,11 +279,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0300, Reliability | Me ...@@ -279,11 +279,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_Seek_0300, Reliability | Me
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_SetPlaybackSpeed_0100 * @tc.number : SUB_MEDIA_PLAYER_SetPlaybackSpeed_0100
* @tc.name : 02.SetPlaybackSpeed操作在play之后 * @tc.name : 02.SetPlaybackSpeed操作在play之后
* @tc.desc : * @tc.desc :
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetPlaybackSpeed_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_SetPlaybackSpeed_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
...@@ -305,11 +305,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetPlaybackSpeed_0100, Reli ...@@ -305,11 +305,11 @@ HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_SetPlaybackSpeed_0100, Reli
} }
/** /**
* @tc.number : SUB_MEDIA_PLAYER_APITest_Seek_1500 * @tc.number : SUB_MEDIA_PLAYER_Seek_1500
* @tc.name : 15.GET操作在每个可进行的操作后都调用一次 * @tc.name : 15.GET操作在每个可进行的操作后都调用一次
* @tc.desc : test Seek * @tc.desc : test Seek
*/ */
HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_APITest_GetParameter_0100, Reliability | MediumTest | Level2) HWTEST_F(ActsPlayerAPITest, SUB_MEDIA_PLAYER_GetParameter_0100, Reliability | MediumTest | Level2)
{ {
std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>(); std::shared_ptr<PlayerSignal> testObj = std::make_shared<PlayerSignal>();
std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj); std::shared_ptr<TestPlayer> player = std::make_shared<TestPlayer>(testObj);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册