sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // MM_A3F_DEVSOUND_CHRTZ_TONE.script sl@0: // Syntax: sl@0: // RUN_TEST_STEP , , , sl@0: // sl@0: sl@0: LOAD_SUITE char_a3f_devsound.dll sl@0: delay 10 sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0001 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set sampling rate and channel sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //2. Call SetConfigL(..) method to set Sampling Rate and iChannel to valid values. sl@0: //3. Call Config() to verify applied settings. sl@0: //!@SYMTestExpectedResults: sl@0: //SetConfigL(..) method shall be executed without error message. sl@0: PRINT Play tone configuration - Call SetConfigL(..) method to set sampling rate and channel sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0001, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0002 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetPrioritySettings(..) method to set priority sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetPrioritySettings(..) method to set iPriority to a valid value. sl@0: //!@SYMTestExpectedResults: sl@0: //SetPrioritySettings(..) method shall be executed without error message. sl@0: PRINT Play tone configuration - Call SetPrioritySettings(..) method to set priority sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0002, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0003 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - SetVolume(..) method to set volume sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise a DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetVolume(..) method. sl@0: //3. Call Volume() method to verify applied settings. sl@0: //!@SYMTestExpectedResults: sl@0: //SetVolume(..) method shall be executed without error message. sl@0: //Value returned by Volume() method shall be equal to the value set by SetVolume(..). sl@0: PRINT Play tone configuration - SetVolume(..) method to set volume sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0003, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0004 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetVolumeRamp(..) method to set volume ramp sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Initialise a DevSound instance to play tones. sl@0: //2.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //3. Call PlayToneL(). sl@0: //4. Call SetVolumeRamp(..) method to set volume ramp to valid value. sl@0: //!@SYMTestExpectedResults: sl@0: //SetVolumeRamp(..) method shall be executed without error message and the its settings shall be reflected the next time PlayToneL() is called. sl@0: PRINT Play tone configuration - Call SetVolumeRamp(..) method to set volume ramp sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0004, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0005 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions and silence between them sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise a DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetToneRepeats(..) method to set repetition and silece values between them. sl@0: //!@SYMTestExpectedResults: sl@0: //SetToneRepeats(..) method shall be executed without error message. sl@0: PRINT Play tone configuration - Call SetToneRepeats() to set tone repetitions and silence between them sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0005, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0006 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to set DTMF tone on, tone off and tone pause. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetDTMFLengths(..) method to set length (tone on, tone off, and pause) values. sl@0: //!@SYMTestExpectedResults: sl@0: //SetDTMFLengths(..) method shall be executed without error message. sl@0: PRINT Play tone configuration - Call SetDTMFLengths(..) to set DTMF tone on, tone off and tone pause. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0006, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0007 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - SetVolume(..) while tone play is in progress sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Play a tone by calling PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call SetVolume(..) method to set volume to a valid value. sl@0: //7. Call Volume() method to verify applied settings. sl@0: //!@SYMTestExpectedResults: sl@0: //SetVolume(..) is immediately applied. sl@0: PRINT Play tone configuration - SetVolume(..) while tone play is in progress sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0007 , c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0008 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - SetPlayBalance() while tone play is in progress sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance . sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Play a tone by calling PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call SetPlayBalance(..) method to set the speaker balance to valid values. sl@0: //7. Call GetPlayBalanceL() method to verify applied settings. sl@0: //!@SYMTestExpectedResults: sl@0: //SetPlayBalance(..) method while playing shall be executed without error message and its paremeters are immediately applied. sl@0: //Data retrieved by GetPlayBalance(..) method shall be equal to the value set by SetPlayBalance(..). sl@0: PRINT Play tone configuration - SetPlayBalance() while tone play is in progress sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0008, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0010 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetVolume(..) method to set volume and reinitialise for playing audio. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Initialise a DevSound instance to play tones. sl@0: //2.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call SetVolume(..) sl@0: //5. Re-initialise a DevSound instance to play audio. sl@0: //6. Call Volume() method to verify whether the volume was remembered or not. sl@0: //!@SYMTestExpectedResults: sl@0: //SetVolume(..) method shall be executed without error message. sl@0: //After reinitialisation of Devsound client, the calling of Volume() method shall return the value which was set by using SetVolume() method. sl@0: //(Volume settings shall not be modified despite DevSound client reinitialisation). sl@0: PRINT Play tone configuration - Call SetVolume(..) method to set volume and reinitialise for playing audio. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0010, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0011 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetVolumeRamp(..) method to set volume ramp sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(..). sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call SetVolumeRamp(..) method to set volume ramp to valid value sl@0: //7. Let ToneFinished() occur and play again a tone. sl@0: //!@SYMTestExpectedResults: sl@0: //SetVolumeRamp(..) method shall be executed without error message and the its settings shall be reflected the next time PlayToneL() is called. sl@0: PRINT Play tone configuration - Call SetVolumeRamp(..) method to set volume ramp sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0011, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0012 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions while playing sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call SetToneRepeats(..) method using positive values and call Cancel(). sl@0: //7. Let ToneFinished() callback occur, then re - invoke PlayToneL(). sl@0: //8. When ToneFinished callback is reached, confirm elapsed time since first tone reproduction. sl@0: //!@SYMTestExpectedResults: sl@0: //SetToneRepeats(..) method shall be executed without error message. Setting audio properties using this method do not cancel sl@0: //or change current tone play. The new settings are applied until next tone play and total reproduction time since firts tone sl@0: //reproduction has to be confirmed. sl@0: PRINT Play tone configuration - Call SetToneRepeats() to set tone repetitions while playing sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0012, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0013 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths() to set tone repetitions while playing sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones(DTMF). sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Play a tone by calling PlayDTMFStringL(). sl@0: //5. On timer event call SetDTMFLengths(..) method using positive values and call Cancel() on the timer. sl@0: //6. Let ToneFinished() callback occur, then re - invoke PlayDTMFStringL(). sl@0: //7. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //8. When ToneFinished callback is reached, confirm elapsed time since first tone(DTMF) reproduction. sl@0: //!@SYMTestExpectedResults: sl@0: //SetDTMFLengths(..) method shall be executed without error message. Setting audio properties using this method do not cancel or sl@0: //change current tone play. The new settings are applied until next tone play and total reproduction time since firts tone reproduction sl@0: //has to be confirmed. sl@0: PRINT Play tone configuration - Call SetDTMFLengths() to set tone repetitions while playing sl@0: RUN_TEST_STEP 40000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0013, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0014 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() to set tone repetitions in any other state but tone sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Initialise a DevSound instance to other available states but tone. sl@0: //2.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //3. Call SetToneRepeats(..) method using positive values. sl@0: //4. Initialise a DevSound instance to other available states but tone. sl@0: //4.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //5. Play a tone by calling PlayToneL(). sl@0: //6. When ToneFinished callback is reached, confirm elapsed time since tone reproduction. sl@0: //!@SYMTestExpectedResults: sl@0: //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. sl@0: PRINT Play tone configuration - Call SetToneRepeats() to set tone repetitions in any other state but tone sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0014, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0015 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths() to set tone repetitions in any other state but tone sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Initialise a DevSound instance to other available states but tone. sl@0: //2.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //3. Call SetDTMFLengths(..) method using positive values. sl@0: //4. Initialise a DevSound instance to other available states but tone. sl@0: //4.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //5. Play a tone by calling PlayToneL(). sl@0: //6. When ToneFinished callback is reached, confirm elapsed time since tone reproduction. sl@0: //!@SYMTestExpectedResults: sl@0: //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. sl@0: PRINT Play tone configuration - Call SetDTMFLengths() to set tone repetitions in any other state but tone sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0015, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0016 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL() while tone play is in progress sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Play a tone by calling PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call SetConfigL(..) method to set Sampling Rate to valid value. sl@0: //!@SYMTestExpectedResults: sl@0: //SetConfigL(..) method shall leave with KErrNotReady. sl@0: PRINT Play tone configuration - Call SetConfigL() while tone play is in progress sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0016, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0017 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetPrioritySettings(..) method to set priority while tone play is in progress sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Open the file to be played by the second DevSound instance. sl@0: //3. Create a CPeriodic instance. sl@0: //4. Create a second DevSound instance. sl@0: //5. Initialise the first DevSound instance to play tones. sl@0: //5.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //6. Call PlayToneL() to start playing tones and call SetPrioritySettings() to set the first devsound´s priority to the highest value. sl@0: //7. Start CPeriodic to trigger timed events with a period of 2 seconds.(Timer events must laste less than tone duration.) sl@0: //8. On timer event, initialise the second devsound instance, set its priority to the highest value, and play an audio file. sl@0: //!@SYMTestExpectedResults: sl@0: //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 sl@0: PRINT Play tone configuration - Call SetPrioritySettings(..) method to set priority while tone play is in progress sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0017, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0018 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set a sample rate with sequence data properties not supported by the tone generator sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetConfigL(..) method to set Sampling Rate to invalid values. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrArgument or KErrNotSupported. sl@0: PRINT Play tone configuration - Call SetConfigL(..) method to set a sample rate with sequence data properties not supported by the tone generator sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0018, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0019 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetConfigL(..) method to set a channel encoding to unsupported value sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetConfigL(..) method to set iChannel to invalid values. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrArgument or KErrNotSupported. sl@0: PRINT Play tone configuration - Call SetConfigL(..) method to set a channel encoding to unsupported value sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0019, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0020 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to using negative values sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to record audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetDTMFLengths(..) to set lengths to negative values (aToneOnLength must be diferent to -1.) sl@0: //3. Play a DTMF tone. sl@0: //4. When ToneFinished() callback is reached, confirm elapsed time since first tone reproduction. sl@0: //!@SYMTestExpectedResults: sl@0: //After setting the DTMF lengths by calling SetDTMFLengths(..), the reproduction time shall be confirmed to tend to 0 sl@0: PRINT Play tone configuration - Call SetDTMFLengths(..) to using negative values sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0020, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0021 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetDTMFLengths(..) to using negative values sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call SetDTMFLengths(..) to set lengths to positive except ToneOnLenght(aToneOnLength must be equal to -1.) sl@0: //5. Call PlayDTMFStringL(). sl@0: //!@SYMTestExpectedResults: sl@0: //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. sl@0: PRINT Play tone configuration - Call SetDTMFLengths(..) to using negative values sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0021, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0022 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() using a negative RepeatCount sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to record audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call SetToneRepeats(..) to set lengths to negative values (aRepeatCount must be diferent to KMdaRepeatForever.) sl@0: //3. Play a tone by calling PlayToneL(..). sl@0: //4. When ToneFinished() callback is reached, confirm elapsed time since first tone reproduction. sl@0: //!@SYMTestExpectedResults: sl@0: //SetToneRepeats(..) method shall be executed without error message. After calling SetToneRepeats(..), the total reproduction time should tend to 0. sl@0: PRINT Play tone configuration - Call SetToneRepeats() using negative argumets sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0022, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0023 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetToneRepeats() using negative RepeatCount sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call SetToneRepeats(..) to set RepeatCount to negative (KMdaRepeatForever). sl@0: //5. Play a tone by calling PlayToneL(..). sl@0: //6. Start CPeriodic to trigger timed events with a period of 10 seconds. sl@0: //!@SYMTestExpectedResults: sl@0: //SetToneRepeats(..) method shall be executed without error message. If ToneFinished() is reached before timer event, then the test should fail. sl@0: PRINT Play tone configuration - Call SetToneRepeats() using negative RepeatCount sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0023, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0024 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call Capabilities() method to get all supported sample rates and channel encodings. sl@0: //!@SYMTestExpectedResults: sl@0: //Capabilities() method shall retrieve a set of supported capabilities. sl@0: PRINT Play tone query - Call Capabilities() to retrieve all the supported capabilities sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0024, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0025 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Config() to retrieve the default capabilities, sampling rate and channel encoding used sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1.Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2.Call Config() method to get Sampling Rate and iChannel encoding. sl@0: //!@SYMTestExpectedResults: sl@0: //Config() method shall retrieve current default sample rate and channel encoding. sl@0: PRINT Play tone query - Call Config() to retrieve the default capabilities, sampling rate and channel encoding used sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0025, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0026 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call MaxVolume() to retrieve the max volume suported by the device sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call MaxVolume() method to get maximum volume for current device. sl@0: //!@SYMTestExpectedResults: sl@0: //MaxVolume() method shall retrieve the max device´s volume. sl@0: PRINT Play tone query - Call MaxVolume() to retrieve the max volume suported by the device sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0026, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0027 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve default device volume sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call Volume(..) method to get current volume value. sl@0: //!@SYMTestExpectedResults: sl@0: //Volume() shall retrieve the current device volume. sl@0: PRINT Play tone query - Call Volume() to retrieve default device volume sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0027, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0028 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities while playing sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call Capabilities() method to get all supported sample rates and channel encodings while tone play is in progress. sl@0: //!@SYMTestExpectedResults: sl@0: //Capabilities() method shall retrieve a set of supported capabilities. sl@0: PRINT Play tone query - Call Capabilities() to retrieve all the supported capabilities while playing sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0028, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0029 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding used while playing sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call Config() method to get Sampling Rate and iChannel encoding while tone play is in progress. sl@0: //!@SYMTestExpectedResults: sl@0: //Config() method shall retrieve current sample rate and channel encoding. sl@0: PRINT Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding used while playing sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0029, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0030 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call MaxVolume() to retrieve the max volume suported by the device while playing sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call MaxVolume() method to get maximum volume for current device while tone play is in progress. sl@0: //!@SYMTestExpectedResults: sl@0: //MaxVolume() method shall retrieve the max device´s volume. sl@0: PRINT Play tone query - Call MaxVolume() to retrieve the max volume suported by the device while playing sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0030, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0031 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve the default device volume while playing sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event call Volume(..) method to get current volume value while tone play is in progress. sl@0: //!@SYMTestExpectedResults: sl@0: //Volume() shall retrieve the current device volume. sl@0: PRINT Play tone query - Call Volume() to retrieve the default device volume while playing sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0031, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0036 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Call PlayToneL() to play a tone sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call PlayToneL() method. sl@0: //2.1 Wait for ToneFinished() callback. sl@0: //!@SYMTestExpectedResults: sl@0: //Tone once shall be played. sl@0: //ToneFinished(KErrUnderFlow) callback shall be received. sl@0: PRINT Play tone - Call PlayToneL() to play a tone sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0036, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0037 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Call PlayDualToneL() to play a dual tone sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call PlayDualToneL() method. sl@0: //2.1 Wait for ToneFinished() callback. sl@0: //!@SYMTestExpectedResults: sl@0: //Dual tone shall be played. sl@0: //ToneFinished(KErrUnderFlow) callback shall be received sl@0: PRINT Play tone - Call PlayDualToneL() to play a dual tone sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0037, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0038 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Call PlayDTMFStringL() to play a dual tone multi frequency string sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call PlayDTMFStringL() method with DTMFString = 01234, 56789, ABCDEF#* sl@0: //2.1 Wait for ToneFinished() callback. sl@0: //!@SYMTestExpectedResults: sl@0: //DTMF string shall be played. sl@0: //ToneFinished(KErrUnderFlow) callback shall be received sl@0: PRINT Play tone - Call PlayDTMFStringL() to play a dual tone multi frequency string sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0038, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0039 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Call PlayToneSequenceL() to play a tone sequence. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call PlayToneSequenceL() method sl@0: //2.1 Wait for ToneFinished() callback. sl@0: //!@SYMTestExpectedResults: sl@0: //Tone sequence shall be played. sl@0: //ToneFinished(KErrUnderFlow) callback shall be received. sl@0: PRINT Play tone - Call PlayToneSequenceL() to play a tone sequence. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0039, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0040 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Once - New tone request. The client wants to play new tone while there is one already playing. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Start the CPeriodic object. sl@0: //5. Call PlayToneL(). sl@0: //6. After a 2 second periodic timer event, play another tone using the same DevSound instance. sl@0: //7. Wait for the ToneFinished() callback. sl@0: //!@SYMTestExpectedResults: sl@0: //First tone request shall be played. DevSound silently ignores the second tone play request. sl@0: //New tone play request do not cancels the current tone play. sl@0: PRINT Play tone - Once - New tone request. The client wants to play new tone while there is one already playing. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0040, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0043 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Once - Stop. The client wants to play a tone for a while and stop it. DevSound is initialized sl@0: //to tone play after Stop. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Play a tone using PlayToneL().(For testing purposes, the tone should last more than the timer event) sl@0: //4. On the timer event, after one second, call Stop() to stop the ongoing play tone operation. sl@0: //5. Again play a tone using PlayToneL(). sl@0: //!@SYMTestExpectedResults: sl@0: //Tone play is stopped and DevSound goes to “Initialized to Play Tone” state, second tone request is accepted. sl@0: //Stop() is synchronous and it should not invoke callbacks through MDevSoundObserver. sl@0: 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. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0043, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0044 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Dual tone - Stop. The client wants to play a dual tone for a while and stop it. sl@0: //DevSound is initialized to tone play after Stop. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Call PlayDualToneL(). (For testing purposes, the tone should last more than the timer event) sl@0: //4. On the timer event, after one second, call Stop() to stop the ongoing operation. sl@0: //5. Again play a tone using PlayDualToneL(). sl@0: //!@SYMTestExpectedResults: sl@0: //Tone play is stopped and DevSound goes to “Initialized to Play Tone” state, second tone request is accepted. sl@0: //Stop() is synchronous and it should not invoke callbacks through MDevSoundObserver. sl@0: PRINT Play tone - Dual tone - Stop. The client wants to play a dual tone for a while and stop it. sl@0: //DevSound is initialized to tone play after Stop. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0044, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0045 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@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. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Call PlayDTMFStringL() method with DTMFString = 01234, 56789, ABCDEF#*. sl@0: //4. On the timer event, after one second, call Stop() to stop the ongoing operation. sl@0: //5. Again play a tone using PlayDTMFStringL(). sl@0: //!@SYMTestExpectedResults: sl@0: //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. sl@0: 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. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0045, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0046 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@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. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Call PlayToneSequenceL() method. (For testing purposes, the tone should last more than the timer event) sl@0: //4. On the timer event, after one second, call Stop() to stop the ongoing operation. sl@0: //5. Again play a tone using PlayToneSequenceL(). sl@0: //!@SYMTestExpectedResults: sl@0: //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. sl@0: 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. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0046, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0051 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Once- Call InitializeL() using EMMFStatePlaying sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for playing audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayToneL() is called when InitializeL() was called using EMMFStatePlaying value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - Once- Call InitializeL() using EMMFStatePlaying sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0051, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0052 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Dual tone - Call InitializeL() using EMMFStatePlaying sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for playing audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayDualToneL() called when InitializeL() was called using EMMFStatePlaying value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - Dual tone - Call InitializeL() using EMMFStatePlaying sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0052, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0053 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - DTMF - Call InitializeL() using EMMFStatePlaying sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for playing audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayDTMFStringL() called when InitializeL() was called using EMMFStatePlaying value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - DTMF - Call InitializeL() using EMMFStatePlaying sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0053, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0054 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Tone sequence - Call InitializeL() using EMMFStatePlaying sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for playing audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayToneSequenceL() is called when InitializeL() was called using EMMFStatePlaying value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - Tone sequence - Call InitializeL() using EMMFStatePlaying sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0054, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0055 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Once - Call InitializeL() using EMMFStateRecording sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for recording audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayToneL() is called when InitializeL() was called using EMMFStateRecording value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - Once - Call InitializeL() using EMMFStateRecording sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0055, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0056 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Dual tone - Call InitializeL() using EMMFStateRecording sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for recording audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayDualToneL() called when InitializeL() was called using EMMFStateRecording value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - Dual tone - Call InitializeL() using EMMFStateRecording sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0056, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0057 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - DTMF - Call InitializeL() using EMMFStateRecording sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for recording audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayDTMFStringL() called when InitializeL() was called using EMMFStateRecording value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - DTMF - Call InitializeL() using EMMFStateRecording sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0057, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0058 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Tone sequence - Call InitializeL() using EMMFStateRecording sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for recording audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. PlayToneSequenceL() is called when InitializeL() was called using EMMFStateRecording value. sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotSupported. sl@0: PRINT Play tone - Tone sequence - Call InitializeL() using EMMFStateRecording sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0058, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0059 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Once - Call PlayToneL() without calling initialize sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance, but do not Initialize it. sl@0: //2. Call PlayToneL(). sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotReady. sl@0: PRINT Play tone - Once - Call PlayToneL() without calling initialize sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0059, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0060 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Dual tone - Call PlayDualToneL() without calling initialize sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance, but do not Initialize it. sl@0: //2. Call PlayDualToneL(). sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotReady. sl@0: PRINT Play tone - Dual tone - Call PlayDualToneL() without calling initialize sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0060, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0061 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - DTMF - Call PlayDTMFStringL()without calling initialize sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance, but do not Initialize it. sl@0: //2. Call PlayDTMFStringL(). sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotReady. sl@0: PRINT Play tone - DTMF - Call PlayDTMFStringL()without calling initialize sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0061, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0062 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Tone sequence - Call PlayToneSequenceL() without calling initialize sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance, but do not Initialize it. sl@0: //2. Call PlayToneSequenceL(). sl@0: //!@SYMTestExpectedResults: sl@0: //It leaves with KErrNotReady. sl@0: PRINT Play tone - Tone sequence - Call PlayToneSequenceL() without calling initialize sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0062, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0063 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Tone sequence - Call PlayToneSequenceL() using an invalid tone sequence descriptor sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance for playing tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Call PlayToneSequenceL() method using an invalid tone sequence descriptor. sl@0: //!@SYMTestExpectedResults: sl@0: //A ToneFinished(KErrCorrupt) callback is received. sl@0: PRINT Play tone - Tone sequence - Call PlayToneSequenceL() using an invalid tone sequence descriptor sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0063, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0009 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone configuration - Call SetVolume(..) method during paused playing tone sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Play a tone.(For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events every 2 seconds. sl@0: //6. On timer event pause DevSound client, then call SetVolume(..). sl@0: //7. Call Volume() method to verify current device volume value during the playback. sl@0: //!@SYMTestExpectedResults: sl@0: //SetVolume(..) method shall be executed without error message. sl@0: //Value returned from Volume() method shall be equal to the value set by SetVolume(..). sl@0: PRINT Play tone configuration - Call SetVolume(..) method during paused playing tone sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0009, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0032 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Capabilities() to retrieve all the supported capabilities when paused sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event, after calling Pause(), invoke Capabilities() method to get all supported sample rates and channel encodings. sl@0: //!@SYMTestExpectedResults: sl@0: //Capabilities() method shall retrieve a set of supported capabilities. sl@0: PRINT Play tone query - Call Capabilities() to retrieve all the supported capabilities when paused sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0032, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0033 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding when paused sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event, after calling Pause(), invoke Config() method to get Sampling Rate and iChannel encoding. sl@0: //!@SYMTestExpectedResults: sl@0: //Config() method shall retrieve current sample rate and channel encoding. sl@0: PRINT Play tone query - Call Config() to retrieve the current capabilities, sampling rate and channel encoding when paused sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0033, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0034 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call MaxVolume() to retrieve the max volume suported by the device when paused sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event, after calling Pause(), invoke MaxVolume() method to get the maximum volume for current device. sl@0: //!@SYMTestExpectedResults: sl@0: //MaxVolume() method shall retrieve the max device´s volume. sl@0: PRINT Play tone query - Call MaxVolume() to retrieve the max volume suported by the device when paused sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0034, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0035 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone query - Call Volume() to retrieve the default device volume when paused sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //4. Call PlayToneL(). (For testing purposes, the tone should last more than the first timer event) sl@0: //5. Start CPeriodic to trigger timed events with a period of 2 seconds. sl@0: //6. On timer event, after calling Pause(), invoke Volume(..) method to get current volume value while tone play is in progress. sl@0: //!@SYMTestExpectedResults: sl@0: //Volume() shall retrieve the current device volume. sl@0: PRINT Play tone query - Call Volume() to retrieve the default device volume when paused sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0035, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0047 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Once - Pause. The client wants to play a tone for a while and pause it. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Call PlayToneL() method. (For testing purposes, the tone should last more than the timer event) sl@0: //4. On the timer event, after two second, call Pause() to pause the ongoing operation. sl@0: //!@SYMTestExpectedResults: sl@0: //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state. sl@0: PRINT Play tone - Once - Pause. The client wants to play a tone for a while and pause it. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0047, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0048 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Dual tone - Pause. The client wants to play a dual tone for a while and pause it. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Call PlayDualToneL() method. (For testing purposes, the tone should last more than the timer event) sl@0: //4. On the timer event, after 2 seconds, call Pause() to pause the ongoing operation. sl@0: //!@SYMTestExpectedResults: sl@0: //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state. sl@0: PRINT Play tone - Dual tone - Pause. The client wants to play a dual tone for a while and pause it. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0048, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0049 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - DTMF - Pause. The client wants to play a DTMF string for a while and pause it. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Call PlayDTMFStringL() method with DTMFString = 01234, 56789, ABCDEF#*. sl@0: //4. On the timer event, after two second, call Pause() to pause the ongoing operation. sl@0: //!@SYMTestExpectedResults: sl@0: //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state. sl@0: PRINT Play tone - DTMF - Pause. The client wants to play a DTMF string for a while and pause it. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0049, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-TONE-0050 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone - Tone sequence - Pause. The client wants to play a tone sequence and pause it. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. Create and start a CPeriodic object. sl@0: //3. Call PlayToneSequenceL() method. (For testing purposes, the tone should last more than the timer event) sl@0: //4. On the timer event, after two second, call Pause() to pause the ongoing operation. sl@0: //!@SYMTestExpectedResults: sl@0: //Tone play is paused at current playing tone position. DevSound goes to “Pause Playing Tone” state. sl@0: PRINT Play tone - Tone sequence - Pause. The client wants to play a tone sequence and pause it. sl@0: RUN_TEST_STEP 15000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-TONE-0050, c:\mm_a3f_devsound_play_tone.ini sl@0: TEST_COMPLETE