提交 89efc315 编写于 作者: Q qinliwen

<delete stability testcase>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 56c1b835
......@@ -26,5 +26,5 @@ export default function testsuite() {
// AVPlayerHttpSeekTest();
AvPlayerEnumTest();
AVPlayerLocalTest();
AVPlayerStabilityTest();
// AVPlayerStabilityTest();
}
\ No newline at end of file
......@@ -22,12 +22,8 @@ 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册