messagingfw/msgtestproduct/media/scripts/msg-remove-media-0002.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 
       
    17 LOAD_SERVER t_media  -SharedData
       
    18 LOAD_SUITE 	T_MsgCommonServer	-SharedData
       
    19 
       
    20 //! @file							
       
    21 //! @SYMTestSuiteName			MSG-REMOVE-MEDIA-0002
       
    22 //! @SYMScriptTestEnvironment   Details as in below:-
       
    23 //!				1. nt-ras connection or winpcap
       
    24 //!				2. email servers ( communigatePro or ms exchange)
       
    25 //!				3. test driver
       
    26 //!				4. testexecute framework(TEF3.0)
       
    27 //!				
       
    28 //! @SYMScriptPurpose		Integration testing of PREQ557-"Improved support in Messaging for removable media"
       
    29 
       
    30 START_TEST_BLOCK	100	t_media		c:\msgtest\media\MSG-REMOVE-MEDIA.ini
       
    31 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
    32 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
    33 END_TEST_BLOCK
       
    34 
       
    35 RUN_TEST_STEP 300 T_MsgCommonServer	StartUp
       
    36 RUN_TEST_STEP 300 T_MsgCommonServer	ResetMessageStore		c:\msgtest\media\MSG-REMOVE-MEDIA.ini 		0001-ResetMessageStore
       
    37 
       
    38 //! Create a Prefered Drive List 
       
    39 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
    40 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    41 
       
    42 START_TESTCASE  MSG-REMOVE-MEDIA-0002
       
    43 //! @SYMTestCaseID			MSG-REMOVE-MEDIA-0002
       
    44 //! @SYMPREQ				PREQ557
       
    45 //! @SYMTestActions                 
       
    46 //!                 1: Update Priority of the Drive C ,Create Sms
       
    47 //!                 2: Verify Count
       
    48 //!                 3: Update Priority of the Drive E ,Create Sms
       
    49 //! 		    4: Verify Count
       
    50 //!                 5: Delete Messages from the standard folder specified
       
    51 //!                 6: Search TMsvId from the Draft folder specified
       
    52 //! @SYMTestExpectedResults		Should return KErrNotFound 	
       
    53 
       
    54 
       
    55 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\MSG-REMOVE-MEDIA.ini
       
    56 		CREATE_OBJECT	MediaTestWrapper	0001_obj_1
       
    57 		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveC				
       
    58 		COMMAND		0001_obj_1		DeleteMsg				
       
    59 		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveD				
       
    60 		COMMAND		0001_obj_1		DeleteMsg				
       
    61 		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveE
       
    62 		COMMAND		0001_obj_1		DeleteMsg
       
    63 
       
    64 		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveC				
       
    65 		COMMAND		0001_obj_1		CreateSMSAccount		
       
    66 		COMMAND		0001_obj_1		CreateSMS				
       
    67 		COMMAND		0001_obj_1		VerifyCount				smsCount1
       
    68 
       
    69 		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveE
       
    70 		COMMAND		0001_obj_1		CreateSMSAccount		
       
    71 		COMMAND		0001_obj_1		CreateSMS				
       
    72 		COMMAND		0001_obj_1		VerifyCount				smsCount2
       
    73 		COMMAND		0001_obj_1		DeleteMsg
       
    74 
       
    75 		COMMAND		0001_obj_1		UpdateDrive				UpdateDriveC				
       
    76 		COMMAND		0001_obj_1		DeleteMsg				
       
    77 		
       
    78 		COMMAND		0001_obj_1		SearchMessages			SearchFolder
       
    79 	END_TEST_BLOCK
       
    80 END_TESTCASE   MSG-REMOVE-MEDIA-0002
       
    81 
       
    82 
       
    83 
       
    84