//
// 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
//! @SYMTestCaseID MSG-Email-ImapSizeFiltering-43
//! @SYMTestType CIT
//! @SYMTestCaseDesc Creates a multipart/alternative email with a binary attachment and check if it is downloaded
//! @SYMTestPriority High
//! @SYMREQ CR DCUO-6ASJ9Y
//! @SYMTestActions Creates a multipart/alternative email with a binary attachment, sets synchronisation-settings to EGetImap4EmailBodyAlternativeText and checks if email is downloaded according the settings.
//! @SYMTestExpectedResults All parts of the email EXCEPT the attachment should be downloaded
//! @SYMAuthor Tom Janssens

RUN_UTILS DeleteFile c:\messaging.db
LOAD_SUITE MessagingTestServer -SharedData
//CED c:\msgtest\TestFramework\Configurations\CommDbSettings\NtRasLongIdleTimeout.cfg

PREFIX RUN_TEST_STEP 1000 MessagingTestServer
BEGIN_TEST_CASE
SETUP_TEST_CASE
GetBaseConstants			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	GetBaseConstants
InitNtRas					c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	InitNtRas
CreateSession				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSession
ResetMessageStore			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	ResetMessageStore
CreateImap4Service			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateImap4Service
CreateSmtpService			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSmtpService
SetDefaultConfiguration		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetDefaultConfiguration0
SetDefaultConfiguration		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetDefaultConfiguration1
SetDefaultConfiguration		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetDefaultConfiguration2
CreateRegistry				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateRegistry
CreateImap4Mtm				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateImap4Mtm
CreateSmtpMtm				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSmtpMtm
GetDefaultSmtpService		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	GetDefaultSmtpService
SetImap4ServiceParameters	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetImap4ServiceParameters
SetSmtpServiceParameters	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetSmtpServiceParameters
ConnectImap4Server   		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	ConnectImap4Server0
DoFullImap4Synchronisation	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DoFullImap4Synchronisation0
FindEntryByName				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	FindEntryByName0
DeleteChildren				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DeleteChildren
CheckChildrenCount			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CheckChildrenCount0
DisconnectImap4Server		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DisconnectImap4Server0
EXECUTE_TEST_CASE	
CreateSmtpMessageFromEmailFile	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSmtpMessageFromEmailFile0
CopyEntry					c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CopyEntry0
SetImap4FullDownloadLimits	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetImap4FullDownloadLimits
ConnectImap4Server   		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	ConnectImap4Server1
DoFullImap4Synchronisation	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DoFullImap4Synchronisation1
CreateChildrenSelection		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateChildrenSelection
DoImap4Populate				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DoImap4Populate
DisconnectImap4Server		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DisconnectImap4Server1
CHECK_POSTCONDITIONS
CreateChildrenSelection		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateChildrenSentItems
CompareEmailMessages		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini CompareEmailMessages
END_TEST_CASE
