//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//
//! @file

RUN_UTILS DeleteFile c:\messaging.db

LOAD_SUITE	T_MsgCommonServer  	-SharedData
LOAD_SUITE	T_MsgImapServer		-SharedData
LOAD_SUITE	T_MsgSmtpServer		-SharedData


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0001
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0001
//!	@SYMTestCaseDesc		Verification:
//!					This Test Deletes Single Message in offline Mode then does a CancelOfflineOperations & checks if the message is not deleted
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Initialise Imap Account
//!					Disconnect
//!					Create messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set the full download limits.
//!					Download limit:
//!						MaxEmailSize = Default (KMaxInt)
//!						ImapMailOption = TImap4GetMailOptions::EGetImap4EmailBodyTextAndAttachments
//!					Connect to the Imap Account
//!					Download the mails
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Delete Message from specified Folder
//!					Connect to the Imap Server
//!					CancelOfflineOperations
//!					Do full Synchronisation
//!					Check the message is not deleted.
//!	@SYMTestExpectedResults		EPass,The message is not deleted from the specified(Inobx) folder.
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-CreateImapAccount 
RUN_TEST_STEP 	100 	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-ChangeSubAndSyncSettings
RUN_TEST_STEP 	100 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-ConnectImap4Server
RUN_TEST_STEP	100	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DoFullImap4Synchronisation
RUN_TEST_STEP 	100 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-InitialiseImap4Account
RUN_TEST_STEP	100	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-CreateSmtpMessageFromEmailFile
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-CheckChildrenCountOutbox1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		ImapInvokeAsyncFunction		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-ImapInvokeAsyncFunction
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DisConnectImap4Server
//Delete message
RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteMessage			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DeleteMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-ConnectImap4Server
//Cancel Delete Operation
RUN_TEST_STEP 	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0001-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0001


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0002
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0002
//!	@SYMTestCaseDesc		Verification:
//!					This Test Deletes Multiple Messages, Cancels Offline Operations & verifes that messages are not deleted
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Initialises Imap account
//!					Disconnect
//!					Create multiple messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set the full download limits.
//!					Download Limits:
//!						MaxEmailSize = Default (KMaxInt)
//!						ImapMailOption = TImap4GetMailOptions::EGetImap4EmailBodyTextAndAttachments
//!					Connect
//!					Download the mails
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Delete (5) Messages from specified Folder
//!					Connect to the Imap Server
//!					CancelOfflineOperations
//!					Do full Synchronisation
//!					Check the (5) messages are not deleted. (if the message deleted was from Remote Folder)
//!	@SYMTestExpectedResults		EPass,(5) Messages are not deleted from the specified(Inbox) folder (as well as from ImapServer if the messages are in RemoteImapFolder)
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CreateImapAccount 
RUN_TEST_STEP 	100 	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-ChangeSubAndSyncSettings
RUN_TEST_STEP 	100 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-ConnectImap4Server
RUN_TEST_STEP	100	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DoFullImap4Synchronisation
RUN_TEST_STEP 	100 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-InitialiseImap4Account
RUN_TEST_STEP	100	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CreateSmtpMessageFromEmailFile0
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CreateSmtpMessageFromEmailFile1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CreateSmtpMessageFromEmailFile2
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CreateSmtpMessageFromEmailFile3
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CreateSmtpMessageFromEmailFile4
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CheckChildrenCountOutbox5
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		ImapInvokeAsyncFunction		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-ImapInvokeAsyncFunction
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DisConnectImap4Server
//Delete all the mails
RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DeleteAllImapChildren
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-ConnectImap4Server
//Cancel delete Operation
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0002-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0002


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0003
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0003
//!	@SYMTestCaseDesc		Verification:
//!					This Test Copies Single Message,CancelOfflineOperations & checks the messages are not copied
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Initialises Imap account
//!					Disconnect
//!					Create messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set the full download limits.
//!					Download Limits:
//!						MaxEmailSize = Default (KMaxInt)
//!						ImapMailOption = TImap4GetMailOptions::EGetImap4EmailBodyTextAndAttachments
//!					Connect
//!					Download the mails
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Copy Message from Inbox Folder
//!					CancelOfflineOperations
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the message is not copied.
//!	@SYMTestExpectedResults		EPass,The message is not copied from Inbox to Drafts folder
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-SubscribeImapFolder_Drafts
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CreateSmtpMessageFromEmailFile
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CheckChildrenCountOutbox1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini 	0003-DoFullImap4Synchronisation
RUN_TEST_STEP 300 	T_MsgImapServer		ImapInvokeAsyncFunction		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-ImapInvokeAsyncFunction
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-DisConnectImap4Server
//Copy Message from Inbox to drafts
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CopyMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-ConnectImap4Server
//cancel Offline Operation
RUN_TEST_STEP 	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-CheckChildrenCountRemoteDrafts0
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-UnsubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0003-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0003


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0004
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0004
//!	@SYMTestCaseDesc		Verification:
//!					This Test Copies Multiple Messages,then do CancelsOfflineOperations & checks if the messages are copied
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Intialises Imap Account
//!					Disconnect
//!					Create multiple messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set the full download limits.
//!					Download Limits:
//!						MaxEmailSize = Default (KMaxInt)
//!						ImapMailOption = TImap4GetMailOptions::EGetImap4EmailBodyTextAndAttachments
//!					Connect
//!					Download the mails
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Copy Messages from inbox Folder to drafts folder
//!					Connect to the Imap Server
//!					CancelOfflineOperations
//!					Do full Synchronisation
//!					Check the messages are not copied to the Drafts folder.
//!	@SYMTestExpectedResults		EPass,Messages are not copied from the inbox folder to drafts folder
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-SubscribeImapFolder_Drafts
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CreateSmtpMessageFromEmailFile0
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CreateSmtpMessageFromEmailFile1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CreateSmtpMessageFromEmailFile2
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CreateSmtpMessageFromEmailFile3
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CreateSmtpMessageFromEmailFile4
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CheckChildrenCountOutbox5
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		ImapInvokeAsyncFunction		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-ImapInvokeAsyncFunction
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DisConnectImap4Server
//Copying msgs to Drafts folder from Inbox
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CopyMessage0
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CopyMessage1
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CopyMessage2
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CopyMessage3
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CopyMessage4
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-ConnectImap4Server
//Cancelling Offline Operations
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-CheckChildrenCountRemoteDrafts0
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-UnsubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0004-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0004


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0005
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0005
//!	@SYMTestCaseDesc		Verification:
//!					This Test Moves Single Message,CancelOfflineOperations & checks if the message is not moved
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Initialises Imap Account
//!					Disconnect
//!					Create messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set the full download limits.
//!					Download Limits:
//!						MaxEmailSize = Default (KMaxInt)
//!						ImapMailOption = TImap4GetMailOptions::EGetImap4EmailBodyTextAndAttachments
//!					Connect
//!					Download the mails
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Move Message from Inbox Folder
//!					CancelOfflineOperations
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the message is not moved.
//!	@SYMTestExpectedResults		EPass,The message is not moved from Inbox to Drafts folder
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-SubscribeImapFolder_Drafts
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CreateSmtpMessageFromEmailFile
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CheckChildrenCountOutbox1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		ImapInvokeAsyncFunction		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-ImapInvokeAsyncFunction
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DisConnectImap4Server
//Move Message to Drafts Folder
RUN_TEST_STEP 	300 	T_MsgImapServer		MoveMessage			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-MoveMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-ConnectImap4Server
//Cancelling Offline Operation
RUN_TEST_STEP 	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-CheckChildrenCountRemoteDrafts0
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-UnsubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0005-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0005


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0006
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0006
//!	@SYMTestCaseDesc		Verification:
//!					This Test Copies Single Partially downloaded Message (this generates a background 
//!					populate too), CancelOfflineOperations & checks the message is not copied
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Initialises Imap Account
//!					Disconnect
//!					Create messages from RFC822 file and sends the messages to the same IMAP account.
//!					Connect
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Copy Message from Inbox Folder ( This shld give populate cmd in background)
//!					CancelOfflineOperations
//!					Connect to the Imap Server
//!					Do Synchronisation
//!					Check the message is not copied.
//!	@SYMTestExpectedResults		EPass,The message is not copied from Inbox to Drafts folder
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-SubscribeImapFolder_Drafts
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CreateSmtpMessageFromEmailFile
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CheckChildrenCountOutbox1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DisConnectImap4Server
//Copy Message to Drafts folder
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CopyMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-ConnectImap4Server
//Cancel Offline Copy Operation
RUN_TEST_STEP 	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CheckChildrenCountRemoteInbox1
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-CheckChildrenCountRemoteDrafts0
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-UnsubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0006-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0006


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0007
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0007
//!	@SYMTestCaseDesc		Verification:
//!					This Test Copies Multiple Partially downloaded Messages(this initiates in background
//!					populate), CancelOfflineOperations & checks the messages are not copied
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform Partial sync to get headers of the messages sent.
//!					Delete all mails in the Inbox on the server.
//!					Disconnect
//!					Create multiple messages from RFC822 file and sends the messages to the same IMAP account.
//!					Connect
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Copy Messages from inbox Folder to drafts folder ( This shld give populate cmd in background)
//!					CancelOfflineOperations
//!					Connect to the Imap Server
//!					Perform sync
//!					Check the messages are not copied to the Drafts folder.
//!	@SYMTestExpectedResults		EPass,Messages are not copied from the inbox folder to drafts folder
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-SubscribeImapFolder_Drafts
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CreateSmtpMessageFromEmailFile0
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CreateSmtpMessageFromEmailFile1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CreateSmtpMessageFromEmailFile2
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CreateSmtpMessageFromEmailFile3
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CreateSmtpMessageFromEmailFile4
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CheckChildrenCountOutbox5
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DisConnectImap4Server
//Copies Messagese to drafts
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyImapSelectionRemote		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CopyImapSelectionRemote
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-ConnectImap4Server
//Cancels Offline Copy Operations
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-CheckChildrenCountRemoteDrafts0
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-UnsubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0007-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0007


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0008
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0008
//!	@SYMTestCaseDesc		Verification:
//!					This Test does Multiple Operations, Cancels Offline Operations & checks if all the operations are rolled back
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Disconnect
//!					Create multiple messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set the full download limits.
//!					Connect
//!					Download the mails
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Create multiple messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set Partial download limits
//!					Connect, Sync to get headers for the new mails & Disconnect
//!					Copy fully downloaded Messages from inbox Folder to drafts folder
//!					Delete fully downloaded messages from inbox folder
//!					Move fully downloaded messages to Drafts Folder
//!					Copy Partially downloaded messages to Sent Folder
//!					Delete partially downloaded messages from inbox folder
//!					Move partially downloaded messages from inbox to Drafts folder
//!					CancelOfflineOperations
//!					Connect to the Imap Server
//!					Do synchronisation
//!					Check the messages are not copied/moved or deleted to the Drafts/Sent folder.
//!	@SYMTestExpectedResults		EPass,Messages are not copied/moved or deleted from the inbox folder to Drafts/Sent folder
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-SubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-SubscribeImapFolder_SentItems
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile0
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile2
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile3
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile4
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CheckChildrenCountOutbox5
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-SendSmtpMessage0
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		ImapInvokeAsyncFunction		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-ImapInvokeAsyncFunction
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile5
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile6
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile7
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile8
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CreateSmtpMessageFromEmailFile9
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CheckChildrenCountOutbox5
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-SendSmtpMessage1
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CheckChildrenCountRemoteInbox10
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DisConnectImap4Server
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CopyMessage0
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CopyMessage1
RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DeleteMessage0
RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteMessage			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DeleteMessage1
RUN_TEST_STEP  	300 	T_MsgImapServer		MoveMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-MoveMessage0
//For Partially populated mails
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CopyMessage2
RUN_TEST_STEP  	300 	T_MsgImapServer		CopyMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CopyMessage3
RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DeleteMessage2
RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteMessage			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DeleteMessage3
RUN_TEST_STEP  	300 	T_MsgImapServer		MoveMessage 			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-MoveMessage1
//Cancel Operations done on Inbox,Sent Items & drafts folder
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CancelOfflineOperationsInbox
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CancelOfflineOperationsDrafts
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CancelOfflineOperationsSentItems
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CheckChildrenCountRemoteInbox10
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CheckChildrenCountRemoteDrafts0
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-CheckChildrenCountRemoteSent0
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-UnsubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-UnsubscribeImapFolder_SentItems
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0008-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0008


START_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0011
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0011
//!	@SYMTestCaseDesc		Negative:
//!					This Test Deletes Multiple Messages, Gives CancelOfflineOperations command twice & checks if the delete operation is rolled back
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Disconnect
//!					Create multiple messages from RFC822 file and sends the messages to the same IMAP account.
//!					Set the full download limits.
//!					Connect
//!					Download the mails
//!					Check the Children Count on Imap remote Folder
//!					Disconnect
//!					Delete Messages from specified Folder
//!					CancelOfflineOperations
//!					CancelOfflineOperations
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the messages are not deleted. (if the message deleted was from Remote Folder)
//!	@SYMTestExpectedResults		EPass,Messages are not deleted from the specified folder (as well as from ImapServer if the messages are in RemoteImapFolder)
//!	@SYMAuthor			Mrudul Pendharkar
//!	@SYMREQ				5586
//!	@SYMPREQ			1160

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CreateImapAccount 
RUN_TEST_STEP 	100 	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-ChangeSubAndSyncSettings
RUN_TEST_STEP 	100 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-ConnectImap4Server
RUN_TEST_STEP	100	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DoFullImap4Synchronisation
RUN_TEST_STEP 	100 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-InitialiseImap4Account
RUN_TEST_STEP	100	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CheckChildrenCountRemoteInbox0
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DisConnectImap4Server
PRINT Setup Completed
PRINT Execute begins
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CreateSmtpMessageFromEmailFile0
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CreateSmtpMessageFromEmailFile1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CreateSmtpMessageFromEmailFile2
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CreateSmtpMessageFromEmailFile3
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CreateSmtpMessageFromEmailFile4
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CheckChildrenCountOutbox5
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DoFullImap4Synchronisation
RUN_TEST_STEP	300	T_MsgImapServer		ImapInvokeAsyncFunction		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-ImapInvokeAsyncFunction
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DisConnectImap4Server
RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DeleteAllImapChildren
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-ConnectImap4Server
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CancelOfflineOperations
RUN_TEST_STEP  	300 	T_MsgImapServer		CancelOfflineOperations		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CancelOfflineOperations
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-CheckChildrenCountRemoteInbox5
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0009-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-CANCELOFFLINEOPERS-0011


START_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0001
//!	@SYMTestCaseID		MSG-IMAP-OFFLINE-COPYMSG-0001
//!	@SYMTestCaseDesc	Verification Test: Copying the message from local Inbox to remote drafts (offline)
//!
//!	@SYMTestPriority	Critical
//!   	@SYMTestType		CIT
//!  	@SYMTestStatus		Implemented
//!
//!	@SYMPREQ 		PREQ1160
//!	@SYMREQ			REQ5579
//!
//!	@SYMAPI 		CMsvEntry::MoveL()
//!					
//!	@SYMComponent 		IMAP Protocol Controller 
//!				
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions		1. 	Initialise the RAS connection
//!				2. 	Reset Message Store and Central Repository to default state
//!				3. 	Create an IMAP account by reading the settings from the file
//!				4. 	Connect to the IMAP4 server 
//!				5. 	Initialise IMAP account on remote IMAP4 server to the default clean state.
//!				6. 	Subscribe IMAP folder and then perform full sync
//!				7. 	Disconnect IMAP4 server
//!				8. 	Create a message and send the message
//!				9. 	Copy this message from the local inbox to remote drafts
//!				10. 	Connect to IMAP server using account settings and then perform full sync
//!				11.	Disconnect IMAP4 Server
//!
//!	@SYMTestExpectedResults	The message suppose to be copied to the remote drafts					
//!	@SYMAuthor		Rajat Bal

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectAndSyncImapServer	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-ConnectAndSyncImapServer
RUN_TEST_STEP 	300 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-SubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-CheckChildrenCountRemoteDraft_BeforeCopy
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-CreateSmtpMessageFromEmailFile
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-CopyMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-CheckChildrenCountRemoteDraft_AfterCopy
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0010-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0001


START_TESTCASE	MSG_IMAP_OFFLINE_COPYMSG_0002
//!	@SYMTestCaseID		MSG-IMAP-OFFLINE-COPYMSG-0002
//!	@SYMTestCaseDesc	Negative Test: Copying the message from local Inbox to nonexisting folder (offline)
//!
//!	@SYMTestPriority	Critical
//!   	@SYMTestType		CIT
//!  	@SYMTestStatus		Implemented
//!
//!	@SYMPREQ 		PREQ1160
//!	@SYMREQ			REQ5579
//!
//!	@SYMAPI 		CMsvEntry::MoveL()
//!					
//!	@SYMComponent 		IMAP Protocol Controller 
//!				
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions		1. 	Initialise the RAS connection
//!				2. 	Reset the message store to clean up the central repository
//!
//!				3. 	Create an IMAP account 'A' by reading the settings from the file
//!				4. 	Connect to the IMAP4 server using account 'A' and perform a full sync
//!				5.	Disconnect the IMAP server
//!
//!				6. 	Create an another IMAP account 'B' by reading the settings from the file
//!				7. 	Connect to the IMAP4 server using account 'B' and performs a full sync 
//!				8.	Disconnect the IMAP server
//!
//!				9. 	Connect to the IMAP4 server using account 'A' 
//!				10.	Creates a new folder 
//!				11.	Disconnect the IMAP server
//!
//!				12.	Connect to the IMAP server using account 'B' 
//!				13.	Delete the folder which was created by account 'A'
//!				14.	Disconnect the IMAP server
//!					
//!				15.	Create a Message in local inbox using account 'A'
//!				16.	Copy the message from the local inbox to the nonexisting folder using account 'A'(offline operation).
//!					
//!				17.	Connect to the IMAP4 server using account 'A' and perform a full sync
//!				18.	Confirm message still exists in local inbox
//!				19.	Disconnect the IMAP server
//!
//!	@SYMTestExpectedResults	Should not be copied to the nonexisting folder				
//!	@SYMAuthor		Rajat Bal

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-ResetMessageStore
// Create Account A 
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-CreateImapAccount_A
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-ConnectImap4Server_A
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DoFullImap4Synchronisation_A
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DisConnectImap4Server_A
// Create Account B
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-CreateImapAccount_B
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-ConnectImap4Server_B
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DoFullImap4Synchronisation_B
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DisConnectImap4Server_B
// Create folder using Account A
RUN_TEST_STEP	300	T_MsgImapServer		ConnectAndSyncImapServer	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-ConnectAndSyncImapServer_A
RUN_TEST_STEP	300	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-CreateImap4Folder_A
RUN_TEST_STEP	300	T_MsgImapServer		FindEntryByName			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-FindEntryByName_A
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DisConnectImap4Server_A
// Delete folder using Account B
RUN_TEST_STEP	300	T_MsgImapServer		ConnectAndSyncImapServer	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-ConnectAndSyncImapServer_B
RUN_TEST_STEP 	300	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DeleteImap4Folder_B
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DisConnectImap4Server_B
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-CreateSmtpMessageFromEmailFile_A
// copy the Message to Non existing folder
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-CopyMessage_A
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-SetImap4FullDownloadLimits_A
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-ConnectImap4Server_A
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DoFullImap4Synchronisation_A
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-CheckChildrenCountLocal_Inbox_A
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0011-DisConnectImap4Server_A

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG_IMAP_OFFLINE_COPYMSG_0002


START_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0003
//!	@SYMTestCaseID		MSG-IMAP-OFFLINE-COPYMSG-0003
//!	@SYMTestCaseDesc	Verification Test: Copying multiple messages from local Inbox to remote drafts (offline)
//!
//!	@SYMTestPriority	Critical
//!   	@SYMTestType		CIT
//!  	@SYMTestStatus		Implemented
//!
//!	@SYMPREQ 		PREQ1160
//!	@SYMREQ			REQ5579
//!
//!	@SYMAPI 		CMsvEntry::MoveL()
//!					
//!	@SYMComponent 		IMAP Protocol Controller 
//!				
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions		1. 	Initialise the RAS connection
//!				2. 	Reset Message Store and Central Repository to default state
//!				3. 	Create an IMAP account by reading the settings from the file
//!				4. 	Connect to the IMAP4 server 
//!				5. 	Initialise IMAP account on remote IMAP4 server to the default clean state.
//!				6. 	Subscribe IMAP folder and then perform full sync
//!				7. 	Disconnect IMAP4 server
//!				8. 	Create multiple messages and send these messages 
//!				9. 	Copy these messages from the local inbox to remote drafts
//!				10. 	Connect to IMAP server using account settings and then perform full sync
//!				11.	Disconnect IMAP4 Server
//!
//!	@SYMTestExpectedResults	All The messages suppose to be copied to the remote drafts					
//!	@SYMAuthor		Rajat Bal

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectAndSyncImapServer	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-ConnectAndSyncImapServer
RUN_TEST_STEP 	300 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-SubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-CheckChildrenCountRemoteDrafts_BeforeCopy
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-MessageWithZeroByteAttchmnt
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-MessageWithContactCard
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-MessageWithAttchmntAndNoBody
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-CheckChildrenCountInbox
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-CopyMessage_1
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-CopyMessage_2
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-CopyMessage_3
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-CheckChildrenCountRemoteDrafts_AfterCopy
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0012-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0003


START_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0004
//!	@SYMTestCaseID		MSG-IMAP-OFFLINE-COPYMSG-0004
//!	@SYMTestCaseDesc	Verification Test: Copying multiple messages from local Inbox to user defined folders (offline)
//!
//!	@SYMTestPriority	Critical
//!   	@SYMTestType		CIT
//!  	@SYMTestStatus		Implemented
//!
//!	@SYMPREQ 		PREQ1160
//!	@SYMREQ			REQ5579
//!
//!	@SYMAPI 		CMsvEntry::MoveL()
//!					
//!	@SYMComponent 		IMAP Protocol Controller 
//!				
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions		1. 	Initialise the RAS connection
//!				2. 	Reset the message store to clean up the central repository
//!				3. 	Create an IMAP account by reading the settings from the file
//!				4. 	Connect to the IMAP4 server 
//!				5. 	Initialise IMAP account on remote IMAP4 server to the default clean state.
//!				6. 	Subscribe IMAP folder and then perform full sync
//!				7. 	Disconnect IMAP4 server
//!				8. 	Create multiple message 
//!
//!				9. 	Connect to the IMAP4 server and perform a full sync 
//!				10. 	Create some folders under drafts, inbox and sent item and then subscribe these
//!				11. 	Disconnect IMAP4 server
//!
//!				12. 	Copy these messages from the local inbox to user defined folders
//!				13. 	Connect to IMAP server using account settings and then perform full sync
//!				14.	Unsubscribe IMAP folders
//!				15.	Disconnect IMAP4 Server
//!
//!	@SYMTestExpectedResults	All The messages suppose to be copied to the user defined folders				
//!	@SYMAuthor		Rajat Bal

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectAndSyncImapServer	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-ConnectAndSyncImapServer
RUN_TEST_STEP 	300 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-SubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-SubscribeImapFolder_SentItems
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CheckChildrenCountRemoteInbox
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CheckChildrenCountRemoteSentItems
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CheckChildrenCountRemoteDrafts
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-MessageWithZeroByteAttchmnt
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-MessageWithContactCard
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-MessageWithAttchmntAndNoBody
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CheckChildrenCountInbox
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CreateImap4Folder_UnderDraft
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CreateImap4Folder_UnderSent
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CreateImap4Folder_UnderInbox
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-SubscribeImapFolder_UnderDraft
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-SubscribeImapFolder_UnderSent
RUN_TEST_STEP	300	T_MsgImapServer		SubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-SubscribeImapFolder_UnderInbox
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CopyMessage_1
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CopyMessage_2
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CopyMessage_3
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CheckChildrenCountRemoteUnderDraft
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CheckChildrenCountRemoteUnderSent
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-CheckChildrenCountRemoteUnderInbox
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-UnsubscribeImapFolder_UnderDraft
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-UnsubscribeImapFolder_UnderSent
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-UnsubscribeImapFolder_UnderInbox
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-UnsubscribeImapFolder_Drafts
RUN_TEST_STEP	300	T_MsgImapServer		UnsubscribeImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-UnsubscribeImapFolder_SentItems
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0013-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0004


START_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0005
//!	@SYMTestCaseID		MSG-IMAP-OFFLINE-COPYMSG-0005
//!	@SYMTestCaseDesc	Verification Test: Copying the message from remote Inbox to local drafts (offline)
//!
//!	@SYMTestPriority	Critical
//!   	@SYMTestType		CIT
//!  	@SYMTestStatus		Implemented
//!
//!	@SYMPREQ 		PREQ1160
//!	@SYMREQ			REQ5579
//!
//!	@SYMAPI 		CMsvEntry::MoveL()
//!					
//!	@SYMComponent 		IMAP Protocol Controller 
//!				
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions		1. 	Initialise the RAS connection
//!				2. 	Reset the message store to clean up the central repository
//!				3. 	Create an IMAP account by reading the settings from the file
//!				4. 	Connect to the IMAP4 server 
//!				5. 	Initialise IMAP account on remote IMAP4 server to the default clean state and then perform a full sync
//!				6. 	Disconnect IMAP4 server
//!				7. 	Create a message and send the message
//!				8. 	Copy this message from the remote inbox to local drafts
//!				9. 	Connect to IMAP server using account settings and then perform full sync
//!				10.	Disconnect IMAP4 Server
//!
//!	@SYMTestExpectedResults	The message suppose to be copied to the local drafts					
//!	@SYMAuthor		Rajat Bal

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectAndSyncImapServer	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-ConnectAndSyncImapServer
RUN_TEST_STEP 	300 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-CheckChildrenCountRemoteInbox
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-CreateSmtpMessageFromEmailFile
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-CheckChildrenCountOutbox
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-SendSmtpMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-CopyMessage
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgCommonServer	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-CheckChildrenCountDraft
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0014-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0005


START_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0006
//!	@SYMTestCaseID		MSG-IMAP-OFFLINE-COPYMSG-0006
//!	@SYMTestCaseDesc	Verification Test: Copying multiple messages from remote Inbox to local drafts (offline)
//!
//!	@SYMTestPriority	Critical
//!   	@SYMTestType		CIT
//!  	@SYMTestStatus		Implemented
//!
//!	@SYMPREQ 		PREQ1160
//!	@SYMREQ			REQ5579
//!
//!	@SYMAPI 		CMsvEntry::MoveL()
//!					
//!	@SYMComponent 		IMAP Protocol Controller 
//!				
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions		1. 	Initialise the RAS connection
//!				2. 	Reset Message Store and Central Repository to default state
//!				3. 	Create an IMAP account by reading the settings from the file
//!				4. 	Connect to the IMAP4 server 
//!				5. 	Initialise IMAP account on remote IMAP4 server to the default clean state and then perform a full sync
//!				6. 	Disconnect IMAP4 server
//!				7. 	Create multiple messages and send these messages
//!				8. 	Copy these messages from the remote inbox to local drafts
//!				9. 	Connect to IMAP server using account settings and then perform full sync
//!				10.	Disconnect IMAP4 Server
//!
//!	@SYMTestExpectedResults	The message suppose to be copied to the local drafts					
//!	@SYMAuthor		Rajat Bal

PRINT Setup Begins #####################################################

RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
RUN_TEST_STEP	300	T_MsgImapServer	StartUp
RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-ResetMessageStore
RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-CreateImapAccount 
RUN_TEST_STEP	300	T_MsgImapServer		ChangeImap4SubAndSyncSettings	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-ChangeSubAndSyncSettings
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectAndSyncImapServer	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-ConnectAndSyncImapServer
RUN_TEST_STEP 	300 	T_MsgImapServer		InitialiseImap4Account		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-InitialiseImap4Account
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-CheckChildrenCountRemoteInbox
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-MessageWithZeroByteAttchmnt
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-SendSmtpMessage1
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-MessageWithContactCard
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-SendSmtpMessage2
RUN_TEST_STEP 	300 	T_MsgSmtpServer		CreateSmtpMessageFromEmailFile 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-MessageWithAttchmntAndNoBody
RUN_TEST_STEP 	300 	T_MsgSmtpServer		SendSmtpMessage 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-SendSmtpMessage3
RUN_TEST_STEP 	300 	T_MsgCommonServer  	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-CheckChildrenCountSent
RUN_TEST_STEP 	300 	T_MsgImapServer		SetImap4FullDownloadLimits 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-SetImap4FullDownloadLimits
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-DoFullImap4Synchronisation
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-DisConnectImap4Server
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-CopyMessage1
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-CopyMessage2
RUN_TEST_STEP 	300 	T_MsgImapServer		CopyMessage	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-CopyMessage3
RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-ConnectImap4Server
RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-DoFullImap4Synchronisation
RUN_TEST_STEP  	300 	T_MsgCommonServer	CheckChildrenCount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-CheckChildrenCountDraft
RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0015-DisConnectImap4Server

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

PRINT Execute Completed ################################################
END_TESTCASE	MSG-IMAP-OFFLINE-COPYMSG-0006


//#####Script MSG-IMAP-OFFLINE-CREATE-FOLDER-0001 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0001
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CREATE-FOLDER-0001
//!	@SYMTestCaseDesc		This test script creates an IMAP account and a message
//!					from the RFC822 file and sends the message to the same account.
//!					Downloads the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline 
//!					command and Compares the received messages with sent messages based on the 
//!					Download limits set.It then checks the count of the messages based on the various flags set.
//!	@SYMTestPriority		Critical
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialises the RAS connection
//!					Resets the message store to clean up the central repository
//!					Creates an IMAP account by reading the settings from the file mentioned
//!					thus setting the IMAP and SMTP service settings
//!					Connects to the IMAP server and performs full sync with IMAP4 server.
//!					Connects to the IMAP server and deletes all mails in the Inbox on the server.
//!
//!
//!	@SYMTestExpectedResults		EPass,
//!	@SYMAuthor			Rajat Bal

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-CreateImap4Folder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer  	CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0016-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0001


//#####Script MSG-IMAP-OFFLINE-CREATE-FOLDER-0002 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0002
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CREATE-FOLDER-0002
//!	@SYMTestCaseDesc		This test script creates an IMAP account and a message
//!					from the RFC822 file and sends the message to the same account.
//!					Downloads the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline 
//!					command and Compares the received messages with sent messages based on the 
//!					Download limits set.It then checks the count of the messages based on the various flags set.
//!	@SYMTestPriority		Critical
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialises the RAS connection
//!					Resets the message store to clean up the central repository
//!					Creates an IMAP account by reading the settings from the file mentioned
//!					thus setting the IMAP and SMTP service settings
//!					Connects to the IMAP server and performs full sync with IMAP4 server.
//!					Connects to the IMAP server and deletes all mails in the Inbox on the server.
//!
//!
//!	@SYMTestExpectedResults		EPass,
//!	@SYMAuthor			Rajat Bal

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-CreateImap4Folder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer  	CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0017-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0002


//#####Script MSG-IMAP-OFFLINE-CREATE-FOLDER-0003 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0003
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CREATE-FOLDER-0003
//!	@SYMTestCaseDesc		This test script creates an IMAP account and a message
//!					from the RFC822 file and sends the message to the same account.
//!					Downloads the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline 
//!					command and Compares the received messages with sent messages based on the 
//!					Download limits set.It then checks the count of the messages based on the various flags set.
//!	@SYMTestPriority		Critical
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialises the RAS connection
//!					Resets the message store to clean up the central repository
//!					Creates an IMAP account by reading the settings from the file mentioned
//!					thus setting the IMAP and SMTP service settings
//!					Connects to the IMAP server and performs full sync with IMAP4 server.
//!					Connects to the IMAP server and deletes all mails in the Inbox on the server.
//!
//!
//!	@SYMTestExpectedResults		EPass,
//!	@SYMAuthor			Rajat Bal

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-CreateImap4Folder
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-CreateImap4SubFolder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer  	CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0018-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0003


//#####Script MSG-IMAP-OFFLINE-CREATE-FOLDER-0004 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0004
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CREATE-FOLDER-0004
//!	@SYMTestCaseDesc		This test script creates an IMAP account and a message
//!					from the RFC822 file and sends the message to the same account.
//!					Downloads the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline 
//!					command and Compares the received messages with sent messages based on the 
//!					Download limits set.It then checks the count of the messages based on the various flags set.
//!	@SYMTestPriority		Critical
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialises the RAS connection
//!					Resets the message store to clean up the central repository
//!					Creates an IMAP account by reading the settings from the file mentioned
//!					thus setting the IMAP and SMTP service settings
//!					Connects to the IMAP server and performs full sync with IMAP4 server.
//!					Connects to the IMAP server and deletes all mails in the Inbox on the server.
//!
//!
//!	@SYMTestExpectedResults		EPass,
//!	@SYMAuthor			Rajat Bal

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CreateImap4Folder1
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CreateImap4Folder2
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CreateImap4Folder3
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CreateImap4Folder4
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CreateImap4Folder5
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer  	CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0019-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0004


//#####Script MSG-IMAP-OFFLINE-CREATE-FOLDER-0005 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0005
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CREATE-FOLDER-0005
//!	@SYMTestCaseDesc		This test script creates an IMAP account and a message
//!					from the RFC822 file and sends the message to the same account.
//!					Downloads the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline 
//!					command and Compares the received messages with sent messages based on the 
//!					Download limits set.It then checks the count of the messages based on the various flags set.
//!	@SYMTestPriority		Critical
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialises the RAS connection
//!					Resets the message store to clean up the central repository
//!					Creates an IMAP account by reading the settings from the file mentioned
//!					thus setting the IMAP and SMTP service settings
//!					Connects to the IMAP server and performs full sync with IMAP4 server.
//!					Connects to the IMAP server and deletes all mails in the Inbox on the server.
//!
//!
//!	@SYMTestExpectedResults		EPass,
//!	@SYMAuthor			Rajat Bal

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//PRINT Setup begins
//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CreateImap4Folder1
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CreateImap4Folder2
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CreateImap4Folder3
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CreateImap4Folder4
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CreateImap4Folder5
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer  	CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0020-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0005


//#####Script MSG-IMAP-OFFLINE-CREATE-FOLDER-0006 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0006
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CREATE-FOLDER-0006
//!	@SYMTestCaseDesc		This test script creates an IMAP account and a message
//!					from the RFC822 file and sends the message to the same account.
//!					Downloads the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline 
//!					command and Compares the received messages with sent messages based on the 
//!					Download limits set.It then checks the count of the messages based on the various flags set.
//!	@SYMTestPriority		Critical
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialises the RAS connection
//!					Resets the message store to clean up the central repository
//!					Creates an IMAP account by reading the settings from the file mentioned
//!					thus setting the IMAP and SMTP service settings
//!					Connects to the IMAP server and performs full sync with IMAP4 server.
//!					Connects to the IMAP server and deletes all mails in the Inbox on the server.
//!
//!
//!	@SYMTestExpectedResults		EPass,
//!	@SYMAuthor			Rajat Bal

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CreateImap4Folder1
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CreateImap4Folder2
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CreateImap4Folder3
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CreateImap4Folder4
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CreateImap4Folder5
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer  	CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0021-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0006


//#####Script MSG-IMAP-OFFLINE-CREATE-FOLDER-0007 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0007
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-CREATE-FOLDER-0007
//!	@SYMTestCaseDesc		This test script creates an IMAP account and a message
//!					from the RFC822 file and sends the message to the same account.
//!					Downloads the mails with IMAP4 KIMAP4MTMConnectAndPopulateAllMailAndStayOnline 
//!					command and Compares the received messages with sent messages based on the 
//!					Download limits set.It then checks the count of the messages based on the various flags set.
//!	@SYMTestPriority		Critical
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialises the RAS connection
//!					Resets the message store to clean up the central repository
//!					Creates an IMAP account by reading the settings from the file mentioned
//!					thus setting the IMAP and SMTP service settings
//!					Connects to the IMAP server and performs full sync with IMAP4 server.
//!					Connects to the IMAP server and deletes all mails in the Inbox on the server.
//!
//!
//!	@SYMTestExpectedResults		EPass,
//!	@SYMAuthor			Rajat Bal

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CheckChildrenCountRemoteInbox
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImap4Folder1
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImap4Folder2
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImap4Folder3
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImap4Folder4
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImap4Folder5
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImap4Folder6
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CreateImap4Folder7
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer  	CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0022-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-CREATE-FOLDER-0007


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0001 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0001
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0001
//!	@SYMTestCaseDesc		This Test Deletes Single Folder
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Connect Again
//!					Create Folder
//!					Sync
//!					Check the Children Count on Imap remote Folder & Disconnect
//!					Delete specified Folder
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the folder is deleted. (if the message deleted was from Remote Folder)
//!	@SYMTestExpectedResults		EPass,The specified folder should be deleted.
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-CreateImap4Folder
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-CheckChildrenCountRemoteInbox1
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-FindEntryByName
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DeleteImap4Folder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-FindEntryByName
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0023-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0001


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0002 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0002
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0002
//!	@SYMTestCaseDesc		This Test Delete Multiple Folders
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Connect Again
//!					Create Folders
//					Sync
//!					Check the Children Count on Imap remote Folder & Disconnect
//!					Delete specified Folders
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the folders are deleted. (if the message deleted was from Remote Folder)
//!	@SYMTestExpectedResults		EPass,The specified folders should be deleted from the Imap Server too.
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CreateImap4Folder1
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName1
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CreateImap4Folder2
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName2
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CreateImap4Folder3
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName3
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CreateImap4Folder4
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName4
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CreateImap4Folder5
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName5
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CheckChildrenCountRemoteInbox5
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DisConnectImap4Server
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DeleteAllImapChildren
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DeleteImap4Folder1
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName5
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DeleteImap4Folder2
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName4
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DeleteImap4Folder3
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName3
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DeleteImap4Folder4
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName2
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DeleteImap4Folder5
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-FindEntryByName1
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0024-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0002


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0003 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0003
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0003
//!	@SYMTestCaseDesc		This Test Delete Multi Level Folders
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Connect Again
//!					Create a Single Multi Level Folder
//!					Sync
//!					Check the Children Count on Imap remote Folder & Disconnect
//!					Delete Folders created (subfolders or folders with Inferior Heirarchical Names first
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the message is deleted. (if the message deleted was from Remote Folder)
//!	@SYMTestExpectedResults		EPass,The message is deleted from the specified folder.
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CreateImap4Folder1
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CreateImap4Folder2
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CreateImap4Folder3
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CreateImap4Folder4
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox11
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox12
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox13
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox14
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DisConnectImap4Server
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DeleteImap4Folder1
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox01
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-FindEntryByName1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DeleteImap4Folder2
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox02
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-FindEntryByName2
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DeleteImap4Folder3
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox03
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-FindEntryByName3
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DeleteImap4Folder4
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-CheckChildrenCountRemoteInbox04
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-FindEntryByName4
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    		0025-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0003


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0004 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0004
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0004
//!	@SYMTestCaseDesc		This Test Deletes Multiple Multi Level Folder
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Connect Again
//!					Create a Multiple Multi Level Folder
//!					Sync
//!					Check the Children Count on Imap remote Folder & Disconnect
//!					Delete Folders created (subfolders or folders with Inferior Heirarchical Names first
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the message is deleted. (if the message deleted was from Remote Folder)
//!	@SYMTestExpectedResults		EPass,The message is deleted from the specified folder.
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DoFullImap4Synchronisation
//First Set of Multi Level Folders
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder1
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder2
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder3
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder4
//Second Set of Multi Level Folders
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder5
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder6
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder7
//RUN_TEST_STEP  	300 	T_MsgImapServer		CreateImap4Folder	 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CreateImap4Folder8
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DoFullImap4Synchronisation
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DisConnectImap4Server
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteAllImapChildren
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder1
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox01
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName1
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder2
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox02
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName2
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder3
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox03
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName3
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder4
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox04
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName4
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder5
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox05
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName5
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder6
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox06
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName6
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder7
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox07
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName7
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DeleteImap4Folder8
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox08
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName 	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-FindEntryByName8
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0026-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0004


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0005 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0005
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0005
//!	@SYMTestCaseDesc		This Test Deletes Single Message
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Connect Again
//!					Delete Drafts Folder
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the message is deleted. (if the message deleted was from Remote Folder)
//!	@SYMTestExpectedResults		EPass,The message is deleted from the specified folder.
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-DeleteImap4Folder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-DoFullImap4Synchronisation
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-FindEntryByName
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0027-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0005


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0006 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0006
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0006
//!	@SYMTestCaseDesc		This Test Deletes Single Message
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Delete "Sent Items" Folder
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the folder is deleted
//!	@SYMTestExpectedResults		EPass,The folder should be deleted from imap server also
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP	300	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-DeleteImap4Folder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-DoFullImap4Synchronisation
//RUN_TEST_STEP  	!Error=-1 300 	T_MsgImapServer		FindEntryByName			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-FindEntryByName
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0028-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0006


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0008 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0008
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0008
//!	@SYMTestCaseDesc		This Test Deletes Single Message
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Delete Inbox Folder
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the folder should not be deleted
//!	@SYMTestExpectedResults		EPass,The folder should not be deleted from imap server also. Delete should fail with KErrPermissionDenied(-46)
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DeleteImap4Folder		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-DeleteImap4Folder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntryByName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-FindEntryByName
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0029-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0008


//#####Script MSG-IMAP-OFFLINE-DELFOLDER-0009 has been commented out. ##########################
//#####Imitating the onb winscw run ########
//START_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0009
//!	@SYMTestCaseID			MSG-IMAP-OFFLINE-DELFOLDER-0009
//!	@SYMTestCaseDesc		This Test Deletes Single Message
//!	@SYMTestPriority		High
//!   	@SYMTestType			CIT
//!  	@SYMTestStatus			Implemented   
//!	@SYMTestCaseDependencies	requires ced -i c:\ced_default_ras.cfg to set comms.
//!	@SYMTestActions			Initialise the RAS connection
//!					Reset the message store to clean up the central repository
//!					Create an IMAP account
//!					Connect to the IMAP server 
//!					Perform full sync with IMAP4 server.
//!					Delete all mails in the Inbox on the server.
//!					Sync
//!					Disconnect
//!					Delete Root Folder
//!					Connect to the Imap Server
//!					Do full Synchronisation
//!					Check the folder should not be deleted
//!	@SYMTestExpectedResults		EPass,The folder should not be deleted. It should return KErrPermissionDenied(-46)
//!	@SYMAuthor			Mrudul Pendharkar

//PRINT Setup Begins #####################################################

//RUN_TEST_STEP	300	T_MsgCommonServer  	StartUp
//RUN_TEST_STEP	300	T_MsgImapServer	StartUp
//RUN_TEST_STEP	300	T_MsgSmtpServer	StartUp

//RUN_TEST_STEP	300	T_MsgCommonServer  	InitNtRas			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-InitNtRas
//RUN_TEST_STEP	300	T_MsgCommonServer  	ResetMessageStore		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-ResetMessageStore
//RUN_TEST_STEP 	300 	T_MsgImapServer		CreateImapAccount 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-CreateImapAccount 
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		DeleteAllImapChildren 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-DeleteAllImapChildren
//RUN_TEST_STEP  	300 	T_MsgImapServer		CheckChildrenCountImap 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-CheckChildrenCountRemoteInbox0
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-DisConnectImap4Server
//PRINT Setup Completed
//PRINT Execute begins
//RUN_TEST_STEP	300	T_MsgImapServer		DeleteFolder			c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-DeleteFolder
//RUN_TEST_STEP 	300 	T_MsgImapServer		ConnectImap4Server		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-ConnectImap4Server
//RUN_TEST_STEP	300	T_MsgImapServer		DoFullImap4Synchronisation	c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-DoFullImap4Synchronisation
//RUN_TEST_STEP  	300 	T_MsgImapServer		FindEntrybyName 		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-FindEntrybyName
//RUN_TEST_STEP 	300 	T_MsgImapServer		DisConnectImapServer		c:\msgtest\email\imap\offline\msg-imap-offline1.ini    	0030-DisConnectImap4Server

//RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
//RUN_TEST_STEP	300	T_MsgImapServer		ShutDown
//RUN_TEST_STEP	300	T_MsgSmtpServer		ShutDown

//PRINT Execute Completed ################################################
//END_TESTCASE	MSG-IMAP-OFFLINE-DELFOLDER-0009


