os/mm/mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-stress-automated-recording.script
First public contribution.
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
18 //! @SYMTestSuiteName multimedia-mmf-devsoundext-stress-automated-recording
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
21 // Tests all public elements of the CMMFDevSound
22 // classes as a means of confidence that the APIs work as expected.
24 // The purpose is to provide a regression test suite of PublishedAll
25 // APIs for: CMMFDevSound
26 // The tests are fully automated.
31 LOAD_SUITE t_devsoundext
37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001
39 //!@SYMTestCaseID MULTIMEDIA-MMF-devsoundext-STRESS-AUTOMATED-RECORDING-0001
41 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
42 //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
43 //! CMMFDevSound::Capabilities()
44 //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
45 //! CMMFDevSound::RecordInitL()
46 //! CMMFDevSound::PlayInitL()
47 //! CMMFDevSound::Stop()
49 //!@SYMCreationDate 8/25/2008
50 //!@SYMTestCaseDesc PoC call stress test
52 //! 1. Create Devsound Instance1
53 //! 2. Create Devsound Instance2
54 //! 3.Replace File1 ( Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\PoCCallStressTest.amr)
55 //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)
56 //! 5. Set Priority (Priority = {Priority,PriorityPocCallUp} ; Preference = {PriorityPreference,PriorityPreferencePocCallUp} ; PriorityState=EMMFStateRecording)
58 //! 7. Set Configuration1 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
59 //! 8. Open File2 (Filename = {drive,mmc}\multimedia\mmf\devsound\amr-nb\AMRNB_8k_12.2kbps_mono_speech.amr)
60 //! 9. Initialize Devsound2 (InitializeMode = EInitializeFourCCMode; Mode = EMMFStatePlaying; FourCC = AMR)
61 //! 10. Set Priority2 (Priority = {Priority,PriorityPocCallDown} ; Preference = {PriorityPreference,PriorityPreferencePocCallDown} ;; PriorityState=EMMFStatePlaying)
63 //! 12. Set Configuration2 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
64 //! 13. Start Record for 5 seconds
65 //! 14. Stop Record for 2 seconds
66 //! 15. Start Record for 3 seconds
67 //! 16. Stop Record for 4 seconds
68 //! 17. Start Play for 2 seconds
69 //! 18. Stop Play for 1 second
70 //! 19. Start Play for 5 seconds
73 //! 22. Destroy Devsound Instance2
75 //! 24.Destroy Devsound Instance1
76 //!@SYMTestStatus Verified
77 //!@SYMTestPriority High
78 //!@SYMTestExpectedResults
79 //! Record one File with PocCallUp Priority and PocCallUp Preference.Play another File with PocCallDown Priority and PocCallDown Preference. Stop , Record and Play both Files
82 START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-stress-automated-recording.ini
83 CREATE_OBJECT CMMFDevSound devsound1
84 CREATE_OBJECT CMMFDevSound devsound2
85 COMMAND devsound1 NewL
86 COMMAND devsound2 NewL
87 COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-ReplaceFile_command03
88 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command04
90 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command05
91 COMMAND devsound1 Capabilities
92 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command07
93 COMMAND devsound2 OpenFile MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-OpenFile_command08
94 COMMAND devsound2 InitializeL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command09
96 COMMAND devsound2 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command10
97 COMMAND devsound2 Capabilities
98 COMMAND devsound2 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command12
99 COMMAND devsound1 RecordInitL
101 COMMAND devsound1 Stop
103 COMMAND devsound1 RecordInitL
105 COMMAND devsound1 Stop
107 COMMAND devsound2 PlayInitL
109 COMMAND devsound2 Stop
111 COMMAND devsound2 PlayInitL
113 COMMAND devsound2 Stop
114 COMMAND devsound2 CloseFile
116 COMMAND devsound1 CloseFile
119 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001