devsound/a3fcharacterisationtest/scripts/mm_a3f_devsound_play_tone.script
changeset 0 b8ed18f6c07b
child 2 5c1df44f2eed
equal deleted inserted replaced
-1:000000000000 0:b8ed18f6c07b
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // MM_A3F_DEVSOUND_CHRTZ_TONE.script
       
    15 // Syntax:
       
    16 // RUN_TEST_STEP <timeout>, <test suite>,  <test step>, <configuration file.ini>
       
    17 //
       
    18 
       
    19 LOAD_SUITE char_a3f_devsound.dll
       
    20 delay 10
       
    21 
       
    22 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0001
       
    23 //!@SYMREQ: 7951
       
    24 //!@SYMPREQ: 1540
       
    25 //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set sampling rate and channel
       
    26 //!@SYMTestPriority: Normal
       
    27 //!@SYMTestType: Normal Usecase
       
    28 //!@SYMTestActions: 
       
    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
       
    36 TEST_COMPLETE
       
    37 
       
    38 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0002
       
    39 //!@SYMREQ: 7951
       
    40 //!@SYMPREQ: 1540
       
    41 //!@SYMTestCaseDec: Play tone configuration - Call SetPrioritySettings(..) method to set priority
       
    42 //!@SYMTestPriority: Normal
       
    43 //!@SYMTestType: Normal Usecase
       
    44 //!@SYMTestActions: 
       
    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
       
    52 TEST_COMPLETE
       
    53 
       
    54 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0003
       
    55 //!@SYMREQ: 7951
       
    56 //!@SYMPREQ: 1540
       
    57 //!@SYMTestCaseDec: Play tone configuration - SetVolume(..) method to set volume
       
    58 //!@SYMTestPriority: Normal
       
    59 //!@SYMTestType: Normal Usecase
       
    60 //!@SYMTestActions: 
       
    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
       
    70 TEST_COMPLETE
       
    71 
       
    72 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0004
       
    73 //!@SYMREQ: 7951
       
    74 //!@SYMPREQ: 1540
       
    75 //!@SYMTestCaseDec: Play tone configuration - Call SetVolumeRamp(..)  method to set volume ramp
       
    76 //!@SYMTestPriority: Normal
       
    77 //!@SYMTestType: Normal Usecase
       
    78 //!@SYMTestActions: 
       
    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
       
    88 TEST_COMPLETE
       
    89 
       
    90 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0005
       
    91 //!@SYMREQ: 7951
       
    92 //!@SYMPREQ: 1540
       
    93 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions and silence between them
       
    94 //!@SYMTestPriority: Normal
       
    95 //!@SYMTestType: Normal Usecase
       
    96 //!@SYMTestActions: 
       
    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
       
   104 TEST_COMPLETE
       
   105 
       
   106 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0006
       
   107 //!@SYMREQ: 7951
       
   108 //!@SYMPREQ: 1540
       
   109 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to set DTMF tone on, tone off and tone pause.
       
   110 //!@SYMTestPriority: Normal
       
   111 //!@SYMTestType: Normal Usecase
       
   112 //!@SYMTestActions: 
       
   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
       
   120 TEST_COMPLETE
       
   121 
       
   122 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0007
       
   123 //!@SYMREQ: 7951
       
   124 //!@SYMPREQ: 1540
       
   125 //!@SYMTestCaseDec: Play tone configuration - SetVolume(..) while tone play is in progress
       
   126 //!@SYMTestPriority: Normal
       
   127 //!@SYMTestType: Alternative Usecase
       
   128 //!@SYMTestActions: 
       
   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
       
   141 TEST_COMPLETE
       
   142 
       
   143 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0008
       
   144 //!@SYMREQ: 7951
       
   145 //!@SYMPREQ: 1540
       
   146 //!@SYMTestCaseDec: Play tone configuration - SetPlayBalance() while tone play is in progress
       
   147 //!@SYMTestPriority: Normal
       
   148 //!@SYMTestType: Alternative Usecase
       
   149 //!@SYMTestActions: 
       
   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
       
   163 TEST_COMPLETE
       
   164 
       
   165 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0010
       
   166 //!@SYMREQ: 7951
       
   167 //!@SYMPREQ: 1540
       
   168 //!@SYMTestCaseDec: Play tone configuration - Call SetVolume(..) method to set volume and reinitialise for playing audio.
       
   169 //!@SYMTestPriority: Normal
       
   170 //!@SYMTestType: Alternative Usecase
       
   171 //!@SYMTestActions: 
       
   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
       
   184 TEST_COMPLETE
       
   185 
       
   186 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0011
       
   187 //!@SYMREQ: 7951
       
   188 //!@SYMPREQ: 1540
       
   189 //!@SYMTestCaseDec: Play tone configuration - Call SetVolumeRamp(..)  method to set volume ramp
       
   190 //!@SYMTestPriority: Normal
       
   191 //!@SYMTestType: Alternative Usecase
       
   192 //!@SYMTestActions: 
       
   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
       
   205 TEST_COMPLETE
       
   206 
       
   207 
       
   208 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0012
       
   209 //!@SYMREQ: 7951
       
   210 //!@SYMPREQ: 1540
       
   211 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions while playing
       
   212 //!@SYMTestPriority: Normal
       
   213 //!@SYMTestType: Alternative Usecase
       
   214 //!@SYMTestActions: 
       
   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
       
   230 TEST_COMPLETE
       
   231 
       
   232 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0013
       
   233 //!@SYMREQ: 7951
       
   234 //!@SYMPREQ: 1540
       
   235 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths() to set tone repetitions while playing
       
   236 //!@SYMTestPriority: Normal
       
   237 //!@SYMTestType: Alternative Usecase
       
   238 //!@SYMTestActions: 
       
   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
       
   254 TEST_COMPLETE
       
   255 
       
   256 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0014
       
   257 //!@SYMREQ: 7951
       
   258 //!@SYMPREQ: 1540
       
   259 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions in any other state but tone
       
   260 //!@SYMTestPriority: Normal
       
   261 //!@SYMTestType: Alternative Usecase
       
   262 //!@SYMTestActions: 
       
   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
       
   275 TEST_COMPLETE
       
   276 
       
   277 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0015
       
   278 //!@SYMREQ: 7951
       
   279 //!@SYMPREQ: 1540
       
   280 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths() to set tone repetitions in any other state but tone
       
   281 //!@SYMTestPriority: Normal
       
   282 //!@SYMTestType: Alternative Usecase
       
   283 //!@SYMTestActions: 
       
   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
       
   296 TEST_COMPLETE
       
   297 
       
   298 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0016
       
   299 //!@SYMREQ: 7951
       
   300 //!@SYMPREQ: 1540
       
   301 //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL() while tone play is in progress
       
   302 //!@SYMTestPriority: Normal
       
   303 //!@SYMTestType: Exception Usecase
       
   304 //!@SYMTestActions: 
       
   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
       
   316 TEST_COMPLETE
       
   317 
       
   318 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0017
       
   319 //!@SYMREQ: 7951
       
   320 //!@SYMPREQ: 1540
       
   321 //!@SYMTestCaseDec: Play tone configuration - Call SetPrioritySettings(..) method to set priority while tone play is in progress
       
   322 //!@SYMTestPriority: Normal
       
   323 //!@SYMTestType: Exception Usecase
       
   324 //!@SYMTestActions: 
       
   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
       
   338 TEST_COMPLETE
       
   339 
       
   340 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0018
       
   341 //!@SYMREQ: 7951
       
   342 //!@SYMPREQ: 1540
       
   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
       
   346 //!@SYMTestActions: 
       
   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
       
   354 TEST_COMPLETE
       
   355 
       
   356 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0019
       
   357 //!@SYMREQ: 7951
       
   358 //!@SYMPREQ: 1540
       
   359 //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set a channel encoding to unsupported value
       
   360 //!@SYMTestPriority: Normal
       
   361 //!@SYMTestType: Exception Usecase
       
   362 //!@SYMTestActions: 
       
   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
       
   370 TEST_COMPLETE
       
   371 
       
   372 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0020
       
   373 //!@SYMREQ: 7951
       
   374 //!@SYMPREQ: 1540
       
   375 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to using negative values
       
   376 //!@SYMTestPriority: Normal
       
   377 //!@SYMTestType: Exception Usecase
       
   378 //!@SYMTestActions: 
       
   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
       
   388 TEST_COMPLETE
       
   389 
       
   390 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0021
       
   391 //!@SYMREQ: 7951
       
   392 //!@SYMPREQ: 1540
       
   393 //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to using negative values
       
   394 //!@SYMTestPriority: Normal
       
   395 //!@SYMTestType: Exception Usecase
       
   396 //!@SYMTestActions: 
       
   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
       
   407 TEST_COMPLETE
       
   408 
       
   409 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0022
       
   410 //!@SYMREQ: 7951
       
   411 //!@SYMPREQ: 1540
       
   412 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() using a negative RepeatCount
       
   413 //!@SYMTestPriority: Normal
       
   414 //!@SYMTestType: Normal Usecase
       
   415 //!@SYMTestActions: 
       
   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
       
   425 TEST_COMPLETE
       
   426 
       
   427 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0023
       
   428 //!@SYMREQ: 7951
       
   429 //!@SYMPREQ: 1540
       
   430 //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() using negative RepeatCount
       
   431 //!@SYMTestPriority: Normal
       
   432 //!@SYMTestType: Normal Usecase
       
   433 //!@SYMTestActions: 
       
   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
       
   445 TEST_COMPLETE
       
   446 
       
   447 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0024
       
   448 //!@SYMREQ: 7951
       
   449 //!@SYMPREQ: 1540
       
   450 //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities
       
   451 //!@SYMTestPriority: Normal
       
   452 //!@SYMTestType: Normal Usecase
       
   453 //!@SYMTestActions: 
       
   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
       
   461 TEST_COMPLETE
       
   462 
       
   463 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0025
       
   464 //!@SYMREQ: 7951
       
   465 //!@SYMPREQ: 1540
       
   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
       
   469 //!@SYMTestActions: 
       
   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
       
   477 TEST_COMPLETE
       
   478 
       
   479 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0026
       
   480 //!@SYMREQ: 7951
       
   481 //!@SYMPREQ: 1540
       
   482 //!@SYMTestCaseDec: Play tone query - Call MaxVolume() to retrieve the max volume suported by the device
       
   483 //!@SYMTestPriority: Normal
       
   484 //!@SYMTestType: Normal Usecase
       
   485 //!@SYMTestActions: 
       
   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
       
   493 TEST_COMPLETE
       
   494 
       
   495 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0027
       
   496 //!@SYMREQ: 7951
       
   497 //!@SYMPREQ: 1540
       
   498 //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve default device volume
       
   499 //!@SYMTestPriority: Normal
       
   500 //!@SYMTestType: Normal Usecase
       
   501 //!@SYMTestActions: 
       
   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
       
   509 TEST_COMPLETE
       
   510 
       
   511 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0028
       
   512 //!@SYMREQ: 7951
       
   513 //!@SYMPREQ: 1540
       
   514 //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities while playing
       
   515 //!@SYMTestPriority: Normal
       
   516 //!@SYMTestType: Alternative Usecase
       
   517 //!@SYMTestActions: 
       
   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
       
   529 TEST_COMPLETE
       
   530 
       
   531 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0029
       
   532 //!@SYMREQ: 7951
       
   533 //!@SYMPREQ: 1540
       
   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
       
   537 //!@SYMTestActions: 
       
   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
       
   549 TEST_COMPLETE
       
   550 
       
   551 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0030
       
   552 //!@SYMREQ: 7951
       
   553 //!@SYMPREQ: 1540
       
   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
       
   557 //!@SYMTestActions: 
       
   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
       
   569 TEST_COMPLETE
       
   570 
       
   571 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0031
       
   572 //!@SYMREQ: 7951
       
   573 //!@SYMPREQ: 1540
       
   574 //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve the default device volume while playing
       
   575 //!@SYMTestPriority: Normal
       
   576 //!@SYMTestType: Alternative Usecase
       
   577 //!@SYMTestActions: 
       
   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
       
   589 TEST_COMPLETE
       
   590 
       
   591 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0036
       
   592 //!@SYMREQ: 7951
       
   593 //!@SYMPREQ: 1540
       
   594 //!@SYMTestCaseDec: Play tone - Call PlayToneL()  to play a tone
       
   595 //!@SYMTestPriority: Normal
       
   596 //!@SYMTestType: Normal Usecase
       
   597 //!@SYMTestActions: 
       
   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
       
   607 TEST_COMPLETE
       
   608 
       
   609 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0037
       
   610 //!@SYMREQ: 7951
       
   611 //!@SYMPREQ: 1540
       
   612 //!@SYMTestCaseDec: Play tone - Call PlayDualToneL() to play a dual tone
       
   613 //!@SYMTestPriority: Normal
       
   614 //!@SYMTestType: Normal Usecase
       
   615 //!@SYMTestActions: 
       
   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
       
   625 TEST_COMPLETE
       
   626 
       
   627 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0038
       
   628 //!@SYMREQ: 7951
       
   629 //!@SYMPREQ: 1540
       
   630 //!@SYMTestCaseDec: Play tone - Call PlayDTMFStringL() to play a dual tone multi frequency string
       
   631 //!@SYMTestPriority: Normal
       
   632 //!@SYMTestType: Normal Usecase
       
   633 //!@SYMTestActions: 
       
   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
       
   643 TEST_COMPLETE
       
   644 
       
   645 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0039
       
   646 //!@SYMREQ: 7951
       
   647 //!@SYMPREQ: 1540
       
   648 //!@SYMTestCaseDec: Play tone - Call PlayToneSequenceL() to play a tone sequence.
       
   649 //!@SYMTestPriority: Normal
       
   650 //!@SYMTestType: Normal Usecase
       
   651 //!@SYMTestActions: 
       
   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
       
   661 TEST_COMPLETE
       
   662 
       
   663 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0040
       
   664 //!@SYMREQ: 7951
       
   665 //!@SYMPREQ: 1540
       
   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
       
   669 //!@SYMTestActions: 
       
   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
       
   683 TEST_COMPLETE
       
   684 
       
   685 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0043
       
   686 //!@SYMREQ: 7951
       
   687 //!@SYMPREQ: 1540
       
   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
       
   692 //!@SYMTestActions: 
       
   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
       
   704 TEST_COMPLETE
       
   705 
       
   706 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0044
       
   707 //!@SYMREQ: 7951
       
   708 //!@SYMPREQ: 1540
       
   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
       
   713 //!@SYMTestActions: 
       
   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
       
   726 TEST_COMPLETE
       
   727 
       
   728 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0045
       
   729 //!@SYMREQ: 7951
       
   730 //!@SYMPREQ: 1540
       
   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
       
   734 //!@SYMTestActions: 
       
   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
       
   745 TEST_COMPLETE
       
   746 
       
   747 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0046
       
   748 //!@SYMREQ: 7951
       
   749 //!@SYMPREQ: 1540
       
   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
       
   753 //!@SYMTestActions: 
       
   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
       
   764 TEST_COMPLETE
       
   765 
       
   766 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0051
       
   767 //!@SYMREQ: 7951
       
   768 //!@SYMPREQ: 1540
       
   769 //!@SYMTestCaseDec: Play tone - Once- Call InitializeL() using EMMFStatePlaying
       
   770 //!@SYMTestPriority: Normal
       
   771 //!@SYMTestType: Exception Usecase
       
   772 //!@SYMTestActions: 
       
   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
       
   780 TEST_COMPLETE
       
   781 
       
   782 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0052
       
   783 //!@SYMREQ: 7951
       
   784 //!@SYMPREQ: 1540
       
   785 //!@SYMTestCaseDec: Play tone - Dual tone - Call InitializeL() using EMMFStatePlaying
       
   786 //!@SYMTestPriority: Normal
       
   787 //!@SYMTestType: Exception Usecase
       
   788 //!@SYMTestActions: 
       
   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
       
   796 TEST_COMPLETE
       
   797 
       
   798 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0053
       
   799 //!@SYMREQ: 7951
       
   800 //!@SYMPREQ: 1540
       
   801 //!@SYMTestCaseDec: Play tone - DTMF - Call InitializeL() using EMMFStatePlaying
       
   802 //!@SYMTestPriority: Normal
       
   803 //!@SYMTestType: Exception Usecase
       
   804 //!@SYMTestActions: 
       
   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
       
   812 TEST_COMPLETE
       
   813 
       
   814 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0054
       
   815 //!@SYMREQ: 7951
       
   816 //!@SYMPREQ: 1540
       
   817 //!@SYMTestCaseDec: Play tone - Tone sequence - Call InitializeL() using EMMFStatePlaying
       
   818 //!@SYMTestPriority: Normal
       
   819 //!@SYMTestType: Exception Usecase
       
   820 //!@SYMTestActions: 
       
   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
       
   828 TEST_COMPLETE
       
   829 
       
   830 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0055
       
   831 //!@SYMREQ: 7951
       
   832 //!@SYMPREQ: 1540
       
   833 //!@SYMTestCaseDec: Play tone - Once - Call InitializeL() using EMMFStateRecording
       
   834 //!@SYMTestPriority: Normal
       
   835 //!@SYMTestType: Exception Usecase
       
   836 //!@SYMTestActions: 
       
   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
       
   844 TEST_COMPLETE
       
   845 
       
   846 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0056
       
   847 //!@SYMREQ: 7951
       
   848 //!@SYMPREQ: 1540
       
   849 //!@SYMTestCaseDec: Play tone - Dual tone - Call InitializeL() using EMMFStateRecording
       
   850 //!@SYMTestPriority: Normal
       
   851 //!@SYMTestType: Exception Usecase
       
   852 //!@SYMTestActions: 
       
   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
       
   860 TEST_COMPLETE
       
   861 
       
   862 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0057
       
   863 //!@SYMREQ: 7951
       
   864 //!@SYMPREQ: 1540
       
   865 //!@SYMTestCaseDec: Play tone - DTMF - Call InitializeL() using EMMFStateRecording
       
   866 //!@SYMTestPriority: Normal
       
   867 //!@SYMTestType: Exception Usecase
       
   868 //!@SYMTestActions: 
       
   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
       
   876 TEST_COMPLETE
       
   877 
       
   878 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0058
       
   879 //!@SYMREQ: 7951
       
   880 //!@SYMPREQ: 1540
       
   881 //!@SYMTestCaseDec: Play tone - Tone sequence - Call InitializeL() using EMMFStateRecording
       
   882 //!@SYMTestPriority: Normal
       
   883 //!@SYMTestType: Exception Usecase
       
   884 //!@SYMTestActions: 
       
   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
       
   892 TEST_COMPLETE
       
   893 
       
   894 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0059
       
   895 //!@SYMREQ: 7951
       
   896 //!@SYMPREQ: 1540
       
   897 //!@SYMTestCaseDec: Play tone - Once - Call PlayToneL() without calling initialize
       
   898 //!@SYMTestPriority: Normal
       
   899 //!@SYMTestType: Exception Usecase
       
   900 //!@SYMTestActions: 
       
   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
       
   907 TEST_COMPLETE
       
   908 
       
   909 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0060
       
   910 //!@SYMREQ: 7951
       
   911 //!@SYMPREQ: 1540
       
   912 //!@SYMTestCaseDec: Play tone - Dual tone - Call PlayDualToneL() without calling initialize
       
   913 //!@SYMTestPriority: Normal
       
   914 //!@SYMTestType: Exception Usecase
       
   915 //!@SYMTestActions: 
       
   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
       
   922 TEST_COMPLETE
       
   923 
       
   924 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0061
       
   925 //!@SYMREQ: 7951
       
   926 //!@SYMPREQ: 1540
       
   927 //!@SYMTestCaseDec: Play tone - DTMF - Call PlayDTMFStringL()without calling initialize
       
   928 //!@SYMTestPriority: Normal
       
   929 //!@SYMTestType: Exception Usecase
       
   930 //!@SYMTestActions: 
       
   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
       
   937 TEST_COMPLETE
       
   938 
       
   939 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0062
       
   940 //!@SYMREQ: 7951
       
   941 //!@SYMPREQ: 1540
       
   942 //!@SYMTestCaseDec: Play tone - Tone sequence - Call PlayToneSequenceL() without calling initialize
       
   943 //!@SYMTestPriority: Normal
       
   944 //!@SYMTestType: Exception Usecase
       
   945 //!@SYMTestActions: 
       
   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
       
   952 TEST_COMPLETE
       
   953 
       
   954 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0063
       
   955 //!@SYMREQ: 7951
       
   956 //!@SYMPREQ: 1540
       
   957 //!@SYMTestCaseDec: Play tone - Tone sequence - Call PlayToneSequenceL() using an invalid tone sequence descriptor
       
   958 //!@SYMTestPriority: Normal
       
   959 //!@SYMTestType: Exception Usecase
       
   960 //!@SYMTestActions: 
       
   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
       
   968 TEST_COMPLETE
       
   969 
       
   970 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0009
       
   971 //!@SYMREQ: 7951
       
   972 //!@SYMPREQ: 1540
       
   973 //!@SYMTestCaseDec: Play tone configuration - Call SetVolume(..) method during paused playing tone
       
   974 //!@SYMTestPriority: Normal
       
   975 //!@SYMTestType: Alternative Usecase
       
   976 //!@SYMTestActions: 
       
   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
       
   990 TEST_COMPLETE
       
   991 
       
   992 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0032
       
   993 //!@SYMREQ: 7951
       
   994 //!@SYMPREQ: 1540
       
   995 //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities when paused
       
   996 //!@SYMTestPriority: Normal
       
   997 //!@SYMTestType: Alternative Usecase
       
   998 //!@SYMTestActions: 
       
   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
       
  1010 TEST_COMPLETE
       
  1011 
       
  1012 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0033
       
  1013 //!@SYMREQ: 7951
       
  1014 //!@SYMPREQ: 1540
       
  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
       
  1018 //!@SYMTestActions: 
       
  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
       
  1030 TEST_COMPLETE
       
  1031 
       
  1032 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0034
       
  1033 //!@SYMREQ: 7951
       
  1034 //!@SYMPREQ: 1540
       
  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
       
  1038 //!@SYMTestActions: 
       
  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
       
  1050 TEST_COMPLETE
       
  1051 
       
  1052 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0035
       
  1053 //!@SYMREQ: 7951
       
  1054 //!@SYMPREQ: 1540
       
  1055 //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve the default device volume when paused
       
  1056 //!@SYMTestPriority: Normal
       
  1057 //!@SYMTestType: Alternative Usecase
       
  1058 //!@SYMTestActions: 
       
  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
       
  1070 TEST_COMPLETE
       
  1071 
       
  1072 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0047
       
  1073 //!@SYMREQ: 7951
       
  1074 //!@SYMPREQ: 1540
       
  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
       
  1078 //!@SYMTestActions: 
       
  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
       
  1088 TEST_COMPLETE
       
  1089 
       
  1090 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0048
       
  1091 //!@SYMREQ: 7951
       
  1092 //!@SYMPREQ: 1540
       
  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
       
  1096 //!@SYMTestActions: 
       
  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
       
  1106 TEST_COMPLETE
       
  1107 
       
  1108 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0049
       
  1109 //!@SYMREQ: 7951
       
  1110 //!@SYMPREQ: 1540
       
  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
       
  1114 //!@SYMTestActions: 
       
  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
       
  1124 TEST_COMPLETE
       
  1125 
       
  1126 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0050
       
  1127 //!@SYMREQ: 7951
       
  1128 //!@SYMPREQ: 1540
       
  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
       
  1132 //!@SYMTestActions: 
       
  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
       
  1142 TEST_COMPLETE