1 //* Copyright (c) 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 the License "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 //* |
|
15 |
|
16 / |
|
17 // MOD_0002.001_1_NokiaTSY_[HW Set Network Selection Setting Manual] |
|
18 // |
|
19 // Precondition: |
|
20 // -N/A |
|
21 // |
|
22 // Script description: |
|
23 // -Possible values are: Manual, Automatic and Unknown. |
|
24 // |
|
25 [Test] |
|
26 title MOD_0002.001_1_NokiaTSY_[HW Set Network Selection Setting Manual] |
|
27 create NTT_NWE test |
|
28 test SetNetworkSelectionSetting Manual |
|
29 allownextresult 0 |
|
30 waittestclass test |
|
31 delete test |
|
32 [Endtest] |
|
33 |
|
34 // MOD_0002.002_1_NokiaTSY_[HW Set Network Selection Setting Automatic] |
|
35 // |
|
36 // Precondition: |
|
37 // -N/A |
|
38 // |
|
39 // Script description: |
|
40 // -Possible values are: Manual, Automatic and Unknown. |
|
41 // |
|
42 [Test] |
|
43 title MOD_0002.002_1_NokiaTSY_[HW Set Network Selection Setting Automatic] |
|
44 create NTT_NWE test |
|
45 test SetNetworkSelectionSetting Automatic |
|
46 allownextresult 0 |
|
47 waittestclass test |
|
48 delete test |
|
49 [Endtest] |
|
50 |
|
51 // MOD_0002.003_1_NokiaTSY_[HW Get Home Network] |
|
52 // |
|
53 // Precondition: |
|
54 // -N/A |
|
55 // |
|
56 // Script description: |
|
57 // -N/A |
|
58 // |
|
59 [Test] |
|
60 title MOD_0002.003_1_NokiaTSY_[HW Get Home Network] |
|
61 create NTT_NWE test |
|
62 test GetHomeNetwork DONT_CARE_NETWORK_NAME |
|
63 waittestclass test |
|
64 delete test |
|
65 [Endtest] |
|
66 |
|
67 // MOD_0002.004_1_NokiaTSY_[HW GetNetworkRegistrationStatus] |
|
68 // |
|
69 // Precondition: |
|
70 // -N/A |
|
71 // |
|
72 // Script description: |
|
73 // -N/A |
|
74 // |
|
75 [Test] |
|
76 title MOD_0002.004_1_NokiaTSY_[HW GetNetworkRegistrationStatus] |
|
77 create NTT_NWE test |
|
78 create NTT_Notify notify1 |
|
79 create NTT_Notify notify2 |
|
80 create NTT_Notify notify3 |
|
81 create NTT_Notify notify4 |
|
82 notify1 UseObjectAddress test NotifyNetworkRegistrationStatusChange |
|
83 notify2 UseObjectAddress test NotifyNetworkSelectionSettingChange |
|
84 notify3 UseObjectAddress test NotifyCurrentNetworkChange |
|
85 notify4 UseObjectAddress test NotifyModeChange |
|
86 test GetNetworkRegistrationStatus DONT_CARE_NETWORK_NAME |
|
87 //allownextresult 0 |
|
88 //waittestclass notify1 |
|
89 allownextresult 0 |
|
90 waittestclass test |
|
91 delete test |
|
92 delete notify1 |
|
93 delete notify2 |
|
94 delete notify3 |
|
95 delete notify4 |
|
96 [Endtest] |
|
97 |
|
98 // MOD_0002.005_1_NokiaTSY_[HW GetCipheringIndicatorStatus] |
|
99 // |
|
100 // Precondition: |
|
101 // -Connection between phone and PC must be OK. |
|
102 // -Phone must be on and SIM card installed. |
|
103 // -Ciphering indicator status must be enabled in SIM. Could be checked from |
|
104 // SIM file EFAD (FileID:6FAD), where first bit of third byte must be 1. |
|
105 // Most of SIM cards support ciphering indication status (but e.g. old white |
|
106 // colored NTN SIMs don't as default). |
|
107 // |
|
108 // Script description: |
|
109 // -N/A |
|
110 // |
|
111 [Test] |
|
112 title MOD_0002.005_1_NokiaTSY_[HW GetCipheringIndicatorStatus] |
|
113 create NTT_NWE test |
|
114 test GetCipheringIndicatorStatus |
|
115 waittestclass test |
|
116 delete test |
|
117 [Endtest] |
|
118 |
|
119 // MOD_0002.006_1_NokiaTSY_[HW CustomGetCipheringInfo] |
|
120 // |
|
121 // Precondition: |
|
122 // -N/A |
|
123 // |
|
124 // Script description: |
|
125 // -N/A |
|
126 // |
|
127 [Test] |
|
128 title MOD_0002.006_1_NokiaTSY_[HW CustomGetCipheringInfo] |
|
129 create NTT_NWE test |
|
130 test CustomGetCipheringInfo |
|
131 waittestclass test |
|
132 delete test |
|
133 [Endtest] |
|
134 |
|
135 // MOD_0002.007_1_NokiaTSY_[HW CustomNetWakeup] |
|
136 // |
|
137 // Precondition: |
|
138 // -N/A |
|
139 // |
|
140 // Script description: |
|
141 // -N/A |
|
142 // |
|
143 [Test] |
|
144 title MOD_0002.007_1_NokiaTSY_[HW CustomNetWakeup] |
|
145 create NTT_NWE test |
|
146 test CustomNetWakeup |
|
147 waittestclass test |
|
148 delete test |
|
149 [Endtest] |
|
150 |
|
151 // MOD_0002.008_1_NokiaTSY_[HW CustomGetOperatorName] |
|
152 // |
|
153 // Precondition: |
|
154 // -N/A |
|
155 // |
|
156 // Script description: |
|
157 // -N/A |
|
158 // |
|
159 [Test] |
|
160 title MOD_0002.008_1_NokiaTSY_[HW CustomGetOperatorName] |
|
161 create NTT_NWE test |
|
162 test CustomGetOperatorName DONT_CARE_NETWORK_NAME |
|
163 waittestclass test |
|
164 delete test |
|
165 [Endtest] |
|
166 |
|
167 // MOD_0002.009_1_NokiaTSY_[HW CustomResetNetworkRegistrationStatus] |
|
168 // |
|
169 // Precondition: |
|
170 // -N/A |
|
171 // |
|
172 // Script description: |
|
173 // -N/A |
|
174 // |
|
175 [Test] |
|
176 title MOD_0002.009_1_NokiaTSY_[HW CustomResetNetworkRegistrationStatus] |
|
177 create NTT_NWE test |
|
178 test CustomResetNetworkRegistrationStatus |
|
179 waittestclass test |
|
180 delete test |
|
181 [Endtest] |
|
182 |
|
183 // MOD_0002.010_1_NokiaTSY_[HW CustomGetSystemNetworkModes] |
|
184 // |
|
185 // Precondition: |
|
186 // -N/A |
|
187 // |
|
188 // Script description: |
|
189 // -N/A |
|
190 // |
|
191 [Test] |
|
192 title MOD_0002.010_1_NokiaTSY_[HW CustomGetSystemNetworkModes] |
|
193 create NTT_NWE test |
|
194 test CustomGetSystemNetworkModes |
|
195 waittestclass test |
|
196 delete test |
|
197 [Endtest] |
|
198 |
|
199 // MOD_0002.011_1_NokiaTSY_[HW CustomSetSystemNetworkMode_GSM] |
|
200 // |
|
201 // Precondition: |
|
202 // -N/A |
|
203 // |
|
204 // Script description: |
|
205 // -N/A |
|
206 // |
|
207 [Test] |
|
208 title MOD_0002.011_1_NokiaTSY_[HW CustomSetSystemNetworkMode_GSM] |
|
209 create NTT_NWE test |
|
210 create NTT_Notify notify1 |
|
211 notify1 UseObjectAddress test NotifySignalStrengthChange |
|
212 test CustomSetSystemNetworkMode NetworkGsm |
|
213 waittestclass test |
|
214 delete test |
|
215 delete notify1 |
|
216 [Endtest] |
|
217 |
|
218 // MOD_0002.012_1_NokiaTSY_[HW CustomSetSystemNetworkMode_UMTS] |
|
219 // |
|
220 // Precondition: |
|
221 // -N/A |
|
222 // |
|
223 // Script description: |
|
224 // -N/A |
|
225 // |
|
226 [Test] |
|
227 title MOD_0002.012_1_NokiaTSY_[HW CustomSetSystemNetworkMode_UMTS] |
|
228 create NTT_NWE test |
|
229 create NTT_Notify notify1 |
|
230 notify1 UseObjectAddress test NotifySignalStrengthChange |
|
231 test CustomSetSystemNetworkMode NetworkUmts |
|
232 waittestclass test |
|
233 delete test |
|
234 delete notify1 |
|
235 [Endtest] |
|
236 |
|
237 // MOD_0002.013_1_NokiaTSY_[HW CustomSetSystemNetworkMode_DUAL] |
|
238 // |
|
239 // Precondition: |
|
240 // -N/A |
|
241 // |
|
242 // Script description: |
|
243 // -N/A |
|
244 // |
|
245 [Test] |
|
246 title MOD_0002.013_1_NokiaTSY_[HW CustomSetSystemNetworkMode_DUAL] |
|
247 create NTT_NWE test |
|
248 create NTT_Notify notify1 |
|
249 notify1 UseObjectAddress test NotifySignalStrengthChange |
|
250 test CustomSetSystemNetworkMode NetworkDual |
|
251 waittestclass test |
|
252 delete test |
|
253 delete notify1 |
|
254 [Endtest] |
|
255 |
|
256 // MOD_0002.014_1_NokiaTSY_[HW CustomGetCurrentSystemNetworkModes] |
|
257 // |
|
258 // Precondition: |
|
259 // -N/A |
|
260 // |
|
261 // Script description: |
|
262 // -N/A |
|
263 // |
|
264 [Test] |
|
265 title MOD_0002.014_1_NokiaTSY_[HW CustomGetCurrentSystemNetworkModes] |
|
266 create NTT_NWE test |
|
267 test CustomGetCurrentSystemNetworkModes |
|
268 waittestclass test |
|
269 delete test |
|
270 [Endtest] |
|
271 |
|
272 // MOD_0002.015_1_NokiaTSY_[HW NotifyNITZInfoChange] |
|
273 // |
|
274 // Precondition: |
|
275 // - Phone has to be flashed with normal image. |
|
276 // |
|
277 // Script description: |
|
278 // - NOTE: Phone has to be flashed with normal image. |
|
279 // When testcase is started, user must manually change |
|
280 // "Settings -> Date and time settings -> Network time -> ON |
|
281 // Then testcase is executed properly. |
|
282 // |
|
283 [Test] |
|
284 title MOD_0002.015_1_NokiaTSY_[HW NotifyNITZInfoChange] |
|
285 create NTT_NWE test |
|
286 create NTT_Notify notify1 |
|
287 notify1 UseObjectAddress test NotifyNITZInfoChange |
|
288 waittestclass test |
|
289 delete test |
|
290 delete notify1 |
|
291 [Endtest] |
|
292 |
|
293 // MOD_0002.016_1_NokiaTSY_[HW NotifyNetworkSecurityLevelChange] |
|
294 // |
|
295 // Precondition: |
|
296 // - Phone has to be flashed with normal image. |
|
297 // |
|
298 // Script description: |
|
299 // - NOTE: When testcase is started, user must manually make MO voice call. |
|
300 // Then testcase is executed properly. |
|
301 // |
|
302 [Test] |
|
303 title MOD_0002.016_1_NokiaTSY_[HW NotifyNetworkSecurityLevelChange] |
|
304 create NTT_NWE test |
|
305 create NTT_Notify notify1 |
|
306 notify1 UseObjectAddress test NotifyNetworkSecurityLevelChange |
|
307 waittestclass test |
|
308 delete test |
|
309 delete notify1 |
|
310 [Endtest] |
|
311 |
|
312 // MOD_0002.017_1_NokiaTSY_[HW ManualNetworkSearch] |
|
313 // |
|
314 // Precondition: |
|
315 // -N/A |
|
316 // |
|
317 // Script description: |
|
318 // -N/A |
|
319 // |
|
320 [Test] |
|
321 title MOD_0002.017_1_NokiaTSY_[HW ManualNetworkSearch] |
|
322 create NTT_NWE test |
|
323 test ManualNetworkSearch DONT_CARE_NETWORK_NAME DONT_CARE_NETWORK_NAME DONT_CARE_NETWORK_NAME DONT_CARE_NETWORK_NAME |
|
324 waittestclass test |
|
325 delete test |
|
326 [Endtest] |
|
327 |
|
328 // MOD_0002.018_1_NokiaTSY_[HW ManualNetworkSearchCancel] |
|
329 // |
|
330 // Precondition: |
|
331 // -N/A |
|
332 // |
|
333 // Script description: |
|
334 // -N/A |
|
335 // |
|
336 [Test] |
|
337 title MOD_0002.018_1_NokiaTSY_[HW ManualNetworkSearchCancel] |
|
338 create NTT_NWE test |
|
339 test ManualNetworkSearch DONT_CARE_NETWORK_NAME DONT_CARE_NETWORK_NAME DONT_CARE_NETWORK_NAME DONT_CARE_NETWORK_NAME |
|
340 test ManualNetworkSearchCancel |
|
341 waittestclass test |
|
342 delete test |
|
343 [Endtest] |
|
344 |
|
345 // MOD_0002.019_1_NokiaTSY_[HW ManualNetworkSelection_ManualSelection] |
|
346 // |
|
347 // Precondition: |
|
348 // - Use NTN SIM card when testing this case |
|
349 // |
|
350 // Script description: |
|
351 // -N/A |
|
352 // |
|
353 [Test] |
|
354 title MOD_0002.019_1_NokiaTSY_[HW ManualNetworkSelection_ManualSelection] |
|
355 create NTT_NWE test |
|
356 create NTT_Notify notify1 |
|
357 create NTT_Notify notify2 |
|
358 create NTT_Notify notify3 |
|
359 create NTT_Notify notify4 |
|
360 notify1 UseObjectAddress test NotifyNetworkRegistrationStatusChange |
|
361 notify2 UseObjectAddress test NotifyNetworkSelectionSettingChange |
|
362 notify3 UseObjectAddress test NotifyCurrentNetworkChange |
|
363 notify4 UseObjectAddress test NotifyModeChange |
|
364 test ManualNetworkSelection DONT_CARE_NETWORK_NAME |
|
365 waittestclass test |
|
366 delete test |
|
367 delete notify1 |
|
368 delete notify2 |
|
369 delete notify3 |
|
370 delete notify4 |
|
371 [Endtest] |
|
372 |
|
373 // AT THE MOMENT THIS TEST CASE DOESN'T WORK, BECAUSE OF NETWORK SELECTION IS TOO FAST... |
|
374 // |
|
375 // [Test] |
|
376 // // |
|
377 // // NOTE: Use NTN SIM card when testing this case |
|
378 // // |
|
379 // title MOD_0002.020_1_NokiaTSY_[HW ManualNetworkSelectionCancel_ManualSelection] |
|
380 // create NTT_NWE test |
|
381 // test ManualNetworkSelection DONT_CARE_NETWORK_NAME |
|
382 // test ManualNetworkSelectionCancel |
|
383 // waittestclass test |
|
384 // delete test |
|
385 // [Endtest] |
|
386 |
|
387 // MOD_0002.023_1_NokiaTSY_[HW Verify WCDMA Cell_DCH state info] |
|
388 // |
|
389 // Precondition: |
|
390 // - No special preconditions |
|
391 // |
|
392 // Script description: |
|
393 // - GetNetworkInfo |
|
394 // params: |
|
395 // function to test |
|
396 // NetworkMode |
|
397 // LocationArea |
|
398 // wanted mode (in NetworkMode) |
|
399 // NetworkModeUnknown |
|
400 // NetworkModeUnregistered |
|
401 // NetworkModeGsm |
|
402 // NetworkModeAmps |
|
403 // NetworkModeCdma95 |
|
404 // NetworkModeCdma2000 |
|
405 // NetworkModeWcdma |
|
406 // wanted mode (in LocationArea) |
|
407 // True |
|
408 // False |
|
409 // |
|
410 // - WaitForCallStatusChange |
|
411 // params: |
|
412 // none |
|
413 // |
|
414 // NOTE: If error -1111 is received it means that the received values |
|
415 // didn't match with the expected ones. Not a real error code. |
|
416 // |
|
417 [Test] |
|
418 title MOD_0002.023_1_NokiaTSY_[HW Verify WCDMA Cell_DCH state info] |
|
419 create NTT_NWE test |
|
420 |
|
421 test CustomSetSystemNetworkMode NetworkUmts |
|
422 waittestclass test |
|
423 |
|
424 test GetNetworkInfo NetworkMode NetworkModeWcdma |
|
425 waittestclass test |
|
426 |
|
427 test GetNetworkInfo LocationArea True |
|
428 waittestclass test |
|
429 |
|
430 //-------- make a manual call somewhere and answer to it ----- |
|
431 |
|
432 test WaitForCallStatusChange |
|
433 waittestclass test |
|
434 |
|
435 test GetNetworkInfo NetworkMode NetworkModeWcdma |
|
436 waittestclass test |
|
437 |
|
438 test GetNetworkInfo LocationArea False |
|
439 waittestclass test |
|
440 |
|
441 //-------- disconnect call from callers phone ----------------- |
|
442 |
|
443 test WaitForCallStatusChange |
|
444 |
|
445 //KErrGsmReleaseByUser |
|
446 allownextresult -8071 |
|
447 waittestclass test |
|
448 |
|
449 //make sure CellMo is idle again |
|
450 pause 2000 |
|
451 |
|
452 test GetNetworkInfo NetworkMode NetworkModeWcdma |
|
453 waittestclass test |
|
454 |
|
455 test GetNetworkInfo LocationArea True |
|
456 waittestclass test |
|
457 |
|
458 delete test |
|
459 [Endtest] |
|
460 |
|
461 // not suppoted for S60 ver 3.2 |
|
462 #if ( NCP_COMMON_S60_VERSION_SUPPORT != S60_VERSION_32 ) |
|
463 |
|
464 // MOD_0002.024_1_NokiaTSY_[HW CustomSetBandSelection_UMTS850] |
|
465 // |
|
466 // Precondition: |
|
467 // -N/A |
|
468 // |
|
469 // Script description: |
|
470 // -N/A |
|
471 // |
|
472 [Test] |
|
473 title MOD_0002.024_1_NokiaTSY_[HW CustomSetBandSelection_UMTS850] |
|
474 create NTT_NWE test |
|
475 |
|
476 test CustomSetBandSelection NetworkUmts Band850 |
|
477 allownextresult 0 |
|
478 waittestclass test |
|
479 |
|
480 delete test |
|
481 [Endtest] |
|
482 |
|
483 // MOD_0002.025_1_NokiaTSY_[HW CustomSetBandSelection_UMTS2100] |
|
484 // |
|
485 // Precondition: |
|
486 // -N/A |
|
487 // |
|
488 // Script description: |
|
489 // -N/A |
|
490 // |
|
491 [Test] |
|
492 title MOD_0002.025_1_NokiaTSY_[HW CustomSetBandSelection_UMTS2100] |
|
493 create NTT_NWE test |
|
494 |
|
495 test CustomSetBandSelection NetworkUmts Band2100 |
|
496 allownextresult 0 |
|
497 waittestclass test |
|
498 |
|
499 delete test |
|
500 [Endtest] |
|
501 |
|
502 // MOD_0002.026_1_NokiaTSY_[HW CustomGetBandSelection] |
|
503 // |
|
504 // Precondition: |
|
505 // -N/A |
|
506 // |
|
507 // Script description: |
|
508 // -N/A |
|
509 // |
|
510 [Test] |
|
511 title MOD_0002.026_1_NokiaTSY_[HW CustomGetBandSelection] |
|
512 create NTT_NWE test |
|
513 |
|
514 test CustomGetBandSelection |
|
515 allownextresult 0 |
|
516 waittestclass test |
|
517 |
|
518 delete test |
|
519 [Endtest] |
|
520 |
|
521 // MOD_0002.027_1_NokiaTSY_[HW CustomSetBandSelection_ANY] |
|
522 // |
|
523 // Precondition: |
|
524 // -N/A |
|
525 // |
|
526 // Script description: |
|
527 // -N/A |
|
528 // |
|
529 [Test] |
|
530 title MOD_0002.027_1_NokiaTSY_[HW CustomSetBandSelection_ANY] |
|
531 create NTT_NWE test |
|
532 |
|
533 test CustomSetBandSelection NetworkDual BandAny |
|
534 allownextresult 0 |
|
535 waittestclass test |
|
536 |
|
537 delete test |
|
538 [Endtest] |
|
539 |
|
540 #endif //NCP_COMMON_S60_VERSION_SUPPORT |
|
541 |
|