messagingfw/msgtestproduct/media/scripts/msg-drivefull-ops.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 
       
    19 //! @file			
       
    20 //! @SYMTestSuiteName		MSG-DRIVEFULL-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 START_TESTCASE	MSG-DRIVEFULL-OPS-0001
       
    31 //! 	@SYMTestCaseID		MSG-DRIVEFULL-OPS-0001
       
    32 //! 	@SYMTestCaseDesc	Drive is full
       
    33 //!				
       
    34 //!	@SYMREQ			REQ9049 
       
    35 //!	@SYMPREQ 		PREQ557
       
    36 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
    37 //!				
       
    38 //!	@SYMTestCaseDependencies Manually setup the disk full condition as mentioned in steps:-
       
    39 //!	
       
    40 //!	1. Create a logical drive of size 8 MB or insert a MMC card for USB removable drive of size 128 MB
       
    41 //!	2. Set current epoc drive with logical or USB removable drive in epoc.ini file. example _EPOC_DRIVE_E S:\
       
    42 //!	3. Fill the drive to 99% to get the KErrDiskFull(-26) error
       
    43 //!				
       
    44 //! 	@SYMTestPriority	High
       
    45 //! 	@SYMTestActions		1. Set the max size of the current removable drive to 100kb in epoc.ini file
       
    46 //!				2. Create an email account
       
    47 //!				3. Create an email message of 95kb size
       
    48 //!				4. Send an email message 
       
    49 //!				5. Download the email messages 
       
    50 //!				Note: disk is arround 99% full
       
    51 //!				6. Get the current drive
       
    52 //! 				7. Create an another email message of 10kb
       
    53 //! 				8. Send the message
       
    54 //!				9. Download the message will return with disk full notification
       
    55 //!				10. Delete some old messages from same drive
       
    56 //!				11. Download the message again
       
    57 //!				
       
    58 //! 	@SYMTestExpectedResults 1. Max size is set to 100kb
       
    59 //!				2. email account should be created
       
    60 //!				3. email message should be created
       
    61 //!				4. Sent the email to server is completed
       
    62 //!				5. Download should be completed
       
    63 //!				6. should return the current drive and its priority
       
    64 //!				7. Another email message should be created
       
    65 //!				8. email message should be sent
       
    66 //!				9. Download should return the disk full notification
       
    67 //!				10. Messages should delete from the drive
       
    68 //!				11. Download should complete
       
    69 //!				
       
    70 //!	@SYMAuthor		Rajat Bal
       
    71 //!				
       
    72 //! 	@SYMTestType		CIT
       
    73 //! 	@SYMTestStatus 		Defined
       
    74 
       
    75 
       
    76 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-drivefull-ops.ini
       
    77 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
    78 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
    79 END_TEST_BLOCK
       
    80 
       
    81 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
    82 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    83 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-drivefull-0001.ini		c:\private\1000484b\msgprioritydrivelist.ini
       
    84 
       
    85 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-drivefull-ops.ini
       
    86 		CREATE_OBJECT	MediaTestWrapper	0001_obj_1
       
    87 		COMMAND		0001_obj_1		New		0001_obj_1
       
    88 		COMMAND		0001_obj_1		GetDrivelist	0001_GetDrivelist_1
       
    89 		COMMAND		0001_obj_1		GetAvailableDriveList	0001_GetAvailableDriveList_1
       
    90 		COMMAND		0001_obj_1		GetCurrentDrive	0001_GetCurrentDrive_1
       
    91 	END_TEST_BLOCK
       
    92 
       
    93 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    94 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
    95 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
    96 	
       
    97 END_TESTCASE	MSG-DRIVEFULL-OPS-0001
       
    98 
       
    99 START_TESTCASE	MSG-DRIVEFULL-OPS-0002
       
   100 //! 	@SYMTestCaseID		MSG-DRIVEFULL-OPS-0002
       
   101 //! 	@SYMTestCaseDesc	Drive is full while downloading the message
       
   102 //!				
       
   103 //!	@SYMREQ			REQ9049 
       
   104 //!	@SYMPREQ 		PREQ557
       
   105 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   106 //!				void CMsvSession::UpdateDrivePriorityL (TDriveNumber aDrive, TInt& aPriority)
       
   107 //!				
       
   108 //!	@SYMTestCaseDependencies Manually setup the disk full condition as mentioned in steps:-
       
   109 //!	
       
   110 //!	1. Create a logical drive of size 8 MB or insert a MMC card for USB removable drive of size 128 MB
       
   111 //!	2. Set current epoc drive with logical or USB removable drive in epoc.ini file. example _EPOC_DRIVE_E S:\
       
   112 //!	3. Fill the drive to 99% to get the KErrDiskFull(-26) error
       
   113 //!				
       
   114 //! 	@SYMTestPriority	High
       
   115 //! 	@SYMTestActions		1. Set the max size of the current removable drive to 100kb in epoc.ini file
       
   116 //!				2. Get the current drive(E: drive)
       
   117 //!				Note: Ensure the current drive should not be system drive.
       
   118 //!				3. Create an email account
       
   119 //!				4. Create an email message of 150kb size
       
   120 //!				5. Send an email message 
       
   121 //!				6. Download the messages will return with disk full notification
       
   122 //!				7. Change the drive to system drive(C: Drive) with high priority
       
   123 //!				8. Download the message
       
   124 //!				
       
   125 //! 	@SYMTestExpectedResults 1. Max size is set to 100kb
       
   126 //!				2. E: drive should be the current drive
       
   127 //!				3. email account should be created
       
   128 //!				4. email message should be created
       
   129 //!				5. Sent the email to server is completed
       
   130 //!				6. Download should return the disk full notification
       
   131 //!				7. Should return the current drive
       
   132 //!				8. Download should complete
       
   133 //!				
       
   134 //!	@SYMAuthor		Rajat Bal
       
   135 //!				
       
   136 //! 	@SYMTestType		CIT
       
   137 //! 	@SYMTestStatus 		Defined
       
   138 
       
   139 
       
   140 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-drivefull-ops.ini
       
   141 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   142 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   143 END_TEST_BLOCK
       
   144 
       
   145 
       
   146 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   147 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   148 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-drivefull-0002.ini		c:\private\1000484b\msgprioritydrivelist.ini
       
   149 
       
   150 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-drivefull-ops.ini
       
   151 		CREATE_OBJECT	MediaTestWrapper	0002_obj_1
       
   152 		COMMAND		0002_obj_1		New		0002_obj_1
       
   153 		COMMAND		0002_obj_1		GetDrivelist	0002_GetDrivelist_1
       
   154 		COMMAND		0002_obj_1		GetAvailableDriveList	0002_GetAvailableDriveList_1
       
   155 		STORE		0002_obj_1		
       
   156 		COMMAND		0002_obj_1		GetCurrentDrive	0002_GetCurrentDrive_1
       
   157 	END_TEST_BLOCK
       
   158 	
       
   159 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-drivefull-ops.ini
       
   160 		RESTORE_OBJECT	MediaTestWrapper	0002_obj_1
       
   161 		COMMAND		0002_obj_1		UpdateDrive	0002_UpdateDrive_1
       
   162 	END_TEST_BLOCK
       
   163 
       
   164 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   165 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   166 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   167 
       
   168 END_TESTCASE	MSG-DRIVEFULL-OPS-0002
       
   169