|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // MM_A3F_DEVSOUND_CHRTZ_INIT.script |
|
15 // Syntax: |
|
16 // RUN_TEST_STEP <timeout>, <test suite>, <test step>, <configuration file.ini> |
|
17 // |
|
18 |
|
19 LOAD_SUITE char_a3f_devsound.dll |
|
20 delay 1000 |
|
21 |
|
22 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0001 |
|
23 //!@SYMREQ: 7951 |
|
24 //!@SYMPREQ: 1540 |
|
25 //!@SYMTestCaseDec: Play tone initialisation - Call InitializeL() to initialise for playing tones |
|
26 //!@SYMTestPriority: Normal |
|
27 //!@SYMTestType: Normal Usecase |
|
28 //!@SYMTestActions: |
|
29 //1. Create and initialise DevSound instance to play tones. |
|
30 //1.1 Wait for InitializeComplete(KErrNone) callback response. |
|
31 //!@SYMTestExpectedResults: |
|
32 //DevSound instance was created and initialised to play tones. |
|
33 //InitializeComplete(KErrNone) callback was received. |
|
34 PRINT Play tone initialisation - Call InitializeL() to initialise for playing tones |
|
35 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0001, c:\mm_a3f_devsound_init.ini |
|
36 TEST_COMPLETE |
|
37 |
|
38 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0002 |
|
39 //!@SYMREQ: 7951 |
|
40 //!@SYMPREQ: 1540 |
|
41 //!@SYMTestCaseDesc: Play tone initialisation - Call CancelInitialize() to abort initialisation for tones |
|
42 //!@SYMTestPriority: Normal |
|
43 //!@SYMTestType: Alternative Usecase |
|
44 //!@SYMTestActions: |
|
45 //1. Create a Devsound instance. |
|
46 //2. Create a CPeriodic instance. |
|
47 //3. Initialise a DevSound instance to play tones. |
|
48 //4. Start CPeriodic to trigger timer events. |
|
49 //5. Call CancelInitialize() before receiving InitializeComplete() callback. |
|
50 //6. Wait 2 seconds to verify that InitializeComplete() callback is not received. |
|
51 //!@SYMTestExpectedResults: |
|
52 //CancelInitialize() returns KErrNone. InitializeComplete() callback shall be not received. |
|
53 PRINT Play tone initialisation - Call CancelInitialize() to abort initialisation for tones |
|
54 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0002, c:\mm_a3f_devsound_init.ini |
|
55 TEST_COMPLETE |
|
56 |
|
57 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0003 |
|
58 //!@SYMREQ: 7951 |
|
59 //!@SYMPREQ: 1540 |
|
60 //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to play tones |
|
61 //!@SYMTestPriority: Normal |
|
62 //!@SYMTestType: Alternative Usecase |
|
63 //!@SYMTestActions: |
|
64 //1. Create and initialise DevSound instance to play tones. |
|
65 //2. After InitializeComplete() callback is received, initialise DevSound to play tones. |
|
66 //!@SYMTestExpectedResults: |
|
67 //DevSound instance was created and initialised to play tones. |
|
68 //InitializeComplete(KErrNone) callback was received. |
|
69 PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to play tones |
|
70 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0003, c:\mm_a3f_devsound_init.ini |
|
71 TEST_COMPLETE |
|
72 |
|
73 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0004 |
|
74 //!@SYMREQ: 7951 |
|
75 //!@SYMPREQ: 1540 |
|
76 //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to play audio |
|
77 //!@SYMTestPriority: Normal |
|
78 //!@SYMTestType: Alternative Usecase |
|
79 //!@SYMTestActions: |
|
80 //1. Create and initialise DevSound instance to play tones. |
|
81 //2. After InitializeComplete() callback is received, initialise DevSound to play audio. |
|
82 //!@SYMTestExpectedResults: |
|
83 //DevSound instance was created and initialised to play audio. |
|
84 //InitializeComplete(KErrNone) callback was received. |
|
85 PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to play audio |
|
86 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0004, c:\mm_a3f_devsound_init.ini |
|
87 TEST_COMPLETE |
|
88 |
|
89 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0005 |
|
90 //!@SYMREQ: 7951 |
|
91 //!@SYMPREQ: 1540 |
|
92 //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to record audio |
|
93 //!@SYMTestPriority: Normal |
|
94 //!@SYMTestType: Alternative Usecase |
|
95 //!@SYMTestActions: |
|
96 //1. Create and initialize DevSound instance to play tones. |
|
97 //2. After InitializeComplete() callback is received, initialise DevSound to record audio. |
|
98 //!@SYMTestExpectedResults: |
|
99 //DevSound instance was created and initialised to record audio. |
|
100 //InitializeComplete(KErrNone) callback was received. |
|
101 PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to record audio |
|
102 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0005, c:\mm_a3f_devsound_init.ini |
|
103 TEST_COMPLETE |
|
104 |
|
105 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0006 |
|
106 //!@SYMREQ: 7951 |
|
107 //!@SYMPREQ: 1540 |
|
108 //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones using aTFourCC parameter |
|
109 //!@SYMTestPriority: Normal |
|
110 //!@SYMTestType: Exception Usecase |
|
111 //!@SYMTestActions: |
|
112 //1. Create a DevSound instance. |
|
113 //2. Initialise DevSound to play tones using InitializeL() with aTFourCC parameter. |
|
114 //!@SYMTestExpectedResults: |
|
115 //DevSound instance was created. |
|
116 //InitializeL() leaves with a KErrNotSupported. |
|
117 PRINT Play tone initialisation - Call InitializeL() to play tones using aTFourCC parameter |
|
118 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0006, c:\mm_a3f_devsound_init.ini |
|
119 TEST_COMPLETE |
|
120 |
|
121 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0007 |
|
122 //!@SYMREQ: 7951 |
|
123 //!@SYMPREQ: 1540 |
|
124 //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() using a TMMFState parameter different |
|
125 //to EMMFStateTonePlaying, EMMFStatePlaying or EMMFStateRecording. |
|
126 //!@SYMTestPriority: Normal |
|
127 //!@SYMTestType: Exception Usecase |
|
128 //!@SYMTestActions: |
|
129 //1. Create a DevSound instance. |
|
130 //2. Initialise DevSound using a mode parameter different to EMMFStateTonePlaying, EMMFStatePlaying or |
|
131 //EMMFStateRecording. Use ""EMMFStateConverting"" mode in initialisation. |
|
132 //!@SYMTestExpectedResults: |
|
133 //DevSound instance was created. |
|
134 //InitializeL() leaves with a KErrNotSupported. |
|
135 PRINT Play tone initialisation - Call InitializeL() using a TMMFState parameter different to EMMFStateTonePlaying, EMMFStatePlaying or EMMFStateRecording. |
|
136 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0007, c:\mm_a3f_devsound_init.ini |
|
137 TEST_COMPLETE |
|
138 |
|
139 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0008 |
|
140 //!@SYMREQ: 7951 |
|
141 //!@SYMPREQ: 1540 |
|
142 //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio |
|
143 //!@SYMTestPriority: Normal |
|
144 //!@SYMTestType: Normal Usecase |
|
145 //!@SYMTestActions: |
|
146 //1. Create and initialise DevSound instance to play audio. |
|
147 //1.1 Wait for InitializeComplete(KErrNone) callback response. |
|
148 //!@SYMTestExpectedResults: |
|
149 //DevSound instance was created and initialised to play audio. |
|
150 //InitializeComplete(KErrNone) callback was received. |
|
151 PRINT Play audio initialisation - Call InitializeL() to play audio |
|
152 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0008, c:\mm_a3f_devsound_init.ini |
|
153 TEST_COMPLETE |
|
154 |
|
155 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0009 |
|
156 //!@SYMREQ: 7951 |
|
157 //!@SYMPREQ: 1540 |
|
158 //!@SYMTestCaseDesc: Play audio initialisation - Call CancelInitialize() to abort initialisation |
|
159 //for playing audio |
|
160 //!@SYMTestPriority: Normal |
|
161 //!@SYMTestType: Alternative Usecase |
|
162 //!@SYMTestActions: |
|
163 //1. Create a Devsound instance. |
|
164 //2. Create a CPeriodic instance. |
|
165 //3. Initialise a DevSound instance to play audio. |
|
166 //4. Start CPeriodic to trigger timer events every 2 seconds. |
|
167 //5. Call CancelInitialize() before receiving InitializeComplete() callback . |
|
168 //6. On timer event, verify that InitializeComplete() callback was not received. |
|
169 //!@SYMTestExpectedResults: |
|
170 //CancelInitialize() returns KErrNone. |
|
171 //InitializeComplete(KErrNone) callback shall be not received. |
|
172 PRINT Play audio initialisation - Call CancelInitialize() to abort initialisation for playing audio |
|
173 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0009, c:\mm_a3f_devsound_init.ini |
|
174 TEST_COMPLETE |
|
175 |
|
176 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0010 |
|
177 //!@SYMREQ: 7951 |
|
178 //!@SYMPREQ: 1540 |
|
179 //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to play tones |
|
180 //!@SYMTestPriority: Normal |
|
181 //!@SYMTestType: Alternative Usecase |
|
182 //!@SYMTestActions: |
|
183 //1. Create and Initialise a DevSound instance to play audio. |
|
184 //1.1 Wait for InitializeComplete(KErrNone) callback response. |
|
185 //2. After InitializeComplete() callback is received initialise DevSound to play tones. |
|
186 //!@SYMTestExpectedResults: |
|
187 //DevSound instance was created and initialised to play tones. |
|
188 //InitializeComplete(KErrNone) callback was received. |
|
189 PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to play tones |
|
190 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0010, c:\mm_a3f_devsound_init.ini |
|
191 TEST_COMPLETE |
|
192 |
|
193 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0011 |
|
194 //!@SYMREQ: 7951 |
|
195 //!@SYMPREQ: 1540 |
|
196 //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to play audio |
|
197 //!@SYMTestPriority: Normal |
|
198 //!@SYMTestType: Alternative Usecase |
|
199 //!@SYMTestActions: |
|
200 //1. Create and Initialise a DevSound instance to play audio. |
|
201 //1.1 Wait for InitializeComplete(KErrNone) callback response. |
|
202 //2. After InitializeComplete() callback is received initialise DevSound to play audio. |
|
203 //!@SYMTestExpectedResults: |
|
204 //DevSound instance was created and initialised to play audio. |
|
205 //InitializeComplete(KErrNone) callback was received. |
|
206 PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to play audio |
|
207 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0011, c:\mm_a3f_devsound_init.ini |
|
208 TEST_COMPLETE |
|
209 |
|
210 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0012 |
|
211 //!@SYMREQ: 7951 |
|
212 //!@SYMPREQ: 1540 |
|
213 //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to record audio |
|
214 //!@SYMTestPriority: Normal |
|
215 //!@SYMTestType: Alternative Usecase |
|
216 //!@SYMTestActions: |
|
217 //1. Create and Initialize a DevSound instance to play audio. |
|
218 //1.1 Wait for InitializeComplete(KErrNone) callback response. |
|
219 //2. After InitializeComplete() callback is received, initialise DevSound to record audio. |
|
220 //!@SYMTestExpectedResults: |
|
221 //DevSound instance was created and initialised to record audio. |
|
222 //InitializeComplete(KErrNone) callback was received. |
|
223 PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to record audio |
|
224 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0012, c:\mm_a3f_devsound_init.ini |
|
225 TEST_COMPLETE |
|
226 |
|
227 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0013 |
|
228 //!@SYMREQ: 7951 |
|
229 //!@SYMPREQ: 1540 |
|
230 //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio using an unsupported TFourCC codec parameter |
|
231 //!@SYMTestPriority: Normal |
|
232 //!@SYMTestType: Exception Usecase |
|
233 //!@SYMTestActions: |
|
234 //1. Create a DevSound instance. |
|
235 //2. Call InitializeL() to initialise DevSound to play audio, using an unsupported codec. |
|
236 //!@SYMTestExpectedResults: |
|
237 //DevSound instance was created and initialised to play audio |
|
238 //InitializeComplete(KErrNone) callback was received. |
|
239 PRINT Play audio initialisation - Call InitializeL() to play audio using an unsupported TFourCC codec parameter |
|
240 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0013, c:\mm_a3f_devsound_init.ini |
|
241 TEST_COMPLETE |
|
242 |
|
243 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0014 |
|
244 //!@SYMREQ: 7951 |
|
245 //!@SYMPREQ: 1540 |
|
246 //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio |
|
247 //!@SYMTestPriority: Normal |
|
248 //!@SYMTestType: Normal Usecase |
|
249 //!@SYMTestActions: |
|
250 //1. Create and initialise DevSound instance to record audio. |
|
251 //1.1 Wait for InitializeComplete(KErrNone) callback response. |
|
252 //!@SYMTestExpectedResults: |
|
253 //InitializeComplete(KErrNone) callback was received. |
|
254 PRINT Record audio initialisation - Call InitializeL() to record audio |
|
255 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0014, c:\mm_a3f_devsound_init.ini |
|
256 TEST_COMPLETE |
|
257 |
|
258 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0015 |
|
259 //!@SYMREQ: 7951 |
|
260 //!@SYMPREQ: 1540 |
|
261 //!@SYMTestCaseDesc: Record audio initialisation - Call CancelInitialize() to abort initialisation for recording audio |
|
262 //!@SYMTestPriority: Normal |
|
263 //!@SYMTestType: Alternative Usecase |
|
264 //!@SYMTestActions: |
|
265 //1. Create a DevSound instance. |
|
266 //2. Initialise DevSound to record audio. |
|
267 //3. Call CancelInitialize() before InitializeComplete() callback is received. |
|
268 //4. Wait 5 second to verify that InitializeComplete() callback is not received. |
|
269 //!@SYMTestExpectedResults: |
|
270 //CancelInitialize() returns KErrNone. |
|
271 //InitializeComplete(KErrNone) callback shall be not received. |
|
272 PRINT Record audio initialisation - Call CancelInitialize() to abort initialisation for recording audio |
|
273 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0015, c:\mm_a3f_devsound_init.ini |
|
274 TEST_COMPLETE |
|
275 |
|
276 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0016 |
|
277 //!@SYMREQ: 7951 |
|
278 //!@SYMPREQ: 1540 |
|
279 //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to play tones |
|
280 //!@SYMTestPriority: Normal |
|
281 //!@SYMTestType: Alternative Usecase |
|
282 //!@SYMTestActions: |
|
283 //1. Create and initialise DevSound instance to record audio. |
|
284 //2. After InitializeComplete() callback is received, initialise DevSound to play tones. |
|
285 //!@SYMTestExpectedResults: |
|
286 //DevSound instance was created and initialised to play tones. |
|
287 //InitializeComplete(KErrNone) callback was received. |
|
288 PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to play tones |
|
289 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0016, c:\mm_a3f_devsound_init.ini |
|
290 TEST_COMPLETE |
|
291 |
|
292 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0017 |
|
293 //!@SYMREQ: 7951 |
|
294 //!@SYMPREQ: 1540 |
|
295 //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to play audio |
|
296 //!@SYMTestPriority: Normal |
|
297 //!@SYMTestType: Alternative Usecase |
|
298 //!@SYMTestActions: |
|
299 //1. Create and initialize DevSound instance to record audio. |
|
300 //2. After InitializeComplete() callback is received, initialise DevSound to play audio. |
|
301 //!@SYMTestExpectedResults: |
|
302 //DevSound instance was created and initialised to play audio. |
|
303 //InitializeComplete(KErrNone) callback was received. |
|
304 PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to play audio |
|
305 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0017, c:\mm_a3f_devsound_init.ini |
|
306 TEST_COMPLETE |
|
307 |
|
308 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0018 |
|
309 //!@SYMREQ: 7951 |
|
310 //!@SYMPREQ: 1540 |
|
311 //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to record audio |
|
312 //!@SYMTestPriority: Normal |
|
313 //!@SYMTestType: Alternative Usecase |
|
314 //!@SYMTestActions: |
|
315 //1. Create and initialize DevSound instance to record audio. |
|
316 //2. After InitializeComplete() callback is received, initialise DevSound to record audio. |
|
317 //!@SYMTestExpectedResults: |
|
318 //DevSound instance was created and initialised to record audio. |
|
319 //InitializeComplete(KErrNone) callback was received. |
|
320 PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to record audio |
|
321 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0018, c:\mm_a3f_devsound_init.ini |
|
322 TEST_COMPLETE |
|
323 |
|
324 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0019 |
|
325 //!@SYMREQ: 7951 |
|
326 //!@SYMPREQ: 1540 |
|
327 //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio (no format specification is presented) |
|
328 //!@SYMTestPriority: Normal |
|
329 //!@SYMTestType: Normal Usecase |
|
330 //!@SYMTestActions: |
|
331 //1. Create and initialise DevSound instance to to record audio (default PCM16 codec used). |
|
332 //1.1 Wait for InitializeComplete(KErrNone) callback response. |
|
333 //!@SYMTestExpectedResults: |
|
334 //InitializeComplete(KErrNone) callback was received. |
|
335 PRINT Record audio initialisation - Call InitializeL() to record audio (no format specification is presented) |
|
336 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0019, c:\mm_a3f_devsound_init.ini |
|
337 TEST_COMPLETE |
|
338 |
|
339 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0020 |
|
340 //!@SYMREQ: 7951 |
|
341 //!@SYMPREQ: 1540 |
|
342 //!@SYMTestCaseDesc: InitializeL() not called - PlayData() when InitializeL() was not called |
|
343 //!@SYMTestPriority: Normal |
|
344 //!@SYMTestType: Normal Usecase |
|
345 //!@SYMTestActions: |
|
346 //1. Create a DevSound instance. |
|
347 //2. Call PlayData() method |
|
348 //!@SYMTestExpectedResults: |
|
349 //DevSound client may panic. |
|
350 PRINT InitializeL() not called - PlayData() when InitializeL() was not called |
|
351 RUN_PANIC_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0020, MmfDevSoundProxy 0, c:\mm_a3f_devsound_init.ini |
|
352 TEST_COMPLETE |
|
353 |
|
354 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0021 |
|
355 //!@SYMREQ: 7951 |
|
356 //!@SYMPREQ: 1540 |
|
357 //!@SYMTestCaseDesc: InitializeL() not called - Call PlayDTMFStringL() when InitializeL() was not called |
|
358 //!@SYMTestPriority: Normal |
|
359 //!@SYMTestType: Normal Usecase |
|
360 //!@SYMTestActions: |
|
361 //1. Create a DevSound instance. |
|
362 //2. Call PlayDTMFStringL(). |
|
363 //!@SYMTestExpectedResults: |
|
364 //PlayDTMFStringL() leaves with a KErrNotReady error |
|
365 PRINT InitializeL() not called - Call PlayDTMFStringL() when InitializeL() was not called |
|
366 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0021, c:\mm_a3f_devsound_init.ini |
|
367 TEST_COMPLETE |
|
368 |
|
369 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0022 |
|
370 //!@SYMREQ: 7951 |
|
371 //!@SYMPREQ: 1540 |
|
372 //!@SYMTestCaseDesc: InitializeL() not called - Call PlayDualToneL() when InitializeL() was not called |
|
373 //!@SYMTestPriority: Normal |
|
374 //!@SYMTestType: Normal Usecase |
|
375 //!@SYMTestActions: |
|
376 //1. Create a DevSound instance. |
|
377 //2. Call PlayDualToneL(). |
|
378 //!@SYMTestExpectedResults: |
|
379 //PlayDualToneL() leaves with a KErrNotReady error |
|
380 PRINT InitializeL() not called - Call PlayDualToneL() when InitializeL() was not called |
|
381 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0022, c:\mm_a3f_devsound_init.ini |
|
382 TEST_COMPLETE |
|
383 |
|
384 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0023 |
|
385 //!@SYMREQ: 7951 |
|
386 //!@SYMPREQ: 1540 |
|
387 //!@SYMTestCaseDesc: InitializeL() not called - Call PlayFixedSequenceL() when InitializeL() was not called |
|
388 //!@SYMTestPriority: Normal |
|
389 //!@SYMTestType: Normal Usecase |
|
390 //!@SYMTestActions: |
|
391 //1. Create a DevSound instance. |
|
392 //2. Call PlayFixedSequenceL(). |
|
393 //!@SYMTestExpectedResults: |
|
394 //PlayFixedSequenceL() leaves with a KErrNotReady error |
|
395 PRINT InitializeL() not called - Call PlayFixedSequenceL() when InitializeL() was not called |
|
396 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0023, c:\mm_a3f_devsound_init.ini |
|
397 TEST_COMPLETE |
|
398 |
|
399 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0024 |
|
400 //!@SYMREQ: 7951 |
|
401 //!@SYMPREQ: 1540 |
|
402 //!@SYMTestCaseDesc: InitializeL() not called - Call PlayInitL() when InitializeL() was not called |
|
403 //!@SYMTestPriority: Normal |
|
404 //!@SYMTestType: Normal Usecase |
|
405 //!@SYMTestActions: |
|
406 //1. Create a DevSound instance. |
|
407 //2. Call PlayInitL(). |
|
408 //!@SYMTestExpectedResults: |
|
409 //PlayInitL() leaves with a KErrNotReady error |
|
410 PRINT InitializeL() not called - Call PlayInitL() when InitializeL() was not called |
|
411 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0024, c:\mm_a3f_devsound_init.ini |
|
412 TEST_COMPLETE |
|
413 |
|
414 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0025 |
|
415 //!@SYMREQ: 7951 |
|
416 //!@SYMPREQ: 1540 |
|
417 //!@SYMTestCaseDesc: InitializeL() not called - Call PlayToneL() when InitializeL() was not called |
|
418 //!@SYMTestPriority: Normal |
|
419 //!@SYMTestType: Normal Usecase |
|
420 //!@SYMTestActions: |
|
421 //1. Create a DevSound instance. |
|
422 //2. Call PlayToneL(). |
|
423 //!@SYMTestExpectedResults: |
|
424 //PlayToneL() leaves with a KErrNotReady error |
|
425 PRINT InitializeL() not called - Call PlayToneL() when InitializeL() was not called |
|
426 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0025, c:\mm_a3f_devsound_init.ini |
|
427 TEST_COMPLETE |
|
428 |
|
429 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0026 |
|
430 //!@SYMREQ: 7951 |
|
431 //!@SYMPREQ: 1540 |
|
432 //!@SYMTestCaseDesc: InitializeL() not called - Call PlayToneL() when InitializeL() was not called |
|
433 //!@SYMTestPriority: Normal |
|
434 //!@SYMTestType: Normal Usecase |
|
435 //!@SYMTestActions: |
|
436 //1. Create a DevSound instance. |
|
437 //2. Call PlayToneSequenceL(). |
|
438 //!@SYMTestExpectedResults: |
|
439 //PlayToneSequenceL() leaves with a KErrNotReady error |
|
440 PRINT InitializeL() not called - Call PlayToneL() when InitializeL() was not called |
|
441 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0026, c:\mm_a3f_devsound_init.ini |
|
442 TEST_COMPLETE |
|
443 |
|
444 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0027 |
|
445 //!@SYMREQ: 7951 |
|
446 //!@SYMPREQ: 1540 |
|
447 //!@SYMTestCaseDesc: InitializeL() not called - Call RecordData() when InitializeL() was not called |
|
448 //!@SYMTestPriority: Normal |
|
449 //!@SYMTestType: Normal Usecase |
|
450 //!@SYMTestActions: |
|
451 //1. Create a DevSound instance. |
|
452 //2. Call RecordData(). |
|
453 //!@SYMTestExpectedResults: |
|
454 //DevSound client may panic. |
|
455 PRINT InitializeL() not called - Call RecordData() when InitializeL() was not called |
|
456 RUN_PANIC_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0027, MmfDevSoundProxy 1, c:\mm_a3f_devsound_init.ini |
|
457 TEST_COMPLETE |
|
458 |
|
459 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0028 |
|
460 //!@SYMREQ: 7951 |
|
461 //!@SYMPREQ: 1540 |
|
462 //!@SYMTestCaseDesc: InitializeL() not called - Call RecordInitL when InitializeL() was not called |
|
463 //!@SYMTestPriority: Normal |
|
464 //!@SYMTestType: Normal Usecase |
|
465 //!@SYMTestActions: |
|
466 //1. Create a DevSound instance. |
|
467 //2. Call RecordInitL(). |
|
468 //!@SYMTestExpectedResults: |
|
469 //RecordInitL() leaves with a KErrNotReady error |
|
470 PRINT InitializeL() not called - Call RecordInitL when InitializeL() was not called |
|
471 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0028, c:\mm_a3f_devsound_init.ini |
|
472 TEST_COMPLETE |
|
473 |
|
474 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0029 |
|
475 //!@SYMREQ: 7951 |
|
476 //!@SYMPREQ: 1540 |
|
477 //!@SYMTestCaseDesc: InitializeL() to play tones called more than once |
|
478 //!@SYMTestPriority: Normal |
|
479 //!@SYMTestType: Normal Usecase |
|
480 //!@SYMTestActions: |
|
481 //1. Create and initialise a DevSound instance to play tones. |
|
482 //2. Call again InitializeL() to initialise DevSound to play tones before the first InitializeComplete() callback is received. |
|
483 //!@SYMTestExpectedResults: |
|
484 //DevSound instance was created and initialised to play tones |
|
485 //InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady. |
|
486 PRINT InitializeL() to play tones called more than once |
|
487 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0029, c:\mm_a3f_devsound_init.ini |
|
488 TEST_COMPLETE |
|
489 |
|
490 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0030 |
|
491 //!@SYMREQ: 7951 |
|
492 //!@SYMPREQ: 1540 |
|
493 //!@SYMTestCaseDesc: InitializeL() to play audio called more than once |
|
494 //!@SYMTestPriority: Normal |
|
495 //!@SYMTestType: Normal Usecase |
|
496 //!@SYMTestActions: |
|
497 //1. Create and initialise a DevSound instance to play audio. |
|
498 //2. Call again InitializeL() to initialise DevSound to play audio before the first InitializeComplete() callback is received. |
|
499 //!@SYMTestExpectedResults: |
|
500 //DevSound instance was created and initialised to play audio |
|
501 //InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady. |
|
502 PRINT InitializeL() to play audio called more than once |
|
503 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0030, c:\mm_a3f_devsound_init.ini |
|
504 TEST_COMPLETE |
|
505 |
|
506 |
|
507 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0031 |
|
508 //!@SYMREQ: 7951 |
|
509 //!@SYMPREQ: 1540 |
|
510 //!@SYMTestCaseDesc: InitializeL() to record audio called more than once |
|
511 //!@SYMTestPriority: Normal |
|
512 //!@SYMTestType: Normal Usecase |
|
513 //!@SYMTestActions: |
|
514 //1. Create and initialise a DevSound instance to record audio. |
|
515 //2. Call again InitializeL() to initialise DevSound to record audio before receiving the first InitializeComplete() callback. |
|
516 //!@SYMTestExpectedResults: |
|
517 //DevSound instance was created and initialised to record audio |
|
518 //InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady. |
|
519 PRINT InitializeL() to record audio called more than once |
|
520 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0031, c:\mm_a3f_devsound_init.ini |
|
521 TEST_COMPLETE |
|
522 |
|
523 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0032 |
|
524 //!@SYMREQ: 7951 |
|
525 //!@SYMPREQ: 1540 |
|
526 //!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Tone-The first InitializeL() leaves, then the second InitializeL() is handled normally. |
|
527 //!@SYMTestPriority: |
|
528 //!@SYMTestType: Alternative Usecase |
|
529 //!@SYMTestActions: |
|
530 //1. Create a DevSound instance. |
|
531 //2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code). |
|
532 //3. Create and Initialise DevSound instance to play tones. |
|
533 //3.1 Wait for InitializeComplete(KErrNone) callback response. |
|
534 //!@SYMTestExpectedResults: |
|
535 //InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone. |
|
536 //DevSound instance was created and initialised to record audio. |
|
537 PRINT InitializeL() to record audio called more than once- Tone-The first InitializeL() leaves, then the second InitializeL() is handled normally. |
|
538 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0032, c:\mm_a3f_devsound_init.ini |
|
539 TEST_COMPLETE |
|
540 |
|
541 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0033 |
|
542 //!@SYMREQ: 7951 |
|
543 //!@SYMPREQ: 1540 |
|
544 //!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Play-The first InitializeL() leaves, then the second InitializeL() is handled normally. |
|
545 //!@SYMTestPriority: |
|
546 //!@SYMTestType: Alternative Usecase |
|
547 //!@SYMTestActions: |
|
548 //1. Create a DevSound instance. |
|
549 //2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code). |
|
550 //3. Create and Initialise DevSound instance to play audio. |
|
551 //3.1 Wait for InitializeComplete(KErrNone) callback response. |
|
552 //!@SYMTestExpectedResults: |
|
553 InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone. |
|
554 DevSound instance was created and initialised to record audio. |
|
555 PRINT InitializeL() to record audio called more than once- Play-The first InitializeL() leaves, then the second InitializeL() is handled normally. |
|
556 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0033, c:\mm_a3f_devsound_init.ini |
|
557 TEST_COMPLETE |
|
558 |
|
559 //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0034 |
|
560 //!@SYMREQ: 7951 |
|
561 //!@SYMPREQ: 1540 |
|
562 //!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Record-The first InitializeL() leaves, then the second InitializeL() is handled normally. |
|
563 //!@SYMTestPriority: |
|
564 //!@SYMTestType: Alternative Usecase |
|
565 //!@SYMTestActions: |
|
566 //1. Create a DevSound instance. |
|
567 //2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code). |
|
568 //3. Create and Initialise DevSound instance to record audio. |
|
569 //3.1 Wait for InitializeComplete(KErrNone) callback response. |
|
570 //!@SYMTestExpectedResults: |
|
571 //InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone. |
|
572 //DevSound instance was created and initialised to record audio. |
|
573 PRINT InitializeL() to record audio called more than once- Record-The first InitializeL() leaves, then the second InitializeL() is handled normally. |
|
574 RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0034, c:\mm_a3f_devsound_init.ini |
|
575 TEST_COMPLETE |
|
576 |
|
577 |
|
578 |
|
579 |
|
580 |
|
581 |
|
582 |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 |
|
588 |
|
589 |
|
590 |
|
591 |
|
592 |
|
593 |