messagingfw/msgtestfw/TestCases/ScriptedTestCases/CopyDeleteImap4Email.script
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     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 //	CopyDeleteImap4Email.script
       
    18 // ------------------------------------------
       
    19 // Component Under Test:
       
    20 //	email-imap4servermtm
       
    21 // ------------------------------------------
       
    22 // API function under test:
       
    23 //	CImImap4Compound::DeleteL()
       
    24 // ------------------------------------------
       
    25 // Requirement/Use Case/Functional Spec:
       
    26 //	n/a
       
    27 // ------------------------------------------
       
    28 // Test Type (unit, integration, panic, performance, conformance, stress, or interoperability):
       
    29 //	Integration
       
    30 // ------------------------------------------
       
    31 // Expected Panic ID (if a panic test, only for non-scripted test cases):
       
    32 //	n/a
       
    33 // ------------------------------------------
       
    34 // Interface Dependencies (does it require connection, which subsystems does it require):
       
    35 // 	None
       
    36 // ------------------------------------------
       
    37 // Importance (critical, high, or low):
       
    38 //	Low
       
    39 // ------------------------------------------
       
    40 // Execution Time (fast, medium, or slow):
       
    41 //	Fast
       
    42 // ------------------------------------------
       
    43 // Pre-condition description:
       
    44 //	NTRAS server should be configured and running,
       
    45 //	An email account should be crated,
       
    46 //	Use the same email account for sending email.
       
    47 //      Flag "DeleteEmailWhenDisconnected" should be set to 1.
       
    48 // ------------------------------------------
       
    49 // Action Description:
       
    50 //	Moving a message from local drafts folder to remote imap4 server inbox folder	
       
    51 //
       
    52 // 	1. Connect to imap4 server
       
    53 //	2. Synchronize local folder with that of remote
       
    54 //	3. Delete all the existing mails
       
    55 //	4. Send a new message to the same email address
       
    56 // 	5. Copy the email from Inbox to other personal folder say "Mail"
       
    57 // 	6. Disconnect imap4 connection
       
    58 //	7. Delete both the mails
       
    59 //	8. Connect to imap4 server
       
    60 //	9. Check the child count in inbox and mail folder, it should be one each
       
    61 //	9. Disconnect
       
    62 //	10. Verify the delete by counting the no. of children, should be zero.
       
    63 //	
       
    64 // ------------------------------------------
       
    65 // Post-condition description (i.e., expected outcome):
       
    66 //	See above
       
    67 // ------------------------------------------
       
    68 // Any CommDb restrictions:
       
    69 //	NTRAS commDb is required
       
    70 // ------------------------------------------
       
    71 // Build Requirements (e.g., no watchers):
       
    72 //	No watchers
       
    73 // ------------------------------------------
       
    74 // Hardware Requirements
       
    75 //
       
    76 // ------------------------------------------
       
    77 
       
    78 RUN_UTILS DeleteFile c:\messaging.db
       
    79 LOAD_SUITE MessagingTestServer -SharedData
       
    80 
       
    81 CED c:\msgtest\TestFramework\Configurations\CommDbSettings\NtRasLongIdleTimeout.cfg
       
    82 RUN_TEST_STEP 100 MessagingTestServer BEGIN_TEST_CASE
       
    83 
       
    84 RUN_TEST_STEP 100 MessagingTestServer SETUP_TEST_CASE
       
    85 RUN_TEST_STEP 100 MessagingTestServer GetBaseConstants					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini GetBaseConstants
       
    86 RUN_TEST_STEP 100 MessagingTestServer InitNtRas							c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini InitNtRas
       
    87 RUN_TEST_STEP 100 MessagingTestServer CreateSession						c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CreateSession
       
    88 RUN_TEST_STEP 100 MessagingTestServer ResetMessageStore					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini ResetMessageStore
       
    89 RUN_TEST_STEP 100 MessagingTestServer CreateImap4Service				c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CreateImap4Service
       
    90 RUN_TEST_STEP 100 MessagingTestServer CreateSmtpService					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CreateSmtpService
       
    91 RUN_TEST_STEP 100 MessagingTestServer CreateRegistry					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CreateRegistry
       
    92 RUN_TEST_STEP 100 MessagingTestServer CreateImap4Mtm					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CreateImap4Mtm
       
    93 RUN_TEST_STEP 100 MessagingTestServer CreateSmtpMtm						c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CreateSmtpMtm
       
    94 RUN_TEST_STEP 100 MessagingTestServer SetImap4ServiceParameters			c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini SetImap4ServiceParameters
       
    95 RUN_TEST_STEP 100 MessagingTestServer SetSmtpServiceParameters			c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini SetSmtpServiceParameters
       
    96 RUN_TEST_STEP 100 MessagingTestServer ConnectImap4Server   				c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini ConnectImap4Server0
       
    97 RUN_TEST_STEP 100 MessagingTestServer DoFullImap4Synchronisation		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DoFullImap4Synchronisation0
       
    98 RUN_TEST_STEP 100 MessagingTestServer FindEntryByName					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini FindEntryByName0
       
    99 RUN_TEST_STEP 100 MessagingTestServer FindEntryByName					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini FindEntryByName1
       
   100 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DeleteChildren0
       
   101 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DeleteChildren1
       
   102 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount				c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CheckChildrenCount0
       
   103 RUN_TEST_STEP 100 MessagingTestServer DisconnectImap4Server				c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DisconnectImap4Server0
       
   104 
       
   105 RUN_TEST_STEP 100 MessagingTestServer EXECUTE_TEST_CASE
       
   106 RUN_TEST_STEP 100 MessagingTestServer CreateSmtpMessageFromEmailFile	c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CreateSmtpMessageFromEmailFile
       
   107 RUN_TEST_STEP 100 MessagingTestServer CopyEntry					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CopyEntry
       
   108 RUN_TEST_STEP 100 MessagingTestServer ConnectImap4Server		   		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini ConnectImap4Server1
       
   109 RUN_TEST_STEP 100 MessagingTestServer CopyEntry						c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CopyEntry1
       
   110 RUN_TEST_STEP 100 MessagingTestServer DoFullImap4Synchronisation   		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DoFullImap4Synchronisation1
       
   111 RUN_TEST_STEP 100 MessagingTestServer DisconnectImap4Server				c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DisconnectImap4Server1
       
   112 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DeleteChildren2
       
   113 RUN_TEST_STEP 100 MessagingTestServer DeleteChildren					c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DeleteChildren3
       
   114 RUN_TEST_STEP 100 MessagingTestServer ConnectImap4Server		   		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini ConnectImap4Server2
       
   115 RUN_TEST_STEP 100 MessagingTestServer DoFullImap4Synchronisation   		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DoFullImap4Synchronisation2
       
   116 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount		   		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CheckChildrenCount1
       
   117 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount		   		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CheckChildrenCount2
       
   118 RUN_TEST_STEP 100 MessagingTestServer DisconnectImap4Server				c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini DisconnectImap4Server2
       
   119 
       
   120 RUN_TEST_STEP 100 MessagingTestServer CHECK_POSTCONDITIONS
       
   121 RUN_TEST_STEP 100 MessagingTestServer CheckChildrenCount		   		c:\msgtest\TestFramework\ScriptedTestCases\CopyDeleteImap4Email.ini CheckChildrenCount3
       
   122 RUN_TEST_STEP 100 MessagingTestServer END_TEST_CASE