sl@0: // sl@0: // Copyright (c) 2005-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: // sl@0: // sl@0: //! @file sl@0: //! @SYMTestSuiteName multimedia-mmf-devsoundext-stress-automated-recording sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: // sl@0: // Tests all public elements of the CMMFDevSound sl@0: // classes as a means of confidence that the APIs work as expected. sl@0: // sl@0: // The purpose is to provide a regression test suite of PublishedAll sl@0: // APIs for: CMMFDevSound sl@0: // The tests are fully automated. sl@0: // sl@0: sl@0: sl@0: sl@0: LOAD_SUITE t_devsoundext sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001 sl@0: sl@0: //!@SYMTestCaseID MULTIMEDIA-MMF-devsoundext-STRESS-AUTOMATED-RECORDING-0001 sl@0: //!@SYMAPI sl@0: //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState) sl@0: //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) sl@0: //! CMMFDevSound::Capabilities() sl@0: //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) sl@0: //! CMMFDevSound::RecordInitL() sl@0: //! CMMFDevSound::PlayInitL() sl@0: //! CMMFDevSound::Stop() sl@0: //!@SYMAuthor myanez sl@0: //!@SYMCreationDate 8/25/2008 sl@0: //!@SYMTestCaseDesc PoC call stress test sl@0: //!@SYMTestActions sl@0: //! 1. Create Devsound Instance1 sl@0: //! 2. Create Devsound Instance2 sl@0: //! 3.Replace File1 ( Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\PoCCallStressTest.amr) sl@0: //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR) sl@0: //! 5. Set Priority (Priority = {Priority,PriorityPocCallUp} ; Preference = {PriorityPreference,PriorityPreferencePocCallUp} ; PriorityState=EMMFStateRecording) sl@0: //! 6. Capabilities1 sl@0: //! 7. Set Configuration1 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) sl@0: //! 8. Open File2 (Filename = {drive,mmc}\multimedia\mmf\devsound\amr-nb\AMRNB_8k_12.2kbps_mono_speech.amr) sl@0: //! 9. Initialize Devsound2 (InitializeMode = EInitializeFourCCMode; Mode = EMMFStatePlaying; FourCC = AMR) sl@0: //! 10. Set Priority2 (Priority = {Priority,PriorityPocCallDown} ; Preference = {PriorityPreference,PriorityPreferencePocCallDown} ;; PriorityState=EMMFStatePlaying) sl@0: //! 11. Capabilities2 sl@0: //! 12. Set Configuration2 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) sl@0: //! 13. Start Record for 5 seconds sl@0: //! 14. Stop Record for 2 seconds sl@0: //! 15. Start Record for 3 seconds sl@0: //! 16. Stop Record for 4 seconds sl@0: //! 17. Start Play for 2 seconds sl@0: //! 18. Stop Play for 1 second sl@0: //! 19. Start Play for 5 seconds sl@0: //! 20. Stop Play sl@0: //! 21. Close File2 sl@0: //! 22. Destroy Devsound Instance2 sl@0: //! 23. Close File1 sl@0: //! 24.Destroy Devsound Instance1 sl@0: //!@SYMTestStatus Verified sl@0: //!@SYMTestPriority High sl@0: //!@SYMTestExpectedResults sl@0: //! Record one File with PocCallUp Priority and PocCallUp Preference.Play another File with PocCallDown Priority and PocCallDown Preference. Stop , Record and Play both Files sl@0: //!@SYMTestType sl@0: sl@0: START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-stress-automated-recording.ini sl@0: CREATE_OBJECT CMMFDevSound devsound1 sl@0: CREATE_OBJECT CMMFDevSound devsound2 sl@0: COMMAND devsound1 NewL sl@0: COMMAND devsound2 NewL sl@0: COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-ReplaceFile_command03 sl@0: COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command04 sl@0: OUTSTANDING sl@0: COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command05 sl@0: COMMAND devsound1 Capabilities sl@0: COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command07 sl@0: COMMAND devsound2 OpenFile MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-OpenFile_command08 sl@0: COMMAND devsound2 InitializeL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command09 sl@0: OUTSTANDING sl@0: COMMAND devsound2 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command10 sl@0: COMMAND devsound2 Capabilities sl@0: COMMAND devsound2 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command12 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 5000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 2000000 sl@0: COMMAND devsound1 RecordInitL sl@0: ASYNC_DELAY 3000000 sl@0: COMMAND devsound1 Stop sl@0: DELAY 4000000 sl@0: COMMAND devsound2 PlayInitL sl@0: ASYNC_DELAY 2000000 sl@0: COMMAND devsound2 Stop sl@0: DELAY 1000000 sl@0: COMMAND devsound2 PlayInitL sl@0: ASYNC_DELAY 5000000 sl@0: COMMAND devsound2 Stop sl@0: COMMAND devsound2 CloseFile sl@0: COMMAND devsound2 ~ sl@0: COMMAND devsound1 CloseFile sl@0: COMMAND devsound1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001