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