|
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 DEF059571 |
|
18 //! @SYMTestType UT |
|
19 //! @SYMTestPriority High |
|
20 //! @SYMDEF DEF062024 |
|
21 //! @SYMDEF T_DEF062024_Imap_MissingOffsetInfiniteLoop.exe |
|
22 //! @SYMTestCaseDesc Implements an IMAP server to facilitate offline testing of imap parsing. |
|
23 //! The sever contains and retrieves an email with two body parts the second being HTML. The fetch resonse from the server |
|
24 //! is missing the offset parameter ie |
|
25 //! << * 1 FETCH (BODY[2] {785} is received, rather than the more typical: |
|
26 //! << * 1 FETCH (BODY[2] <0> {785} |
|
27 //! The aim of the test is to check that the bodydata is correctly fetched, specifically in the case that the body data |
|
28 //! is HTML starting with the "<" character. The size of the received data is compared to confirm correct download. |
|
29 //! @SYMTestActions 1. The Server is started and listens on port 143. |
|
30 //! 2. The client connects to the server, requests a sync and a populate |
|
31 //! 3. The server reads the protocol information from a file specified in the ini file (ImapMissingOffsetTest.ini). |
|
32 //! 4. The client disconnects. |
|
33 //! 5. The size of the bodyparts downloaded is compared with known correct values. |
|
34 //! @SYMTestExpectedResults The bodyparts should have the same size source file originally attached. |
|
35 |
|
36 PRINT Run T_DEF059571_Imap_MissingOffset Test |
|
37 LOAD_SUITE T_DEF059571_Imap_MissingOffset -SharedData |
|
38 |
|
39 RUN_TEST_STEP 1000 T_DEF059571_Imap_MissingOffset TestImapMissingOffset c:\msgtest\imap\ImapMissingOffsetTest.ini Section1 |