0
|
1 |
@file TSI_MMF_ACLNTOGG_REC.script
|
|
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 |
# Audio Client Utilities for Ogg-Vorbis Recorder tests
|
|
18 |
|
|
19 |
LOAD_SUITE TSI_MMFACLNT.DLL
|
|
20 |
|
|
21 |
delay 10000
|
|
22 |
|
|
23 |
/////////////////////////////////////////////////////////////////////
|
|
24 |
/////////////////////////// POSITIVE TESTS //////////////////////////
|
|
25 |
/////////////////////////////////////////////////////////////////////
|
|
26 |
|
|
27 |
|
|
28 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0101-CP
|
|
29 |
//!@SYMTestCaseDesc Create a file based clip and record (OGG)
|
|
30 |
//!@SYMREQ REQ5481
|
|
31 |
//!@SYMPREQ PREQ452
|
|
32 |
//!@SYMTestPriority 1
|
|
33 |
//!@SYMTestActions Open an audio file and start, then stop recording after two seconds.
|
|
34 |
//!@SYMTestExpectedResults File with a length >0 is created. File plays with no errors.
|
|
35 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0101-CP \audio.ini
|
|
36 |
TEST_COMPLETE
|
|
37 |
|
|
38 |
|
|
39 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0102-CP
|
|
40 |
//!@SYMTestCaseDesc Open a file based clip and record (OGG)
|
|
41 |
//!@SYMREQ REQ5481
|
|
42 |
//!@SYMPREQ PREQ452
|
|
43 |
//!@SYMTestPriority 1
|
|
44 |
//!@SYMTestActions Open an audio file and start, then stop recording after two seconds.
|
|
45 |
//!@SYMTestExpectedResults File with a length >0 exists. Recording appends data to that file.
|
|
46 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0102-CP \audio.ini
|
|
47 |
TEST_COMPLETE
|
|
48 |
|
|
49 |
|
|
50 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0103-CP
|
|
51 |
//!@SYMTestCaseDesc Open a descriptor using OpenDesL and record (OGG)
|
|
52 |
//!@SYMREQ REQ5481
|
|
53 |
//!@SYMPREQ PREQ452
|
|
54 |
//!@SYMTestPriority 1
|
|
55 |
//!@SYMTestActions Open a new audio descriptor as a location and start recording for a fixed length. Then check the recorded sizes.
|
|
56 |
//!@SYMTestExpectedResults File with a length >0 is created. File plays with no errors.
|
|
57 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0103-CP \audio.ini
|
|
58 |
TEST_COMPLETE
|
|
59 |
|
|
60 |
|
|
61 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0104-CP
|
|
62 |
//!@SYMTestCaseDesc Set gain to maximum and enquire gain.
|
|
63 |
//!@SYMREQ REQ5481
|
|
64 |
//!@SYMPREQ PREQ452
|
|
65 |
//!@SYMTestPriority 1
|
|
66 |
//!@SYMTestActions Change the gain and check.
|
|
67 |
//!@SYMTestExpectedResults Gain returned is correct
|
|
68 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0104-CP \audio.ini
|
|
69 |
TEST_COMPLETE
|
|
70 |
|
|
71 |
|
|
72 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0105-CP
|
|
73 |
//!@SYMTestCaseDesc Enquire state at each state transition.
|
|
74 |
//!@SYMREQ REQ5481
|
|
75 |
//!@SYMPREQ PREQ452
|
|
76 |
//!@SYMTestPriority 1
|
|
77 |
//!@SYMTestActions Request state and check that the returned state value equals that of the current state.
|
|
78 |
//!@SYMTestExpectedResults Returned states are equal to that of the actual state.
|
|
79 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0105-CP \audio.ini
|
|
80 |
TEST_COMPLETE
|
|
81 |
|
|
82 |
|
|
83 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0108-HP
|
|
84 |
//!@SYMTestCaseDesc Set and enquire position
|
|
85 |
//!@SYMREQ REQ5481
|
|
86 |
//!@SYMPREQ PREQ452
|
|
87 |
//!@SYMTestPriority 2
|
|
88 |
//!@SYMTestActions Set the position and check that position returned is correct.
|
|
89 |
//!@SYMTestExpectedResults Return position is correct.
|
|
90 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0108-HP \audio.ini
|
|
91 |
TEST_COMPLETE
|
|
92 |
|
|
93 |
|
|
94 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0109-HP
|
|
95 |
//!@SYMTestCaseDesc Enquire duration
|
|
96 |
//!@SYMREQ REQ5481
|
|
97 |
//!@SYMPREQ PREQ452
|
|
98 |
//!@SYMTestPriority 2
|
|
99 |
//!@SYMTestActions Get duration and compare with known value.
|
|
100 |
//!@SYMTestExpectedResults Known duration is returned
|
|
101 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0109-HP \audio.ini
|
|
102 |
TEST_COMPLETE
|
|
103 |
|
|
104 |
|
|
105 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0110-HP
|
|
106 |
//!@SYMTestCaseDesc Set meta-information
|
|
107 |
//!@SYMREQ REQ5481
|
|
108 |
//!@SYMPREQ PREQ452
|
|
109 |
//!@SYMTestPriority 2
|
|
110 |
//!@SYMTestActions Set meta-Information to be written to the clip header. After recording open file and check meta information.
|
|
111 |
//!@SYMTestExpectedResults Meta Information is set correctly and is retrieved with identical strings.
|
|
112 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0110-HP \audio.ini
|
|
113 |
TEST_COMPLETE
|
|
114 |
|
|
115 |
|
|
116 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0112-HP
|
|
117 |
//!@SYMTestCaseDesc Set and Enquire balance
|
|
118 |
//!@SYMREQ REQ5481
|
|
119 |
//!@SYMPREQ PREQ452
|
|
120 |
//!@SYMTestPriority 2
|
|
121 |
//!@SYMTestActions Set balance to a legal value, and enquire that this value has been set.
|
|
122 |
//!@SYMTestExpectedResults correct balance is returned.
|
|
123 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0112-HP \audio.ini
|
|
124 |
TEST_COMPLETE
|
|
125 |
|
|
126 |
|
|
127 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0113-HP
|
|
128 |
//!@SYMTestCaseDesc Set maximum length of file in bytes and record
|
|
129 |
//!@SYMREQ REQ5481
|
|
130 |
//!@SYMPREQ PREQ452
|
|
131 |
//!@SYMTestPriority 2
|
|
132 |
//!@SYMTestActions Set maximum length of bytes and record a file. Check that recorded bytes are correct.
|
|
133 |
//!@SYMTestExpectedResults reocorded bytes is identical to that set as the maximum value.
|
|
134 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0113-HP \audio.ini
|
|
135 |
TEST_COMPLETE
|
|
136 |
|
|
137 |
|
|
138 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0114-HP
|
|
139 |
//!@SYMTestCaseDesc Query recordable formats
|
|
140 |
//!@SYMREQ REQ5481
|
|
141 |
//!@SYMPREQ PREQ452
|
|
142 |
//!@SYMTestPriority 2
|
|
143 |
//!@SYMTestActions Compare returned recordable formats with those expected.
|
|
144 |
//!@SYMTestExpectedResults
|
|
145 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0114-HP \audio.ini
|
|
146 |
TEST_COMPLETE
|
|
147 |
|
|
148 |
|
|
149 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0115-HP
|
|
150 |
//!@SYMTestCaseDesc Set and enquire Destination number of channels
|
|
151 |
//!@SYMREQ REQ5481
|
|
152 |
//!@SYMPREQ PREQ452
|
|
153 |
//!@SYMTestPriority 2
|
|
154 |
//!@SYMTestActions Set the number of channels and check that the number of channels returned is correct.
|
|
155 |
//!@SYMTestExpectedResults Doesn't leave. The returned number of channels should equal the previously set number of
|
|
156 |
//! channels.
|
|
157 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0115-HP \audio.ini
|
|
158 |
TEST_COMPLETE
|
|
159 |
|
|
160 |
|
|
161 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0116-HP
|
|
162 |
//!@SYMTestCaseDesc Set Audio recording priority
|
|
163 |
//!@SYMREQ REQ5481
|
|
164 |
//!@SYMPREQ PREQ452
|
|
165 |
//!@SYMTestPriority 2
|
|
166 |
//!@SYMTestActions Set the recording priority. This is used to arbitrate between simultaneous accesses of the sound hardware.
|
|
167 |
//!@SYMTestExpectedResults Doesn’t Leave.
|
|
168 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0116-HP \audio.ini
|
|
169 |
TEST_COMPLETE
|
|
170 |
|
|
171 |
|
|
172 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0117-HP
|
|
173 |
//!@SYMTestCaseDesc Set and enquire Destination sample rate
|
|
174 |
//!@SYMREQ REQ5481
|
|
175 |
//!@SYMPREQ PREQ452
|
|
176 |
//!@SYMTestPriority 2
|
|
177 |
//!@SYMTestActions Query supported sample rates. Set the sample rate and check that the sample rate returned is correct.
|
|
178 |
//!@SYMTestExpectedResults Doesn't leave. The returned sample rate should equal the previously set sample rate.
|
|
179 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0117-HP \audio.ini
|
|
180 |
TEST_COMPLETE
|
|
181 |
|
|
182 |
|
|
183 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0118-HP
|
|
184 |
//!@SYMTestCaseDesc Set and enquire Destination bit rate
|
|
185 |
//!@SYMREQ REQ5481
|
|
186 |
//!@SYMPREQ PREQ452
|
|
187 |
//!@SYMTestPriority 2
|
|
188 |
//!@SYMTestActions Query supported bit rates. Set the bit rate and check that the bit rate returned is correct.
|
|
189 |
//!@SYMTestExpectedResults Doesn't leave. The returned bit rate should equal the previously set bit rate.
|
|
190 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0118-HP \audio.ini
|
|
191 |
TEST_COMPLETE
|
|
192 |
|
|
193 |
|
|
194 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0119-HP
|
|
195 |
//!@SYMTestCaseDesc Set and enquire Destination data types
|
|
196 |
//!@SYMREQ REQ5481
|
|
197 |
//!@SYMPREQ PREQ452
|
|
198 |
//!@SYMTestPriority 2
|
|
199 |
//!@SYMTestActions Query supported data types. Set the data type and check that the data type returned is correct.
|
|
200 |
//!@SYMTestExpectedResults Doesn't leave. The returned data type should be the same type as the previously set data
|
|
201 |
//! type.
|
|
202 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0119-HP \audio.ini
|
|
203 |
TEST_COMPLETE
|
|
204 |
|
|
205 |
|
|
206 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0120-HP
|
|
207 |
//!@SYMTestCaseDesc Set and enquire Destination format
|
|
208 |
//!@SYMREQ REQ5481
|
|
209 |
//!@SYMPREQ PREQ452
|
|
210 |
//!@SYMTestPriority 2
|
|
211 |
//!@SYMTestActions Set the destination format and check that the format returned is correct.
|
|
212 |
//!@SYMTestExpectedResults Doesn't leave. The returned format should be the same type as the previously set format
|
|
213 |
//!.
|
|
214 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0120-HP \audio.ini
|
|
215 |
TEST_COMPLETE
|
|
216 |
|
|
217 |
|
|
218 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0121-HP
|
|
219 |
//!@SYMTestCaseDesc Set Audio device mode
|
|
220 |
//!@SYMREQ REQ5481
|
|
221 |
//!@SYMPREQ PREQ452
|
|
222 |
//!@SYMTestPriority 2
|
|
223 |
//!@SYMTestActions Set the audio device mode. This function is provided for binary compatibility only
|
|
224 |
//!@SYMTestExpectedResults Set the audio device mode. This function is provided for binary compatibility only
|
|
225 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0121-HP \audio.ini
|
|
226 |
TEST_COMPLETE
|
|
227 |
|
|
228 |
|
|
229 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0122-HP
|
|
230 |
//!@SYMTestCaseDesc Set record volume
|
|
231 |
//!@SYMREQ REQ5481
|
|
232 |
//!@SYMPREQ PREQ452
|
|
233 |
//!@SYMTestPriority 2
|
|
234 |
//!@SYMTestActions Query maximum record volume. Set the record volume to the max volume and request current volume
|
|
235 |
//!@SYMTestExpectedResults Set the volume to max supported volume. The volume returned by GetVolume should now equal the max volume.
|
|
236 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0122-HP \audio.ini
|
|
237 |
TEST_COMPLETE
|
|
238 |
|
|
239 |
|
|
240 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0123-HP
|
|
241 |
//!@SYMTestCaseDesc Set volume ramp
|
|
242 |
//!@SYMREQ REQ5481
|
|
243 |
//!@SYMPREQ PREQ452
|
|
244 |
//!@SYMTestPriority 2
|
|
245 |
//!@SYMTestActions Set volume ramp
|
|
246 |
//!@SYMTestExpectedResults VolumeRamp is set correctly to that which was specified
|
|
247 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0123-HP \audio.ini
|
|
248 |
TEST_COMPLETE
|
|
249 |
|
|
250 |
|
|
251 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-0133-HP
|
|
252 |
//!@SYMTestCaseDesc Simple Record
|
|
253 |
//!@SYMREQ REQ5481
|
|
254 |
//!@SYMPREQ PREQ452
|
|
255 |
//!@SYMTestPriority 2
|
|
256 |
//!@SYMTestActions Simple Record with MaxWriteFile size to 40K
|
|
257 |
//!@SYMTestExpectedResults Recording should stop after the max file size is reached
|
|
258 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-0133-HP \audio.ini
|
|
259 |
TEST_COMPLETE
|
|
260 |
|
|
261 |
/////////////////////////////////////////////////////////////////////
|
|
262 |
/////////////////////////// NEGATIVE TESTS //////////////////////////
|
|
263 |
/////////////////////////////////////////////////////////////////////
|
|
264 |
|
|
265 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1101-LP
|
|
266 |
//!@SYMTestCaseDesc Record utility - Delete object before record operation has completed.
|
|
267 |
//!@SYMREQ REQ5481
|
|
268 |
//!@SYMPREQ PREQ452
|
|
269 |
//!@SYMTestPriority 4
|
|
270 |
//!@SYMTestActions While recording audio, destroy record utility object.
|
|
271 |
//!@SYMTestExpectedResults Stops recording and successfully deletes the object.
|
|
272 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1101-LP \audio.ini
|
|
273 |
TEST_COMPLETE
|
|
274 |
|
|
275 |
|
|
276 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1102-LP
|
|
277 |
//!@SYMTestCaseDesc set gain to invalid gain value (above maximum)
|
|
278 |
//!@SYMREQ REQ5481
|
|
279 |
//!@SYMPREQ PREQ452
|
|
280 |
//!@SYMTestPriority 4
|
|
281 |
//!@SYMTestActions First, set gain above the maximum value and check.
|
|
282 |
//!@SYMTestExpectedResults Should limit gain to a valid value. Return with no error code or KErrNone
|
|
283 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1102-LP \audio.ini
|
|
284 |
TEST_COMPLETE
|
|
285 |
|
|
286 |
|
|
287 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1103-LP
|
|
288 |
//!@SYMTestCaseDesc set gain to invalid gain value (below minimum)
|
|
289 |
//!@SYMREQ REQ5481
|
|
290 |
//!@SYMPREQ PREQ452
|
|
291 |
//!@SYMTestPriority 4
|
|
292 |
//!@SYMTestActions First, set gain below the minimum value and check.
|
|
293 |
//!@SYMTestExpectedResults Should limit gain to a valid value. Return with no error code or KErrNone
|
|
294 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1103-LP \audio.ini
|
|
295 |
TEST_COMPLETE
|
|
296 |
|
|
297 |
|
|
298 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1104-LP
|
|
299 |
//!@SYMTestCaseDesc Set invalid position (above maximum)
|
|
300 |
//!@SYMREQ REQ5481
|
|
301 |
//!@SYMPREQ PREQ452
|
|
302 |
//!@SYMTestPriority 4
|
|
303 |
//!@SYMTestActions First, set position above the maximum value and check.
|
|
304 |
//!@SYMTestExpectedResults Postion should be restricted to the duration of the clip. If attempting to play form the end of the file, nothing should
|
|
305 |
//! play. Return with no error code or KErrNone
|
|
306 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1104-LP \audio.ini
|
|
307 |
TEST_COMPLETE
|
|
308 |
|
|
309 |
|
|
310 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1105-LP
|
|
311 |
//!@SYMTestCaseDesc Set invalid position (below minimum)
|
|
312 |
//!@SYMREQ REQ5481
|
|
313 |
//!@SYMPREQ PREQ452
|
|
314 |
//!@SYMTestPriority 4
|
|
315 |
//!@SYMTestActions First, set position below the minimum value and check.
|
|
316 |
//!@SYMTestExpectedResults Postion should be restricted to zero.Return with no error code or KErrNone
|
|
317 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1105-LP \audio.ini
|
|
318 |
TEST_COMPLETE
|
|
319 |
|
|
320 |
|
|
321 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1106-LP
|
|
322 |
//!@SYMTestCaseDesc Set invalid balance (above maximum)
|
|
323 |
//!@SYMREQ REQ5481
|
|
324 |
//!@SYMPREQ PREQ452
|
|
325 |
//!@SYMTestPriority 4
|
|
326 |
//!@SYMTestActions Set balance to an invalid balance value. Set balance above the maximum value and check.
|
|
327 |
//!@SYMTestExpectedResults Balance set to maximum value (100). Return with no error code or KErrNone
|
|
328 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1106-LP \audio.ini
|
|
329 |
TEST_COMPLETE
|
|
330 |
|
|
331 |
|
|
332 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1107-LP
|
|
333 |
//!@SYMTestCaseDesc Set invalid balance (below minimum).
|
|
334 |
//!@SYMREQ REQ5481
|
|
335 |
//!@SYMPREQ PREQ452
|
|
336 |
//!@SYMTestPriority 4
|
|
337 |
//!@SYMTestActions Set balance to an invalid balance value. Set balance below the minimum value and check.
|
|
338 |
//!@SYMTestExpectedResults Balance set to minimum value. (100) Return with no error code or KErrNone
|
|
339 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1107-LP \audio.ini
|
|
340 |
TEST_COMPLETE
|
|
341 |
|
|
342 |
|
|
343 |
//!@SYMTestCaseID MM-MMF-ACLNTOGG-I-1108-LP
|
|
344 |
//!@SYMTestCaseDesc Set invalid maximum length of file in bytes and record
|
|
345 |
//!@SYMREQ REQ5481
|
|
346 |
//!@SYMPREQ PREQ452
|
|
347 |
//!@SYMTestPriority 4
|
|
348 |
//!@SYMTestActions Set maximum length of file in bytes to a minus value and attempt to record.
|
|
349 |
//!@SYMTestExpectedResults Should not record. Return with error code KErrNotSupported
|
|
350 |
RUN_TEST_STEP 600000 ACLNT MM-MMF-ACLNTOGG-I-1108-LP \audio.ini
|
|
351 |
TEST_COMPLETE
|