|
1 // |
|
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". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 // |
|
17 //! @file |
|
18 //! @SYMTestSuiteName multimedia-mmf-devsoundext-validation-automated-p |
|
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM. |
|
20 // |
|
21 // Tests all public elements of the CMMFDevSound |
|
22 // classes as a means of confidence that the APIs work as expected. |
|
23 // |
|
24 // The purpose is to provide a regression test suite of PublishedAll |
|
25 // APIs for: CMMFDevSound |
|
26 // The tests are fully automated. |
|
27 // |
|
28 |
|
29 |
|
30 |
|
31 LOAD_SUITE t_devsoundext |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0013 |
|
38 |
|
39 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0013 |
|
40 //!@SYMAPI |
|
41 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState) |
|
42 //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref}) |
|
43 //! CMMFDevSound::Capabilities() |
|
44 //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref}) |
|
45 //! CMMFDevSound::PlayInitL() |
|
46 //! CMMFDevSound::Stop() |
|
47 //! |
|
48 //!@SYMAuthor fperez |
|
49 //!@SYMCreationDate 7/28/2008 |
|
50 //!@SYMTestCaseDesc G.729AB playback unexpected events |
|
51 //!@SYMTestActions |
|
52 //! 1. Create Devsound instance |
|
53 //! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = G729) |
|
54 //! 3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality};PriorityState=EMMFStatePlaying) |
|
55 //! 4. Capabilities |
|
56 //! 5. Set Configuration(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) |
|
57 //! 6. Stop 5 seconds |
|
58 //! 7. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\G729AB\G729AB_8k_8kbps_mono_dtx_on.bin) |
|
59 //! 8. Play 10 seconds |
|
60 //! 9. Stop for 5 seconds (Pause=TRUE) |
|
61 //! 10. FileStartPosition |
|
62 //! 11. Stop 5 seconds |
|
63 //! 12. Stop for 5 seconds (Pause=TRUE) |
|
64 //! 13. Play 10 seconds |
|
65 //! 14. Stop |
|
66 //! 15. CloseFile |
|
67 //! 16. Delete devsound instance |
|
68 //!@SYMTestStatus Verified |
|
69 //!@SYMTestPriority High |
|
70 //!@SYMTestExpectedResults |
|
71 //! Plays a G.729AB file with unexpected events. A stop ocurrs before the play |
|
72 //!@SYMTestType CIT |
|
73 |
|
74 START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-p.ini |
|
75 CREATE_OBJECT CMMFDevSound devsound1 |
|
76 COMMAND devsound1 NewL |
|
77 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-InitializeL_command02 |
|
78 OUTSTANDING |
|
79 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-SetPrioritySettings_command03 |
|
80 COMMAND devsound1 Capabilities |
|
81 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-SetConfigL_command05 |
|
82 COMMAND devsound1 Stop |
|
83 DELAY 5000000 |
|
84 COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-OpenFile_command07 |
|
85 COMMAND devsound1 PlayInitL |
|
86 ASYNC_DELAY 10000000 |
|
87 COMMAND devsound1 Stop MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-Stop_command09 |
|
88 DELAY 5000000 |
|
89 COMMAND devsound1 FileStartPosition |
|
90 COMMAND devsound1 Stop |
|
91 DELAY 5000000 |
|
92 COMMAND devsound1 Stop MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-Stop_command12 |
|
93 DELAY 5000000 |
|
94 COMMAND devsound1 PlayInitL |
|
95 ASYNC_DELAY 10000000 |
|
96 COMMAND devsound1 Stop |
|
97 COMMAND devsound1 CloseFile |
|
98 COMMAND devsound1 ~ |
|
99 END_TEST_BLOCK |
|
100 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0013 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0016 |
|
106 |
|
107 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0016 |
|
108 //!@SYMAPI |
|
109 //! void InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState ) |
|
110 //!@SYMAuthor jpacho |
|
111 //!@SYMCreationDate 8/11/2008 |
|
112 //!@SYMTestCaseDesc Audio routing - Audio playback with different output preferences |
|
113 //!@SYMTestActions |
|
114 //! 1. Create DevSound instance |
|
115 //! 2. Create AudioOutput instance (DevSoundInstanceName = devsound1) |
|
116 //! 3. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3) |
|
117 //! 4. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) |
|
118 //! 5. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) |
|
119 //! 6. Capabilities |
|
120 //! 7. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) |
|
121 //! 8. Set audio output (AudioOutput = Output_Public) |
|
122 //! 9.Start play for 10s |
|
123 //! 10. Set audio output (AudioOutput = Output_Private) .5 |
|
124 //! 11. Set audio output (AudioOutput = Output_NoOutput) .5 |
|
125 //! 12. Set audio output (AudioOutput = Output_Public) .5 |
|
126 //! 13. Set audio output (AudioOutput = Output_Private) .5 |
|
127 //! 14. Set audio output (AudioOutput = Output_Public) 1s |
|
128 //! 15. Stop playing |
|
129 //! 16. Close file |
|
130 //! 17. Destroy AudioOutput instance |
|
131 //! 18. Destroy DevSound instance |
|
132 //!@SYMTestStatus Verified |
|
133 //!@SYMTestPriority High |
|
134 //!@SYMTestExpectedResults step 9 play the sound without error callback. |
|
135 //! All the setting steps execute successufully. |
|
136 //!@SYMTestType CIT |
|
137 |
|
138 START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-p.ini |
|
139 CREATE_OBJECT CMMFDevSound devsound1 |
|
140 CREATE_OBJECT CAudioOutput audiooutput1 |
|
141 COMMAND devsound1 NewL |
|
142 COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-NewL_command02 |
|
143 COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-OpenFile_command03 |
|
144 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-InitializeL_command04 |
|
145 OUTSTANDING |
|
146 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetPrioritySettings_command05 |
|
147 COMMAND devsound1 Capabilities |
|
148 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetConfigL_command07 |
|
149 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command08 |
|
150 COMMAND devsound1 PlayInitL |
|
151 ASYNC_DELAY 10000000 |
|
152 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command10 |
|
153 DELAY 500000 |
|
154 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command11 |
|
155 DELAY 500000 |
|
156 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command12 |
|
157 DELAY 500000 |
|
158 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command13 |
|
159 DELAY 500000 |
|
160 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command14 |
|
161 DELAY 1000000 |
|
162 COMMAND devsound1 Stop |
|
163 DELAY 5000000 |
|
164 COMMAND devsound1 CloseFile |
|
165 COMMAND audiooutput1 ~ |
|
166 COMMAND devsound1 ~ |
|
167 END_TEST_BLOCK |
|
168 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0016 |
|
169 |
|
170 |
|
171 |
|
172 |
|
173 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0017 |
|
174 |
|
175 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0017 |
|
176 //!@SYMAPI |
|
177 //! void InitializeL(MDevSoundObserver {ref},TFourCC , TMMFState ) |
|
178 //!@SYMAuthor jpacho |
|
179 //!@SYMCreationDate 8/11/2008 |
|
180 //!@SYMTestCaseDesc Audio routing - Audio playback with different output preferences when accessory is used |
|
181 //!@SYMTestActions |
|
182 //! 1. Create DevSound instance |
|
183 //! 2. Create AudioOutput instance (DevSoundInstanceName = devsound1) |
|
184 //! 3. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3) |
|
185 //! 4. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3) |
|
186 //! 5. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying) |
|
187 //! 6. Capabilities |
|
188 //! 7. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz) |
|
189 //! 8. Set audio output (AudioOutput = Output_Private) |
|
190 //! 9.Start play for 10s |
|
191 //! 10. Set audio output (AudioOutput = Output_Public) .5 |
|
192 //! 11. Set audio output (AudioOutput = Output_NoOutput) .5 |
|
193 //! 12. Set audio output (AudioOutput = Output_Private) .5 |
|
194 //! 13. Set audio output (AudioOutput = Output_All) .5 |
|
195 //! 14. Set audio output (AudioOutput = Output_Private) 1s |
|
196 //! 15. Stop playing |
|
197 //! 16. Close file |
|
198 //! 17. Destroy AudioOutput instance |
|
199 //! 18. Destroy DevSound instance |
|
200 //!@SYMTestStatus Verified |
|
201 //!@SYMTestPriority High |
|
202 //!@SYMTestExpectedResults step 9 play the sound without error callback. |
|
203 //! All the setting steps execute successufully. |
|
204 //!@SYMTestType CIT |
|
205 |
|
206 START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-p.ini |
|
207 CREATE_OBJECT CMMFDevSound devsound1 |
|
208 CREATE_OBJECT CAudioOutput audiooutput1 |
|
209 COMMAND devsound1 NewL |
|
210 COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-NewL_command02 |
|
211 COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-OpenFile_command03 |
|
212 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-InitializeL_command04 |
|
213 OUTSTANDING |
|
214 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetPrioritySettings_command05 |
|
215 COMMAND devsound1 Capabilities |
|
216 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetConfigL_command07 |
|
217 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command08 |
|
218 COMMAND devsound1 PlayInitL |
|
219 ASYNC_DELAY 10000000 |
|
220 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command10 |
|
221 DELAY 500000 |
|
222 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command11 |
|
223 DELAY 500000 |
|
224 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command12 |
|
225 DELAY 500000 |
|
226 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command13 |
|
227 DELAY 500000 |
|
228 COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command14 |
|
229 DELAY 1000000 |
|
230 COMMAND devsound1 Stop |
|
231 DELAY 5000000 |
|
232 COMMAND devsound1 CloseFile |
|
233 COMMAND audiooutput1 ~ |
|
234 COMMAND devsound1 ~ |
|
235 END_TEST_BLOCK |
|
236 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0017 |