//
// 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

//!	@SYMTestCaseID				MSG-IMAP-BMSupport-0001
//!	@SYMTestCaseDesc			Positive: Create an IMAP email account to use bearer mobility (+ve)
//!	@SYMTestPriority			Critical
//!	@SYMTestType				CIT
//! @SYMREQ						6979, 6977
//! @SYMPREQ					1307
//!	@SYMTestStatus				Implemented
//!	@SYMTestActions				1.	Reset Message Store and Central Repository to default state.
//!								2.	Create IMAP account in Central Repository using settings from a configuration file that specifies support for bearer mobility and a SNAP.
//!								3.	Check for success of step 2.
//!								4.	Modify the settings in step 2 to not support bearer mobility.
//!								5.	Check for success of step 4.
//!								6.	Modify the settings set in step 4 again to re-support bearer mobility.
//!								7.	Check for success of step 6.
//!
//!	@SYMTestExpectedResults		Steps 2, 4 and 6 to pass.
//!	@SYMAuthor					Sandip Ahluwalia

START_TESTCASE	MSG-IMAP-BMSupport-0001

RUN_TEST_STEP	300	T_MsgCommonServer	StartUp
RUN_TEST_STEP	300	T_MsgImapServer		StartUp

PRINT Setup Begins #####################################################
RUN_TEST_STEP	300	T_MsgCommonServer	InitNtRas						c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-InitNtRas
RUN_TEST_STEP	300	T_MsgCommonServer	ResetMessageStore				c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-ResetMessageStore
PRINT Setup Completed ##################################################

RUN_TEST_STEP	300	T_MsgImapServer		CreateImapAccountWithoutSmtp	c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-CreateImapAccountWithoutSmtp
RUN_TEST_STEP	300	T_MsgImapServer		CheckImapBMSetting				c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-CheckImapBMSetting0
RUN_TEST_STEP	300	T_MsgImapServer		ModifyImapSettings				c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-TurnBearerMobilityOFF
RUN_TEST_STEP	300	T_MsgImapServer		CheckImapBMSetting				c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-CheckImapBMSetting1
RUN_TEST_STEP	300	T_MsgImapServer		ModifyImapSettings				c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-TurnBearerMobilityON
RUN_TEST_STEP	300	T_MsgImapServer		CheckImapBMSetting				c:\msgtest\email\imap\bearermobility\msg-imap-bearermobility1.ini	0001-CheckImapBMSetting2

RUN_TEST_STEP	300	T_MsgCommonServer	ShutDown
RUN_TEST_STEP	300	T_MsgImapServer		ShutDown

END_TESTCASE	MSG-IMAP-BMSupport-0001
