messagingfw/msgtestproduct/media/scripts/msg-media-compatible-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 PRINT Deleting all messaging.db for fresh start.
       
    17 RUN_UTILS  DeleteFile		c:\messaging.db
       
    18 RUN_UTILS  DeleteFile		d:\messaging.db
       
    19 RUN_UTILS  DeleteFile		e:\messaging.db
       
    20 RUN_UTILS  DeleteFile		f:\messaging.db
       
    21 RUN_UTILS  DeleteFile		g:\messaging.db
       
    22 RUN_UTILS  DeleteFile		h:\messaging.db
       
    23 RUN_UTILS  DeleteFile		i:\messaging.db
       
    24 RUN_UTILS  DeleteFile		j:\messaging.db
       
    25 RUN_UTILS  DeleteFile		k:\messaging.db
       
    26 RUN_UTILS  DeleteFile		l:\messaging.db
       
    27 RUN_UTILS  DeleteFile		m:\messaging.db
       
    28 RUN_UTILS  DeleteFile		n:\messaging.db
       
    29 RUN_UTILS  DeleteFile		o:\messaging.db
       
    30 
       
    31 LOAD_SERVER t_media  -SharedData
       
    32 
       
    33 //! @file			
       
    34 //! @SYMTestSuiteName		MSG-MEDIA-COMPATIBLE-OPS
       
    35 //! @SYMScriptTestEnvironment   Details as in below:-
       
    36 //!				1. nt-ras connection or winpcap
       
    37 //!				2. email servers ( communigatePro or ms exchange)
       
    38 //!				3. test driver
       
    39 //!				4. testexecute framework(TEF3.0)
       
    40 //!				
       
    41 //! @SYMScriptPurpose		Integration testing of PREQ557-"Improved support in Messaging for removable media"
       
    42 //! @SYMScriptCreationDate	04/04/2008
       
    43 
       
    44 
       
    45 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0001
       
    46 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0001
       
    47 //! 	@SYMTestCaseDesc	Messages on a higher priority drive are corrupt
       
    48 //!				
       
    49 //!	@SYMREQ			REQ9050 
       
    50 //!	@SYMPREQ 		PREQ557
       
    51 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
    52 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
    53 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
    54 //!				TBool MessageServer::IsMessageStoreSupported(TDriveNumber aDrive)
       
    55 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
    56 //!				
       
    57 //!	@SYMTestCaseDependencies Copy some currupted email and sms messages from a sample testdata_mail2 folder to a higher priority I: drive 
       
    58 //!				
       
    59 //! 	@SYMTestPriority	High
       
    60 //! 	@SYMTestActions		1. Get the current drive(C: drive)
       
    61 //!				2. Add high priority drive(I: drive)
       
    62 //!				3. Get the current drive(I: drive)
       
    63 //!				4. Check the drive(I: drive) is present in preferred drive list
       
    64 //!				5. Check message store in the drive(I: drive) is supported
       
    65 //!				6. Check the drive(I: drive) is available
       
    66 //!				7. Check the drive (I: drive) have proper version of DB file
       
    67 //!				8. Download the corrupted sms message from I: drive 
       
    68 //!				9. Download the corrupted email message from I: drive
       
    69 //!				
       
    70 //! 	@SYMTestExpectedResults 1. C: drive should be the current drive
       
    71 //!				2. Should capture EMsvCurrentDriveChanged notification
       
    72 //!				3. I: drive should be the current drive
       
    73 //!				4. I: drive should be present in preferred drive list
       
    74 //!				5. I: drive should contains valid message store
       
    75 //!				6. I: drive should be available
       
    76 //!				7. I: drivce should have proper version of DB file
       
    77 //!				8. Should return a corruption error
       
    78 //!				9. Should return a corruption error
       
    79 //!				
       
    80 //!	@SYMAuthor		Rajat Bal
       
    81 //!				
       
    82 //! 	@SYMTestType		CIT
       
    83 //! 	@SYMTestStatus 		Defined
       
    84 
       
    85 
       
    86 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
    87 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
    88 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
    89 END_TEST_BLOCK
       
    90 
       
    91 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
    92 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    93 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0001.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
    94 
       
    95 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
    96 		CREATE_OBJECT	MediaTestWrapper	0001_obj_1
       
    97 		COMMAND		0001_obj_1		New		0001_obj_1
       
    98 		COMMAND		0001_obj_1		GetCurrentDrive	0001_GetCurrentDrive_1
       
    99 		COMMAND		0001_obj_1		AddDrive	0001_AddDrive_high
       
   100 		COMMAND		0001_obj_1		GetCurrentDrive	0001_GetCurrentDrive_2
       
   101 		COMMAND		0001_obj_1		GetDrivelist	0001_GetDrivelist_1
       
   102 		COMMAND		0001_obj_1		MessageStoreSupported	0001_MessageStoreSupported_1
       
   103 		COMMAND		0001_obj_1		GetAvailableDriveList	0001_GetAvailableDriveList_1
       
   104 	END_TEST_BLOCK
       
   105 
       
   106 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   107 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   108 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   109 
       
   110 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0001
       
   111 
       
   112 
       
   113 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0002
       
   114 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0002
       
   115 //! 	@SYMTestCaseDesc	Messages on a lesser priority drive are corrupt
       
   116 //!				
       
   117 //!	@SYMREQ			REQ9050 
       
   118 //!	@SYMPREQ 		PREQ557
       
   119 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   120 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   121 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
   122 //!				TBool MessageServer::IsMessageStoreSupported(TDriveNumber aDrive)
       
   123 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
   124 //!				
       
   125 //!	@SYMTestCaseDependencies Copy some corrupted email and sms messages from a sample testdata_mail2 folder to a lesser priority G: drive
       
   126 //!				
       
   127 //! 	@SYMTestPriority	High
       
   128 //! 	@SYMTestActions		1. Get the current drive(I: drive)
       
   129 //!				2. Add a drive with less priority(G: drive)
       
   130 //!				3. Get the current drive(I: drive)
       
   131 //!				4. Check the drive(G: drive) is present in preferred drive list
       
   132 //!				5. Check message store in the drive(G: drive) is supported
       
   133 //!				6. Check the drive(G: drive) is available
       
   134 //!				7. Check the drive(G: drive) have proper version of DB file
       
   135 //!				8. Download the corrupted sms message from G: drive
       
   136 //!				
       
   137 //! 	@SYMTestExpectedResults 1. E: drive should be the current drive
       
   138 //!				2. Should capture EMsvCurrentDriveChanged notification
       
   139 //!				3. G: drive should be the current drive
       
   140 //!				4. G: drive should be present in preferred drive list
       
   141 //!				5. G: drive should contains valid message store
       
   142 //!				6. G: drive should be available
       
   143 //!				7. G: drive should have proper version of DB file
       
   144 //!				8. Should retun a corruption error
       
   145 //!				
       
   146 //!	@SYMAuthor		Rajat Bal
       
   147 //!				
       
   148 //! 	@SYMTestType		CIT
       
   149 //! 	@SYMTestStatus 		Defined
       
   150 
       
   151 
       
   152 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   153 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   154 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   155 END_TEST_BLOCK
       
   156 
       
   157 
       
   158 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   159 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   160 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0002.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
   161 
       
   162 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   163 		CREATE_OBJECT	MediaTestWrapper	0002_obj_1
       
   164 		COMMAND		0002_obj_1		New		0002_obj_1
       
   165 		COMMAND		0002_obj_1		GetCurrentDrive	0002_GetCurrentDrive_1
       
   166 		COMMAND		0002_obj_1		AddDrive	0002_AddDrive_less
       
   167 		COMMAND		0002_obj_1		GetCurrentDrive	0002_GetCurrentDrive_2
       
   168 		COMMAND		0002_obj_1		GetDrivelist	0002_GetDrivelist_1
       
   169 		COMMAND		0002_obj_1		MessageStoreSupported	0002_MessageStoreSupported_1
       
   170 		COMMAND		0002_obj_1		GetAvailableDriveList	0002_GetAvailableDriveList_1
       
   171 	END_TEST_BLOCK
       
   172 
       
   173 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   174 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   175 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   176 
       
   177 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0002
       
   178 
       
   179 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0003
       
   180 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0003
       
   181 //! 	@SYMTestCaseDesc	Corrupted message store db in a high priority drive 
       
   182 //!				
       
   183 //!	@SYMREQ			REQ9050 
       
   184 //!	@SYMPREQ 		PREQ557
       
   185 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   186 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   187 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
   188 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
   189 //!				
       
   190 //!	@SYMTestCaseDependencies Copy a currupted message db from a sample testdata_db folder to a higher priority G: drive 
       
   191 //!				
       
   192 //! 	@SYMTestPriority	High
       
   193 //! 	@SYMTestActions		1. Get the current drive(I: drive)
       
   194 //!				2. Add high priority drive(G: drive)
       
   195 //!				3. Get the current drive(G: drive)
       
   196 //!				4. Check the drive(G: drive) is present in preferred drive list
       
   197 //!				5. Check the drive(G: drive) is available
       
   198 //!				
       
   199 //! 	@SYMTestExpectedResults 1. I: drive should be the current drive
       
   200 //!				2. Should returned a corrupt notification(EMsvMessageStoreCorrupt) and change drive notification(EMsvCurrentDriveChanged)
       
   201 //!				3. G: drive is the current drive
       
   202 //!				4. G: drive is present in preferred drive list
       
   203 //!				5. G: drive is available
       
   204 //!				
       
   205 //!	@SYMAuthor		Rajat Bal
       
   206 //!				
       
   207 //! 	@SYMTestType		CIT
       
   208 //! 	@SYMTestStatus 		Defined
       
   209 
       
   210 
       
   211 RUN_UTILS  CopyFile   		g:\messaging.db g:\messaging.db.bak
       
   212 RUN_UTILS  MakeReadWrite  	g:\messaging.db
       
   213 RUN_UTILS  CopyFile   		c:\msgtest\media\corrupt.db g:\messaging.db
       
   214 
       
   215 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   216 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   217 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   218 END_TEST_BLOCK
       
   219 
       
   220 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   221 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   222 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0003.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
   223 
       
   224 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   225 		CREATE_OBJECT	MediaTestWrapper	0003_obj_1
       
   226 		COMMAND		0003_obj_1		New		0003_obj_1
       
   227 		COMMAND		0003_obj_1		GetCurrentDrive	0003_GetCurrentDrive_1
       
   228 		COMMAND		0003_obj_1		AddDrive	0003_AddDrive_high
       
   229 		COMMAND		0003_obj_1		GetCurrentDrive	0003_GetCurrentDrive_2
       
   230 		COMMAND		0003_obj_1		GetDrivelist	0003_GetDrivelist_1
       
   231 		COMMAND		0003_obj_1		GetAvailableDriveList	0003_GetAvailableDriveList_1
       
   232 	END_TEST_BLOCK
       
   233 
       
   234 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   235 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   236 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   237 
       
   238 RUN_UTILS  MakeReadWrite  	g:\messaging.db
       
   239 RUN_UTILS  CopyFile   		g:\messaging.db.bak g:\messaging.db
       
   240 RUN_UTILS  DeleteFile		g:\messaging.db.bak
       
   241 
       
   242 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0003
       
   243 
       
   244 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0004
       
   245 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0004
       
   246 //! 	@SYMTestCaseDesc	Corrupted message db in a lesser priority drive 
       
   247 //!				
       
   248 //!	@SYMREQ			REQ9050 
       
   249 //!	@SYMPREQ 		PREQ557
       
   250 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   251 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   252 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
   253 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
   254 //!				
       
   255 //!	@SYMTestCaseDependencies Copy a currupted message db from a sample testdata_db folder to a lesser priority E: drive 
       
   256 //!				
       
   257 //! 	@SYMTestPriority	High
       
   258 //! 	@SYMTestActions		1. Get the current drive(G: drive)
       
   259 //!				2. Add a lesser priority drive(E: drive)
       
   260 //!				3. Get the current drive(G: drive)
       
   261 //!				4. Check the drive(E: drive) is present in preferred drive list
       
   262 //!				5. Check the drive(E: drive) is not available
       
   263 //!				
       
   264 //! 	@SYMTestExpectedResults 1. G: drive should be the current drive
       
   265 //!				2. Should returned a corrupt notification(EMsvMessageStoreCorrupt) 
       
   266 //!				3. G: drive is the current drive
       
   267 //!				4. E: drive is present in preferred drive list
       
   268 //!				5. E: drive is not available
       
   269 //!				
       
   270 //!	@SYMAuthor		Rajat Bal
       
   271 //!				
       
   272 //! 	@SYMTestType		CIT
       
   273 //! 	@SYMTestStatus 		Defined
       
   274 
       
   275 RUN_UTILS  CopyFile   		e:\messaging.db	e:\messaging.db.bak
       
   276 RUN_UTILS  MakeReadWrite  	e:\messaging.db
       
   277 RUN_UTILS  CopyFile   		c:\msgtest\media\corrupt.db e:\messaging.db
       
   278 
       
   279 
       
   280 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   281 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   282 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   283 END_TEST_BLOCK
       
   284 
       
   285 
       
   286 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   287 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   288 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0004.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
   289 
       
   290 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   291 		CREATE_OBJECT	MediaTestWrapper	0004_obj_1
       
   292 		COMMAND		0004_obj_1		New		0004_obj_1
       
   293 		COMMAND		0004_obj_1		GetCurrentDrive	0004_GetCurrentDrive_1
       
   294 		COMMAND		0004_obj_1		AddDrive	0004_AddDrive_lesser
       
   295 		COMMAND		0004_obj_1		GetCurrentDrive	0004_GetCurrentDrive_2
       
   296 		COMMAND		0004_obj_1		GetDrivelist	0004_GetDrivelist_1
       
   297 		COMMAND		0004_obj_1		GetAvailableDriveList	0004_GetAvailableDriveList_1
       
   298 	END_TEST_BLOCK
       
   299 
       
   300 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   301 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   302 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   303 
       
   304 RUN_UTILS  MakeReadWrite  	e:\messaging.db
       
   305 RUN_UTILS  CopyFile   		e:\messaging.db.bak e:\messaging.db
       
   306 RUN_UTILS  DeleteFile		e:\messaging.db.bak
       
   307 
       
   308 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0004
       
   309 
       
   310 
       
   311 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0005
       
   312 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0005
       
   313 //! 	@SYMTestCaseDesc	Add a high priority drive which contains compatible message store and remove it again
       
   314 //!				
       
   315 //!	@SYMREQ			REQ9050 
       
   316 //!	@SYMPREQ 		PREQ557
       
   317 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   318 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   319 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
   320 //!				TBool MessageServer::IsMessageStoreSupported(TDriveNumber aDrive)
       
   321 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
   322 //!				void CMsvSession::RemoveDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   323 //!				
       
   324 //!	@SYMTestCaseDependencies Copy some messages(OS 95 or above) from a sample testdata_95_mail2 folder to I: drive
       
   325 //!				
       
   326 //! 	@SYMTestPriority	High
       
   327 //! 	@SYMTestActions		1. Get the current drive(G: drive)
       
   328 //!				2. Add a high priority drive(I:drive)
       
   329 //!				3. Get the current drive(I: drive)
       
   330 //!				4. Check the drive(I: drive) is present in preferred drive list
       
   331 //!				5. Check message store in the drive(I: drive) is supported
       
   332 //!				6. Check the drive(I: drive) is available
       
   333 //!				8. Dowload the sms message from I: drive 
       
   334 //!				9. Download the email message from I: drive 
       
   335 //!				10. Remove the same drive(I: drive)
       
   336 //!				
       
   337 //! 	@SYMTestExpectedResults 1. G: drive is the current drive
       
   338 //!				2. Should capture EMsvCurrentDriveChanged notification
       
   339 //!				3. I: drive should be the current drive
       
   340 //!				4. I: drive should be present in preferred drive list
       
   341 //!				5. I: drive should contains valid message store
       
   342 //!				6. I: drive should be available
       
   343 //!				8. Download should be completed
       
   344 //!				9. Download should be completed
       
   345 //!				10. Should capture EMsvCurrentDriveChanged
       
   346 //!				
       
   347 //!	@SYMAuthor		Rajat Bal
       
   348 //!				
       
   349 //! 	@SYMTestType		CIT
       
   350 //! 	@SYMTestStatus 		Defined
       
   351 
       
   352 RUN_UTILS  CopyFile   		i:\messaging.db	i:\messaging.db.bak
       
   353 RUN_UTILS  MakeReadWrite  	i:\messaging.db
       
   354 RUN_UTILS  CopyFile   		c:\msgtest\media\compatible.db i:\messaging.db
       
   355 
       
   356 
       
   357 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   358 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   359 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   360 END_TEST_BLOCK
       
   361 
       
   362 
       
   363 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   364 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   365 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0005.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
   366 
       
   367 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   368 		CREATE_OBJECT	MediaTestWrapper	0005_obj_1
       
   369 		COMMAND		0005_obj_1		New		0005_obj_1
       
   370 		COMMAND		0005_obj_1		GetCurrentDrive	0005_GetCurrentDrive_1
       
   371 		COMMAND		0005_obj_1		AddDrive	0005_AddDrive_high
       
   372 		COMMAND		0005_obj_1		GetCurrentDrive	0005_GetCurrentDrive_2
       
   373 		COMMAND		0005_obj_1		GetDrivelist	0005_GetDrivelist_1
       
   374 		COMMAND		0005_obj_1		MessageStoreSupported	0005_MessageStoreSupported_1
       
   375 		STORE		0005_obj_1		
       
   376 		COMMAND		0005_obj_1		GetAvailableDriveList	0005_GetAvailableDriveList_1
       
   377 	END_TEST_BLOCK
       
   378 	
       
   379 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   380 		RESTORE_OBJECT	MediaTestWrapper	0005_obj_1
       
   381 		COMMAND		0005_obj_1		RemoveDrive	0005_RemoveDrive_1
       
   382 	END_TEST_BLOCK
       
   383 
       
   384 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   385 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   386 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   387 
       
   388 RUN_UTILS  MakeReadWrite  	i:\messaging.db
       
   389 RUN_UTILS  CopyFile   		i:\messaging.db.bak i:\messaging.db
       
   390 RUN_UTILS  DeleteFile		i:\messaging.db.bak
       
   391 
       
   392 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0005
       
   393 
       
   394 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0006
       
   395 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0006
       
   396 //! 	@SYMTestCaseDesc	Add a lower priority drive which contains compatible message store and remove it again
       
   397 //!				
       
   398 //!	@SYMREQ			REQ9050 
       
   399 //!	@SYMPREQ 		PREQ557
       
   400 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   401 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   402 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
   403 //!				TBool MessageServer::IsMessageStoreSupported(TDriveNumber aDrive)
       
   404 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
   405 //!				void CMsvSession::RemoveDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   406 //!				
       
   407 //!	@SYMTestCaseDependencies Copy some messages(OS 95 or above) from a sample testdata_95_mail2 folder to I: drive
       
   408 //!				
       
   409 //! 	@SYMTestPriority	High
       
   410 //! 	@SYMTestActions		1. Get the current drive(G: drive)
       
   411 //!				2. Add a lower priority drive(I:drive)
       
   412 //!				3. Get the current drive(G: drive)
       
   413 //!				4. Check the drive(I: drive) is present in preferred drive list
       
   414 //!				5. Check message store in the drive(I: drive) is supported
       
   415 //!				6. Check the drive(I: drive) is available
       
   416 //!				8. Dowload the sms message from I: drive 
       
   417 //!				9. Remove the same drive(I:drive)
       
   418 //!				
       
   419 //! 	@SYMTestExpectedResults 1. G: drive is the current drive
       
   420 //!				2. Should capture EMsvRefreshMessageView notification
       
   421 //!				3. G: drive should be the current drive
       
   422 //!				4. I: drive should be present in preferred drive list
       
   423 //!				5. I: drive should contains valid message store
       
   424 //!				6. I: drive should be available
       
   425 //!				8. Download should be completed
       
   426 //!				9. Should capture EMsvRefreshMessageView notification
       
   427 //!				
       
   428 //!	@SYMAuthor		Rajat Bal
       
   429 //!				
       
   430 //! 	@SYMTestType		CIT
       
   431 //! 	@SYMTestStatus 		Defined
       
   432 
       
   433 RUN_UTILS  CopyFile   		i:\messaging.db	i:\messaging.db.bak
       
   434 RUN_UTILS  MakeReadWrite  	i:\messaging.db
       
   435 RUN_UTILS  CopyFile   		c:\msgtest\media\compatible.db i:\messaging.db
       
   436 
       
   437 
       
   438 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   439 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   440 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   441 END_TEST_BLOCK
       
   442 
       
   443 
       
   444 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   445 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   446 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0006.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
   447 
       
   448 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   449 		CREATE_OBJECT	MediaTestWrapper	0006_obj_1
       
   450 		COMMAND		0006_obj_1		New		0006_obj_1
       
   451 		COMMAND		0006_obj_1		GetCurrentDrive	0006_GetCurrentDrive_1
       
   452 		COMMAND		0006_obj_1		AddDrive	0006_AddDrive_lower
       
   453 		COMMAND		0006_obj_1		GetCurrentDrive	0006_GetCurrentDrive_2
       
   454 		COMMAND		0006_obj_1		GetDrivelist	0006_GetDrivelist_1
       
   455 		COMMAND		0006_obj_1		MessageStoreSupported	0006_MessageStoreSupported_1
       
   456 		STORE		0006_obj_1		
       
   457 		COMMAND		0006_obj_1		GetAvailableDriveList	0006_GetAvailableDriveList_1
       
   458 	END_TEST_BLOCK
       
   459 	
       
   460 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   461 		RESTORE_OBJECT	MediaTestWrapper	0006_obj_1
       
   462 		COMMAND		0006_obj_1		RemoveDrive	0006_RemoveDrive_1
       
   463 	END_TEST_BLOCK
       
   464 
       
   465 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   466 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   467 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   468 
       
   469 RUN_UTILS  MakeReadWrite  	i:\messaging.db
       
   470 RUN_UTILS  CopyFile   		i:\messaging.db.bak i:\messaging.db
       
   471 RUN_UTILS  DeleteFile		i:\messaging.db.bak
       
   472 
       
   473 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0006
       
   474 
       
   475 
       
   476 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0007
       
   477 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0007
       
   478 //! 	@SYMTestCaseDesc	Add a high priority drive which contains some incompatible message store and remove it again
       
   479 //!				
       
   480 //!	@SYMREQ			REQ9050 
       
   481 //!	@SYMPREQ 		PREQ557
       
   482 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   483 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   484 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
   485 //!				TBool MessageServer::IsMessageStoreSupported(TDriveNumber aDrive)
       
   486 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
   487 //!				void CMsvSession::RemoveDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   488 //!				
       
   489 //!	@SYMTestCaseDependencies Copy pre SQLite message store(OS 94 or below) from a sample testdata_95_mail3 folder to G: drive
       
   490 //!				
       
   491 //! 	@SYMTestPriority	High
       
   492 //! 	@SYMTestActions		1. Get the current drive(I: drive)
       
   493 //!				2. Add a high priority drive(G:drive)
       
   494 //!				3. Get the current drive(I: drive)
       
   495 //!				4. Check the drive(G: drive) is present in preferred drive list
       
   496 //!				5. Check message store supported is not supported
       
   497 //!				6. Check the drive(G: drive) is not available
       
   498 //!				7. Remove the same drive(G: drive)
       
   499 //!				8. Get the current drive(I: drive)
       
   500 //!				
       
   501 //! 	@SYMTestExpectedResults 1. I: drive should be the current drive
       
   502 //!				2. Should capure EMsvMessageStoreNotSupported notification 
       
   503 //!				3. I: drive should be the current drive
       
   504 //!				4. G: drive should be present in preferred drive list
       
   505 //!				5. G: drive should not have sql message store
       
   506 //!				6. G: drive should not be available
       
   507 //!				7. No Notification
       
   508 //!				8. I: drive should be the current drive
       
   509 //!				
       
   510 //!	@SYMAuthor		Rajat Bal
       
   511 //!				
       
   512 //! 	@SYMTestType		CIT
       
   513 //! 	@SYMTestStatus 		Defined
       
   514 
       
   515 
       
   516 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   517 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   518 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   519 END_TEST_BLOCK
       
   520 
       
   521 
       
   522 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   523 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   524 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0007.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
   525 
       
   526 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   527 		CREATE_OBJECT	MediaTestWrapper	0007_obj_1
       
   528 		COMMAND		0007_obj_1		New		0007_obj_1
       
   529 		COMMAND		0007_obj_1		GetCurrentDrive	0007_GetCurrentDrive_1
       
   530 		COMMAND		0007_obj_1		AddDrive	0007_AddDrive_high
       
   531 		COMMAND		0007_obj_1		GetCurrentDrive	0007_GetCurrentDrive_2
       
   532 		COMMAND		0007_obj_1		GetDrivelist	0007_GetDrivelist_1
       
   533 		COMMAND		0007_obj_1		MessageStoreSupported	0007_MessageStoreSupported_1
       
   534 		STORE		0007_obj_1		
       
   535 		COMMAND		0007_obj_1		GetAvailableDriveList	0007_GetAvailableDriveList_1
       
   536 	END_TEST_BLOCK
       
   537 	
       
   538 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   539 		RESTORE_OBJECT	MediaTestWrapper	0007_obj_1
       
   540 		COMMAND		0007_obj_1		RemoveDrive	0007_RemoveDrive_1
       
   541 		COMMAND		0007_obj_1		GetCurrentDrive	0007_GetCurrentDrive_3
       
   542 	END_TEST_BLOCK
       
   543 
       
   544 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   545 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   546 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   547 
       
   548 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0007
       
   549 
       
   550 START_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0008
       
   551 //! 	@SYMTestCaseID		MSG-MEDIA-COMPATIBLE-OPS-0008
       
   552 //! 	@SYMTestCaseDesc	Add a lower priority drive which contains some incompatible message store and remove it again
       
   553 //!				
       
   554 //!	@SYMREQ			REQ9050 
       
   555 //!	@SYMPREQ 		PREQ557
       
   556 //!	@SYMAPI			void CMsvSession::CurrentDriveInfo (TDriveNumber& aDrive, Tint& aPriority)
       
   557 //!				void CMsvSession::AddDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   558 //!				void CMsvSession::DriveListL(RArray<TDriveNumber>& aDriveList)
       
   559 //!				TBool MessageServer::IsMessageStoreSupported(TDriveNumber aDrive)
       
   560 //!				void CMsvSession::AvailableDriveListL(RArray<TDriveNumber>& aDriveList)
       
   561 //!				void CMsvSession::RemoveDriveL (TDriveNumber aDrive, Tint& aPriority)
       
   562 //!				
       
   563 //!	@SYMTestCaseDependencies Copy pre SQLite message store(OS 94 or below) from a sample testdata_95_mail3 folder to D: drive
       
   564 //!				
       
   565 //! 	@SYMTestPriority	High
       
   566 //! 	@SYMTestActions		1. Get the current drive(I: drive)
       
   567 //!				2. Add a lower priority drive(D:drive)
       
   568 //!				3. Get the current drive(I: drive)
       
   569 //!				4. Check the drive(D: drive) is present in preferred drive list
       
   570 //!				5. Check message store supported is not supported
       
   571 //!				6. Check the drive(D: drive) is not available
       
   572 //!				7. Remove the same drive(D: drive)
       
   573 //!				8. Get the current drive(I: drive)
       
   574 //!				
       
   575 //! 	@SYMTestExpectedResults 1. I: drive should be the current drive
       
   576 //!				2. Should capure EMsvMessageStoreNotSupported notification 
       
   577 //!				3. I: drive should be the current drive
       
   578 //!				4. D: drive should be present in preferred drive list
       
   579 //!				5. D: drive should not have sql message store
       
   580 //!				6. D: drive should not be available
       
   581 //!				7. No Notification
       
   582 //!				8. I: drive should be the current drive
       
   583 //!				
       
   584 //!	@SYMAuthor		Rajat Bal
       
   585 //!				
       
   586 //! 	@SYMTestType		CIT
       
   587 //! 	@SYMTestStatus 		Defined
       
   588 
       
   589 
       
   590 START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   591 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
   592 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
   593 END_TEST_BLOCK
       
   594 
       
   595 
       
   596 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
   597 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   598 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-compatible-0008.ini	c:\private\1000484b\msgprioritydrivelist.ini
       
   599 
       
   600 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   601 		CREATE_OBJECT	MediaTestWrapper	0008_obj_1
       
   602 		COMMAND		0008_obj_1		New		0008_obj_1
       
   603 		COMMAND		0008_obj_1		GetCurrentDrive	0008_GetCurrentDrive_1
       
   604 		COMMAND		0008_obj_1		AddDrive	0008_AddDrive_lower
       
   605 		COMMAND		0008_obj_1		GetCurrentDrive	0008_GetCurrentDrive_2
       
   606 		COMMAND		0008_obj_1		GetDrivelist	0008_GetDrivelist_1
       
   607 		COMMAND		0008_obj_1		MessageStoreSupported	0008_MessageStoreSupported_1
       
   608 		STORE		0008_obj_1		
       
   609 		COMMAND		0008_obj_1		GetAvailableDriveList	0008_GetAvailableDriveList_1
       
   610 	END_TEST_BLOCK
       
   611 	
       
   612 	START_TEST_BLOCK	100	t_media		c:\msgtest\media\msg-media-compatible-ops.ini
       
   613 		RESTORE_OBJECT	MediaTestWrapper	0008_obj_1
       
   614 		COMMAND		0008_obj_1		RemoveDrive	0008_RemoveDrive_1
       
   615 		COMMAND		0008_obj_1		GetCurrentDrive	0008_GetCurrentDrive_3
       
   616 	END_TEST_BLOCK
       
   617 
       
   618 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
   619 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
   620 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak
       
   621 
       
   622 END_TESTCASE	MSG-MEDIA-COMPATIBLE-OPS-0008