messagingfw/msgtestproduct/media/scripts/msg-remove-media-0006.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 //! NEED TO RUN THIS TEST CASES MANUALLY USING H4 BOARD
       
    20 
       
    21 //! @file							
       
    22 //! @SYMTestSuiteName			MSG-REMOVE-MEDIA-0006
       
    23 //! @SYMScriptTestEnvironment   Details as in below:-
       
    24 //!				1. nt-ras connection or winpcap
       
    25 //!				2. email servers ( communigatePro or ms exchange)
       
    26 //!				3. test driver
       
    27 //!				4. testexecute framework(TEF3.0)
       
    28 //!				
       
    29 //! @SYMScriptPurpose		Integration testing of PREQ557-"Improved support in Messaging for removable media"
       
    30 
       
    31 START_TESTCASE  MSG-REMOVE-MEDIA-0006
       
    32 //! @SYMTestCaseID			MSG-REMOVE-MEDIA-0006
       
    33 //! @SYMPREQ				PREQ557
       
    34 //! @SYMTestActions 1: Update Priority of the Drive C 		        
       
    35 //!                 2: Create message
       
    36 //!                 3: Verify count
       
    37 //!                 4: Update Priority of the Drive E
       
    38 //!                 5: Create message
       
    39 //!                 6: Verify count
       
    40 //!                 7: Manually remove the MMC card
       
    41 //!                 8: Create message
       
    42 //!                 9: Verify count
       
    43 //!                 10: Delete all msg in present drive messages (you cannot delete msg from draft folders created in E drive)
       
    44 //!                 11: Verify count (since all the message created in C drive are deleted so count is zero)
       
    45 //! @SYMTestExpectedResults		Verify results should be success
       
    46 
       
    47 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-remove-media.ini
       
    48 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
    49 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
    50 END_TEST_BLOCK
       
    51 
       
    52 //! Create a Prefered Drive List 
       
    53 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
    54 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    55 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-preferred-0008.ini		c:\private\1000484b\msgprioritydrivelist.ini
       
    56 
       
    57 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-remove-media.ini
       
    58 	CREATE_OBJECT	MediaTestWrapper	0100_obj
       
    59 	COMMAND		0100_obj		CreateSMSAccount		
       
    60 	COMMAND		0100_obj		CreateSMS				
       
    61 	COMMAND		0100_obj		VerifyCount				smsCount1
       
    62 
       
    63 	COMMAND		0100_obj		UpdateDrive				UpdateDriveE				
       
    64 	COMMAND		0100_obj		CreateSMSAccount		
       
    65 	COMMAND		0100_obj		CreateSMS				
       
    66 	COMMAND		0100_obj		VerifyCount				smsCount2
       
    67 	COMMAND		0100_obj		RemoveMMC				
       
    68 
       
    69 	COMMAND		0100_obj		CreateSMS				
       
    70 	COMMAND		0100_obj		VerifyCount				smsCount3
       
    71 	COMMAND		0100_obj		DeleteMsg
       
    72 	COMMAND		0100_obj		VerifyCount				smsCount1
       
    73 
       
    74 	COMMAND		0100_obj		UpdateDrive				UpdateDriveC	
       
    75 	COMMAND		0100_obj		VerifyCount				smsCount0
       
    76 END_TEST_BLOCK
       
    77 
       
    78 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    79 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
    80 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
    81 
       
    82 END_TESTCASE   MSG-REMOVE-MEDIA-0006
       
    83 
       
    84 
       
    85 
       
    86