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