|
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 //! @file |
|
17 //! @SYMTestCaseID DEF067159 |
|
18 //! @SYMTestType UT |
|
19 //! @SYMTestPriority High |
|
20 //! @SYMDEF DEF067159 |
|
21 //! @SYMTestCaseDesc IMAP spoof server test that checks that a new message indication is correctly handled if idle read is being cancelled during a sync |
|
22 //! The server waits for the idle read to be cancelled by the sync command, and then sends a '* 2 EXISTS' command to indicate that |
|
23 //! a new message has arrived. |
|
24 //! @SYMTestActions 1. The Server is started and listens on port 143. |
|
25 //! 2. The client connects to the server, requests a sync and a populate. |
|
26 //! 3. Client / server interact to complete the sync and populate. One message is fetched. |
|
27 //! 4. The client requests a full sync (causing the idle read cancel). |
|
28 //! 5. The server indicates a new message has arrived |
|
29 //! 6. Client / server interact to complete the full sync. The new message is fetched |
|
30 //! 7. The client requests a full sync (causing the idle read cancel). |
|
31 //! 8. The server indicates a new message has arrived |
|
32 //! 9. Client / server interact to complete the full sync. The new message is fetched |
|
33 //! 10. The client disconnects. |
|
34 //! @SYMTestExpectedResults Client should have fetched three messages |
|
35 |
|
36 PRINT Run T_ImapNewMsgDuringSyncIdleCancel Test |
|
37 LOAD_SUITE T_ImapNewMsgDuringSyncIdleCancel -SharedData |
|
38 |
|
39 RUN_TEST_STEP 1000 T_ImapNewMsgDuringSyncIdleCancel TestImapNewMsgDuringSyncIdleCancel c:\msgtest\imap\ImapNewMsgDuringSyncIdleCancelTest.ini Section1 |