|
1 // Copyright (c) 2004-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 // Telephony Fax Test server test code. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include "TE_cntSyncServer.h" |
|
24 #include "te_cntsyncbase.h" |
|
25 |
|
26 #include "te_cntsyncread.h" |
|
27 #include "te_cntsyncsync.h" |
|
28 #include "te_cntsyncadd.h" |
|
29 #include "te_cntsyncedit.h" |
|
30 #include "te_cntsyncdelete.h" |
|
31 #include "te_cntsyncfind.h" |
|
32 #include "te_cntsyncstress.h" |
|
33 #include "te_cntsyncview.h" |
|
34 |
|
35 _LIT(KServerName,"TE_CntSync"); |
|
36 |
|
37 |
|
38 CCntSyncTestServer::~CCntSyncTestServer() |
|
39 { |
|
40 // |
|
41 // Shutdown the server if possible (only works in debug mode). |
|
42 // |
|
43 RPhoneBookSession phoneBookSession; |
|
44 TInt ret; |
|
45 |
|
46 ret = phoneBookSession.Connect(); |
|
47 if (ret == KErrNone) |
|
48 { |
|
49 phoneBookSession.ShutdownServer(EFalse); |
|
50 phoneBookSession.Close(); |
|
51 } |
|
52 } // CCntSyncTestServer::~CCntSyncTestServer |
|
53 |
|
54 |
|
55 /** |
|
56 * Called inside the MainL() function to create and start the CTestServer |
|
57 * derived server. |
|
58 * |
|
59 * @return Instance of the test server |
|
60 */ |
|
61 CCntSyncTestServer* CCntSyncTestServer::NewL() |
|
62 { |
|
63 CCntSyncTestServer* server = new(ELeave) CCntSyncTestServer(); |
|
64 CleanupStack::PushL(server); |
|
65 // CServer base class call |
|
66 server->StartL(KServerName); |
|
67 CleanupStack::Pop(server); |
|
68 return server; |
|
69 } // CFaxTestIntServer::NewL |
|
70 |
|
71 |
|
72 /** |
|
73 * Uses the new Rendezvous() call to sync with the client. |
|
74 */ |
|
75 LOCAL_C void MainL() |
|
76 { |
|
77 // |
|
78 // Start an active scheduler... |
|
79 // |
|
80 CActiveScheduler* scheduler = new(ELeave) CActiveScheduler; |
|
81 CleanupStack::PushL(scheduler); |
|
82 CActiveScheduler::Install(scheduler); |
|
83 |
|
84 // |
|
85 // Ensure the SIMTSY config number is reset prior to starting... |
|
86 // |
|
87 TInt result; |
|
88 |
|
89 result = RProperty::Set(KUidPSSimTsyCategory, KPSSimTsyTestNumber, 0); |
|
90 if (result != KErrNone && result != KErrNotFound) |
|
91 { |
|
92 User::Leave(result); |
|
93 } |
|
94 |
|
95 // |
|
96 // Create the CTestServer derived server... |
|
97 // |
|
98 CCntSyncTestServer* server = NULL; |
|
99 |
|
100 TRAPD(err, server = CCntSyncTestServer::NewL()); |
|
101 if (err == KErrNone) |
|
102 { |
|
103 // |
|
104 // Sync with the client and enter the active scheduler |
|
105 // |
|
106 RProcess::Rendezvous(KErrNone); |
|
107 scheduler->Start(); |
|
108 } |
|
109 |
|
110 // |
|
111 // Clean up... |
|
112 // |
|
113 CleanupStack::Pop(scheduler); |
|
114 delete server; |
|
115 delete scheduler; |
|
116 } // MainL |
|
117 /** |
|
118 * @return Standard Epoc error code on exit. |
|
119 */ |
|
120 GLDEF_C TInt E32Main() |
|
121 { |
|
122 CTrapCleanup* cleanup = CTrapCleanup::New(); |
|
123 |
|
124 if (cleanup == NULL) |
|
125 { |
|
126 return KErrNoMemory; |
|
127 } |
|
128 |
|
129 TRAPD(err, MainL()); |
|
130 |
|
131 delete cleanup; |
|
132 |
|
133 return err; |
|
134 } // E32Main |
|
135 |
|
136 |
|
137 /** |
|
138 * Implementation of CTestServer pure virtual. |
|
139 * |
|
140 * @return A CTestStep derived instance. |
|
141 */ |
|
142 CTestStep* CCntSyncTestServer::CreateTestStep(const TDesC& aStepName) |
|
143 { |
|
144 // |
|
145 // Create the required test step... |
|
146 // |
|
147 CTestStep* testStep = NULL; |
|
148 |
|
149 if (aStepName == _L("ReadICCContactTest")) |
|
150 { |
|
151 testStep = new CPhbkSyncReadICCContactTest(); |
|
152 } |
|
153 else if (aStepName == _L("ReadAdditionalNumTagsTest")) |
|
154 { |
|
155 testStep = new CPhbkSyncReadAdditionalNumTagsTest(); |
|
156 } |
|
157 else if (aStepName == _L("ReadSequenceOfICCEntriesTest")) |
|
158 { |
|
159 testStep = new CPhbkSyncReadSequenceOfICCEntriesTest(); |
|
160 } |
|
161 else if (aStepName == _L("ReadContactInvalidUIDTest")) |
|
162 { |
|
163 testStep = new CPhbkSyncReadContactInvalidUIDTest(); |
|
164 } |
|
165 else if (aStepName == _L("ReadContactsEmptyFieldTest")) |
|
166 { |
|
167 testStep = new CPhbkSyncReadContactsEmptyFieldTest(); |
|
168 } |
|
169 else if (aStepName == _L("ReadContactFullViewICCLockedTest")) |
|
170 { |
|
171 testStep = new CPhbkSyncReadContactFullViewICCLockedTest(); |
|
172 } |
|
173 else if (aStepName == _L("ReadContactDiffViewsTest")) |
|
174 { |
|
175 testStep = new CPhbkSyncReadContactDiffViewsTest(); |
|
176 } |
|
177 else if (aStepName == _L("ReadICCMinimalContactTest")) |
|
178 { |
|
179 testStep = new CPhbkSyncReadICCMinimalContactTest(); |
|
180 } |
|
181 else if (aStepName == _L("ReadMinimalContactInvalidUIDTest")) |
|
182 { |
|
183 testStep = new CPhbkSyncReadMinimalContactInvalidUIDTest(); |
|
184 } |
|
185 else if (aStepName == _L("ReadMinimalContactEmptyFieldTest")) |
|
186 { |
|
187 testStep = new CPhbkSyncReadMinimalContactEmptyFieldTest(); |
|
188 } |
|
189 else if (aStepName == _L("ReadMinimalContactICCLockedTest")) |
|
190 { |
|
191 testStep = new CPhbkSyncReadMinimalContactICCLockedTest(); |
|
192 } |
|
193 else if (aStepName == _L("ReadContactTextDefFullViewTest")) |
|
194 { |
|
195 testStep = new CPhbkSyncReadContactTextDefFullViewTest(); |
|
196 } |
|
197 else if (aStepName == _L("ReadContactNameTextDefTest")) |
|
198 { |
|
199 testStep = new CPhbkSyncReadContactNameTextDefTest(); |
|
200 } |
|
201 else if (aStepName == _L("ReadContactNumberTextDefTest")) |
|
202 { |
|
203 testStep = new CPhbkSyncReadContactNumberTextDefTest(); |
|
204 } |
|
205 else if (aStepName == _L("ReadContactInvalidTextDefTest")) |
|
206 { |
|
207 testStep = new CPhbkSyncReadContactInvalidTextDefTest(); |
|
208 } |
|
209 else if (aStepName == _L("ReadContactICCLockedTest")) |
|
210 { |
|
211 testStep = new CPhbkSyncReadContactICCLockedTest(); |
|
212 } |
|
213 else if (aStepName == _L("ReadFullICCNameViewTest")) |
|
214 { |
|
215 testStep = new CPhbkSyncReadFullICCNameViewTest(); |
|
216 } |
|
217 else if (aStepName == _L("ReadFullICCNumberViewTest")) |
|
218 { |
|
219 testStep = new CPhbkSyncReadFullICCNumberViewTest(); |
|
220 } |
|
221 else if (aStepName == _L("ReadFullICCFullViewTest")) |
|
222 { |
|
223 testStep = new CPhbkSyncReadFullICCFullViewTest(); |
|
224 } |
|
225 else if (aStepName == _L("ReadFullICCNameTextDefTest")) |
|
226 { |
|
227 testStep = new CPhbkSyncReadFullICCNameTextDefTest(); |
|
228 } |
|
229 else if (aStepName == _L("ReadFullICCNumberTextDefTest")) |
|
230 { |
|
231 testStep = new CPhbkSyncReadFullICCNumberTextDefTest(); |
|
232 } |
|
233 else if (aStepName == _L("ReadFullICCFullViewTextDefTest")) |
|
234 { |
|
235 testStep = new CPhbkSyncReadFullICCFullViewTextDefTest(); |
|
236 } |
|
237 else if (aStepName == _L("ReadInternationalNumberTest")) |
|
238 { |
|
239 testStep = new CPhbkSyncReadInternationalNumberTest(); |
|
240 } |
|
241 else if (aStepName == _L("ReadWithOutOpeningPhBkSyncFirstTest")) |
|
242 { |
|
243 testStep = new CPhbkSyncReadWithOutOpeningPhBkSyncFirstTest(); |
|
244 } |
|
245 else if (aStepName == _L("SyncAutomaticSameICCTest")) |
|
246 { |
|
247 testStep = new CPhbkSyncAutomaticSameICCTest(); |
|
248 } |
|
249 else if (aStepName == _L("SyncAutomaticCurrentICCTest")) |
|
250 { |
|
251 testStep = new CPhbkSyncAutomaticCurrentICCTest(); |
|
252 } |
|
253 else if (aStepName == _L("SyncManualTest")) |
|
254 { |
|
255 testStep = new CPhbkSyncManualTest(); |
|
256 } |
|
257 else if (aStepName == _L("SyncManualNotReadyTest")) |
|
258 { |
|
259 testStep = new CPhbkSyncManualNotReadyTest(); |
|
260 } |
|
261 else if (aStepName == _L("SyncManualDiffSizeSIMTest")) |
|
262 { |
|
263 testStep = new CPhbkSyncManualDiffSizeSIMTest(); |
|
264 } |
|
265 else if (aStepName == _L("SyncSATUpdatesTest")) |
|
266 { |
|
267 testStep = new CPhbkSyncSATUpdatesTestBase(); |
|
268 } |
|
269 else if (aStepName == _L("SyncConsecutiveTest")) |
|
270 { |
|
271 testStep = new CPhbkSyncConsecutiveTestBase(); |
|
272 } |
|
273 else if (aStepName == _L("SyncMultipleRequestsTest")) |
|
274 { |
|
275 testStep = new CPhbkSyncMultipleRequestsTestBase(); |
|
276 } |
|
277 else if (aStepName == _L("SyncGeneralResponseTest")) |
|
278 { |
|
279 testStep = new CPhbkSyncGeneralResponseTestBase(); |
|
280 } |
|
281 else if (aStepName == _L("SyncICCLockedTest")) |
|
282 { |
|
283 testStep = new CPhbkSyncICCLockedTestBase(); |
|
284 } |
|
285 else if (aStepName == _L("SyncFailureTest")) |
|
286 { |
|
287 testStep = new CPhbkSyncFailureTestBase(); |
|
288 } |
|
289 else if (aStepName == _L("SyncFailureAndCheckErrorTest")) |
|
290 { |
|
291 testStep = new CPhbkSyncFailureAndCheckErrorTestBase(); |
|
292 } |
|
293 else if (aStepName == _L("SyncNotificationTest")) |
|
294 { |
|
295 testStep = new CPhbkSyncNotificationTestBase(); |
|
296 } |
|
297 else if (aStepName == _L("SyncDeleteDBTest")) |
|
298 { |
|
299 testStep = new CPhbkSyncDeleteDBTestBase(); |
|
300 } |
|
301 else if (aStepName == _L("SyncEmptyICCTest")) |
|
302 { |
|
303 testStep = new CPhbkSyncEmptyICCTestBase(); |
|
304 } |
|
305 else if (aStepName == _L("SyncICCSlotsManipulationTest")) |
|
306 { |
|
307 testStep = new CPhbkSyncICCSlotsManipulationTestBase(); |
|
308 } |
|
309 else if (aStepName == _L("SyncICCSlotsManipulationAndWriteTest")) |
|
310 { |
|
311 testStep = new CPhbkSyncICCSlotsManipulationAndWriteTestBase(); |
|
312 } |
|
313 else if (aStepName == _L("SyncAndGetContactFormatTest")) |
|
314 { |
|
315 testStep = new CPhbkSyncGetAndContactFormatTestBase(); |
|
316 } |
|
317 else if (aStepName == _L("SetSyncModeAndAutoSyncTest")) |
|
318 { |
|
319 testStep = new CPhbkSyncSetSyncModeAndAutoSyncTest(); |
|
320 } |
|
321 else if (aStepName == _L("SyncUnsupportedPhonebook")) |
|
322 { |
|
323 testStep = new CPhbkSyncSyncUnsupportedPhonebook(); |
|
324 } |
|
325 else if (aStepName == _L("SyncDiffNumberTypesRepeatedly")) |
|
326 { |
|
327 testStep = new CPhbkSyncSyncDiffNumberTypesRepeatedly(); |
|
328 } |
|
329 else if (aStepName == _L("SyncInternationalNumbers")) |
|
330 { |
|
331 testStep = new CPhbkSyncSyncInternationalNumbers(); |
|
332 } |
|
333 else if (aStepName == _L("SyncAutomaticWithUnsupportedPhonebook")) |
|
334 { |
|
335 testStep = new CPhbkSyncSyncAutomaticWithUnsupportedPhonebook(); |
|
336 } |
|
337 else if (aStepName == _L("AddICCContactTest")) |
|
338 { |
|
339 testStep = new CPhbkAddICCContactTest(); |
|
340 } |
|
341 else if (aStepName == _L("AddEntryEmptyNameTest")) |
|
342 { |
|
343 testStep = new CPhbkAddEntryEmptyNameTest(); |
|
344 } |
|
345 else if (aStepName == _L("AddEntryEmptyNumberTest")) |
|
346 { |
|
347 testStep = new CPhbkAddEntryEmptyNumberTest(); |
|
348 } |
|
349 else if (aStepName == _L("AddEntryEmptyEmailTest")) |
|
350 { |
|
351 testStep = new CPhbkAddEntryEmptyEmailTest(); |
|
352 } |
|
353 else if (aStepName == _L("AddAdditionalNumWithTagTest")) |
|
354 { |
|
355 testStep = new CPhbkAddAdditionalNumWithTagTest(); |
|
356 } |
|
357 else if (aStepName == _L("AddPhonebookFullTest")) |
|
358 { |
|
359 testStep = new CPhbkAddPhonebookFullTest(); |
|
360 } |
|
361 else if (aStepName == _L("AddBoundaryConditionsTest")) |
|
362 { |
|
363 testStep = new CPhbkAddBoundaryConditionsTest(); |
|
364 } |
|
365 else if (aStepName == _L("AddNameBoundaryExceededTest")) |
|
366 { |
|
367 testStep = new CPhbkAddNameBoundaryExceededTest(); |
|
368 } |
|
369 else if (aStepName == _L("AddNumberBoundaryExceededTest")) |
|
370 { |
|
371 testStep = new CPhbkAddNumberBoundaryExceededTest(); |
|
372 } |
|
373 else if (aStepName == _L("AddSequenceOfEntriesTest")) |
|
374 { |
|
375 testStep = new CPhbkAddSequenceOfEntriesTest(); |
|
376 } |
|
377 else if (aStepName == _L("AddEntryICCLockedTest")) |
|
378 { |
|
379 testStep = new CPhbkAddEntryICCLockedTest(); |
|
380 } |
|
381 else if (aStepName == _L("AddEntryICCWriteFailsTest")) |
|
382 { |
|
383 testStep = new CPhbkAddEntryICCWriteFailsTest(); |
|
384 } |
|
385 else if (aStepName == _L("AddEntryInvalidFieldTest")) |
|
386 { |
|
387 testStep = new CPhbkAddEntryInvalidFieldTest(); |
|
388 } |
|
389 else if (aStepName == _L("AddEntryNumberWithDTMFTest")) |
|
390 { |
|
391 testStep = new CPhbkAddEntryNumberWithDTMFTest(); |
|
392 } |
|
393 else if (aStepName == _L("AddEntryReadOnlyAccessTest")) |
|
394 { |
|
395 testStep = new CPhbkAddEntryReadOnlyAccessTest(); |
|
396 } |
|
397 else if (aStepName == _L("OpenICCContactTest")) |
|
398 { |
|
399 testStep = new CPhbkOpenICCContactTest(); |
|
400 } |
|
401 else if (aStepName == _L("OpenContactInvalidUIDTest")) |
|
402 { |
|
403 testStep = new CPhbkOpenContactInvalidUIDTest(); |
|
404 } |
|
405 else if (aStepName == _L("EditICCContactTest")) |
|
406 { |
|
407 testStep = new CPhbkEditICCContactTest(); |
|
408 } |
|
409 else if (aStepName == _L("EditICCContactTwiceTest")) |
|
410 { |
|
411 testStep = new CPhbkEditICCContactTwiceTest(); |
|
412 } |
|
413 else if (aStepName == _L("EditContactEmptyNameTest")) |
|
414 { |
|
415 testStep = new CPhbkEditContactEmptyNameTest(); |
|
416 } |
|
417 else if (aStepName == _L("EditContactEmptyNumberTest")) |
|
418 { |
|
419 testStep = new CPhbkEditContactEmptyNumberTest(); |
|
420 } |
|
421 else if (aStepName == _L("EditContactNameExceededTest")) |
|
422 { |
|
423 testStep = new CPhbkEditContactNameExceededTest(); |
|
424 } |
|
425 else if (aStepName == _L("EditContactNumberExceededTest")) |
|
426 { |
|
427 testStep = new CPhbkEditContactNumberExceededTest(); |
|
428 } |
|
429 else if (aStepName == _L("EditContactICCLockedTest")) |
|
430 { |
|
431 testStep = new CPhbkEditContactICCLockedTest(); |
|
432 } |
|
433 else if (aStepName == _L("EditContactICCWriteFailsTest")) |
|
434 { |
|
435 testStep = new CPhbkEditContactICCWriteFailsTest(); |
|
436 } |
|
437 else if (aStepName == _L("EditContactEmptyFieldsTest")) |
|
438 { |
|
439 testStep = new CPhbkEditContactEmptyFieldsTest(); |
|
440 } |
|
441 else if (aStepName == _L("EditSlotWriteTest")) |
|
442 { |
|
443 testStep = new CPhbkEditSlotWriteTest(); |
|
444 } |
|
445 else if (aStepName == _L("OpenContactICCLockedTest")) |
|
446 { |
|
447 testStep = new CPhbkOpenContactICCLockedTest(); |
|
448 } |
|
449 else if (aStepName == _L("OpenEntryReadOnlyAccessTest")) |
|
450 { |
|
451 testStep = new CPhbkOpenEntryReadOnlyAccessTest(); |
|
452 } |
|
453 else if (aStepName == _L("OpenFullICCTest")) |
|
454 { |
|
455 testStep = new CPhbkOpenFullICCTest(); |
|
456 } |
|
457 else if (aStepName == _L("DeleteICCContactTest")) |
|
458 { |
|
459 testStep = new CPhbkDeleteICCContactTest(); |
|
460 } |
|
461 else if (aStepName == _L("DeleteEntryInvalidUIDTest")) |
|
462 { |
|
463 testStep = new CPhbkDeleteEntryInvalidUIDTest(); |
|
464 } |
|
465 else if (aStepName == _L("DeleteEntryICCLockedTest")) |
|
466 { |
|
467 testStep = new CPhbkDeleteEntryICCLockedTest(); |
|
468 } |
|
469 else if (aStepName == _L("DeleteEntryICCDeleteFailsTest")) |
|
470 { |
|
471 testStep = new CPhbkDeleteEntryICCDeleteFailsTest(); |
|
472 } |
|
473 else if (aStepName == _L("DeleteEntryReadOnlyAccessTest")) |
|
474 { |
|
475 testStep = new CPhbkDeleteEntryReadOnlyAccessTest(); |
|
476 } |
|
477 else if (aStepName == _L("DeleteArrayOneEntryTest")) |
|
478 { |
|
479 testStep = new CPhbkDeleteArrayOneEntryTest(); |
|
480 } |
|
481 else if (aStepName == _L("DeleteArrayInvalidIdTest")) |
|
482 { |
|
483 testStep = new CPhbkDeleteArrayInvalidIdTest(); |
|
484 } |
|
485 else if (aStepName == _L("DeleteArrayMultipleEntriesTest")) |
|
486 { |
|
487 testStep = new CPhbkDeleteArrayMultipleEntriesTest(); |
|
488 } |
|
489 else if (aStepName == _L("DeleteArrayICCLockedTest")) |
|
490 { |
|
491 testStep = new CPhbkDeleteArrayICCLockedTest(); |
|
492 } |
|
493 else if (aStepName == _L("DeleteArrayReadOnlyAccessTest")) |
|
494 { |
|
495 testStep = new CPhbkDeleteArrayReadOnlyAccessTest(); |
|
496 } |
|
497 else if (aStepName == _L("DeleteArrayICCDeleteFailsTest")) |
|
498 { |
|
499 testStep = new CPhbkDeleteArrayICCDeleteFailsTest(); |
|
500 } |
|
501 else if (aStepName == _L("DeleteArrayInvalidUIDTest")) |
|
502 { |
|
503 testStep = new CPhbkDeleteArrayInvalidUIDTest(); |
|
504 } |
|
505 else if (aStepName == _L("DeleteArrayFullPhonebookTest")) |
|
506 { |
|
507 testStep = new CPhbkDeleteArrayFullPhonebookTest(); |
|
508 } |
|
509 else if (aStepName == _L("DeleteAllEntriesTest")) |
|
510 { |
|
511 testStep = new CPhbkDeleteAllEntriesTest(); |
|
512 } |
|
513 else if (aStepName == _L("DeleteSlotEntryTwiceTest")) |
|
514 { |
|
515 testStep = new CPhbkDeleteSlotEntryTwiceTest(); |
|
516 } |
|
517 else if (aStepName == _L("FindByNameTest")) |
|
518 { |
|
519 testStep = new CPhbkFindByNameTest(); |
|
520 } |
|
521 else if (aStepName == _L("FindByNumberTest")) |
|
522 { |
|
523 testStep = new CPhbkFindByNumberTest(); |
|
524 } |
|
525 else if (aStepName == _L("FindByNonExistingNameTest")) |
|
526 { |
|
527 testStep = new CPhbkFindByNonExistingNameTest(); |
|
528 } |
|
529 else if (aStepName == _L("FindByNonExistingNumberTest")) |
|
530 { |
|
531 testStep = new CPhbkFindByNonExistingNumberTest(); |
|
532 } |
|
533 else if (aStepName == _L("FindByNumberAsyncSearchTest")) |
|
534 { |
|
535 testStep = new CPhbkFindByNumberAsyncSearchTest(); |
|
536 } |
|
537 else if (aStepName == _L("FindByNameAsyncSearchTest")) |
|
538 { |
|
539 testStep = new CPhbkFindByNameAsyncSearchTest(); |
|
540 } |
|
541 else if (aStepName == _L("FindByNonExistNumAsyncSearchTest")) |
|
542 { |
|
543 testStep = new CPhbkFindByNonExistNumAsyncSearchTest(); |
|
544 } |
|
545 else if (aStepName == _L("FindByNameICCLockedTest")) |
|
546 { |
|
547 testStep = new CPhbkFindByNameICCLockedTest(); |
|
548 } |
|
549 else if (aStepName == _L("FindByNumberICCLockedTest")) |
|
550 { |
|
551 testStep = new CPhbkFindByNumberICCLockedTest(); |
|
552 } |
|
553 else if (aStepName == _L("FindByNumICCLockedAsyncSearchTest")) |
|
554 { |
|
555 testStep = new CPhbkFindByNumICCLockedAsyncSearchTest(); |
|
556 } |
|
557 else if (aStepName == _L("FindByInternationalPrefixTest")) |
|
558 { |
|
559 testStep = new CPhbkFindByInternationalPrefixTest(); |
|
560 } |
|
561 else if (aStepName == _L("FindByInterPrefixAsyncSearchTest")) |
|
562 { |
|
563 testStep = new CPhbkFindByInterPrefixAsyncSearchTest(); |
|
564 } |
|
565 else if (aStepName == _L("LaunchServerSimultaneouslyTest")) |
|
566 { |
|
567 testStep = new CPhbkLaunchServerSimultaneouslyTest(); |
|
568 } |
|
569 else if (aStepName == _L("RequestDoSyncSimultaneouslyTest")) |
|
570 { |
|
571 testStep = new CPhbkRequestDoSyncSimultaneouslyTest(); |
|
572 } |
|
573 else if (aStepName == _L("RequestReadSimultaneouslyTest")) |
|
574 { |
|
575 testStep = new CPhbkRequestReadSimultaneouslyTest(); |
|
576 } |
|
577 else if (aStepName == _L("RequestWriteSimultaneouslyTest")) |
|
578 { |
|
579 testStep = new CPhbkRequestWriteSimultaneouslyTest(); |
|
580 } |
|
581 else if (aStepName == _L("RequestDeleteSimultaneouslyTest")) |
|
582 { |
|
583 testStep = new CPhbkRequestDeleteSimultaneouslyTest(); |
|
584 } |
|
585 else if (aStepName == _L("RequestSyncAndReadSimultaneouslyTest")) |
|
586 { |
|
587 testStep = new CPhbkRequestSyncAndReadSimultaneouslyTest(); |
|
588 } |
|
589 else if (aStepName == _L("CheckServerThreadPriorityTest")) |
|
590 { |
|
591 testStep = new CPhbkCheckServerThreadPriorityTest(); |
|
592 } |
|
593 else if (aStepName == _L("ServerLostFileRecoveryTest")) |
|
594 { |
|
595 testStep = new CPhbkServerLostFileRecoveryTest(); |
|
596 } |
|
597 else if (aStepName == _L("IntegrationBackupTest")) |
|
598 { |
|
599 testStep = new CPhbkIntegrationBackupTest(); |
|
600 } |
|
601 else if (aStepName == _L("ViewICCSyncTest")) |
|
602 { |
|
603 testStep = new CPhbkViewICCSyncTest(); |
|
604 } |
|
605 else if (aStepName == _L("ViewICCLockedICCTest")) |
|
606 { |
|
607 testStep = new CPhbkViewICCLockedICCTest(); |
|
608 } |
|
609 else if (aStepName == _L("ViewICCLockedMixedTest")) |
|
610 { |
|
611 testStep = new CPhbkViewICCLockedMixedTest(); |
|
612 } |
|
613 else if (aStepName == _L("ViewICCSinglePhonebookTest")) |
|
614 { |
|
615 testStep = new CPhbkViewICCSinglePhonebookTest(); |
|
616 } |
|
617 else if (aStepName == _L("AddEntryWithNoTemplate")) |
|
618 { |
|
619 testStep = new CPhbkAddEntryWithNoTemplateTest(); |
|
620 } |
|
621 |
|
622 // |
|
623 // Set the test step name here to save code!!! |
|
624 // |
|
625 if (testStep != NULL) |
|
626 { |
|
627 testStep->SetTestStepName(aStepName); |
|
628 } |
|
629 |
|
630 return testStep; |
|
631 } // CCntSyncTestServer::CreateTestStep |