messagingfw/msgtestfw/TestCases/ScriptedTestCases/Imap4SizeFiltering/43_TextAlternativeFullDownload_NonTextAttachment.script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:18:06 +0200
changeset 2 69530231af78
parent 0 8e480a14352b
permissions -rw-r--r--
Revision: 201001 Kit: 201004
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
//
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
// All rights reserved.
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     4
// This component and the accompanying materials are made available
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
// under the terms of "Eclipse Public License v1.0"
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     6
// which accompanies this distribution, and is available
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
//
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
// Initial Contributors:
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
// Nokia Corporation - initial contribution.
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
//
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
// Contributors:
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
//
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
// Description:
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
//
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
//! @file
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
//! @SYMTestCaseID MSG-Email-ImapSizeFiltering-43
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
//! @SYMTestType CIT
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
//! @SYMTestCaseDesc Creates a multipart/alternative email with a binary attachment and check if it is downloaded
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
//! @SYMTestPriority High
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
//! @SYMREQ CR DCUO-6ASJ9Y
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
//! @SYMTestActions Creates a multipart/alternative email with a binary attachment, sets synchronisation-settings to EGetImap4EmailBodyAlternativeText and checks if email is downloaded according the settings.
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    23
//! @SYMTestExpectedResults All parts of the email EXCEPT the attachment should be downloaded
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
//! @SYMAuthor Tom Janssens
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
RUN_UTILS DeleteFile c:\messaging.db
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
LOAD_SUITE MessagingTestServer -SharedData
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
//CED c:\msgtest\TestFramework\Configurations\CommDbSettings\NtRasLongIdleTimeout.cfg
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    29
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
PREFIX RUN_TEST_STEP 1000 MessagingTestServer
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
BEGIN_TEST_CASE
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
SETUP_TEST_CASE
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
GetBaseConstants			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	GetBaseConstants
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
InitNtRas					c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	InitNtRas
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    35
CreateSession				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSession
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    36
ResetMessageStore			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	ResetMessageStore
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    37
CreateImap4Service			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateImap4Service
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    38
CreateSmtpService			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSmtpService
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    39
SetDefaultConfiguration		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetDefaultConfiguration0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    40
SetDefaultConfiguration		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetDefaultConfiguration1
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    41
SetDefaultConfiguration		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetDefaultConfiguration2
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
CreateRegistry				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateRegistry
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
CreateImap4Mtm				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateImap4Mtm
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    44
CreateSmtpMtm				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSmtpMtm
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    45
GetDefaultSmtpService		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	GetDefaultSmtpService
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    46
SetImap4ServiceParameters	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetImap4ServiceParameters
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    47
SetSmtpServiceParameters	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetSmtpServiceParameters
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    48
ConnectImap4Server   		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	ConnectImap4Server0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
DoFullImap4Synchronisation	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DoFullImap4Synchronisation0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    50
FindEntryByName				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	FindEntryByName0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    51
DeleteChildren				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DeleteChildren
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
CheckChildrenCount			c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CheckChildrenCount0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    53
DisconnectImap4Server		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DisconnectImap4Server0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    54
EXECUTE_TEST_CASE	
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    55
CreateSmtpMessageFromEmailFile	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateSmtpMessageFromEmailFile0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    56
CopyEntry					c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CopyEntry0
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    57
SetImap4FullDownloadLimits	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	SetImap4FullDownloadLimits
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    58
ConnectImap4Server   		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	ConnectImap4Server1
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    59
DoFullImap4Synchronisation	c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DoFullImap4Synchronisation1
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    60
CreateChildrenSelection		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateChildrenSelection
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    61
DoImap4Populate				c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DoImap4Populate
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    62
DisconnectImap4Server		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	DisconnectImap4Server1
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    63
CHECK_POSTCONDITIONS
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    64
CreateChildrenSelection		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini	CreateChildrenSentItems
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
CompareEmailMessages		c:\msgtest\TestFramework\ScriptedTestCases\Imap4SizeFiltering\43_TextAlternativeFullDownload_NonTextAttachment.ini CompareEmailMessages
8e480a14352b Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    66
END_TEST_CASE