messagingfw/msgtestproduct/media/scripts/msg-oomtest-drive-ops.script
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     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 
       
    19 //! @file			
       
    20 //! @SYMTestSuiteName		MSG-OOMTEST-DRIVE-OPS
       
    21 //! @SYMScriptTestEnvironment   Details as in below:-
       
    22 //!				1. nt-ras connection or winpcap
       
    23 //!				2. email servers ( communigatePro or ms exchange)
       
    24 //!				3. test driver
       
    25 //!				4. testexecute framework(TEF3.0)
       
    26 //!				
       
    27 //! @SYMScriptPurpose		Integration testing of PREQ557-"Improved support in Messaging for removable media"
       
    28 //! @SYMScriptCreationDate	04/04/2008
       
    29 
       
    30 
       
    31 START_TESTCASE	MSG-OOMTEST-DRIVE-OPS-0001
       
    32 //! 	@SYMTestCaseID		MSG-OOMTEST-DRIVE-OPS-0001
       
    33 //! 	@SYMTestCaseDesc	Remove the drive from preferred drive list and add it again
       
    34 //!				
       
    35 //!	@SYMREQ			REQ9046 
       
    36 //!	@SYMPREQ 		PREQ557
       
    37 //!	@SYMAPI			void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
    38 //!				void CMsvSession::RemoveDriveL (TDriveNumber aDrive)
       
    39 //!				
       
    40 //!				
       
    41 //!	@SYMTestCaseDependencies OOM condition
       
    42 //!				
       
    43 //! 	@SYMTestPriority	High
       
    44 //! 	@SYMTestActions		1. Add and Remove the drive(L: drive) in the preferred drive list
       
    45 //!				2. Update the drive(E: drive) from preferred drive list
       
    46 //!				
       
    47 //! 	@SYMTestExpectedResults 1. expecting KErrOutOfMemory
       
    48 //!				2. expecting KErrOutOfMemory
       
    49 //!				
       
    50 //!	@SYMAuthor		Rajat Bal
       
    51 //!				
       
    52 //! 	@SYMTestType		CIT
       
    53 //! 	@SYMTestStatus 		Defined
       
    54 
       
    55 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-oomtest-drive-ops.ini
       
    56 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
    57 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
    58 END_TEST_BLOCK
       
    59 
       
    60 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
    61 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    62 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-oom-0001.ini		c:\private\1000484b\msgprioritydrivelist.ini
       
    63 						
       
    64 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-oomtest-drive-ops.ini
       
    65 		CREATE_OBJECT	OomTestWrapper	0001_obj_1
       
    66 		COMMAND		0001_obj_1		OOMAddRemoveDrive	0001_OOMAddRemoveDrive
       
    67 		COMMAND		0001_obj_1		OOMUpdateDrive		0001_OOMUpdateDrive
       
    68 	END_TEST_BLOCK
       
    69 
       
    70 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    71 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
    72 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
    73 	
       
    74 END_TESTCASE	MSG-OOMTEST-DRIVE-OPS-0001