Update contrib.
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
 
     2 // All rights reserved.
 
     3 // This component and the accompanying materials are made available
 
     4 // under the terms of "Eclipse Public License v1.0"
 
     5 // which accompanies this distribution, and is available
 
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
 
     8 // Initial Contributors:
 
     9 // Nokia Corporation - initial contribution.
 
    14 // MM_A3F_DEVSOUND_CHRTZ_TONE.script
 
    16 // RUN_TEST_STEP <timeout>, <test suite>,  <test step>, <configuration file.ini>
 
    19 LOAD_SUITE char_a3f_devsound.dll
 
    22 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0001
 
    25 //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set sampling rate and channel
 
    26 //!@SYMTestPriority: Normal
 
    27 //!@SYMTestType: Normal Usecase
 
    29 //1. Create and Initialize DevSound instance to play tones.
 
    30 //2. Call SetConfigL(..) method to set Sampling Rate and iChannel to valid values.
 
    31 //3. Call Config() to verify applied settings.
 
    32 //!@SYMTestExpectedResults: 
 
    33 //SetConfigL(..) method shall be executed without error message.
 
    34 PRINT Play tone configuration - Call SetConfigL(..) method to set sampling rate and channel
 
    35 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0001, c:\mm_a3f_devsound_play_tone.ini
 
    38 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0002
 
    41 //!@SYMTestCaseDec: Play tone configuration - Call SetPrioritySettings(..) method to set priority
 
    42 //!@SYMTestPriority: Normal
 
    43 //!@SYMTestType: Normal Usecase
 
    45 //1. Create and Initialize DevSound instance to play tones.
 
    46 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
    47 //2. Call SetPrioritySettings(..) method to set iPriority to a valid value.
 
    48 //!@SYMTestExpectedResults: 
 
    49 //SetPrioritySettings(..) method shall be executed without error message.
 
    50 PRINT Play tone configuration - Call SetPrioritySettings(..) method to set priority
 
    51 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0002, c:\mm_a3f_devsound_play_tone.ini
 
    54 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0003
 
    57 //!@SYMTestCaseDec: Play tone configuration - SetVolume(..) method to set volume
 
    58 //!@SYMTestPriority: Normal
 
    59 //!@SYMTestType: Normal Usecase
 
    61 //1. Create and initialise a DevSound instance to play tones.
 
    62 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
    63 //2. Call SetVolume(..) method.
 
    64 //3. Call Volume() method to verify applied settings.
 
    65 //!@SYMTestExpectedResults: 
 
    66 //SetVolume(..) method shall be executed without error message.
 
    67 //Value returned by Volume() method shall be equal to the value set by SetVolume(..).
 
    68 PRINT Play tone configuration - SetVolume(..) method to set volume
 
    69 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0003, c:\mm_a3f_devsound_play_tone.ini
 
    72 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0004
 
    75 //!@SYMTestCaseDec: Play tone configuration - Call SetVolumeRamp(..)  method to set volume ramp
 
    76 //!@SYMTestPriority: Normal
 
    77 //!@SYMTestType: Normal Usecase
 
    79 //1. Create a Devsound instance.
 
    80 //2. Initialise a DevSound instance to play tones.
 
    81 //2.1 Wait for InitializeComplete(KErrNone) callback response.
 
    82 //3. Call PlayToneL().
 
    83 //4. Call SetVolumeRamp(..) method to set volume ramp to valid value.
 
    84 //!@SYMTestExpectedResults: 
 
    85 //SetVolumeRamp(..) method shall be executed without error message and the its settings shall be reflected the next time PlayToneL() is called.
 
    86 PRINT Play tone configuration - Call SetVolumeRamp(..)  method to set volume ramp
 
    87 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0004, c:\mm_a3f_devsound_play_tone.ini
 
    90 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0005
 
    93 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions and silence between them
 
    94 //!@SYMTestPriority: Normal
 
    95 //!@SYMTestType: Normal Usecase
 
    97 //1. Create and initialise a DevSound instance to play tones.
 
    98 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
    99 //2. Call SetToneRepeats(..) method to set repetition and silece values between them.
 
   100 //!@SYMTestExpectedResults: 
 
   101 //SetToneRepeats(..) method shall be executed without error message.
 
   102 PRINT Play tone configuration - Call SetToneRepeats() to set tone repetitions and silence between them
 
   103 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0005, c:\mm_a3f_devsound_play_tone.ini
 
   106 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0006
 
   109 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to set DTMF tone on, tone off and tone pause.
 
   110 //!@SYMTestPriority: Normal
 
   111 //!@SYMTestType: Normal Usecase
 
   113 //1. Create and Initialize DevSound instance to play tones.
 
   114 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   115 //2. Call SetDTMFLengths(..) method to set length (tone on, tone off, and pause) values.
 
   116 //!@SYMTestExpectedResults: 
 
   117 //SetDTMFLengths(..) method shall be executed without error message.
 
   118 PRINT Play tone configuration - Call SetDTMFLengths(..) to set DTMF tone on, tone off and tone pause.
 
   119 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0006, c:\mm_a3f_devsound_play_tone.ini
 
   122 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0007
 
   125 //!@SYMTestCaseDec: Play tone configuration - SetVolume(..) while tone play is in progress
 
   126 //!@SYMTestPriority: Normal
 
   127 //!@SYMTestType: Alternative Usecase
 
   129 //1. Create a Devsound instance.
 
   130 //2. Create a CPeriodic instance.
 
   131 //3. Initialise a DevSound instance to play tones.
 
   132 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   133 //4. Play a tone by calling PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
   134 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   135 //6. On timer event call SetVolume(..) method to set volume to a valid value.
 
   136 //7. Call Volume() method to verify applied settings.
 
   137 //!@SYMTestExpectedResults: 
 
   138 //SetVolume(..) is immediately applied.
 
   139 PRINT Play tone configuration - SetVolume(..) while tone play is in progress
 
   140 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0007 , c:\mm_a3f_devsound_play_tone.ini
 
   143 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0008
 
   146 //!@SYMTestCaseDec: Play tone configuration - SetPlayBalance() while tone play is in progress
 
   147 //!@SYMTestPriority: Normal
 
   148 //!@SYMTestType: Alternative Usecase
 
   150 //1. Create a Devsound instance.
 
   151 //2. Create a CPeriodic instance .
 
   152 //3. Initialise a DevSound instance to play tones.
 
   153 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   154 //4. Play a tone by calling PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
   155 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   156 //6. On timer event call SetPlayBalance(..) method to set the speaker balance to valid values.
 
   157 //7. Call GetPlayBalanceL() method to verify applied settings.
 
   158 //!@SYMTestExpectedResults: 
 
   159 //SetPlayBalance(..) method while playing shall be executed without error message and its paremeters are immediately applied.
 
   160 //Data retrieved by GetPlayBalance(..)  method shall be equal to the value set by SetPlayBalance(..).
 
   161 PRINT Play tone configuration - SetPlayBalance() while tone play is in progress
 
   162 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0008, c:\mm_a3f_devsound_play_tone.ini
 
   165 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0010
 
   168 //!@SYMTestCaseDec: Play tone configuration - Call SetVolume(..) method to set volume and reinitialise for playing audio.
 
   169 //!@SYMTestPriority: Normal
 
   170 //!@SYMTestType: Alternative Usecase
 
   172 //1. Create a Devsound instance.
 
   173 //2. Initialise a DevSound instance to play tones.
 
   174 //2.1 Wait for InitializeComplete(KErrNone) callback response.
 
   175 //4. Call SetVolume(..)
 
   176 //5. Re-initialise a DevSound instance to play audio.
 
   177 //6. Call Volume() method to verify whether the volume was remembered or not.
 
   178 //!@SYMTestExpectedResults: 
 
   179 //SetVolume(..) method shall be executed without error message.
 
   180 //After reinitialisation of Devsound client, the calling of Volume() method shall return the value which was set by using SetVolume() method.
 
   181 //(Volume settings shall not be modified despite DevSound client reinitialisation).
 
   182 PRINT Play tone configuration - Call SetVolume(..) method to set volume and reinitialise for playing audio.
 
   183 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0010, c:\mm_a3f_devsound_play_tone.ini
 
   186 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0011
 
   189 //!@SYMTestCaseDec: Play tone configuration - Call SetVolumeRamp(..)  method to set volume ramp
 
   190 //!@SYMTestPriority: Normal
 
   191 //!@SYMTestType: Alternative Usecase
 
   193 //1. Create a Devsound instance.
 
   194 //2. Create a CPeriodic instance.
 
   195 //3. Initialise a DevSound instance to play tones.
 
   196 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   197 //4. Call PlayToneL(..).
 
   198 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   199 //6. On timer event call SetVolumeRamp(..) method to set volume ramp to valid value
 
   200 //7. Let ToneFinished() occur and play again a tone.
 
   201 //!@SYMTestExpectedResults: 
 
   202 //SetVolumeRamp(..) method shall be executed without error message and the its settings shall be reflected the next time PlayToneL() is called.
 
   203 PRINT Play tone configuration - Call SetVolumeRamp(..)  method to set volume ramp
 
   204 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0011, c:\mm_a3f_devsound_play_tone.ini
 
   208 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0012
 
   211 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions while playing
 
   212 //!@SYMTestPriority: Normal
 
   213 //!@SYMTestType: Alternative Usecase
 
   215 //1. Create a Devsound instance.
 
   216 //2. Create a CPeriodic instance.
 
   217 //3. Initialise a DevSound instance to play tones.
 
   218 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   219 //4. Call PlayToneL().
 
   220 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   221 //6. On timer event call SetToneRepeats(..) method using positive values and call Cancel().
 
   222 //7. Let ToneFinished() callback occur, then re - invoke PlayToneL().
 
   223 //8. When ToneFinished callback is reached, confirm elapsed time since first tone reproduction.
 
   224 //!@SYMTestExpectedResults: 
 
   225 //SetToneRepeats(..) method shall be executed without error message. Setting audio properties using this method do not cancel 
 
   226 //or change current tone play. The new settings are applied until next tone play and total reproduction time since firts tone
 
   227 //reproduction has to be confirmed.
 
   228 PRINT Play tone configuration - Call SetToneRepeats() to set tone repetitions while playing
 
   229 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0012, c:\mm_a3f_devsound_play_tone.ini
 
   232 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0013
 
   235 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths() to set tone repetitions while playing
 
   236 //!@SYMTestPriority: Normal
 
   237 //!@SYMTestType: Alternative Usecase
 
   239 //1. Create a Devsound instance.
 
   240 //2. Create a CPeriodic instance.
 
   241 //3. Initialise a DevSound instance to play tones(DTMF).
 
   242 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   243 //4. Play a tone  by calling PlayDTMFStringL().
 
   244 //5. On timer event call SetDTMFLengths(..) method using positive values and call Cancel() on the timer.
 
   245 //6. Let ToneFinished() callback occur, then re - invoke PlayDTMFStringL().
 
   246 //7. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   247 //8. When ToneFinished callback is reached, confirm elapsed time since first tone(DTMF) reproduction.
 
   248 //!@SYMTestExpectedResults: 
 
   249 //SetDTMFLengths(..) method shall be executed without error message. Setting audio properties using this method do not cancel or
 
   250 //change current tone play. The new settings are applied until next tone play and total reproduction time since firts tone reproduction
 
   251 //has to be confirmed.
 
   252 PRINT Play tone configuration - Call SetDTMFLengths() to set tone repetitions while playing
 
   253 RUN_TEST_STEP 40000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0013, c:\mm_a3f_devsound_play_tone.ini
 
   256 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0014
 
   259 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions in any other state but tone
 
   260 //!@SYMTestPriority: Normal
 
   261 //!@SYMTestType: Alternative Usecase
 
   263 //1. Create a Devsound instance.
 
   264 //2. Initialise a DevSound instance to other available states but tone.
 
   265 //2.1 Wait for InitializeComplete(KErrNone) callback response.
 
   266 //3. Call SetToneRepeats(..) method using positive values.
 
   267 //4. Initialise a DevSound instance to other available states but tone.
 
   268 //4.1 Wait for InitializeComplete(KErrNone) callback response.
 
   269 //5. Play a tone  by calling PlayToneL().
 
   270 //6. When ToneFinished callback is reached, confirm elapsed time since tone reproduction.
 
   271 //!@SYMTestExpectedResults: 
 
   272 //SetToneRepeats(..) method shall be executed without error message.The configuration values are remembered and may be used following a subsequent InitializeL() for tone play. They are not reset by that InitializeL() call. 
 
   273 PRINT Play tone configuration - Call SetToneRepeats() to set tone repetitions in any other state but tone
 
   274 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0014, c:\mm_a3f_devsound_play_tone.ini
 
   277 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0015
 
   280 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths() to set tone repetitions in any other state but tone
 
   281 //!@SYMTestPriority: Normal
 
   282 //!@SYMTestType: Alternative Usecase
 
   284 //1. Create a Devsound instance.
 
   285 //2. Initialise a DevSound instance to other available states but tone.
 
   286 //2.1 Wait for InitializeComplete(KErrNone) callback response.
 
   287 //3. Call SetDTMFLengths(..) method using positive values.
 
   288 //4. Initialise a DevSound instance to other available states but tone.
 
   289 //4.1 Wait for InitializeComplete(KErrNone) callback response.
 
   290 //5. Play a tone  by calling PlayToneL().
 
   291 //6. When ToneFinished callback is reached, confirm elapsed time since tone reproduction.
 
   292 //!@SYMTestExpectedResults: 
 
   293 //SetDTMFLengths(..) method shall be executed without error message.The configuration values are remembered and may be used following a subsequent InitializeL() for tone play. They are not reset by that InitializeL() call. 
 
   294 PRINT Play tone configuration - Call SetDTMFLengths() to set tone repetitions in any other state but tone
 
   295 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0015, c:\mm_a3f_devsound_play_tone.ini
 
   298 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0016
 
   301 //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL() while tone play is in progress
 
   302 //!@SYMTestPriority: Normal
 
   303 //!@SYMTestType: Exception Usecase
 
   305 //1. Create a Devsound instance.
 
   306 //2. Create a CPeriodic instance.
 
   307 //3. Initialise a DevSound instance to play tones.
 
   308 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   309 //4. Play a tone by calling PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
   310 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   311 //6. On timer event call SetConfigL(..) method to set Sampling Rate to valid value.
 
   312 //!@SYMTestExpectedResults: 
 
   313 //SetConfigL(..) method shall leave with KErrNotReady.
 
   314 PRINT Play tone configuration - Call SetConfigL() while tone play is in progress
 
   315 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0016, c:\mm_a3f_devsound_play_tone.ini
 
   318 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0017
 
   321 //!@SYMTestCaseDec: Play tone configuration - Call SetPrioritySettings(..) method to set priority while tone play is in progress
 
   322 //!@SYMTestPriority: Normal
 
   323 //!@SYMTestType: Exception Usecase
 
   325 //1. Create a DevSound instance.
 
   326 //2. Open the file to be played by the second DevSound instance.
 
   327 //3. Create a CPeriodic instance.
 
   328 //4. Create a second DevSound instance.
 
   329 //5. Initialise the first DevSound instance to play tones.
 
   330 //5.1 Wait for InitializeComplete(KErrNone) callback response.
 
   331 //6. Call PlayToneL() to start playing tones and call SetPrioritySettings() to set the first devsound´s priority to the highest value.
 
   332 //7. Start CPeriodic to trigger timed events with a period of 2 seconds.(Timer events must laste less than tone duration.)
 
   333 //8. On timer event, initialise the second devsound instance, set its priority to the highest value, and play an audio file. 
 
   334 //!@SYMTestExpectedResults: 
 
   335 //SetPrioritySettings(..) method shall be executed without error message. The first DevSound instance(Tones) must be pre-empted because setting the priority while playing is ignored
 
   336 PRINT Play tone configuration - Call SetPrioritySettings(..) method to set priority while tone play is in progress
 
   337 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0017, c:\mm_a3f_devsound_play_tone.ini
 
   340 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0018
 
   343 //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set a sample rate with sequence data properties not supported by the tone generator 
 
   344 //!@SYMTestPriority: Normal
 
   345 //!@SYMTestType: Exception Usecase
 
   347 //1. Create and Initialize DevSound instance to play tones.
 
   348 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   349 //2. Call SetConfigL(..) method to set Sampling Rate to invalid values.
 
   350 //!@SYMTestExpectedResults: 
 
   351 //It leaves with KErrArgument or KErrNotSupported.
 
   352 PRINT Play tone configuration - Call SetConfigL(..) method to set a sample rate with sequence data properties not supported by the tone generator 
 
   353 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0018, c:\mm_a3f_devsound_play_tone.ini
 
   356 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0019
 
   359 //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set a channel encoding to unsupported value
 
   360 //!@SYMTestPriority: Normal
 
   361 //!@SYMTestType: Exception Usecase
 
   363 //1. Create and Initialize DevSound instance to play tones.
 
   364 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   365 //2. Call SetConfigL(..) method to set iChannel to invalid values.
 
   366 //!@SYMTestExpectedResults: 
 
   367 //It leaves with KErrArgument or KErrNotSupported.
 
   368 PRINT Play tone configuration - Call SetConfigL(..) method to set a channel encoding to unsupported value
 
   369 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0019, c:\mm_a3f_devsound_play_tone.ini
 
   372 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0020
 
   375 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to using negative values
 
   376 //!@SYMTestPriority: Normal
 
   377 //!@SYMTestType: Exception Usecase
 
   379 //1. Create and Initialize DevSound instance to record audio.
 
   380 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   381 //2. Call SetDTMFLengths(..) to set lengths to negative values (aToneOnLength must be diferent to -1.)
 
   382 //3. Play a DTMF tone.
 
   383 //4. When ToneFinished() callback is reached, confirm elapsed time since first tone reproduction.
 
   384 //!@SYMTestExpectedResults: 
 
   385 //After setting the DTMF lengths by calling SetDTMFLengths(..), the reproduction time shall be confirmed to tend to 0
 
   386 PRINT Play tone configuration - Call SetDTMFLengths(..) to using negative values
 
   387 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0020, c:\mm_a3f_devsound_play_tone.ini
 
   390 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0021
 
   393 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to using negative values
 
   394 //!@SYMTestPriority: Normal
 
   395 //!@SYMTestType: Exception Usecase
 
   397 //1. Create a Devsound instance.
 
   398 //2. Create a CPeriodic instance.
 
   399 //3. Initialise a DevSound instance to play tones.
 
   400 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   401 //4. Call SetDTMFLengths(..) to set lengths to positive except ToneOnLenght(aToneOnLength must be equal to -1.)
 
   402 //5. Call PlayDTMFStringL().
 
   403 //!@SYMTestExpectedResults: 
 
   404 //After setting the DTMF lengths by calling SetDTMFLengths(..), the tone on reproduction time is preserved. If tone finished is reached before timer event, then the test should fail.
 
   405 PRINT Play tone configuration - Call SetDTMFLengths(..) to using negative values
 
   406 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0021, c:\mm_a3f_devsound_play_tone.ini
 
   409 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0022
 
   412 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() using a negative RepeatCount
 
   413 //!@SYMTestPriority: Normal
 
   414 //!@SYMTestType: Normal Usecase
 
   416 //1. Create and Initialize DevSound instance to record audio.
 
   417 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   418 //2. Call SetToneRepeats(..) to set lengths to negative values (aRepeatCount  must be diferent to KMdaRepeatForever.)
 
   419 //3. Play a tone by calling PlayToneL(..).
 
   420 //4. When ToneFinished() callback is reached, confirm elapsed time since first tone reproduction.
 
   421 //!@SYMTestExpectedResults: 
 
   422 //SetToneRepeats(..) method shall be executed without error message. After calling SetToneRepeats(..), the total reproduction time should tend to 0.
 
   423 PRINT Play tone configuration - Call SetToneRepeats() using negative argumets
 
   424 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0022, c:\mm_a3f_devsound_play_tone.ini
 
   427 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0023
 
   430 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() using negative RepeatCount
 
   431 //!@SYMTestPriority: Normal
 
   432 //!@SYMTestType: Normal Usecase
 
   434 //1. Create a Devsound instance.
 
   435 //2. Create a CPeriodic instance.
 
   436 //3. Initialise a DevSound instance to play tones.
 
   437 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   438 //4. Call SetToneRepeats(..) to set RepeatCount to negative (KMdaRepeatForever).
 
   439 //5. Play a tone by calling PlayToneL(..).
 
   440 //6. Start CPeriodic to trigger timed events with a period of 10 seconds.
 
   441 //!@SYMTestExpectedResults: 
 
   442 //SetToneRepeats(..) method shall be executed without error message. If ToneFinished() is reached before timer event, then the test should fail.
 
   443 PRINT Play tone configuration - Call SetToneRepeats() using negative RepeatCount
 
   444 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0023, c:\mm_a3f_devsound_play_tone.ini
 
   447 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0024
 
   450 //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities
 
   451 //!@SYMTestPriority: Normal
 
   452 //!@SYMTestType: Normal Usecase
 
   454 //1. Create and Initialize DevSound instance to play tones.
 
   455 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   456 //2. Call Capabilities() method to get all supported sample rates and channel encodings.
 
   457 //!@SYMTestExpectedResults: 
 
   458 //Capabilities() method shall retrieve a set of supported capabilities.
 
   459 PRINT Play tone query - Call Capabilities() to retrieve all the supported capabilities
 
   460 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0024, c:\mm_a3f_devsound_play_tone.ini
 
   463 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0025
 
   466 //!@SYMTestCaseDec: Play tone query - Call Config() to retrieve the default capabilities, sampling rate and channel encoding used
 
   467 //!@SYMTestPriority: Normal
 
   468 //!@SYMTestType: Normal Usecase
 
   470 //1.Create and Initialize DevSound instance to play tones.
 
   471 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   472 //2.Call Config() method to get Sampling Rate and iChannel encoding.
 
   473 //!@SYMTestExpectedResults: 
 
   474 //Config() method shall retrieve current default sample rate and channel encoding.
 
   475 PRINT Play tone query - Call Config() to retrieve the default capabilities, sampling rate and channel encoding used
 
   476 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0025, c:\mm_a3f_devsound_play_tone.ini
 
   479 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0026
 
   482 //!@SYMTestCaseDec: Play tone query - Call MaxVolume() to retrieve the max volume suported by the device
 
   483 //!@SYMTestPriority: Normal
 
   484 //!@SYMTestType: Normal Usecase
 
   486 //1. Create and Initialize DevSound instance to play tones.
 
   487 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   488 //2. Call MaxVolume() method to get maximum volume for current device.
 
   489 //!@SYMTestExpectedResults: 
 
   490 //MaxVolume() method shall retrieve the max device´s volume.
 
   491 PRINT Play tone query - Call MaxVolume() to retrieve the max volume suported by the device
 
   492 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0026, c:\mm_a3f_devsound_play_tone.ini
 
   495 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0027
 
   498 //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve default device volume
 
   499 //!@SYMTestPriority: Normal
 
   500 //!@SYMTestType: Normal Usecase
 
   502 //1. Create and Initialize DevSound instance to play tones.
 
   503 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   504 //2. Call Volume(..) method to get current volume value.
 
   505 //!@SYMTestExpectedResults: 
 
   506 //Volume() shall retrieve the current device volume.
 
   507 PRINT Play tone query - Call Volume() to retrieve default device volume
 
   508 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0027, c:\mm_a3f_devsound_play_tone.ini
 
   511 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0028
 
   514 //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities while playing
 
   515 //!@SYMTestPriority: Normal
 
   516 //!@SYMTestType: Alternative Usecase
 
   518 //1. Create a Devsound instance.
 
   519 //2. Create a CPeriodic instance.
 
   520 //3. Initialise a DevSound instance to play tones.
 
   521 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   522 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
   523 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   524 //6. On timer event call Capabilities() method to get all supported sample rates and channel encodings while tone play is in progress.
 
   525 //!@SYMTestExpectedResults: 
 
   526 //Capabilities() method shall retrieve a set of supported capabilities.
 
   527 PRINT Play tone query - Call Capabilities() to retrieve all the supported capabilities while playing
 
   528 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0028, c:\mm_a3f_devsound_play_tone.ini
 
   531 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0029
 
   534 //!@SYMTestCaseDec: Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding used while playing
 
   535 //!@SYMTestPriority: Normal
 
   536 //!@SYMTestType: Alternative Usecase
 
   538 //1. Create a Devsound instance.
 
   539 //2. Create a CPeriodic instance.
 
   540 //3. Initialise a DevSound instance to play tones.
 
   541 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   542 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
   543 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   544 //6. On timer event call Config() method to get Sampling Rate and iChannel encoding while tone play is in progress.
 
   545 //!@SYMTestExpectedResults: 
 
   546 //Config() method shall retrieve current sample rate and channel encoding.
 
   547 PRINT Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding used while playing
 
   548 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0029, c:\mm_a3f_devsound_play_tone.ini
 
   551 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0030
 
   554 //!@SYMTestCaseDec: Play tone query - Call MaxVolume() to retrieve the max volume suported by the device while playing
 
   555 //!@SYMTestPriority: Normal
 
   556 //!@SYMTestType: Alternative Usecase
 
   558 //1. Create a Devsound instance.
 
   559 //2. Create a CPeriodic instance.
 
   560 //3. Initialise a DevSound instance to play tones.
 
   561 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   562 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
   563 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   564 //6. On timer event call MaxVolume() method to get maximum volume for current device while tone play is in progress.
 
   565 //!@SYMTestExpectedResults: 
 
   566 //MaxVolume() method shall retrieve the max device´s volume.
 
   567 PRINT Play tone query - Call MaxVolume() to retrieve the max volume suported by the device while playing
 
   568 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0030, c:\mm_a3f_devsound_play_tone.ini
 
   571 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0031
 
   574 //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve the default device volume while playing
 
   575 //!@SYMTestPriority: Normal
 
   576 //!@SYMTestType: Alternative Usecase
 
   578 //1. Create a Devsound instance.
 
   579 //2. Create a CPeriodic instance.
 
   580 //3. Initialise a DevSound instance to play tones.
 
   581 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   582 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
   583 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
   584 //6. On timer event call Volume(..) method to get current volume value while tone play is in progress.
 
   585 //!@SYMTestExpectedResults: 
 
   586 //Volume() shall retrieve the current device volume.
 
   587 PRINT Play tone query - Call Volume() to retrieve the default device volume while playing
 
   588 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0031, c:\mm_a3f_devsound_play_tone.ini
 
   591 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0036
 
   594 //!@SYMTestCaseDec: Play tone - Call PlayToneL()  to play a tone
 
   595 //!@SYMTestPriority: Normal
 
   596 //!@SYMTestType: Normal Usecase
 
   598 //1. Create and Initialize DevSound instance to play tones.
 
   599 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   600 //2. Call PlayToneL() method.
 
   601 //2.1 Wait for ToneFinished() callback.
 
   602 //!@SYMTestExpectedResults: 
 
   603 //Tone once shall be played.
 
   604 //ToneFinished(KErrUnderFlow) callback shall be received.
 
   605 PRINT Play tone - Call PlayToneL()  to play a tone
 
   606 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0036, c:\mm_a3f_devsound_play_tone.ini
 
   609 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0037
 
   612 //!@SYMTestCaseDec: Play tone - Call PlayDualToneL() to play a dual tone
 
   613 //!@SYMTestPriority: Normal
 
   614 //!@SYMTestType: Normal Usecase
 
   616 //1. Create and Initialize DevSound instance to play tones.
 
   617 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   618 //2. Call PlayDualToneL() method.
 
   619 //2.1 Wait for ToneFinished() callback.
 
   620 //!@SYMTestExpectedResults: 
 
   621 //Dual tone shall be played.
 
   622 //ToneFinished(KErrUnderFlow) callback shall be received
 
   623 PRINT Play tone - Call PlayDualToneL() to play a dual tone
 
   624 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0037, c:\mm_a3f_devsound_play_tone.ini
 
   627 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0038
 
   630 //!@SYMTestCaseDec: Play tone - Call PlayDTMFStringL() to play a dual tone multi frequency string
 
   631 //!@SYMTestPriority: Normal
 
   632 //!@SYMTestType: Normal Usecase
 
   634 //1. Create and Initialize DevSound instance.
 
   635 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   636 //2. Call PlayDTMFStringL() method with DTMFString = 01234, 56789, ABCDEF#*
 
   637 //2.1 Wait for ToneFinished() callback.
 
   638 //!@SYMTestExpectedResults: 
 
   639 //DTMF string shall be played.
 
   640 //ToneFinished(KErrUnderFlow) callback shall be received
 
   641 PRINT Play tone - Call PlayDTMFStringL() to play a dual tone multi frequency string
 
   642 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0038, c:\mm_a3f_devsound_play_tone.ini
 
   645 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0039
 
   648 //!@SYMTestCaseDec: Play tone - Call PlayToneSequenceL() to play a tone sequence.
 
   649 //!@SYMTestPriority: Normal
 
   650 //!@SYMTestType: Normal Usecase
 
   652 //1. Create and Initialize DevSound instance to play tones.
 
   653 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   654 //2. Call PlayToneSequenceL() method
 
   655 //2.1 Wait for ToneFinished() callback.
 
   656 //!@SYMTestExpectedResults: 
 
   657 //Tone sequence shall be played.
 
   658 //ToneFinished(KErrUnderFlow) callback shall be received.
 
   659 PRINT Play tone - Call PlayToneSequenceL() to play a tone sequence.
 
   660 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0039, c:\mm_a3f_devsound_play_tone.ini
 
   663 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0040
 
   666 //!@SYMTestCaseDec: Play tone - Once - New tone request. The client wants to play new tone while there is one already playing.  
 
   667 //!@SYMTestPriority: Normal
 
   668 //!@SYMTestType: Alternative Usecase
 
   670 //1. Create a Devsound instance.
 
   671 //2. Create a CPeriodic instance.
 
   672 //3. Initialise a DevSound instance to play tones.
 
   673 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   674 //4. Start the CPeriodic object.
 
   675 //5. Call PlayToneL().
 
   676 //6. After a 2 second periodic timer event, play another tone using the same DevSound instance.
 
   677 //7. Wait for the ToneFinished() callback.
 
   678 //!@SYMTestExpectedResults: 
 
   679 //First tone request shall be played. DevSound silently ignores the second tone play request. 
 
   680 //New tone play request do not cancels the current tone play.
 
   681 PRINT Play tone - Once - New tone request. The client wants to play new tone while there is one already playing.  
 
   682 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0040, c:\mm_a3f_devsound_play_tone.ini
 
   685 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0043
 
   688 //!@SYMTestCaseDec: Play tone - Once - Stop. The client wants to play a tone for a while and stop it. DevSound is initialized
 
   689 //to tone play after Stop.
 
   690 //!@SYMTestPriority: Normal
 
   691 //!@SYMTestType: Alternative Usecase
 
   693 //1. Create and Initialize DevSound instance to play tones.
 
   694 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   695 //2. Create and start a CPeriodic object.
 
   696 //3. Play a tone using PlayToneL().(For testing purposes, the tone should last more than the timer event)
 
   697 //4. On the timer event, after one second, call Stop() to stop the ongoing play tone operation.
 
   698 //5. Again play a tone using PlayToneL().
 
   699 //!@SYMTestExpectedResults: 
 
   700 //Tone play is stopped and DevSound goes to “Initialized to Play Tone” state, second tone request is accepted. 
 
   701 //Stop() is synchronous and it should not invoke callbacks through MDevSoundObserver.
 
   702 PRINT Play tone - Once - Stop. The client wants to play a tone for a while and stop it. DevSound is initialized to tone play after Stop.
 
   703 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0043, c:\mm_a3f_devsound_play_tone.ini
 
   706 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0044
 
   709 //!@SYMTestCaseDec: Play tone - Dual tone - Stop. The client wants to play a dual tone for a while and stop it. 
 
   710 //DevSound is initialized to tone play after Stop.
 
   711 //!@SYMTestPriority: Normal
 
   712 //!@SYMTestType: Alternative Usecase
 
   714 //1. Create and Initialize DevSound instance to play tones.
 
   715 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   716 //2. Create and start a CPeriodic object.
 
   717 //3. Call PlayDualToneL(). (For testing purposes, the tone should last more than the timer event)
 
   718 //4. On the timer event, after one second, call Stop() to stop the ongoing operation.
 
   719 //5. Again play a tone using PlayDualToneL().
 
   720 //!@SYMTestExpectedResults: 
 
   721 //Tone play is stopped and DevSound goes to “Initialized to Play Tone” state, second tone request is accepted.
 
   722 //Stop() is synchronous and it should not invoke callbacks through MDevSoundObserver.
 
   723 PRINT Play tone - Dual tone - Stop. The client wants to play a dual tone for a while and stop it. 
 
   724 //DevSound is initialized to tone play after Stop.
 
   725 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0044, c:\mm_a3f_devsound_play_tone.ini
 
   728 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0045
 
   731 //!@SYMTestCaseDec: Play tone - DTMF - Stop. The client wants to play a DTMF tone for a while a stop it. DevSound is initialized to tone play after Stop.
 
   732 //!@SYMTestPriority: Normal
 
   733 //!@SYMTestType: Alternative Usecase
 
   735 //1. Create and Initialize DevSound instance to play tones.
 
   736 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   737 //2. Create and start a CPeriodic object.
 
   738 //3. Call PlayDTMFStringL() method with DTMFString = 01234, 56789, ABCDEF#*.
 
   739 //4. On the timer event, after one second, call Stop() to stop the ongoing operation.
 
   740 //5. Again play a tone using PlayDTMFStringL().
 
   741 //!@SYMTestExpectedResults: 
 
   742 //Tone play is stopped and DevSound goes to “Initialized to Play Tone” state, second tone request is accepted. Stop() is synchronous and it should not invoke callbacks through MDevSoundObserver.
 
   743 PRINT Play tone - DTMF - Stop. The client wants to play a DTMF tone for a while a stop it. DevSound is initialized to tone play after Stop.
 
   744 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0045, c:\mm_a3f_devsound_play_tone.ini
 
   747 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0046
 
   750 //!@SYMTestCaseDec: Play tone - Tone sequence - Stop. The client wants to play a tone sequence for a while and stop it. DevSound is initialized to tone play after Stop.
 
   751 //!@SYMTestPriority: Normal
 
   752 //!@SYMTestType: Alternative Usecase
 
   754 //1. Create and Initialize DevSound instance to play tones.
 
   755 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   756 //2. Create and start a CPeriodic object.
 
   757 //3. Call PlayToneSequenceL() method. (For testing purposes, the tone should last more than the timer event)
 
   758 //4. On the timer event, after one second, call Stop() to stop the ongoing operation.
 
   759 //5. Again play a tone using PlayToneSequenceL().
 
   760 //!@SYMTestExpectedResults: 
 
   761 //Tone play is stopped and DevSound goes to “Initialized to Play Tone” state, second tone request is accepted. Stop() is synchronous and it should not invoke callbacks through MDevSoundObserver.
 
   762 PRINT Play tone - Tone sequence - Stop. The client wants to play a tone sequence for a while and stop it. DevSound is initialized to tone play after Stop.
 
   763 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0046, c:\mm_a3f_devsound_play_tone.ini
 
   766 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0051
 
   769 //!@SYMTestCaseDec: Play tone - Once- Call InitializeL() using EMMFStatePlaying
 
   770 //!@SYMTestPriority: Normal
 
   771 //!@SYMTestType: Exception Usecase
 
   773 //1. Create and Initialize DevSound instance for playing audio.
 
   774 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   775 //2. PlayToneL() is called when InitializeL() was called using EMMFStatePlaying value.
 
   776 //!@SYMTestExpectedResults: 
 
   777 //It leaves with KErrNotSupported.
 
   778 PRINT Play tone - Once- Call InitializeL() using EMMFStatePlaying
 
   779 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0051, c:\mm_a3f_devsound_play_tone.ini
 
   782 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0052
 
   785 //!@SYMTestCaseDec: Play tone - Dual tone - Call InitializeL() using EMMFStatePlaying
 
   786 //!@SYMTestPriority: Normal
 
   787 //!@SYMTestType: Exception Usecase
 
   789 //1. Create and Initialize DevSound instance for playing audio.
 
   790 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   791 //2. PlayDualToneL() called when InitializeL() was called using EMMFStatePlaying value.
 
   792 //!@SYMTestExpectedResults: 
 
   793 //It leaves with KErrNotSupported.
 
   794 PRINT Play tone - Dual tone - Call InitializeL() using EMMFStatePlaying
 
   795 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0052, c:\mm_a3f_devsound_play_tone.ini
 
   798 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0053
 
   801 //!@SYMTestCaseDec: Play tone - DTMF - Call InitializeL() using EMMFStatePlaying
 
   802 //!@SYMTestPriority: Normal
 
   803 //!@SYMTestType: Exception Usecase
 
   805 //1. Create and Initialize DevSound instance for playing audio.
 
   806 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   807 //2. PlayDTMFStringL() called when InitializeL() was called using EMMFStatePlaying value.
 
   808 //!@SYMTestExpectedResults: 
 
   809 //It leaves with KErrNotSupported.
 
   810 PRINT Play tone - DTMF - Call InitializeL() using EMMFStatePlaying
 
   811 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0053, c:\mm_a3f_devsound_play_tone.ini
 
   814 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0054
 
   817 //!@SYMTestCaseDec: Play tone - Tone sequence - Call InitializeL() using EMMFStatePlaying
 
   818 //!@SYMTestPriority: Normal
 
   819 //!@SYMTestType: Exception Usecase
 
   821 //1. Create and Initialize DevSound instance for playing audio.
 
   822 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   823 //2. PlayToneSequenceL() is called when InitializeL() was called using EMMFStatePlaying value.
 
   824 //!@SYMTestExpectedResults: 
 
   825 //It leaves with KErrNotSupported.
 
   826 PRINT Play tone - Tone sequence - Call InitializeL() using EMMFStatePlaying
 
   827 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0054, c:\mm_a3f_devsound_play_tone.ini
 
   830 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0055
 
   833 //!@SYMTestCaseDec: Play tone - Once - Call InitializeL() using EMMFStateRecording
 
   834 //!@SYMTestPriority: Normal
 
   835 //!@SYMTestType: Exception Usecase
 
   837 //1. Create and Initialize DevSound instance for recording audio.
 
   838 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   839 //2. PlayToneL() is called when InitializeL() was called using EMMFStateRecording value.
 
   840 //!@SYMTestExpectedResults: 
 
   841 //It leaves with KErrNotSupported.
 
   842 PRINT Play tone - Once - Call InitializeL() using EMMFStateRecording
 
   843 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0055, c:\mm_a3f_devsound_play_tone.ini
 
   846 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0056
 
   849 //!@SYMTestCaseDec: Play tone - Dual tone - Call InitializeL() using EMMFStateRecording
 
   850 //!@SYMTestPriority: Normal
 
   851 //!@SYMTestType: Exception Usecase
 
   853 //1. Create and Initialize DevSound instance for recording audio.
 
   854 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   855 //2. PlayDualToneL() called when InitializeL() was called using EMMFStateRecording value.
 
   856 //!@SYMTestExpectedResults: 
 
   857 //It leaves with KErrNotSupported.
 
   858 PRINT Play tone - Dual tone - Call InitializeL() using EMMFStateRecording
 
   859 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0056, c:\mm_a3f_devsound_play_tone.ini
 
   862 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0057
 
   865 //!@SYMTestCaseDec: Play tone - DTMF - Call InitializeL() using EMMFStateRecording
 
   866 //!@SYMTestPriority: Normal
 
   867 //!@SYMTestType: Exception Usecase
 
   869 //1. Create and Initialize DevSound instance for recording audio.
 
   870 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   871 //2. PlayDTMFStringL() called when InitializeL() was called using EMMFStateRecording value.
 
   872 //!@SYMTestExpectedResults: 
 
   873 //It leaves with KErrNotSupported.
 
   874 PRINT Play tone - DTMF - Call InitializeL() using EMMFStateRecording
 
   875 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0057, c:\mm_a3f_devsound_play_tone.ini
 
   878 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0058
 
   881 //!@SYMTestCaseDec: Play tone - Tone sequence - Call InitializeL() using EMMFStateRecording
 
   882 //!@SYMTestPriority: Normal
 
   883 //!@SYMTestType: Exception Usecase
 
   885 //1. Create and Initialize DevSound instance for recording audio.
 
   886 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   887 //2. PlayToneSequenceL() is called when InitializeL() was called using EMMFStateRecording value.
 
   888 //!@SYMTestExpectedResults: 
 
   889 //It leaves with KErrNotSupported.
 
   890 PRINT Play tone - Tone sequence - Call InitializeL() using EMMFStateRecording
 
   891 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0058, c:\mm_a3f_devsound_play_tone.ini
 
   894 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0059
 
   897 //!@SYMTestCaseDec: Play tone - Once - Call PlayToneL() without calling initialize
 
   898 //!@SYMTestPriority: Normal
 
   899 //!@SYMTestType: Exception Usecase
 
   901 //1. Create a Devsound instance, but do not Initialize it.
 
   902 //2. Call PlayToneL(). 
 
   903 //!@SYMTestExpectedResults: 
 
   904 //It leaves with KErrNotReady.
 
   905 PRINT Play tone - Once - Call PlayToneL() without calling initialize
 
   906 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0059, c:\mm_a3f_devsound_play_tone.ini
 
   909 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0060
 
   912 //!@SYMTestCaseDec: Play tone - Dual tone - Call PlayDualToneL() without calling initialize
 
   913 //!@SYMTestPriority: Normal
 
   914 //!@SYMTestType: Exception Usecase
 
   916 //1. Create a Devsound instance, but do not Initialize it.
 
   917 //2. Call PlayDualToneL(). 
 
   918 //!@SYMTestExpectedResults: 
 
   919 //It leaves with KErrNotReady.
 
   920 PRINT Play tone - Dual tone - Call PlayDualToneL() without calling initialize
 
   921 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0060, c:\mm_a3f_devsound_play_tone.ini
 
   924 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0061
 
   927 //!@SYMTestCaseDec: Play tone - DTMF - Call PlayDTMFStringL()without calling initialize
 
   928 //!@SYMTestPriority: Normal
 
   929 //!@SYMTestType: Exception Usecase
 
   931 //1. Create a Devsound instance, but do not Initialize it.
 
   932 //2. Call PlayDTMFStringL().
 
   933 //!@SYMTestExpectedResults: 
 
   934 //It leaves with KErrNotReady.
 
   935 PRINT Play tone - DTMF - Call PlayDTMFStringL()without calling initialize
 
   936 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0061, c:\mm_a3f_devsound_play_tone.ini
 
   939 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0062
 
   942 //!@SYMTestCaseDec: Play tone - Tone sequence - Call PlayToneSequenceL() without calling initialize
 
   943 //!@SYMTestPriority: Normal
 
   944 //!@SYMTestType: Exception Usecase
 
   946 //1. Create a Devsound instance, but do not Initialize it.
 
   947 //2. Call PlayToneSequenceL().
 
   948 //!@SYMTestExpectedResults: 
 
   949 //It leaves with KErrNotReady.
 
   950 PRINT Play tone - Tone sequence - Call PlayToneSequenceL() without calling initialize
 
   951 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0062, c:\mm_a3f_devsound_play_tone.ini
 
   954 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0063
 
   957 //!@SYMTestCaseDec: Play tone - Tone sequence - Call PlayToneSequenceL() using an invalid tone sequence descriptor
 
   958 //!@SYMTestPriority: Normal
 
   959 //!@SYMTestType: Exception Usecase
 
   961 //1. Create and Initialize DevSound instance for playing tones.
 
   962 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
   963 //2. Call PlayToneSequenceL() method  using an invalid tone sequence descriptor.
 
   964 //!@SYMTestExpectedResults: 
 
   965 //A ToneFinished(KErrCorrupt) callback is received.
 
   966 PRINT Play tone - Tone sequence - Call PlayToneSequenceL() using an invalid tone sequence descriptor
 
   967 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0063, c:\mm_a3f_devsound_play_tone.ini
 
   970 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0009
 
   973 //!@SYMTestCaseDec: Play tone configuration - Call SetVolume(..) method during paused playing tone
 
   974 //!@SYMTestPriority: Normal
 
   975 //!@SYMTestType: Alternative Usecase
 
   977 //1. Create a Devsound instance.
 
   978 //2. Create a CPeriodic instance.
 
   979 //3. Initialise a DevSound instance to play tones.
 
   980 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
   981 //4. Play a tone.(For testing purposes, the tone should last more than the first timer event)
 
   982 //5. Start CPeriodic to trigger timed events every 2 seconds.
 
   983 //6. On timer event pause DevSound client, then call SetVolume(..).
 
   984 //7. Call Volume() method to verify current device volume value during the playback.
 
   985 //!@SYMTestExpectedResults: 
 
   986 //SetVolume(..) method shall be executed without error message.
 
   987 //Value returned from Volume() method shall be equal to the value set by SetVolume(..).
 
   988 PRINT Play tone configuration - Call SetVolume(..) method during paused playing tone
 
   989 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0009, c:\mm_a3f_devsound_play_tone.ini
 
   992 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0032
 
   995 //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities when paused
 
   996 //!@SYMTestPriority: Normal
 
   997 //!@SYMTestType: Alternative Usecase
 
   999 //1. Create a Devsound instance.
 
  1000 //2. Create a CPeriodic instance.
 
  1001 //3. Initialise a DevSound instance to play tones.
 
  1002 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1003 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
  1004 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
  1005 //6. On timer event, after calling Pause(), invoke Capabilities() method to get all supported sample rates and channel encodings.
 
  1006 //!@SYMTestExpectedResults: 
 
  1007 //Capabilities() method shall retrieve a set of supported capabilities.
 
  1008 PRINT Play tone query - Call Capabilities() to retrieve all the supported capabilities when paused
 
  1009 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0032, c:\mm_a3f_devsound_play_tone.ini
 
  1012 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0033
 
  1015 //!@SYMTestCaseDec: Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding when paused
 
  1016 //!@SYMTestPriority: Normal
 
  1017 //!@SYMTestType: Alternative Usecase
 
  1019 //1. Create a Devsound instance.
 
  1020 //2. Create a CPeriodic instance.
 
  1021 //3. Initialise a DevSound instance to play tones.
 
  1022 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1023 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
  1024 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
  1025 //6. On timer event, after calling Pause(), invoke Config() method to get Sampling Rate and iChannel encoding.
 
  1026 //!@SYMTestExpectedResults: 
 
  1027 //Config() method shall retrieve current sample rate and channel encoding.
 
  1028 PRINT Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding when paused
 
  1029 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0033, c:\mm_a3f_devsound_play_tone.ini
 
  1032 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0034
 
  1035 //!@SYMTestCaseDec: Play tone query - Call MaxVolume() to retrieve the max volume suported by the device when paused
 
  1036 //!@SYMTestPriority: Normal
 
  1037 //!@SYMTestType: Alternative Usecase
 
  1039 //1. Create a Devsound instance.
 
  1040 //2. Create a CPeriodic instance.
 
  1041 //3. Initialise a DevSound instance to play tones.
 
  1042 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1043 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
  1044 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
  1045 //6. On timer event, after calling Pause(), invoke MaxVolume() method to get the maximum volume for current device.
 
  1046 //!@SYMTestExpectedResults: 
 
  1047 //MaxVolume() method shall retrieve the max device´s volume.
 
  1048 PRINT Play tone query - Call MaxVolume() to retrieve the max volume suported by the device when paused
 
  1049 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0034, c:\mm_a3f_devsound_play_tone.ini
 
  1052 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0035
 
  1055 //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve the default device volume when paused
 
  1056 //!@SYMTestPriority: Normal
 
  1057 //!@SYMTestType: Alternative Usecase
 
  1059 //1. Create a Devsound instance.
 
  1060 //2. Create a CPeriodic instance.
 
  1061 //3. Initialise a DevSound instance to play tones.
 
  1062 //3.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1063 //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event)
 
  1064 //5. Start CPeriodic to trigger timed events with a period of 2 seconds.
 
  1065 //6. On timer event, after calling Pause(), invoke  Volume(..) method to get current volume value while tone play is in progress.
 
  1066 //!@SYMTestExpectedResults: 
 
  1067 //Volume() shall retrieve the current device volume.
 
  1068 PRINT Play tone query - Call Volume() to retrieve the default device volume when paused
 
  1069 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0035, c:\mm_a3f_devsound_play_tone.ini
 
  1072 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0047
 
  1075 //!@SYMTestCaseDec: Play tone - Once - Pause. The client wants to play a tone for a while and pause it.
 
  1076 //!@SYMTestPriority: Normal
 
  1077 //!@SYMTestType: Alternative Usecase
 
  1079 //1. Create and Initialize DevSound instance to play tones.
 
  1080 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1081 //2. Create and start a CPeriodic object.
 
  1082 //3. Call PlayToneL() method. (For testing purposes, the tone should last more than the timer event)
 
  1083 //4. On the timer event, after two second, call Pause() to pause the ongoing operation.
 
  1084 //!@SYMTestExpectedResults: 
 
  1085 //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state.
 
  1086 PRINT Play tone - Once - Pause. The client wants to play a tone for a while and pause it.
 
  1087 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0047, c:\mm_a3f_devsound_play_tone.ini
 
  1090 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0048
 
  1093 //!@SYMTestCaseDec: Play tone - Dual tone - Pause. The client wants to play a dual tone for a while and pause it.
 
  1094 //!@SYMTestPriority: Normal
 
  1095 //!@SYMTestType: Alternative Usecase
 
  1097 //1. Create and Initialize DevSound instance to play tones.
 
  1098 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1099 //2. Create and start a CPeriodic object.
 
  1100 //3. Call PlayDualToneL() method. (For testing purposes, the tone should last more than the timer event)
 
  1101 //4. On the timer event, after 2 seconds, call Pause() to pause the ongoing operation.
 
  1102 //!@SYMTestExpectedResults: 
 
  1103 //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state.
 
  1104 PRINT Play tone - Dual tone - Pause. The client wants to play a dual tone for a while and pause it.
 
  1105 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0048, c:\mm_a3f_devsound_play_tone.ini
 
  1108 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0049
 
  1111 //!@SYMTestCaseDec: Play tone - DTMF - Pause. The client wants to play a DTMF string for a while and pause it.
 
  1112 //!@SYMTestPriority: Normal
 
  1113 //!@SYMTestType: Alternative Usecase
 
  1115 //1. Create and Initialize DevSound instance to play tones.
 
  1116 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1117 //2. Create and start a CPeriodic object.
 
  1118 //3. Call PlayDTMFStringL() method with DTMFString = 01234, 56789, ABCDEF#*.
 
  1119 //4. On the timer event, after two second, call Pause() to pause the ongoing operation.
 
  1120 //!@SYMTestExpectedResults: 
 
  1121 //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state.
 
  1122 PRINT Play tone - DTMF - Pause. The client wants to play a DTMF string for a while and pause it.
 
  1123 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0049, c:\mm_a3f_devsound_play_tone.ini
 
  1126 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0050
 
  1129 //!@SYMTestCaseDec: Play tone - Tone sequence - Pause. The client wants to play a tone sequence and pause it.
 
  1130 //!@SYMTestPriority: Normal
 
  1131 //!@SYMTestType: Alternative Usecase
 
  1133 //1. Create and Initialize DevSound instance to play tones.
 
  1134 //1.1 Wait for InitializeComplete(KErrNone) callback response.
 
  1135 //2. Create and start a CPeriodic object.
 
  1136 //3. Call PlayToneSequenceL() method. (For testing purposes, the tone should last more than the timer event)
 
  1137 //4. On the timer event, after two second, call Pause() to pause the ongoing operation.
 
  1138 //!@SYMTestExpectedResults: 
 
  1139 //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state.
 
  1140 PRINT Play tone - Tone sequence - Pause. The client wants to play a tone sequence and pause it.
 
  1141 RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0050, c:\mm_a3f_devsound_play_tone.ini