os/mm/mmapitest/devvideohaitest/scripts/mm-mmf-devvideo-playback-h264-negative-automated.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
sl@0
    17
LOAD_SUITE t_devvideo
sl@0
    18
sl@0
    19
DELAY 2000
sl@0
    20
sl@0
    21
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0001
sl@0
    22
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0001
sl@0
    23
//!@SYMAPI
sl@0
    24
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
    25
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
    26
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
    27
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
sl@0
    28
//!                CMMFDevVideoPlay:: SetBufferOptionsL(const TBufferOptions {ref});
sl@0
    29
//!@SYMAuthor			katherine xu
sl@0
    30
//!@SYMCreationDate		29/9/2009
sl@0
    31
//!@SYMTestCaseDesc		 NCP H.264 SQCIF Video at  30fps 64Kbps
sl@0
    32
//!                      Wrong Buffer Option
sl@0
    33
//!@SYMTestActions
sl@0
    34
//!                1. Create decode test
sl@0
    35
//!                2. SelectDecoderL 
sl@0
    36
//!                3. SetInputFormatCompr
sl@0
    37
//!                4. SetOutputFormat
sl@0
    38
//!                5. SetBufferOptions(minNumInputBuffers = 0)
sl@0
    39
//!						All values greater than 0 can pass.
sl@0
    40
//!                6. ~
sl@0
    41
//!@SYMTestStatus		Verified
sl@0
    42
//!@SYMTestPriority		Normal
sl@0
    43
//!@SYMTestType			CIT
sl@0
    44
START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h264-negative-automated.ini
sl@0
    45
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
    46
		COMMAND		mmfdvplay		H264CreateDecTest				MULTIMEDIA-MMF-DevVideo-Playback-H264-0001-0001-CreateDecTest_command01
sl@0
    47
		COMMAND		mmfdvplay		H264SetInputFormatCompr			MULTIMEDIA-MMF-DevVideo-Playback-H264-0001-0001-SetInputFormatCompr_command02
sl@0
    48
		COMMAND		mmfdvplay		H264SetOutputFormat				MULTIMEDIA-MMF-DevVideo-Playback-H264-0001-0001-SetOutputFormat_command03
sl@0
    49
		COMMAND	!Error=-5	mmfdvplay		H264SetBufferOptions			MULTIMEDIA-MMF-DevVideo-Playback-H264-0001-0001-SetBufferOptions_command04
sl@0
    50
		COMMAND		mmfdvplay		H264Delete
sl@0
    51
	END_TEST_BLOCK
sl@0
    52
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0001
sl@0
    53
sl@0
    54
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0002
sl@0
    55
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0002
sl@0
    56
//!@SYMAPI
sl@0
    57
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
    58
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
    59
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
    60
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
sl@0
    61
//!@SYMAuthor			katherine xu
sl@0
    62
//!@SYMCreationDate		29/9/2009
sl@0
    63
//!@SYMTestCaseDesc		 NCP H.264 SQCIF Video at  30fps 64Kbps
sl@0
    64
//!                      Set wrong output format.
sl@0
    65
//!@SYMTestActions
sl@0
    66
//!                1. Create decode test
sl@0
    67
//!                2. SelectDecoderL 
sl@0
    68
//!                3. SetInputFormatCompr
sl@0
    69
//!                4. SetOutputFormat(dataFormat=ERgbRawData)
sl@0
    70
//!                5. ~
sl@0
    71
//!@SYMTestStatus		Verified
sl@0
    72
//!@SYMTestPriority		Normal
sl@0
    73
//!@SYMTestType			CIT
sl@0
    74
START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h264-negative-automated.ini
sl@0
    75
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
    76
		COMMAND		mmfdvplay		H264CreateDecTest				MULTIMEDIA-MMF-DevVideo-Playback-H264-0002-0001-CreateDecTest_command01
sl@0
    77
		COMMAND		mmfdvplay		H264SetInputFormatCompr			MULTIMEDIA-MMF-DevVideo-Playback-H264-0002-0001-SetInputFormatCompr_command02
sl@0
    78
		COMMAND		!Error=-5		mmfdvplay		H264SetOutputFormat				MULTIMEDIA-MMF-DevVideo-Playback-H264-0002-0001-SetOutputFormat_command03
sl@0
    79
		COMMAND		mmfdvplay		H264Delete
sl@0
    80
	END_TEST_BLOCK
sl@0
    81
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0002
sl@0
    82
sl@0
    83
START_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0003
sl@0
    84
//!@SYMTestCaseID		MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0003
sl@0
    85
//!@SYMAPI
sl@0
    86
//!                CMMFDevVideoPlay::GetDecoderListL(RArray< TUid > {ref});
sl@0
    87
//!                CMMFDevVideoPlay::SelectDecoderL(TUid);
sl@0
    88
//!                CMMFDevVideoPlay::SetInputFormatL(THwDeviceId,  const TUncompressedVideoFormat {ref});
sl@0
    89
//!                CMMFDevVideoPlay:: SetOutputFormatL(THwDeviceId, const TUncompressedVideoFormat {ref});
sl@0
    90
//!@SYMAuthor			katherine xu
sl@0
    91
//!@SYMCreationDate		29/9/2009
sl@0
    92
//!@SYMTestCaseDesc		 NCP H.264 SQCIF Video at  30fps 64Kbps
sl@0
    93
//!                      Invalid mime type
sl@0
    94
//!@SYMTestActions
sl@0
    95
//!                1. Create decode test
sl@0
    96
//!                2. SelectDecoderL
sl@0
    97
//!				   3. SetInputFormatCompr(format = {MIME, KH264MimeInvalid})
sl@0
    98
//!                3. ~
sl@0
    99
//!@SYMTestStatus		Verified
sl@0
   100
//!@SYMTestPriority		Normal
sl@0
   101
//!@SYMTestType			CIT
sl@0
   102
START_TEST_BLOCK	900	t_devvideo	\multimedia\mmf\devvideo\mm-mmf-devvideo-playback-h264-negative-automated.ini
sl@0
   103
		CREATE_OBJECT	CMMFDevVideoPlay		mmfdvplay
sl@0
   104
		COMMAND		mmfdvplay		H264CreateDecTest				MULTIMEDIA-MMF-DevVideo-Playback-H264-0003-0001-CreateDecTest_command01
sl@0
   105
		COMMAND	!Error=-5		mmfdvplay		H264SetInputFormatCompr			MULTIMEDIA-MMF-DevVideo-Playback-H264-0003-0001-SetInputFormatCompr_command02
sl@0
   106
		COMMAND		mmfdvplay		H264Delete
sl@0
   107
	END_TEST_BLOCK
sl@0
   108
END_TESTCASE MM-MMF-DEVVIDEO-PLAYBACK-H.264-NEGATIVE-AUTOMATED-0003