提交 e00bc705 编写于 作者: N NOBUGGERS

用例名规范整改 Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>

Signed-off-by: NNOBUGGERS <ruanmeng@huawei.com>
上级 0a6eabe2
......@@ -47,7 +47,7 @@ describe('VideoPlayerHLSTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HLS_SEEK
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HLS_SEEK_0100
* @tc.name : 001.test hls
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
......
......@@ -47,7 +47,7 @@ describe('VideoPlayerHLSTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HLS
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HLS_0100
* @tc.name : 001.test hls
* @tc.desc : HLS Video playback control test
* @tc.size : MediumTest
......
......@@ -52,7 +52,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0100
* @tc.name : 001.H264_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -66,7 +66,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MP4_0200
* @tc.name : 002.H264_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -80,7 +80,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0100
* @tc.name : 001.H264_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -94,7 +94,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_TS_0200
* @tc.name : 002.H264_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -108,7 +108,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0100
* @tc.name : 001.H264_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -122,7 +122,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0200
* @tc.name : 002.H264_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -136,7 +136,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0500
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0500
* @tc.name : 005.MPEG2_AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -150,7 +150,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0600
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0600
* @tc.name : 006.MPEG2_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -164,7 +164,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0800
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_MKV_0800
* @tc.name : 008.MPEG4_MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -178,7 +178,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_WEBM_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_HTTP_FORMAT_WEBM_0100
* @tc.name : 001.VP8_VORBIS
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -192,7 +192,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_MP3_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_MP3_0100
* @tc.name : 001.MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -205,7 +205,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_AAC_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_AAC_0100
* @tc.name : 001.AAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -218,7 +218,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_WAV_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_WAV_0100
* @tc.name : 001.MP3
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -231,7 +231,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_FLAC_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_FLAC_0100
* @tc.name : 001.FLAC
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -244,7 +244,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_M4A_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_M4A_0100
* @tc.name : 001.M4A
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......@@ -257,7 +257,7 @@ describe('HttpPlayerCompatibilityTest', function () {
})
/* *
* @tc.number : SUB_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_OGG_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_AUDIO_PLAYER_HTTP_FORMAT_OGG_0100
* @tc.name : 001.OGG
* @tc.desc : Http playback control test
* @tc.size : MediumTest
......
......@@ -35,8 +35,6 @@ describe('ProfileAbnormalTestCallback', function () {
console.info('afterAll case');
})
async function callbackAbnormalGetVideoProfile(sourceId, qualityLevel, done){
media.getMediaCapability((err, mediaCaps) => {
expect(err).assertUndefined();
......@@ -55,17 +53,16 @@ describe('ProfileAbnormalTestCallback', function () {
}
})
}
async function callbackAbnormalAudioRecoderConfigSupported(audioProfile, done) {
async function callbackAbnormalAudioRecorderConfigSupported(audioProfile, done) {
media.getMediaCapability((err, mediaCaps) => {
expect(err).assertUndefined();
console.info('getMediaCapability success');
if (typeof (mediaCaps) != 'undefined') {
mediaCaps.isAudioRecoderConfigSupported(audioProfile, (err, ean) => {
mediaCaps.isAudioRecorderConfigSupported(audioProfile, (err, ean) => {
expect(err).assertUndefined();
expect(ean).assertEqual(false);
console.info('isAudioRecoderConfigSupported: success');
console.info('isAudioRecorderConfigSupported: success');
done();
})
} else {
......@@ -75,7 +72,7 @@ describe('ProfileAbnormalTestCallback', function () {
}
})
}
async function callbackAbnormalHasVideoProfile(sourceId, qualityLevel, done) {
media.getMediaCapability((err, mediaCaps) => {
expect(err).assertUndefined();
......@@ -96,249 +93,249 @@ describe('ProfileAbnormalTestCallback', function () {
}
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0100
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0100
* @tc.name : test isAudioRecorderConfigSupported false
* @tc.desc : 5 args all set wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0100', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalAll, done);
callbackAbnormalAudioRecorderConfigSupported(base.audioRecorderAbnormalAll, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0200
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0200
* @tc.name : test isAudioRecorderConfigSupported false
* @tc.desc : FormatType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0200', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalFormatType, done);
callbackAbnormalAudioRecorderConfigSupported(base.audioRecorderAbnormalFormatType, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0300
* @tc.name : test isAudioRecoderConfigSupported fasle
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0300
* @tc.name : test isAudioRecorderConfigSupported fasle
* @tc.desc : CodecMimeType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0300', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalCodecMimeType, done);
callbackAbnormalAudioRecorderConfigSupported(base.audioRecorderAbnormalCodecMimeType, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0400
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0400
* @tc.name : test isAudioRecorderConfigSupported false
* @tc.desc : bitrate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0400', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalBitrate, done);
callbackAbnormalAudioRecorderConfigSupported(base.audioRecorderAbnormalBitrate, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0500
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0500
* @tc.name : test isAudioRecorderConfigSupported false
* @tc.desc : sampleRate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0500', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0500', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalSampleRate, done);
callbackAbnormalAudioRecorderConfigSupported(base.audioRecorderAbnormalSampleRate, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0600
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0600
* @tc.name : test isAudioRecorderConfigSupported false
* @tc.desc : channel is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0600', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0600', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalSampleChannel, done);
callbackAbnormalAudioRecorderConfigSupported(base.audioRecorderAbnormalSampleChannel, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0700
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0700
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0700', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0700', 0, async function (done) {
console.info('test hasVideoRecorderProfile');
callbackAbnormalHasVideoProfile(1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0800
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0800
* @tc.name : test hasVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0800', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0800', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
callbackAbnormalHasVideoProfile(-1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_0900
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0900
* @tc.name : test hasVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_0900', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_0900', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
callbackAbnormalHasVideoProfile(0, -1, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1000
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1000
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1000', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1000', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
callbackAbnormalHasVideoProfile(65535, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1100
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1100
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1100', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
callbackAbnormalHasVideoProfile(65536, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1200
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1200
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1200', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
callbackAbnormalHasVideoProfile(0, 65535, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1300
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1300
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1300', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
callbackAbnormalHasVideoProfile(0, 65536, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1400
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1400
* @tc.name : test getVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1400', 0, async function (done) {
console.info("test getVideoRecorderProfile");
callbackAbnormalGetVideoProfile(-1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1500
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1500
* @tc.name : test getVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1500', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1500', 0, async function (done) {
console.info("test getVideoRecorderProfile");
callbackAbnormalGetVideoProfile(0, -1, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1600
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1600
* @tc.name : test getVideoRecorderProfile sourceId 65535
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1600', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1600', 0, async function (done) {
console.info("test getVideoRecorderProfile");
callbackAbnormalGetVideoProfile(65535, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1700
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1700
* @tc.name : test getVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1700', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1700', 0, async function (done) {
console.info("test getVideoRecorderProfile");
callbackAbnormalGetVideoProfile(65536, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1800
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1800
* @tc.name : test getVideoRecorderProfile qualityLevel 65535
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1800', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1800', 0, async function (done) {
console.info("test getVideoRecorderProfile");
callbackAbnormalGetVideoProfile(0, 65535, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_CALLBACK_1900
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1900
* @tc.name : test getVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_CALLBACK_1900', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_CALLBACK_1900', 0, async function (done) {
console.info("test getVideoRecorderProfile");
callbackAbnormalGetVideoProfile(0, 65536, done);
})
......
......@@ -106,248 +106,248 @@ describe('ProfileAbnormalTestPromise', function () {
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0100
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.desc : 5 args all set wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0100', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalAll, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0200
* @tc.name : test isAudioRecoderConfigSupported false
* @tc.desc : FormatType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0200', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalFormatType, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0300
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0300
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : CodecMimeType is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0300', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalCodecMimeType, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0400
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0400
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : bitrate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0400', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalBitrate, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0500
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0500
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : sampleRate is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0500', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0500', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalSampleRate, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0600
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0600
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : channel is wrong
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0600', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0600', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAbnormalAudioRecoderConfigSupported(base.audioRecorderAbnormalSampleChannel, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0700
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0700
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0700', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0700', 0, async function (done) {
console.info('test hasVideoRecorderProfile');
promiseAbnormalHasVideoProfile(1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0800
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0800
* @tc.name : test hasVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0800', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0800', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
promiseAbnormalHasVideoProfile(-1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_0900
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0900
* @tc.name : test hasVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_0900', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_0900', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
promiseAbnormalHasVideoProfile(0, -1, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1000
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1000
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1000', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1000', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
promiseAbnormalHasVideoProfile(65535, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1100
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1100
* @tc.name : test hasVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1100', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
promiseAbnormalHasVideoProfile(65536, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1200
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1200
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1200', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
promiseAbnormalHasVideoProfile(0, 65535, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1300
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1300
* @tc.name : test hasVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1300', 0, async function (done) {
console.info("test hasVideoRecorderProfile");
promiseAbnormalHasVideoProfile(0, 65536, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1400
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1400
* @tc.name : test getVideoRecorderProfile sourceId -1
* @tc.desc : sourceId -1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1400', 0, async function (done) {
console.info("test getVideoRecorderProfile");
promiseAbnormalGetVideoProfile(-1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1500
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1500
* @tc.name : test getVideoRecorderProfile qualityLevel -1
* @tc.desc : sourceId 0 qualityLevel -1
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1500', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1500', 0, async function (done) {
console.info("test getVideoRecorderProfile");
promiseAbnormalGetVideoProfile(0, -1, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1600
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1600
* @tc.name : test getVideoRecorderProfile sourceId 65535
* @tc.desc : sourceId 65535 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1600', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1600', 0, async function (done) {
console.info("test getVideoRecorderProfile");
promiseAbnormalGetVideoProfile(65535, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1700
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1700
* @tc.name : test getVideoRecorderProfile sourceId 65536
* @tc.desc : sourceId 65536 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1700', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1700', 0, async function (done) {
console.info("test getVideoRecorderProfile");
promiseAbnormalGetVideoProfile(65536, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1800
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1800
* @tc.name : test getVideoRecorderProfile qualityLevel 65535
* @tc.desc : sourceId 0 qualityLevel 65535
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1800', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1800', 0, async function (done) {
console.info("test getVideoRecorderProfile");
promiseAbnormalGetVideoProfile(0, 65535, done);
})
/* *
* @tc.number : SUB_PROFILE_RELIABILITY_PROMISE_1900
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1900
* @tc.name : test getVideoRecorderProfile qualityLevel 65536
* @tc.desc : sourceId 0 qualityLevel 65536
* @tc.size : MediumTest
* @tc.type : Abnormal test
* @tc.level : Level2
*/
it('SUB_PROFILE_RELIABILITY_PROMISE_1900', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_RELIABILITY_PROMISE_1900', 0, async function (done) {
console.info("test getVideoRecorderProfile");
promiseAbnormalGetVideoProfile(0, 65536, done);
})
......
......@@ -147,21 +147,21 @@ describe('ProfileTestCallback', function () {
}
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0100
* @tc.name : test getAudioRecorderCaps
* @tc.desc : outputFormat/audioEncoderMime/sampleRates/bitrateRange/channelRange
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0100', 0, async function (done) {
console.info("test getAudioRecorderCaps");
getAudioRecorderCapsTest(done);
console.info("test getAudioRecorderCaps success ");
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0200
* @tc.name : test getVideoRecorderCapsTest
* @tc.desc : outputFormat/audioEncoderMime/audioSampleRates/videoEncoderMime/audioBitrateRange/
audioChannelRange/videoBitrateRange/videoFramerateRange/videoWidthRange/videoHeightRange
......@@ -169,172 +169,172 @@ describe('ProfileTestCallback', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0200', 0, async function (done) {
console.info("test getAudioRecorderCaps");
getVideoRecorderCapsTest(done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0300
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0300
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0300', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0,media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW,
base.recorderQualityLowPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0400
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0400
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 1
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0400', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_HIGH,
base.recorderQualityHighPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0500
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0500
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0500', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0500', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_QCIF,
base.recorderQualityQcifPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0600
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0600
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 3
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0600', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0600', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_CIF,
base.recorderQualityCifPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0700
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0700
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 4
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0700', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0700', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_480P,
base.recorderQuality480PPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0800
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0800
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 5
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0800', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0800', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_720P,
base.recorderQuality720PPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_0900
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0900
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 6
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_0900', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_0900', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_1080P,
base.recorderQuality1080PPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1000
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1000
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 7
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_1000', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1000', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_QVGA,
base.recorderQualityQvgaPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1100
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1100
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_1100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1100', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackGetVideoProfile(1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW,
base.recorderQualityLowParaSourceId1, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1200
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1200
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_1200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1200', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAudioRecoderConfigSupported(base.audioRecorderPara1, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1300
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1300
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_1300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1300', 0, async function (done) {
console.info("test getAudioRecorderCaps");
callbackAudioRecoderConfigSupported(base.audioRecorderPara2, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_CALLBACK_1400
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1400
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_CALLBACK_1400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_CALLBACK_1400', 0, async function (done) {
console.info('test hasVideoRecorderProfile');
callbackHasVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
......
......@@ -167,21 +167,21 @@ describe('ProfileTestPromise', function () {
}
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0100
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0100
* @tc.name : test getAudioRecorderCaps
* @tc.desc : outputFormat/audioEncoderMime/sampleRates/bitrateRange/channelRange
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0100', 0, async function (done) {
console.info("test getAudioRecorderCaps");
getAudioRecorderCapsTest(done);
console.info("test getAudioRecorderCaps success ");
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0200
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0200
* @tc.name : test getVideoRecorderCapsTest
* @tc.desc : outputFormat/audioEncoderMime/audioSampleRates/videoEncoderMime/audioBitrateRange/
audioChannelRange/videoBitrateRange/videoFramerateRange/videoWidthRange/videoHeightRange
......@@ -189,172 +189,172 @@ describe('ProfileTestPromise', function () {
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0200', 0, async function (done) {
console.info("test getAudioRecorderCaps");
getVideoRecorderCapsTest(done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0300
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0300
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0300', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0,media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW,
base.recorderQualityLowPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0400
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0400
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 1
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0400', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_HIGH,
base.recorderQualityHighPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0500
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0500
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 2
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0500', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0500', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_QCIF,
base.recorderQualityQcifPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0600
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0600
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 3
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0600', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0600', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_CIF,
base.recorderQualityCifPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0700
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0700
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 4
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0700', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0700', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_480P,
base.recorderQuality480PPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0800
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0800
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 5
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0800', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0800', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_720P,
base.recorderQuality720PPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_0900
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0900
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 6
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_0900', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_0900', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_1080P,
base.recorderQuality1080PPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1000
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1000
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 7
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_1000', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1000', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_QVGA,
base.recorderQualityQvgaPara, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1100
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1100
* @tc.name : test getVideoRecorderProfile
* @tc.desc : sourceId 1 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_1100', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1100', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseGetVideoProfile(1, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW,
base.recorderQualityLowParaSourceId1, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1200
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1200
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_1200', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1200', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAudioRecoderConfigSupported(base.audioRecorderPara1, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1300
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1300
* @tc.name : test isAudioRecoderConfigSupported
* @tc.desc : isAudioRecoderConfigSupported true
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_1300', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1300', 0, async function (done) {
console.info("test getAudioRecorderCaps");
promiseAudioRecoderConfigSupported(base.audioRecorderPara2, done);
})
/* *
* @tc.number : SUB_PROFILE_FUNCTION_PROMISE_1400
* @tc.number : SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1400
* @tc.name : test hasVideoRecorderProfile
* @tc.desc : sourceId 0 qualityLevel 0
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level1
*/
it('SUB_PROFILE_FUNCTION_PROMISE_1400', 0, async function (done) {
it('SUB_MULTIMEDIA_MEDIA_PROFILE_FUNCTION_PROMISE_1400', 0, async function (done) {
console.info('test hasVideoRecorderProfile');
promiseHasVideoProfile(0, media.VideoRecorderQualityLevel.RECORDER_QUALITY_LOW, done);
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册