messagingfw/msgtestfw/TestCases/ScriptedTestCases/Pop3TopTest22.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 RUN_UTILS DeleteFile c:\messaging.db
       
    18 LOAD_SUITE MessagingTestServer -SharedData
       
    19 
       
    20 //CED c:\msgtest\TestFramework\Configurations\CommDbSettings\NtRasLongIdleTimeout.cfg
       
    21 RUN_TEST_STEP 100 MessagingTestServer BEGIN_TEST_CASE
       
    22 
       
    23 
       
    24 RUN_TEST_STEP 100 MessagingTestServer SETUP_TEST_CASE
       
    25 // intial setup, constants, ntras, a session, clean the mail store,
       
    26 // create services, registry, mtms, etc.
       
    27 RUN_TEST_STEP 100 MessagingTestServer GetBaseConstants					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini GetBaseConstants
       
    28 RUN_TEST_STEP 100 MessagingTestServer InitNtRas							c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini InitNtRas
       
    29 RUN_TEST_STEP 100 MessagingTestServer CreateSession						c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreateSession
       
    30 RUN_TEST_STEP 100 MessagingTestServer ResetMessageStore					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini ResetMessageStore
       
    31 RUN_TEST_STEP 100 MessagingTestServer CreatePop3Service					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreatePop3Service
       
    32 RUN_TEST_STEP 100 MessagingTestServer CreateSmtpService					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreateSmtpService
       
    33 RUN_TEST_STEP 100 MessagingTestServer CreateRegistry					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreateRegistry
       
    34 RUN_TEST_STEP 100 MessagingTestServer CreatePop3Mtm						c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreatePop3Mtm
       
    35 RUN_TEST_STEP 100 MessagingTestServer CreateSmtpMtm						c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreateSmtpMtm
       
    36 RUN_TEST_STEP 100 MessagingTestServer GetDefaultSmtpService			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini GetDefaultSmtpService
       
    37 RUN_TEST_STEP 100 MessagingTestServer SetPop3ServiceParameters			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini SetPop3ServiceParameters
       
    38 RUN_TEST_STEP 100 MessagingTestServer SetSmtpServiceParameters			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini SetSmtpServiceParameters
       
    39 
       
    40 //create a pop populate object that downloads 5 lines
       
    41 RUN_TEST_STEP 100 MessagingTestServer CreatePop3MailInfo				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreatePop3MailInfo
       
    42 //create a pop populate object that downloads all the message
       
    43 RUN_TEST_STEP 100 MessagingTestServer CreatePop3MailInfo				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreatePop3MailInfo2
       
    44 
       
    45 //create an object containing what we expect the downloaded email to have
       
    46 RUN_TEST_STEP 100 MessagingTestServer CreateExpPop3MailInfo				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreateExpPop3MailInfo0
       
    47 
       
    48 //?default settings?
       
    49 RUN_TEST_STEP 100 MessagingTestServer SetDefaultConfiguration			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini	SetDefaultConfiguration_1
       
    50 
       
    51 // clean out the mail box
       
    52 // connect to the pop server, delete everything and disconnect
       
    53 RUN_TEST_STEP 100 MessagingTestServer ConnectPop3Server   				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini ConnectPop3Server0
       
    54 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini DeleteChildren
       
    55 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CheckChildrenCount0
       
    56 RUN_TEST_STEP 100 MessagingTestServer DisconnectPop3Server				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini DisconnectPop3Server0
       
    57 // send one message to the mail box, sleep to ensure it gets there, check the sent folder
       
    58 // has one message in it.
       
    59 RUN_TEST_STEP 100 MessagingTestServer CreateSmtpMessageFromEmailFile	c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini	CreateSmtpMessageFromEmailFile
       
    60 RUN_TEST_STEP 100 MessagingTestServer CopyEntry							c:\msgtest\TestFramework\ScriptedTestCases\CreateSendReceivePop3Email.ini CopyEntry
       
    61 RUN_TEST_STEP 100 MessagingTestServer Sleep								c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini Sleep10
       
    62 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CheckChildrenCount_sent4
       
    63 
       
    64 // connect to pop3 server and partially populate the one message there then disconnect
       
    65 RUN_TEST_STEP 100 MessagingTestServer ConnectPop3Server	   				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini ConnectPop3Server1
       
    66 RUN_TEST_STEP 100 MessagingTestServer CreateChildrenSelection			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini	CreateChildrenSelectionPop3
       
    67 RUN_TEST_STEP 100 MessagingTestServer Pop3TopPopulate					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini Pop3TopPopulate
       
    68 RUN_TEST_STEP 100 MessagingTestServer DisconnectPop3Server				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini DisconnectPop3Server1
       
    69 
       
    70 // The test:
       
    71 //			connect to pop3 server with one message one it that has already been partially
       
    72 //			populated populate the message with limit set to all the message
       
    73 //			disconect
       
    74 
       
    75 RUN_TEST_STEP 100 MessagingTestServer EXECUTE_TEST_CASE
       
    76 RUN_TEST_STEP 100 MessagingTestServer ConnectPop3Server	   				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini ConnectPop3Server1
       
    77 RUN_TEST_STEP 100 MessagingTestServer CreateChildrenSelection			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini	CreateChildrenSelectionPop3_2
       
    78 RUN_TEST_STEP 100 MessagingTestServer Pop3TopPopulate					c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini Pop3TopPopulate2
       
    79 RUN_TEST_STEP 100 MessagingTestServer DisconnectPop3Server				c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini DisconnectPop3Server1
       
    80 
       
    81 // Expected result:
       
    82 //			message is fully downloaded (no footer just some body text).
       
    83 
       
    84 RUN_TEST_STEP 100 MessagingTestServer CHECK_POSTCONDITIONS
       
    85 RUN_TEST_STEP 100 MessagingTestServer CreateChildrenSelection			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini	CreateChildrenSelectionPop3
       
    86 RUN_TEST_STEP 100 MessagingTestServer CreateChildrenSelection			c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini CreateChildrenSentItems
       
    87 RUN_TEST_STEP 100 MessagingTestServer VerifyEmail						c:\msgtest\TestFramework\ScriptedTestCases\Pop3TopTest22.ini VerifyEmail
       
    88 
       
    89 RUN_TEST_STEP 100 MessagingTestServer END_TEST_CASE