mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-validation-automated-comb_rr.script
changeset 26 c36d67f77f75
equal deleted inserted replaced
15:c1e808730d6c 26:c36d67f77f75
       
     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-devsoundext-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_devsoundext
       
    32 
       
    33 
       
    34 
       
    35 
       
    36 
       
    37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_RR-0002
       
    38 
       
    39 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_RR-0002
       
    40 //!@SYMAPI
       
    41 //! TEST_BLOCK 001
       
    42 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
       
    43 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
       
    44 //!                CMMFDevSound::Capabilities()
       
    45 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
       
    46 //!                CMMFAudioInput::SetAudioInputL(TAudioInputArray)
       
    47 //!                CMMFDevSound::RecordInitL()
       
    48 //!                CMMFDevSound::Stop()
       
    49 //!                CMMFDevSound::PlayInitL()
       
    50 //! TEST_BLOCK 002
       
    51 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
       
    52 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
       
    53 //!                CMMFDevSound::Capabilities()
       
    54 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
       
    55 //!                CMMFDevSound::Pause()
       
    56 //!                CMMFAudioInput::SetAudioInputL(TAudioInputArray)
       
    57 //!                CMMFDevSound::RecordInitL()
       
    58 //!                
       
    59 //!@SYMAuthor			myanez
       
    60 //!@SYMCreationDate		8/25/2008 
       
    61 //!@SYMTestCaseDesc		HW limitation - Radio recording during voice recording from mic**
       
    62 //!@SYMTestActions
       
    63 //! TEST_BLOCK 001
       
    64 //!                1. Create DevSound Instance
       
    65 //!                2. Create AudioInput Instance (DevSoundInstanceName = devsound1)
       
    66 //!                3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\HwLimitRadioRecDuringMicRec1.amr)      
       
    67 //!                4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)                
       
    68 //!                5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording)           
       
    69 //!                6. Capabilities                  
       
    70 //!                7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)             
       
    71 //!                8. Set Audio Input (AudioInput = Input_DefaultMic)                          
       
    72 //!                9.Start Record for 20 seconds                              
       
    73 //!                10. Stop for 5 seconds.                              
       
    74 //!                11. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = AMR)                  
       
    75 //!                12. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying)
       
    76 //!                13. Capabilities       
       
    77 //!                14. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)            
       
    78 //!                15. Start File Positions                  
       
    79 //!                16. Start Play                             
       
    80 //!                17. Close File                     
       
    81 //!                18. Destroy AudioInput Instance             
       
    82 //!                19. Destroy DevSound Instance
       
    83 //! TEST_BLOCK 002
       
    84 //!                1. Create DevSound Instance
       
    85 //!                2. Create AudioInput Instance (DevSoundInstanceName = devsound1)
       
    86 //!                3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\HwLimitRadioRecDuringMicRec2.pcm)     
       
    87 //!                4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = P16)            
       
    88 //!                5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording)    
       
    89 //!                6. Capabilities       
       
    90 //!                7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)      
       
    91 //!                8.  Stop for 10 seconds               
       
    92 //!                9. Set Audio Input (AudioInput = Input_FMRadio)                         
       
    93 //!                10. Start Record (expected async error=-21)            
       
    94 //!                11. Close File                
       
    95 //!                12. Destroy AudioInput Instance            
       
    96 //!                13. Destroy DevSound Instance
       
    97 //!@SYMTestStatus		Verified
       
    98 //!@SYMTestPriority		High
       
    99 //!@SYMTestExpectedResults
       
   100 //!                Radio recording during voice recording from mic
       
   101 //! TEST_BLOCK 001
       
   102 //!                Record with Voice Recording Priority and Voice Recording Preference; Play with Audio PLayback Priority  and Audio PLayback Preference
       
   103 //! TEST_BLOCK 002
       
   104 //!                Record File with Voice Recording Priority and Voice Recording Preference, Expecting Error -21
       
   105 //!@SYMTestType			CIT
       
   106 
       
   107 
       
   108 	CONCURRENT
       
   109 
       
   110 
       
   111 
       
   112 	START_TEST_BLOCK	60	t_devsoundext	\multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_rr.ini
       
   113 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   114 		CREATE_OBJECT	CAudioInput		audioinput1
       
   115 		COMMAND		devsound1		NewL
       
   116 		COMMAND		audioinput1		NewL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-NewL_command02
       
   117 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-ReplaceFile_command03
       
   118 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-InitializeL_command04
       
   119 		OUTSTANDING
       
   120 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetPrioritySettings_command05
       
   121 		COMMAND		devsound1		Capabilities
       
   122 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetConfigL_command07
       
   123 		COMMAND		audioinput1		SetAudioInput			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetAudioInput_command08
       
   124 		COMMAND		devsound1		RecordInitL
       
   125 		ASYNC_DELAY  20000000 
       
   126 		COMMAND		devsound1		Stop
       
   127 		DELAY  5000000 
       
   128 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-InitializeL_command11
       
   129 		OUTSTANDING
       
   130 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetPrioritySettings_command12
       
   131 		COMMAND		devsound1		Capabilities
       
   132 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetConfigL_command14
       
   133 		COMMAND		devsound1		FileStartPosition
       
   134 		COMMAND		devsound1		PlayInitL
       
   135 		OUTSTANDING
       
   136 		COMMAND		devsound1		CloseFile
       
   137 		COMMAND		audioinput1		~
       
   138 		COMMAND		devsound1		~
       
   139 	END_TEST_BLOCK
       
   140 
       
   141 
       
   142 
       
   143 	START_TEST_BLOCK	80	t_devsoundext	\multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_rr.ini
       
   144 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   145 		CREATE_OBJECT	CAudioInput		audioinput1
       
   146 		COMMAND		devsound1		NewL
       
   147 		COMMAND		audioinput1		NewL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-NewL_command02
       
   148 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-ReplaceFile_command03
       
   149 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-InitializeL_command04
       
   150 		OUTSTANDING
       
   151 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-SetPrioritySettings_command05
       
   152 		COMMAND		devsound1		Capabilities
       
   153 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-SetConfigL_command07
       
   154 		COMMAND		devsound1		Stop
       
   155 		DELAY  10000000 
       
   156 		COMMAND		audioinput1		SetAudioInput			MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-SetAudioInput_command09
       
   157 		COMMAND   !AsyncError=-21   devsound1		RecordInitL
       
   158 		ASYNC_DELAY  60000000 
       
   159 		COMMAND		devsound1		CloseFile
       
   160 		COMMAND		audioinput1		~
       
   161 		COMMAND		devsound1		~
       
   162 	END_TEST_BLOCK
       
   163 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_RR-0002