|
1 // |
|
2 // Copyright (c) 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 LOAD_SERVER t_media -SharedData |
|
18 LOAD_SUITE T_MsgCommonServer -SharedData |
|
19 |
|
20 //! @file |
|
21 //! @SYMTestSuiteName MSG-REMOVE-MEDIA-0001 |
|
22 //! @SYMScriptTestEnvironment Details as in below:- |
|
23 //! 1. nt-ras connection or winpcap |
|
24 //! 2. email servers ( communigatePro or ms exchange) |
|
25 //! 3. test driver |
|
26 //! 4. testexecute framework(TEF3.0) |
|
27 //! |
|
28 //! @SYMScriptPurpose Integration testing of PREQ557-"Improved support in Messaging for removable media" |
|
29 |
|
30 START_TEST_BLOCK 100 t_media c:\msgtest\media\MSG-REMOVE-MEDIA.ini |
|
31 CREATE_OBJECT CenRepTestWrapper 0100_obj |
|
32 COMMAND 0100_obj ResetCentralRepository 0100_ResetCentralRepository |
|
33 END_TEST_BLOCK |
|
34 |
|
35 RUN_TEST_STEP 300 T_MsgCommonServer StartUp |
|
36 RUN_TEST_STEP 300 T_MsgCommonServer ResetMessageStore c:\msgtest\media\MSG-REMOVE-MEDIA.ini 0001-ResetMessageStore |
|
37 |
|
38 //! Create a Prefered Drive List |
|
39 RUN_UTILS CopyFile c:\private\1000484b\msgprioritydrivelist.ini c:\private\1000484b\msgprioritydrivelist.bak |
|
40 RUN_UTILS MakeReadWrite c:\private\1000484b\msgprioritydrivelist.ini |
|
41 |
|
42 START_TESTCASE MSG-REMOVE-MEDIA-0001 |
|
43 //! @SYMTestCaseID MSG-REMOVE-MEDIA-0001 |
|
44 //! @SYMPREQ PREQ557 |
|
45 //! @SYMTestActions 1: Update The Priority of Drive C |
|
46 //! 2: CreateSms and Verify Count |
|
47 //! 3: Update Priority of the Drive D |
|
48 //! 4: CreateSms and Verify Count |
|
49 //! 5: Remove The Drive D and VerifyCount |
|
50 //! @SYMTestExpectedResults CreateSms and VerifyCount should pass |
|
51 |
|
52 |
|
53 START_TEST_BLOCK 100 t_media c:\msgtest\media\MSG-REMOVE-MEDIA.ini |
|
54 CREATE_OBJECT MediaTestWrapper 0001_obj_1 |
|
55 COMMAND 0001_obj_1 UpdateDrive UpdateDriveC |
|
56 COMMAND 0001_obj_1 DeleteMsg |
|
57 COMMAND 0001_obj_1 UpdateDrive UpdateDriveD |
|
58 COMMAND 0001_obj_1 DeleteMsg |
|
59 COMMAND 0001_obj_1 UpdateDrive UpdateDriveE |
|
60 COMMAND 0001_obj_1 DeleteMsg |
|
61 |
|
62 COMMAND 0001_obj_1 UpdateDrive UpdateDriveC |
|
63 COMMAND 0001_obj_1 CreateSMSAccount |
|
64 COMMAND 0001_obj_1 CreateSMS |
|
65 COMMAND 0001_obj_1 VerifyCount smsCount1 |
|
66 |
|
67 COMMAND 0001_obj_1 UpdateDrive UpdateDriveD |
|
68 COMMAND 0001_obj_1 CreateSMSAccount |
|
69 COMMAND 0001_obj_1 CreateSMS |
|
70 COMMAND 0001_obj_1 VerifyCount smsCount2 |
|
71 |
|
72 COMMAND 0001_obj_1 RemoveDrive RemDriveD |
|
73 COMMAND 0001_obj_1 VerifyCount smsCount1 |
|
74 COMMAND 0001_obj_1 AddDrive AddDriveD |
|
75 |
|
76 COMMAND 0001_obj_1 UpdateDrive UpdateDriveC |
|
77 COMMAND 0001_obj_1 DeleteMsg |
|
78 COMMAND 0001_obj_1 UpdateDrive UpdateDriveD |
|
79 COMMAND 0001_obj_1 DeleteMsg |
|
80 END_TEST_BLOCK |
|
81 END_TESTCASE MSG-REMOVE-MEDIA-0001 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |