mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-stress-automated-recording.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-stress-automated-recording
       
    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-STRESS-AUTOMATED-RECORDING-0001
       
    38 
       
    39 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0001
       
    40 //!@SYMAPI
       
    41 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
    42 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
    43 //!                CMMFDevSound::Capabilities()
       
    44 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
    45 //!                CMMFDevSound::PlayInitL()
       
    46 //!                CMMFDevSound::RecordInitL()
       
    47 //!                CMMFDevSound::Stop()
       
    48 //!                
       
    49 //!@SYMAuthor			etorres
       
    50 //!@SYMCreationDate		7/21/2008 
       
    51 //!@SYMTestCaseDesc		AMR-NB recording 30 minutes
       
    52 //!@SYMTestActions
       
    53 //!                1. Create Devsound instance 
       
    54 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
       
    55 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
    56 //!                4. Capabilities
       
    57 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
    58 //!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecAMRNB30Min.amr )
       
    59 //!                7. Record 1800m 
       
    60 //!                8. Stop 5s
       
    61 //!                9.CloseFile
       
    62 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
       
    63 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
    64 //!                12. Capabilities
       
    65 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
    66 //!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecAMRNB30Min.amr)
       
    67 //!                15. Start Play 60 seconds
       
    68 //!                16. Stop
       
    69 //!                17. CloseFile
       
    70 //!                18. Delete devsound instance
       
    71 //!@SYMTestStatus		Verified
       
    72 //!@SYMTestPriority		High
       
    73 //!@SYMTestExpectedResults
       
    74 //!                AMR-NB recording 30 minutes
       
    75 //!@SYMTestType			CIT
       
    76 
       
    77 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-recording.ini
       
    78 		CREATE_OBJECT	CMMFDevSound		devsound1
       
    79 		COMMAND		devsound1		NewL
       
    80 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-InitializeL_command02
       
    81 		OUTSTANDING
       
    82 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-SetPrioritySettings_command03
       
    83 		COMMAND		devsound1		Capabilities
       
    84 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-SetConfigL_command05
       
    85 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-ReplaceFile_command06
       
    86 		COMMAND		devsound1		RecordInitL
       
    87 		ASYNC_DELAY  1800000000 
       
    88 		COMMAND		devsound1		Stop
       
    89 		DELAY  5000000 
       
    90 		COMMAND		devsound1		CloseFile
       
    91 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-InitializeL_command10
       
    92 		OUTSTANDING
       
    93 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-SetPrioritySettings_command11
       
    94 		COMMAND		devsound1		Capabilities
       
    95 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-SetConfigL_command13
       
    96 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0001-0001-OpenFile_command14
       
    97 		COMMAND		devsound1		PlayInitL
       
    98 		ASYNC_DELAY  60000000 
       
    99 		COMMAND		devsound1		Stop
       
   100 		DELAY  2000000 
       
   101 		COMMAND		devsound1		CloseFile
       
   102 		COMMAND		devsound1		~
       
   103 	END_TEST_BLOCK
       
   104 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0001
       
   105 
       
   106 
       
   107 
       
   108 
       
   109 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0002
       
   110 
       
   111 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0002
       
   112 //!@SYMAPI
       
   113 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
   114 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
   115 //!                CMMFDevSound::Capabilities()
       
   116 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
   117 //!                CMMFDevSound::PlayInitL()
       
   118 //!                CMMFDevSound::RecordInitL()
       
   119 //!                CMMFDevSound::Stop()
       
   120 //!                
       
   121 //!@SYMAuthor			etorres
       
   122 //!@SYMCreationDate		7/21/2008 
       
   123 //!@SYMTestCaseDesc		AMR-WB recording 30 minutes
       
   124 //!@SYMTestActions
       
   125 //!                1. Create Devsound instance 
       
   126 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AWB)
       
   127 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
   128 //!                4. Capabilities
       
   129 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   130 //!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecAMRWB30Min.awb )
       
   131 //!                7. Record 1800m
       
   132 //!                8. Stop 5s
       
   133 //!                9. CloseFile
       
   134 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AWB)
       
   135 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
   136 //!                12. Capabilities
       
   137 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   138 //!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecAMRWB30Min.awb)
       
   139 //!                15. Start Play 60 seconds 
       
   140 //!                16. Stop
       
   141 //!                17. CloseFile
       
   142 //!                18. Delete devsound instance
       
   143 //!@SYMTestStatus		Verified
       
   144 //!@SYMTestPriority		High
       
   145 //!@SYMTestExpectedResults
       
   146 //!                AMR-WB recording 30 minutes
       
   147 //!@SYMTestType			CIT
       
   148 
       
   149 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-recording.ini
       
   150 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   151 		COMMAND		devsound1		NewL
       
   152 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-InitializeL_command02
       
   153 		OUTSTANDING
       
   154 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-SetPrioritySettings_command03
       
   155 		COMMAND		devsound1		Capabilities
       
   156 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-SetConfigL_command05
       
   157 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-ReplaceFile_command06
       
   158 		COMMAND		devsound1		RecordInitL
       
   159 		ASYNC_DELAY  1800000000 
       
   160 		COMMAND		devsound1		Stop
       
   161 		DELAY  5000000 
       
   162 		COMMAND		devsound1		CloseFile
       
   163 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-InitializeL_command10
       
   164 		OUTSTANDING
       
   165 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-SetPrioritySettings_command11
       
   166 		COMMAND		devsound1		Capabilities
       
   167 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-SetConfigL_command13
       
   168 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0002-0001-OpenFile_command14
       
   169 		COMMAND		devsound1		PlayInitL
       
   170 		ASYNC_DELAY  60000000 
       
   171 		COMMAND		devsound1		Stop
       
   172 		DELAY  2000000 
       
   173 		COMMAND		devsound1		CloseFile
       
   174 		COMMAND		devsound1		~
       
   175 	END_TEST_BLOCK
       
   176 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0002
       
   177 
       
   178 
       
   179 
       
   180 
       
   181 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0003
       
   182 
       
   183 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0003
       
   184 //!@SYMAPI
       
   185 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
   186 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
   187 //!                CMMFDevSound::Capabilities()
       
   188 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
   189 //!                CMMFDevSound::PlayInitL()
       
   190 //!                CMMFDevSound::RecordInitL()
       
   191 //!                CMMFDevSound::Stop()
       
   192 //!                
       
   193 //!@SYMAuthor			etorres
       
   194 //!@SYMCreationDate		7/21/2008 
       
   195 //!@SYMTestCaseDesc		G.711 recording 30 minutes
       
   196 //!@SYMTestActions
       
   197 //!                1. Create Devsound instance 
       
   198 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = G711)
       
   199 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
   200 //!                4. Capabilities
       
   201 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   202 //!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecG711a30Min.pcm )
       
   203 //!                7. Record 1800m
       
   204 //!                8. Stop 5s
       
   205 //!                9. CloseFile 
       
   206 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = G711)
       
   207 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
   208 //!                12. Capabilities
       
   209 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   210 //!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecG711a30Min.pcm)
       
   211 //!                15. Start Play 60 seconds 
       
   212 //!                16. Stop
       
   213 //!                17. CloseFile
       
   214 //!                18. Delete devsound instance
       
   215 //!@SYMTestStatus		Verified
       
   216 //!@SYMTestPriority		High
       
   217 //!@SYMTestExpectedResults
       
   218 //!                G.711 recording 30 minutes
       
   219 //!@SYMTestType			CIT
       
   220 
       
   221 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-recording.ini
       
   222 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   223 		COMMAND		devsound1		NewL
       
   224 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-InitializeL_command02
       
   225 		OUTSTANDING
       
   226 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-SetPrioritySettings_command03
       
   227 		COMMAND		devsound1		Capabilities
       
   228 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-SetConfigL_command05
       
   229 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-ReplaceFile_command06
       
   230 		COMMAND		devsound1		RecordInitL
       
   231 		ASYNC_DELAY  1800000000 
       
   232 		COMMAND		devsound1		Stop
       
   233 		DELAY  5000000 
       
   234 		COMMAND		devsound1		CloseFile
       
   235 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-InitializeL_command10
       
   236 		OUTSTANDING
       
   237 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-SetPrioritySettings_command11
       
   238 		COMMAND		devsound1		Capabilities
       
   239 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-SetConfigL_command13
       
   240 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0003-0001-OpenFile_command14
       
   241 		COMMAND		devsound1		PlayInitL
       
   242 		ASYNC_DELAY  60000000 
       
   243 		COMMAND		devsound1		Stop
       
   244 		DELAY  2000000 
       
   245 		COMMAND		devsound1		CloseFile
       
   246 		COMMAND		devsound1		~
       
   247 	END_TEST_BLOCK
       
   248 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0003
       
   249 
       
   250 
       
   251 
       
   252 
       
   253 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0004
       
   254 
       
   255 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0004
       
   256 //!@SYMAPI
       
   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 //!@SYMAuthor			etorres
       
   266 //!@SYMCreationDate		7/21/2008 
       
   267 //!@SYMTestCaseDesc		G.729AB recording 30 minutes
       
   268 //!@SYMTestActions
       
   269 //!                1. Create Devsound instance 
       
   270 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = G729)
       
   271 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
   272 //!                4. Capabilities
       
   273 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   274 //!                6. ReplaceFile(Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecG729AB30min.bin )
       
   275 //!                7. Record 1800m 
       
   276 //!                8. Stop 5s
       
   277 //!                9. CloseFile
       
   278 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = G729)
       
   279 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
   280 //!                12. Capabilities
       
   281 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   282 //!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\RecG729AB30min.bin)
       
   283 //!                15. Start Play 60 seconds 
       
   284 //!                16. Stop
       
   285 //!                17. CloseFile
       
   286 //!                18. Delete devsound instance
       
   287 //!@SYMTestStatus		Verified
       
   288 //!@SYMTestPriority		High
       
   289 //!@SYMTestExpectedResults
       
   290 //!                G.729AB recording 30 minutes
       
   291 //!@SYMTestType			CIT
       
   292 
       
   293 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-recording.ini
       
   294 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   295 		COMMAND		devsound1		NewL
       
   296 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-InitializeL_command02
       
   297 		OUTSTANDING
       
   298 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-SetPrioritySettings_command03
       
   299 		COMMAND		devsound1		Capabilities
       
   300 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-SetConfigL_command05
       
   301 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-ReplaceFile_command06
       
   302 		COMMAND		devsound1		RecordInitL
       
   303 		ASYNC_DELAY  1800000000 
       
   304 		COMMAND		devsound1		Stop
       
   305 		DELAY  5000000 
       
   306 		COMMAND		devsound1		CloseFile
       
   307 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-InitializeL_command10
       
   308 		OUTSTANDING
       
   309 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-SetPrioritySettings_command11
       
   310 		COMMAND		devsound1		Capabilities
       
   311 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-SetConfigL_command13
       
   312 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0004-0001-OpenFile_command14
       
   313 		COMMAND		devsound1		PlayInitL
       
   314 		ASYNC_DELAY  60000000 
       
   315 		COMMAND		devsound1		Stop
       
   316 		DELAY  2000000 
       
   317 		COMMAND		devsound1		CloseFile
       
   318 		COMMAND		devsound1		~
       
   319 	END_TEST_BLOCK
       
   320 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0004
       
   321 
       
   322 
       
   323 
       
   324 
       
   325 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0005
       
   326 
       
   327 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0005
       
   328 //!@SYMAPI
       
   329 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
   330 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
   331 //!                CMMFDevSound::Capabilities()
       
   332 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
   333 //!                CMMFDevSound::PlayInitL()
       
   334 //!                CMMFDevSound::RecordInitL()
       
   335 //!                CMMFDevSound::Stop()
       
   336 //!                
       
   337 //!@SYMAuthor			etorres
       
   338 //!@SYMCreationDate		7/21/2008 
       
   339 //!@SYMTestCaseDesc		iLBC recording 30 minutes
       
   340 //!@SYMTestActions
       
   341 //!                1. Create Devsound instance 
       
   342 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = ILBC)
       
   343 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
   344 //!                4. Capabilities
       
   345 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   346 //!                6. ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\Rec15kbpsiLBC30min.bin )
       
   347 //!                7. Record 1800m 
       
   348 //!                8. Stop 5s
       
   349 //!                9. CloseFile
       
   350 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = ILBC)
       
   351 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
   352 //!                12. Capabilities
       
   353 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   354 //!                14. OpenFile(Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\Rec15kbpsiLBC30min.bin)
       
   355 //!                15. Start Play 60 seconds 
       
   356 //!                16. Stop
       
   357 //!                17. CloseFile
       
   358 //!                18. Delete devsound instance
       
   359 //!@SYMTestStatus		Verified
       
   360 //!@SYMTestPriority		High
       
   361 //!@SYMTestExpectedResults
       
   362 //!                iLBC recording 30 minutes
       
   363 //!@SYMTestType			CIT
       
   364 
       
   365 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-recording.ini
       
   366 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   367 		COMMAND		devsound1		NewL
       
   368 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-InitializeL_command02
       
   369 		OUTSTANDING
       
   370 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-SetPrioritySettings_command03
       
   371 		COMMAND		devsound1		Capabilities
       
   372 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-SetConfigL_command05
       
   373 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-ReplaceFile_command06
       
   374 		COMMAND		devsound1		RecordInitL
       
   375 		ASYNC_DELAY  1800000000 
       
   376 		COMMAND		devsound1		Stop
       
   377 		DELAY  5000000 
       
   378 		COMMAND		devsound1		CloseFile
       
   379 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-InitializeL_command10
       
   380 		OUTSTANDING
       
   381 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-SetPrioritySettings_command11
       
   382 		COMMAND		devsound1		Capabilities
       
   383 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-SetConfigL_command13
       
   384 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0005-0001-OpenFile_command14
       
   385 		COMMAND		devsound1		PlayInitL
       
   386 		ASYNC_DELAY  60000000 
       
   387 		COMMAND		devsound1		Stop
       
   388 		DELAY  2000000 
       
   389 		COMMAND		devsound1		CloseFile
       
   390 		COMMAND		devsound1		~
       
   391 	END_TEST_BLOCK
       
   392 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0005
       
   393 
       
   394 
       
   395 
       
   396 
       
   397 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0006
       
   398 
       
   399 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0006
       
   400 //!@SYMAPI
       
   401 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
   402 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
   403 //!                CMMFDevSound::Capabilities()
       
   404 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
   405 //!                CMMFDevSound::PlayInitL()
       
   406 //!                CMMFDevSound::RecordInitL()
       
   407 //!                CMMFDevSound::Stop()
       
   408 //!                
       
   409 //!@SYMAuthor			etorres
       
   410 //!@SYMCreationDate		7/21/2008 
       
   411 //!@SYMTestCaseDesc		PCM recording 30 minutes
       
   412 //!@SYMTestActions
       
   413 //!                1. Create Devsound instance 
       
   414 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
       
   415 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
   416 //!                4. Capabilities
       
   417 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   418 //!                6.ReplaceFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\Rec8kPCM30Min.pcm )
       
   419 //!                7. Record 1800m 
       
   420 //!                8. Stop 5s
       
   421 //!                9. CloseFile
       
   422 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
       
   423 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
   424 //!                12. Capabilities
       
   425 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   426 //!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\Rec8kPCM30Min.pcm)
       
   427 //!                15. Start Play 60 seconds 
       
   428 //!                16. Stop
       
   429 //!                17. CloseFile
       
   430 //!                18. Delete devsound instance
       
   431 //!@SYMTestStatus		Verified
       
   432 //!@SYMTestPriority		High
       
   433 //!@SYMTestExpectedResults
       
   434 //!                PCM recording 30 minutes
       
   435 //!@SYMTestType			CIT
       
   436 
       
   437 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-recording.ini
       
   438 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   439 		COMMAND		devsound1		NewL
       
   440 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-InitializeL_command02
       
   441 		OUTSTANDING
       
   442 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-SetPrioritySettings_command03
       
   443 		COMMAND		devsound1		Capabilities
       
   444 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-SetConfigL_command05
       
   445 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-ReplaceFile_command06
       
   446 		COMMAND		devsound1		RecordInitL
       
   447 		ASYNC_DELAY  1800000000 
       
   448 		COMMAND		devsound1		Stop
       
   449 		DELAY  5000000 
       
   450 		COMMAND		devsound1		CloseFile
       
   451 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-InitializeL_command10
       
   452 		OUTSTANDING
       
   453 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-SetPrioritySettings_command11
       
   454 		COMMAND		devsound1		Capabilities
       
   455 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-SetConfigL_command13
       
   456 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0006-0001-OpenFile_command14
       
   457 		COMMAND		devsound1		PlayInitL
       
   458 		ASYNC_DELAY  60000000 
       
   459 		COMMAND		devsound1		Stop
       
   460 		DELAY  2000000 
       
   461 		COMMAND		devsound1		CloseFile
       
   462 		COMMAND		devsound1		~
       
   463 	END_TEST_BLOCK
       
   464 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0006
       
   465 
       
   466 
       
   467 
       
   468 
       
   469 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0007
       
   470 
       
   471 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0007
       
   472 //!@SYMAPI
       
   473 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
       
   474 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
       
   475 //!                CMMFDevSound::Capabilities()
       
   476 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
       
   477 //!                CMMFDevSound::PlayInitL()
       
   478 //!                CMMFDevSound::RecordInitL()
       
   479 //!                CMMFDevSound::Stop()
       
   480 //!                
       
   481 //!@SYMAuthor			etorres
       
   482 //!@SYMCreationDate		7/21/2008 
       
   483 //!@SYMTestCaseDesc		PCM recording 30 minutes
       
   484 //!@SYMTestActions
       
   485 //!                1. Create Devsound instance 
       
   486 //!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = {SpecialFourCC,RAW})
       
   487 //!                3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStateRecording)
       
   488 //!                4. Capabilities
       
   489 //!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   490 //!                6.ReplaceFile(Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\Rec8kPCM30MinB.pcm )
       
   491 //!                7. Record 1800m 
       
   492 //!                8. Stop 5s
       
   493 //!                9.CloseFile
       
   494 //!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = {SpecialFourCC,RAW})
       
   495 //!                11. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState = EMMFStatePlaying)
       
   496 //!                12. Capabilities
       
   497 //!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
       
   498 //!                14. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\robustness\Rec8kPCM30MinB.pcm)
       
   499 //!                15. Start Play 60 seconds 
       
   500 //!                16. Stop
       
   501 //!                17. CloseFile
       
   502 //!                18. Delete devsound instance
       
   503 //!@SYMTestStatus		Verified
       
   504 //!@SYMTestPriority		High
       
   505 //!@SYMTestExpectedResults
       
   506 //!                PCM recording 30 minutes
       
   507 //!@SYMTestType			CIT
       
   508 
       
   509 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-recording.ini
       
   510 		CREATE_OBJECT	CMMFDevSound		devsound1
       
   511 		COMMAND		devsound1		NewL
       
   512 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-InitializeL_command02
       
   513 		OUTSTANDING
       
   514 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-SetPrioritySettings_command03
       
   515 		COMMAND		devsound1		Capabilities
       
   516 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-SetConfigL_command05
       
   517 		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-ReplaceFile_command06
       
   518 		COMMAND		devsound1		RecordInitL
       
   519 		ASYNC_DELAY  1800000000 
       
   520 		COMMAND		devsound1		Stop
       
   521 		DELAY  5000000 
       
   522 		COMMAND		devsound1		CloseFile
       
   523 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-InitializeL_command10
       
   524 		OUTSTANDING
       
   525 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-SetPrioritySettings_command11
       
   526 		COMMAND		devsound1		Capabilities
       
   527 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-SetConfigL_command13
       
   528 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Recording-0007-0001-OpenFile_command14
       
   529 		COMMAND		devsound1		PlayInitL
       
   530 		ASYNC_DELAY  60000000 
       
   531 		COMMAND		devsound1		Stop
       
   532 		DELAY  2000000 
       
   533 		COMMAND		devsound1		CloseFile
       
   534 		COMMAND		devsound1		~
       
   535 	END_TEST_BLOCK
       
   536 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-RECORDING-0007