messagingfw/msgtestproduct/media/scripts/msg-remove-media-0001.script
author hgs
Thu, 23 Sep 2010 13:10:16 +0530
changeset 52 5d18209efbcc
parent 0 8e480a14352b
permissions -rw-r--r--
201037_06

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

LOAD_SERVER t_media  -SharedData
LOAD_SUITE 	T_MsgCommonServer	-SharedData

//! @file							
//! @SYMTestSuiteName			MSG-REMOVE-MEDIA-0001
//! @SYMScriptTestEnvironment   Details as in below:-
//!				1. nt-ras connection or winpcap
//!				2. email servers ( communigatePro or ms exchange)
//!				3. test driver
//!				4. testexecute framework(TEF3.0)
//!				
//! @SYMScriptPurpose		Integration testing of PREQ557-"Improved support in Messaging for removable media"

START_TEST_BLOCK	100	t_media		c:\msgtest\media\MSG-REMOVE-MEDIA.ini
	CREATE_OBJECT	CenRepTestWrapper	0100_obj
	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
END_TEST_BLOCK

RUN_TEST_STEP 300 T_MsgCommonServer	StartUp
RUN_TEST_STEP 300 T_MsgCommonServer	ResetMessageStore		c:\msgtest\media\MSG-REMOVE-MEDIA.ini 		0001-ResetMessageStore

//! Create a Prefered Drive List 
RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini

START_TESTCASE  MSG-REMOVE-MEDIA-0001
//! @SYMTestCaseID			MSG-REMOVE-MEDIA-0001
//! @SYMPREQ				PREQ557
//! @SYMTestActions 1: Update The Priority of Drive C
//!                 2: CreateSms and Verify Count 
//!                 3: Update Priority of the Drive D
//!                 4: CreateSms and Verify Count
//!                 5: Remove The Drive D and VerifyCount
//! @SYMTestExpectedResults	    CreateSms and VerifyCount should pass	


	START_TEST_BLOCK	100	t_media		c:\msgtest\media\MSG-REMOVE-MEDIA.ini
		CREATE_OBJECT	MediaTestWrapper	0001_obj_1
		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveC				
		COMMAND		0001_obj_1		DeleteMsg				
		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveD				
		COMMAND		0001_obj_1		DeleteMsg				
		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveE
		COMMAND		0001_obj_1		DeleteMsg

		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveC
		COMMAND		0001_obj_1		CreateSMSAccount		
		COMMAND		0001_obj_1		CreateSMS				
		COMMAND		0001_obj_1		VerifyCount				smsCount1

		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveD
		COMMAND		0001_obj_1		CreateSMSAccount		
		COMMAND		0001_obj_1		CreateSMS				
		COMMAND		0001_obj_1		VerifyCount				smsCount2

		COMMAND		0001_obj_1		RemoveDrive				RemDriveD
		COMMAND		0001_obj_1		VerifyCount				smsCount1
		COMMAND		0001_obj_1		AddDrive				AddDriveD
	
		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveC				
		COMMAND		0001_obj_1		DeleteMsg				
		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveD				
		COMMAND		0001_obj_1		DeleteMsg
	END_TEST_BLOCK
END_TESTCASE   MSG-REMOVE-MEDIA-0001