|
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 |
|
19 //! NEED TO RUN THIS TEST CASES MANUALLY USING H4 BOARD |
|
20 |
|
21 //! @file |
|
22 //! @SYMTestSuiteName MSG-REMOVE-MEDIA-0007 |
|
23 //! @SYMScriptTestEnvironment Details as in below:- |
|
24 //! 1. nt-ras connection or winpcap |
|
25 //! 2. email servers ( communigatePro or ms exchange) |
|
26 //! 3. test driver |
|
27 //! 4. testexecute framework(TEF3.0) |
|
28 //! |
|
29 //! @SYMScriptPurpose Integration testing of PREQ557-"Improved support in Messaging for removable media" |
|
30 |
|
31 START_TESTCASE MSG-REMOVE-MEDIA-0007 |
|
32 //! @SYMTestCaseID MSG-REMOVE-MEDIA-0007 |
|
33 //! @SYMPREQ PREQ557 |
|
34 //! @SYMTestActions 1: Update Priority of the Drive C |
|
35 //! 2: Create message |
|
36 //! 3: Verify count |
|
37 //! 4: Move store (copy and then do delete entries present in draft folder in the present drive i.e C drive) |
|
38 //! 5: Update Priority of the Drive E |
|
39 //! 6: Create message |
|
40 //! 7: Verify count |
|
41 //! 8: Move store (copy and then do delete entries present in draft folder in the present drive i.e E drive) |
|
42 //! 9: Manually remove the MMC card |
|
43 //! 10: Create message |
|
44 //! 11: Verify count |
|
45 //! 12: Delete all msg in present drive messages (you cannot delete msg from draft folders created in E drive) |
|
46 //! 13: Verify count (since all the message created in C drive are deleted so count is zero) |
|
47 //! @SYMTestExpectedResults Verify results should be success |
|
48 |
|
49 START_TEST_BLOCK 100 t_media c:\msgtest\media\msg-remove-media.ini |
|
50 CREATE_OBJECT CenRepTestWrapper 0100_obj |
|
51 COMMAND 0100_obj ResetCentralRepository 0100_ResetCentralRepository |
|
52 END_TEST_BLOCK |
|
53 |
|
54 //! Create a Prefered Drive List |
|
55 RUN_UTILS CopyFile c:\private\1000484b\msgprioritydrivelist.ini c:\private\1000484b\msgprioritydrivelist.bak |
|
56 RUN_UTILS MakeReadWrite c:\private\1000484b\msgprioritydrivelist.ini |
|
57 RUN_UTILS CopyFile c:\msgtest\media\msg-preferred-0008.ini c:\private\1000484b\msgprioritydrivelist.ini |
|
58 |
|
59 START_TEST_BLOCK 100 t_media c:\msgtest\media\msg-remove-media.ini |
|
60 CREATE_OBJECT MediaTestWrapper 0100_obj |
|
61 COMMAND 0100_obj CreateSMSAccount |
|
62 COMMAND 0100_obj CreateSMS |
|
63 COMMAND 0100_obj VerifyCount smsCount1 |
|
64 |
|
65 COMMAND 0100_obj CopyStore EDrive |
|
66 COMMAND 0100_obj DeleteMsg |
|
67 |
|
68 COMMAND 0100_obj UpdateDrive UpdateDriveE |
|
69 COMMAND 0100_obj CreateSMSAccount |
|
70 COMMAND 0100_obj CreateSMS |
|
71 COMMAND 0100_obj VerifyCount smsCount2 |
|
72 COMMAND 0100_obj CopyStore CDrive |
|
73 COMMAND 0100_obj DeleteMsg |
|
74 COMMAND 0100_obj RemoveMMC |
|
75 |
|
76 COMMAND 0100_obj CreateSMS |
|
77 COMMAND 0100_obj VerifyCount smsCount3 |
|
78 COMMAND 0100_obj DeleteMsg |
|
79 COMMAND 0100_obj VerifyCount smsCount0 |
|
80 |
|
81 COMMAND 0100_obj UpdateDrive UpdateDriveC |
|
82 COMMAND 0100_obj VerifyCount smsCount0 |
|
83 END_TEST_BLOCK |
|
84 |
|
85 RUN_UTILS MakeReadWrite c:\private\1000484b\msgprioritydrivelist.ini |
|
86 RUN_UTILS CopyFile c:\private\1000484b\msgprioritydrivelist.bak c:\private\1000484b\msgprioritydrivelist.ini |
|
87 RUN_UTILS DeleteFile c:\private\1000484b\msgprioritydrivelist.bak |
|
88 |
|
89 END_TESTCASE MSG-REMOVE-MEDIA-0007 |
|
90 |
|
91 |
|
92 |
|
93 |