mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_rr.script
branchRCL_3
changeset 23 545d349d14da
equal deleted inserted replaced
20:67584cc761d1 23:545d349d14da
       
     1 //
       
     2 // Copyright (c) 2005-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 //! @file
       
    18 //! @SYMTestSuiteName multimedia-mmf-devsound-validation-automated-comb_rr
       
    19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    20 //
       
    21 // Tests all public elements of the CMMFDevSound
       
    22 // classes as a means of confidence that the APIs work as expected.
       
    23 // 
       
    24 // The purpose is to provide a regression test suite of PublishedAll
       
    25 // APIs for: CMMFDevSound
       
    26 // The tests are fully automated.
       
    27 //
       
    28 
       
    29 
       
    30 
       
    31 LOAD_SUITE t_devsound
       
    32 
       
    33 
       
    34 
       
    35 
       
    36 
       
    37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001
       
    38 
       
    39 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001
       
    40 //!@SYMAPI
       
    41 //! TEST_BLOCK 001
       
    42 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
    43 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
    44 //!                CMMFDevSound::Capabilities()
       
    45 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
    46 //!                CMMFDevSound::PlayInitL()
       
    47 //!                CMMFDevSound::RecordInitL()
       
    48 //!                CMMFDevSound::Stop()
       
    49 //!                
       
    50 //! TEST_BLOCK 002
       
    51 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
    52 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
    53 //!                CMMFDevSound::Capabilities()
       
    54 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
    55 //!                CMMFDevSound::RecordInitL()
       
    56 //!                CMMFDevSound::Stop()
       
    57 //!                
       
    58 //!@SYMAuthor			etorres
       
    59 //!@SYMCreationDate		7/28/2008 
       
    60 //!@SYMTestCaseDesc		SIZE Mixing rule - Stop and perform
       
    61 //!@SYMTestActions
       
    62 //! TEST_BLOCK 001
       
    63 //!                1. Create Devsound instance 
       
    64 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
       
    65 //!                3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
       
    66 //!                4. Capabilities
       
    67 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
    68 //!                6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
       
    69 //!                7. Record 20 s
       
    70 //!                8. Stop 5s
       
    71 //!                9. CloseFile
       
    72 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
       
    73 //!                11. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState = EMMFStatePlaying)
       
    74 //!                12. Capabilities
       
    75 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
    76 //!                14. OpenFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
       
    77 //!                15. Play EOF
       
    78 //!                16. CloseFile
       
    79 //!                17. Delete devsound instance
       
    80 //! TEST_BLOCK 002
       
    81 //!                1. Create Devsound instance 
       
    82 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
       
    83 //!                3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
       
    84 //!                4. Capabilities
       
    85 //!                5. Set Configuration 10s(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
    86 //!                6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.pcm )
       
    87 //!                7. Record 60 s
       
    88 //!                8. Stop
       
    89 //!                9. CloseFile
       
    90 //!                10. Delete devsound instance
       
    91 //!@SYMTestStatus		Verified
       
    92 //!@SYMTestPriority		High
       
    93 //!@SYMTestExpectedResults
       
    94 //!                SIZE Mixing rule - Stop and perform
       
    95 //! TEST_BLOCK 001
       
    96 //!                AMR record for 20s and playback until EOF
       
    97 //! TEST_BLOCK 002
       
    98 //!                AMR recording with expected error -21
       
    99 //!@SYMTestType			CIT
       
   100 
       
   101 
       
   102 	CONCURRENT
       
   103 
       
   104 
       
   105 
       
   106 	START_TEST_BLOCK	50	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
       
   107 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   108 		COMMAND		devsound1		NewL
       
   109 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command02
       
   110 		OUTSTANDING
       
   111 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command03
       
   112 		COMMAND		devsound1		Capabilities
       
   113 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command05
       
   114 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-ReplaceFile_command06
       
   115 		COMMAND		devsound1		RecordInitL
       
   116 		ASYNC_DELAY  20000000 
       
   117 		COMMAND		devsound1		Stop
       
   118 		DELAY  5000000 
       
   119 		COMMAND		devsound1		CloseFile
       
   120 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command10
       
   121 		OUTSTANDING
       
   122 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command11
       
   123 		COMMAND		devsound1		Capabilities
       
   124 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command13
       
   125 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-OpenFile_command14
       
   126 		COMMAND		   devsound1		PlayInitL
       
   127 		OUTSTANDING
       
   128 		COMMAND		devsound1		CloseFile
       
   129 		COMMAND		devsound1		~
       
   130 	END_TEST_BLOCK
       
   131 
       
   132 
       
   133 
       
   134 	START_TEST_BLOCK	80	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
       
   135 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   136 		COMMAND		devsound1		NewL
       
   137 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-InitializeL_command02
       
   138 		OUTSTANDING
       
   139 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetPrioritySettings_command03
       
   140 		COMMAND		devsound1		Capabilities
       
   141 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetConfigL_command05
       
   142 		DELAY  10000000 
       
   143 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-ReplaceFile_command06
       
   144     COMMAND              !AsyncError=-21    devsound1 RecordInitL      
       
   145 		ASYNC_DELAY  60000000 
       
   146 		COMMAND		devsound1		Stop
       
   147 		DELAY  2000000 
       
   148 		COMMAND		devsound1		CloseFile
       
   149 		COMMAND		devsound1		~
       
   150 	END_TEST_BLOCK
       
   151 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001