os/mm/mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-validation-automated-r.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-validation-automated-r
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-VALIDATION-AUTOMATED-RECORDING-0001
39 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0001
41 //! void InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState );
42 //! CMMFAudioInput::SetAudioInputL(TAudioInputArray)
44 //!@SYMCreationDate 8/11/2008
45 //!@SYMTestCaseDesc HW limitation - Radio recording without radio playback
47 //! 1. Create DevSound instance
48 //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1)
49 //! 3. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\HwLimitRadioRecWithoutRadioPlay.pcm)
50 //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW})
51 //! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording)
53 //! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
54 //! 8. Set audio Input (AudioInput = Input_FMRadio)
55 //! 9.Start record (ExpectedRecordError = -21)
57 //! 11.Destroy AudioInput instance
58 //! 12.Destroy DevSound instance
59 //!@SYMTestStatus Verified
60 //!@SYMTestPriority High
61 //!@SYMTestExpectedResults in step 9, record return the expected error -21.
64 START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-r.ini
65 CREATE_OBJECT CMMFDevSound devsound1
66 CREATE_OBJECT CAudioInput audioinput1
67 COMMAND devsound1 NewL
68 COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-R-0001-0001-NewL_command02
69 COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-R-0001-0001-ReplaceFile_command03
70 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-R-0001-0001-InitializeL_command04
72 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-R-0001-0001-SetPrioritySettings_command05
73 COMMAND devsound1 Capabilities
74 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-R-0001-0001-SetConfigL_command07
75 COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-R-0001-0001-SetAudioInput_command08
76 COMMAND !AsyncError=-21 devsound1 RecordInitL
78 COMMAND devsound1 CloseFile
82 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0001
87 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0002
89 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0002
91 //! void InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState );
92 //! CMMFAudioInput::SetAudioInputL(TAudioInputArray)
94 //!@SYMCreationDate 8/11/2008
95 //!@SYMTestCaseDesc HW limitation - Voice call recording without any input source
97 //! 1. Create DevSound instance
98 //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1)
99 //! 3. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\HwLimitRadioRecWithoutRadioPlay.pcm)
100 //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC ={SpecialFourCC,RAW})
101 //! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording)
103 //! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
104 //! 8. Set audio Input (AudioInput = Input_VoiceCall)
105 //! 9.Start record (ExpectedRecordError = -21)
107 //! 11.Destroy AudioInput instance
108 //! 12.Destroy DevSound instance
109 //!@SYMTestStatus Verified
110 //!@SYMTestPriority High
111 //!@SYMTestExpectedResults in step 9, record return the expected error -21.
114 START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-r.ini
115 CREATE_OBJECT CMMFDevSound devsound1
116 CREATE_OBJECT CAudioInput audioinput1
117 COMMAND devsound1 NewL
118 COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-R-0002-0001-NewL_command02
119 COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-R-0002-0001-ReplaceFile_command03
120 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-R-0002-0001-InitializeL_command04
122 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-R-0002-0001-SetPrioritySettings_command05
123 COMMAND devsound1 Capabilities
124 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-R-0002-0001-SetConfigL_command07
125 COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-R-0002-0001-SetAudioInput_command08
126 COMMAND !AsyncError=-21 devsound1 RecordInitL
128 COMMAND devsound1 CloseFile
129 COMMAND audioinput1 ~
132 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0002
137 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0003
139 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0003
141 //! void InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState );
142 //! CMMFAudioInput::SetAudioInputL(TAudioInputArray)
144 //!@SYMCreationDate 8/11/2008
145 //!@SYMTestCaseDesc Audio routing - 8k mono recording from line in
147 //! 1. Create DevSound instance
148 //! 2. Create AudioInput instance (DevSoundInstanceName = devsound1)
149 //! 3. Replace file (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\RoutingRecLinein.amr)
150 //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)
151 //! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording)
153 //! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
154 //! 8. Set audio Input (AudioInput = Input_LineIn)
155 //! 9.Start record 10s
157 //! 11. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)
159 //! 13.Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
160 //! 14. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying)
161 //! 15. FileStartPosition
164 //! 18.Destroy AudioInput instance
165 //! 19.Destroy DevSound instance
166 //!@SYMTestStatus Verified
167 //!@SYMTestPriority High
168 //!@SYMTestExpectedResults in step 9, record successfully.
169 //! in step 16, play successfully.
172 START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-r.ini
173 CREATE_OBJECT CMMFDevSound devsound1
174 CREATE_OBJECT CAudioInput audioinput1
175 COMMAND devsound1 NewL
176 COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-NewL_command02
177 COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-ReplaceFile_command03
178 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-InitializeL_command04
180 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-SetPrioritySettings_command05
181 COMMAND devsound1 Capabilities
182 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-SetConfigL_command07
183 COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-SetAudioInput_command08
184 COMMAND devsound1 RecordInitL
186 COMMAND devsound1 Stop
188 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-InitializeL_command11
190 COMMAND devsound1 Capabilities
191 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-SetConfigL_command13
192 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-R-0003-0001-SetPrioritySettings_command14
193 COMMAND devsound1 FileStartPosition
194 COMMAND devsound1 PlayInitL
196 COMMAND devsound1 CloseFile
197 COMMAND audioinput1 ~
200 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-RECORDING-0003