mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_rt.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_rt
       
    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_RT-0001
       
    38 
       
    39 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-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}, TFourCC, TMMFState)
       
    52 //!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
       
    53 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
    54 //!@SYMAuthor			jguillermo
       
    55 //!@SYMCreationDate		8/25/2008 
       
    56 //!@SYMTestCaseDesc		Calendar alarm during voice recording
       
    57 //!@SYMTestActions
       
    58 //! TEST_BLOCK 001
       
    59 //!                1. Create DevSound instance
       
    60 //!                2. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)
       
    61 //!                3. Set Priority ( Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState=EMMFStateRecording)
       
    62 //!                4. Capabilities
       
    63 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
    64 //!                6. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\CalendarAlarmDuringRecAMRNB.amr)
       
    65 //!                7. Record 20 seconds
       
    66 //!                8. Stop 5 seconds
       
    67 //!                9. Close file
       
    68 //!                10. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = AMR)
       
    69 //!                11. Set Priority ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState=EMMFStatePlaying)
       
    70 //!                12. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
    71 //!                13. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\CalendarAlarmDuringRecAMRNB.amr)
       
    72 //!                14. Play EOF
       
    73 //!                15. Close file
       
    74 //!                16. Delete DevSound instance
       
    75 //! TEST_BLOCK 002
       
    76 //!                1. Create DevSound instance
       
    77 //!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC=ILBC)
       
    78 //!                3. Set priority settings delay 10s ( Priority = {Priority,PriorityCalendarAlarm}; Preference = {PriorityPreference,PriorityPreferenceCalendarAlarm}; PriorityState=EMMFStateTonePlaying)
       
    79 //!                4. Play tone sequence (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Nokia_ringing_tone.nrt)
       
    80 //!                5. Delete DevSound instance.
       
    81 //!                
       
    82 //!@SYMTestStatus		Verified
       
    83 //!@SYMTestPriority		High
       
    84 //!@SYMTestExpectedResults
       
    85 //!                Calendar alarm during voice recording
       
    86 //! TEST_BLOCK 001
       
    87 //!                Record AMR file during 20s and play recorded file
       
    88 //! TEST_BLOCK 002
       
    89 //!                Play tone sequence
       
    90 //!@SYMTestType			CIT
       
    91 
       
    92 
       
    93 	CONCURRENT
       
    94 
       
    95 
       
    96 
       
    97 	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
    98 		CREATE_OBJECT	CMMFDevSound		devsound1
       
    99 		COMMAND		devsound1		NewL
       
   100 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-InitializeL_command02
       
   101 		OUTSTANDING
       
   102 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-SetPrioritySettings_command03
       
   103 		COMMAND		devsound1		Capabilities
       
   104 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-SetConfigL_command05
       
   105 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-ReplaceFile_command06
       
   106 		COMMAND		devsound1		RecordInitL
       
   107 		ASYNC_DELAY  20000000 
       
   108 		COMMAND		devsound1		Stop
       
   109 		DELAY  5000000 
       
   110 		COMMAND		devsound1		CloseFile
       
   111 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-InitializeL_command10
       
   112 		OUTSTANDING
       
   113 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-SetPrioritySettings_command11
       
   114 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-SetConfigL_command12
       
   115 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0001-OpenFile_command13
       
   116 		COMMAND		    devsound1		PlayInitL
       
   117 		OUTSTANDING
       
   118 		COMMAND		devsound1		CloseFile
       
   119 		COMMAND		devsound1		~
       
   120 	END_TEST_BLOCK
       
   121 
       
   122 
       
   123 
       
   124 	START_TEST_BLOCK	100	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
   125 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   126 		COMMAND		devsound1		NewL
       
   127 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0002-InitializeL_command02
       
   128 		OUTSTANDING
       
   129 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0002-SetPrioritySettings_command03
       
   130 		DELAY  10000000 
       
   131 		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0001-0002-PlayToneSequenceL_command04
       
   132 		OUTSTANDING
       
   133 		COMMAND		devsound1		~
       
   134 	END_TEST_BLOCK
       
   135 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0001
       
   136 
       
   137 
       
   138 
       
   139 
       
   140 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0002
       
   141 
       
   142 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0002
       
   143 //!@SYMAPI
       
   144 //! TEST_BLOCK 001
       
   145 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
   146 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
   147 //!                CMMFDevSound::Capabilities()
       
   148 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
   149 //!                CMMFDevSound::PlayInitL()
       
   150 //!                CMMFDevSound::RecordInitL()
       
   151 //!                CMMFDevSound::Stop()
       
   152 //!                
       
   153 //! TEST_BLOCK 002
       
   154 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
       
   155 //!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
       
   156 //!                CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
       
   157 //!                CMMFDevSound::PlayInitL()
       
   158 //!@SYMAuthor			jpacho
       
   159 //!@SYMCreationDate		7/28/2008 
       
   160 //!@SYMTestCaseDesc		DTMF tones during voice recording
       
   161 //!@SYMTestActions
       
   162 //! TEST_BLOCK 001
       
   163 //!                1. Create Devsound instance 
       
   164 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
       
   165 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
   166 //!                4. Capabilities
       
   167 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   168 //!                6. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\PlayDTMFDuringRecPCM.pcm)
       
   169 //!                7. Record 30s 
       
   170 //!                8. Stop 5s
       
   171 //!                9.Close file 
       
   172 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
       
   173 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
   174 //!                12. Capabilities
       
   175 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   176 //!                14.Open file (Filename =  {drive,mmc}\multimedia\mmf\devsound\Recording\PlayDTMFDuringRecPCM.pcm)
       
   177 //!                15. Start Play 20 seconds
       
   178 //!                16.Close file 
       
   179 //!                17. Delete devsound instance
       
   180 //! TEST_BLOCK 002
       
   181 //!                1. Create DevSound instance
       
   182 //!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
       
   183 //!                3. Set priority settings ( Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState=EMMFStateTonePlaying)
       
   184 //!                4. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
       
   185 //!                5. Start DTMF Play (DTMFString = 1234567890)
       
   186 //!                6. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
       
   187 //!                7. Start DTMF Play (DTMFString = 1234567890)
       
   188 //!                8. Destroy DevSound instance
       
   189 //!                
       
   190 //!@SYMTestStatus		Delivered
       
   191 //!@SYMTestPriority		High
       
   192 //!@SYMTestExpectedResults
       
   193 //!                DTMF tones during voice recording
       
   194 //! TEST_BLOCK 001
       
   195 //!                RAW recording for 30s and play for 20s
       
   196 //! TEST_BLOCK 002
       
   197 //!                DTMF play
       
   198 //!@SYMTestType			CIT
       
   199 
       
   200 
       
   201 	CONCURRENT
       
   202 
       
   203 
       
   204 
       
   205 	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
   206 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   207 		COMMAND		devsound1		NewL
       
   208 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-InitializeL_command02
       
   209 		OUTSTANDING
       
   210 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-SetPrioritySettings_command03
       
   211 		COMMAND		devsound1		Capabilities
       
   212 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-SetConfigL_command05
       
   213 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-ReplaceFile_command06
       
   214 		COMMAND		devsound1		RecordInitL
       
   215 		ASYNC_DELAY  30000000 
       
   216 		COMMAND		devsound1		Stop
       
   217 		DELAY  5000000 
       
   218 		COMMAND		devsound1		CloseFile
       
   219 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-InitializeL_command10
       
   220 		OUTSTANDING
       
   221 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-SetPrioritySettings_command11
       
   222 		COMMAND		devsound1		Capabilities
       
   223 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-SetConfigL_command13
       
   224 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0001-OpenFile_command14
       
   225 		COMMAND		devsound1		PlayInitL
       
   226 		ASYNC_DELAY  20000000 
       
   227 		COMMAND		devsound1		CloseFile
       
   228 		COMMAND		devsound1		~
       
   229 	END_TEST_BLOCK
       
   230 
       
   231 
       
   232 
       
   233 	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
   234 		CREATE_OBJECT	CMMFDevSound		devsound2
       
   235 		COMMAND		devsound2		NewL
       
   236 		COMMAND		devsound2		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0002-InitializeL_command02
       
   237 		OUTSTANDING
       
   238 		COMMAND		devsound2		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0002-SetPrioritySettings_command03
       
   239 		COMMAND		devsound2		SetDTMFLengths			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0002-SetDTMFLengths_command04
       
   240 		COMMAND		devsound2		PlayDTMFStringL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0002-PlayDTMFStringL_command05
       
   241 		ASYNC_DELAY  3000000 
       
   242 		COMMAND		devsound2		SetDTMFLengths			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0002-SetDTMFLengths_command06
       
   243 		COMMAND		devsound2		PlayDTMFStringL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0002-0002-PlayDTMFStringL_command07
       
   244 		ASYNC_DELAY  3000000 
       
   245 		COMMAND		devsound2		~
       
   246 	END_TEST_BLOCK
       
   247 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0002
       
   248 
       
   249 
       
   250 
       
   251 
       
   252 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0003
       
   253 
       
   254 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0003
       
   255 //!@SYMAPI
       
   256 //! TEST_BLOCK 001
       
   257 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
   258 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
   259 //!                CMMFDevSound::Capabilities()
       
   260 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
   261 //!                CMMFDevSound::PlayInitL()
       
   262 //!                CMMFDevSound::RecordInitL()
       
   263 //!                CMMFDevSound::Stop()
       
   264 //!                
       
   265 //! TEST_BLOCK 002
       
   266 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   267 //!                CMMFDevSound::SetPrioritySettings(const 
       
   268 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
   269 //!                CMMFDevSound::Stop()
       
   270 //!                CMMFDevSound::Pause()
       
   271 //!                
       
   272 //!@SYMAuthor			myanez
       
   273 //!@SYMCreationDate		8/25/2008 
       
   274 //!@SYMTestCaseDesc		Incoming SMS during voice recording
       
   275 //!@SYMTestActions
       
   276 //! TEST_BLOCK 001
       
   277 //!                1. Create DevSound Instance
       
   278 //!                2. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\IncomingSMSDuringRecAMRNB.amr)
       
   279 //!                3. Initialize Devsound ( Mode = EMMFStateRecording; FourCC= AMR)
       
   280 //!                4. Set Priority Settings ( Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState=EMMFStateRecording)
       
   281 //!                5. Capabilities 
       
   282 //!                6. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   283 //!                7.Start Record for 20 seconds
       
   284 //!                8. Stop for 5 seconds
       
   285 //!                9. Close File
       
   286 //!                10. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\IncomingSMSDuringRecAMRNB.amr)
       
   287 //!                11. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
       
   288 //!                12. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState=EMMFStatePlaying)
       
   289 //!                13. Capabilities 
       
   290 //!                14. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   291 //!                15. Start Play
       
   292 //!                16.Close File
       
   293 //!                17. Destroy DevSound Instance
       
   294 //! TEST_BLOCK 002
       
   295 //!                1. Create DevSound instance
       
   296 //!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
       
   297 //!                3. Set priority settings ( Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
       
   298 //!                4. Pause for 10 seconds(Pause=TRUE)
       
   299 //!                5. Play tone sequence 10 seconds(Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Nokia_ringing_tone.nrt)
       
   300 //!                6. Stop
       
   301 //!                7. Destroy DevSound instance
       
   302 //!@SYMTestStatus		Verified
       
   303 //!@SYMTestPriority		High
       
   304 //!@SYMTestExpectedResults
       
   305 //!                Incoming SMS during voice recording
       
   306 //! TEST_BLOCK 001
       
   307 //!                AMR recording with expected error -13
       
   308 //! TEST_BLOCK 002
       
   309 //!                Play tone sequence
       
   310 //!@SYMTestType			CIT
       
   311 
       
   312 
       
   313 	CONCURRENT
       
   314 
       
   315 
       
   316 
       
   317 	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
   318 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   319 		COMMAND		devsound1		NewL
       
   320 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-ReplaceFile_command02
       
   321 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-InitializeL_command03
       
   322 		OUTSTANDING
       
   323 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-SetPrioritySettings_command04
       
   324 		COMMAND		devsound1		Capabilities
       
   325 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-SetConfigL_command06
       
   326 		COMMAND		!AsyncError=-13    devsound1		RecordInitL
       
   327 		ASYNC_DELAY  20000000 
       
   328 		COMMAND		devsound1		Stop
       
   329 		DELAY  5000000 
       
   330 		COMMAND		devsound1		CloseFile
       
   331 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-OpenFile_command11
       
   332 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-InitializeL_command12
       
   333 		OUTSTANDING
       
   334 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-SetPrioritySettings_command13
       
   335 		COMMAND		devsound1		Capabilities
       
   336 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0001-SetConfigL_command15
       
   337 		COMMAND		  devsound1		PlayInitL
       
   338 		OUTSTANDING
       
   339 		COMMAND		devsound1		CloseFile
       
   340 		COMMAND		devsound1		~
       
   341 	END_TEST_BLOCK
       
   342 
       
   343 
       
   344 
       
   345 	START_TEST_BLOCK	60	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
   346 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   347 		COMMAND		devsound1		NewL
       
   348 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0002-InitializeL_command02
       
   349 		OUTSTANDING
       
   350 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0002-SetPrioritySettings_command03
       
   351 		COMMAND		devsound1		Stop			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0002-Stop_command04
       
   352 		DELAY  10000000 
       
   353 		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0003-0002-PlayToneSequenceL_command05
       
   354 		ASYNC_DELAY  10000000 
       
   355 		COMMAND		devsound1		Stop
       
   356 		COMMAND		devsound1		~
       
   357 	END_TEST_BLOCK
       
   358 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0003
       
   359 
       
   360 
       
   361 
       
   362 
       
   363 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0004
       
   364 
       
   365 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0004
       
   366 //!@SYMAPI
       
   367 //! TEST_BLOCK 001
       
   368 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   369 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
       
   370 //!                CMMFDevSound::Capabilities()
       
   371 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
       
   372 //!                CMMFDevSound::PlayInitL()
       
   373 //!                CMMFDevSound::RecordInitL()
       
   374 //! TEST_BLOCK 002
       
   375 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   376 //!                CMMFDevSound::SetPrioritySettings(const 
       
   377 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
   378 //!                
       
   379 //!@SYMAuthor			etorres
       
   380 //!@SYMCreationDate		7/28/2008 
       
   381 //!@SYMTestCaseDesc		Mixing rule - Stop and play beep and perform
       
   382 //!@SYMTestActions
       
   383 //! TEST_BLOCK 001
       
   384 //!                1. Create Devsound instance 
       
   385 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
       
   386 //!                3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
       
   387 //!                4. Capabilities
       
   388 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   389 //!                6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\MixingRuleSBR.amr)
       
   390 //!                7. Record 20 s
       
   391 //!                8. Stop 5s
       
   392 //!                9. CloseFile
       
   393 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
       
   394 //!                11. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState = EMMFStatePlaying)
       
   395 //!                12. Capabilities
       
   396 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   397 //!                14. OpenFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\MixingRuleSBR.amr)
       
   398 //!                15. Play EOF
       
   399 //!                16. CloseFile
       
   400 //!                17. Delete devsound instance
       
   401 //! TEST_BLOCK 002
       
   402 //!                1. Create DevSound instance
       
   403 //!                2. Initialize devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
       
   404 //!                3. Set priority settings 1s ( Priority={Priority,PriorityCalendarAlarm}; Preference={PriorityPreference,PriorityPreferenceCalendarAlarm}; PriorityState=EMMFStateTonePlaying)
       
   405 //!                4. Play tone sequence EOF (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Nokia_ringing_tone.nrt)
       
   406 //!                5. Delete DevSound instance.
       
   407 //!@SYMTestStatus		Verified
       
   408 //!@SYMTestPriority		High
       
   409 //!@SYMTestExpectedResults
       
   410 //!                Mixing rule - Stop and play beep and perform
       
   411 //! TEST_BLOCK 001
       
   412 //!                AMR recording for 20s and playback until EOF
       
   413 //! TEST_BLOCK 002
       
   414 //!                Play tone sequence
       
   415 //!@SYMTestType			CIT
       
   416 
       
   417 
       
   418 	CONCURRENT
       
   419 
       
   420 
       
   421 
       
   422 	START_TEST_BLOCK	50	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
   423 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   424 		COMMAND		devsound1		NewL
       
   425 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-InitializeL_command02
       
   426 		OUTSTANDING
       
   427 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-SetPrioritySettings_command03
       
   428 		COMMAND		devsound1		Capabilities
       
   429 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-SetConfigL_command05
       
   430 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-ReplaceFile_command06
       
   431 		COMMAND		devsound1		RecordInitL
       
   432 		ASYNC_DELAY  20000000 
       
   433 		COMMAND		devsound1		Stop
       
   434 		DELAY  5000000 
       
   435 		COMMAND		devsound1		CloseFile
       
   436 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-InitializeL_command10
       
   437 		OUTSTANDING
       
   438 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-SetPrioritySettings_command11
       
   439 		COMMAND		devsound1		Capabilities
       
   440 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-SetConfigL_command13
       
   441 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0001-OpenFile_command14
       
   442 		COMMAND		devsound1		PlayInitL
       
   443 		OUTSTANDING
       
   444 		COMMAND		devsound1		CloseFile
       
   445 		COMMAND		devsound1		~
       
   446 	END_TEST_BLOCK
       
   447 
       
   448 
       
   449 
       
   450 	START_TEST_BLOCK	20	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rt.ini
       
   451 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   452 		COMMAND		devsound1		NewL
       
   453 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0002-InitializeL_command02
       
   454 		OUTSTANDING
       
   455 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0002-SetPrioritySettings_command03
       
   456 		DELAY  1000000 
       
   457 		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Rt-0004-0002-PlayToneSequenceL_command04
       
   458 		OUTSTANDING
       
   459 		COMMAND		devsound1		~
       
   460 	END_TEST_BLOCK
       
   461 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RT-0004