messagingfw/msgtestfw/TestCases/ScriptedTestCases/ImapSearchTests/3_TestInboxSync.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 // Test script: 3_TestInboxSync.script
       
    17 
       
    18 //!@file
       
    19 //! @SYMTestCaseID MSG-IMAP-712-3-CP
       
    20 //! @SYMTestType UT
       
    21 //! @SYMTestPriority Critical
       
    22 //! @SYMPREQ 712
       
    23 //! @SYMTestCaseDesc Retrieves first all messages, then retrieves messages that match the specified search string on the IMAP account.
       
    24 //! @SYMTestActions First clean out the remote inbox and local message store, send the test emails, get all messages and check, then get messages matching the search string and check they were the only ones retrieved
       
    25 //! @SYMTestExpectedResults On the first retrieval the inbox should contain 10 messages, after the second retrieval the inbox should contain only 5 messages
       
    26 
       
    27 
       
    28 PRINT Running Test 3, verify that local inbox matches fetch operation
       
    29 
       
    30 // First clean out the remote inbox and local message store
       
    31 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\imapsearchtests\clean_all.script
       
    32 
       
    33 // Send the test emails
       
    34 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\imapsearchtests\send_emails.script
       
    35 
       
    36 // get all messages, should have 10 messages after this step
       
    37 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\imapsearchtests\imap_sync.script
       
    38 
       
    39 // get only messages matching search string, should have only 5 messages after this step
       
    40 RUN_SCRIPT c:\msgtest\testframework\scriptedtestcases\imapsearchtests\imap_sync_search_enabled.script