|
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 // Test Case Name: |
|
17 // ConnectAndPopulateWithSearchStrImap4Email.script |
|
18 // ------------------------------------------ |
|
19 // Component Under Test: |
|
20 // Email |
|
21 // ------------------------------------------ |
|
22 // API function under test: |
|
23 // CImap4ClientMtm::InvokeAsyncFunctionL() |
|
24 // with IMAP4 command KIMAP4MTMConnectAndPopulateAllMailAndStayOnline |
|
25 // ------------------------------------------ |
|
26 // Requirement/Use Case/Functional Spec: |
|
27 // DEF085091 |
|
28 // ------------------------------------------ |
|
29 // Polarity: |
|
30 // Positive |
|
31 // ------------------------------------------ |
|
32 // Test Type (unit, integration, panic, performance, conformance, stress, or interoperability): |
|
33 // Integration |
|
34 // ------------------------------------------ |
|
35 // Expected Panic ID (if a panic test, only for non-scripted test cases): |
|
36 // n/a |
|
37 // ------------------------------------------ |
|
38 // Interface Dependencies (does it require connection, which subsystems does it require): |
|
39 // NTRAS |
|
40 // ------------------------------------------ |
|
41 // Importance (critical, high, or low): |
|
42 // High |
|
43 // ------------------------------------------ |
|
44 // Execution Time (fast, medium, or slow): |
|
45 // medium |
|
46 // ------------------------------------------ |
|
47 // Pre-condition description: |
|
48 // 1. Set the SMTP and IMAP4 service settings for an IMAP4 account |
|
49 // 2. Connect to IMAP4 server and synchronise with the IMAP4 server |
|
50 // 3. Disconnect from IMAP4 server |
|
51 // |
|
52 // The Local Inbox and Sent Item folders and the remote Inbox folder of IMAP4 |
|
53 // account are cleaned up before starting the test. |
|
54 // ------------------------------------------ |
|
55 // Action Description: |
|
56 // Main purpose of test that to check that emails marked as New get populated (and stay as |
|
57 // as new after ConnectAndPopulateAllMailAndStayOnline operation. |
|
58 // |
|
59 // Implementation and execution: |
|
60 // 1. Create 8 emails from data file and send emails to the same account |
|
61 // 2. Synchronise Inbox |
|
62 // 3. Synchronise Inbox |
|
63 // 4. Fetch the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline command |
|
64 // 5. Disconnect from IMAP4 server |
|
65 // 6. Check the received messages' flags. |
|
66 // |
|
67 // |
|
68 // |
|
69 // ------------------------------------------ |
|
70 // Any CommDb restrictions: |
|
71 // NTRAS CommDb (should have reasonably long idle timeout values to avoid disconnection during |
|
72 // Sleep actions |
|
73 // ------------------------------------------ |
|
74 // Build Requirements (e.g., no watchers): |
|
75 // No Watchers and Phone Book Synchroniser |
|
76 // ------------------------------------------ |
|
77 // Hardware Requirements |
|
78 // Null Modem Cable for NT RAS connection |
|
79 // ------------------------------------------ |
|
80 RUN_UTILS DeleteFile c:\messaging.db |
|
81 LOAD_SUITE MessagingTestServer -SharedData |
|
82 |
|
83 PREFIX RUN_TEST_STEP 100 MessagingTestServer |
|
84 BEGIN_TEST_CASE |
|
85 SETUP_TEST_CASE |
|
86 GetBaseConstants c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini GetBaseConstants |
|
87 InitNtRas c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini InitNtRas |
|
88 CreateSession c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini CreateSession |
|
89 ResetMessageStore c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini ResetMessageStore |
|
90 CreateImap4Service c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini CreateImap4Service |
|
91 CreateSmtpService c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini CreateSmtpService |
|
92 CreateRegistry c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini CreateRegistry |
|
93 CreateImap4Mtm c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini CreateImap4Mtm |
|
94 CreateSmtpMtm c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini CreateSmtpMtm |
|
95 GetDefaultSmtpService c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini GetDefaultSmtpService |
|
96 SetImap4ServiceParameters c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini SetImap4ServiceParameters |
|
97 SetSmtpServiceParameters c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini SetSmtpServiceParameters |
|
98 SetDefaultConfiguration c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini SetDefaultConfiguration1 |
|
99 ConnectImap4Server c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini ConnectImap4Server0 |
|
100 DoFullImap4Synchronisation c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini DoFullImap4Synchronisation0 |
|
101 Sleep c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini Sleep5 |
|
102 DisconnectImap4Server c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini DisconnectImap4Server0 |
|
103 EXECUTE_TEST_CASE |
|
104 ConnectImap4Server c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini ConnectImap4Server1 |
|
105 DoFullImap4Synchronisation c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini DoFullImap4Synchronisation1 |
|
106 Sleep c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini Sleep5 |
|
107 DisconnectImap4Server c:\msgtest\TestFramework\ScriptedTestCases\ConnectAndPopulateImap4EmailTests.ini DisconnectImap4Server1 |
|
108 CHECK_POSTCONDITIONS |
|
109 END_TEST_CASE |