messagingfw/msgtestproduct/converter/scripts/msg-converter.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_converter  -SharedData
       
    18 LOAD_SERVER	T_MsgImapServer		-SharedData
       
    19 // LOAD_SERVER T_MsgPopServer -SharedData
       
    20 
       
    21 RUN_UTILS  DeleteFile	d:\messaging.db
       
    22 RUN_UTILS  DeleteFile	e:\messaging.db
       
    23 RUN_UTILS  DeleteFile	c:\private\10202be9\persists\10286a26.cre
       
    24 //! @file			
       
    25 //! @SYMTestSuiteName		MSG-Converter
       
    26 //! @SYMScriptTestEnvironment   Details as in below:-
       
    27 //!				1. nt-ras connection or winpcap
       
    28 //!				2. email servers ( communigatePro or ms exchange)
       
    29 //!				3. testexecute framework(TEF3.0)
       
    30 //!				
       
    31 //! @SYMScriptPurpose		Integration testing of PREQ2073-"Store Message content in SQL"
       
    32 //! @SYMScriptCreationDate	04/04/2009
       
    33 
       
    34 START_TESTCASE	MSG-Converter-001
       
    35 //! 	@SYMTestCaseID		MSG-Converter-001
       
    36 //! 	@SYMTestCaseDesc	Test the API GetConvertibleDriveList
       
    37 //!				
       
    38 //!	@SYMREQ			REQ  12513
       
    39 //!	@SYMPREQ 		PREQ2073
       
    40 //!	@SYMAPI			void CMsvSession::GetConvertibleDriveList (RArray<TDriveNumber>)
       
    41 //!				
       
    42 //!	
       
    43 //!				
       
    44 //! 	@SYMTestPriority	High
       
    45 //! 	@SYMTestActions		1. Place an incompatible message store in D:
       
    46 //! 							2.Call the API				
       
    47 //! 	@SYMTestExpectedResults 1. The API should return D drive as eligible for conversion.
       
    48 //!	@SYMAuthor		Chaitanya T L
       
    49 //!				
       
    50 //! 	@SYMTestType		CIT
       
    51 //! 	@SYMTestStatus 		Defined
       
    52 
       
    53 START_TEST_BLOCK	1000	t_converter		c:\msgtest\converter\msg-converter.ini
       
    54 	CREATE_OBJECT	ConverterWrapper	0001_obj	
       
    55 	COMMAND		0001_obj	GetDriveList	0001_GetDrivelist_1 
       
    56 END_TEST_BLOCK
       
    57 END_TESTCASE	MSG-Converter-001
       
    58 
       
    59 
       
    60 //! @file			
       
    61 //! @SYMTestSuiteName		MSG-Converter
       
    62 //! @SYMScriptTestEnvironment   Details as in below:-
       
    63 //!				1. nt-ras connection or winpcap
       
    64 //!				2. email servers ( communigatePro or ms exchange)
       
    65 //!				3. testexecute framework(TEF3.0)
       
    66 //!				
       
    67 //! @SYMScriptPurpose		Integration testing of PREQ2073-"Store Message content in SQL"
       
    68 //! @SYMScriptCreationDate	04/04/2009
       
    69 
       
    70 START_TESTCASE	MSG-Converter-0002
       
    71 //! 	@SYMTestCaseID		MSG-Converter-002
       
    72 //! 	@SYMTestCaseDesc	Test the API ConvertMessageStoreL(TInt aDrive,TRequestStatus& aStatus)
       
    73 //!				
       
    74 //!	@SYMREQ			REQ  12513
       
    75 //!	@SYMPREQ 		PREQ2073
       
    76 //!	@SYMAPI			void CMsvSession::ConvertMesageStoreL (RArray<TDriveNumber>)
       
    77 //!				
       
    78 //!	
       
    79 //!				
       
    80 //! 	@SYMTestPriority	High
       
    81 //! 	@SYMTestActions		1. Place an incompatible message store in D:
       
    82 //! 							2.Call the API				
       
    83 //! 	@SYMTestExpectedResults 1. The conversion should be complete on D:
       
    84 //!	@SYMAuthor		Chaitanya T L
       
    85 //!				
       
    86 //! 	@SYMTestType		CIT
       
    87 //! 	@SYMTestStatus 		Defined
       
    88 RUN_UTILS  DeleteFile	d:\messaging.db
       
    89 RUN_UTILS  DeleteFile	e:\messaging.db
       
    90 RUN_UTILS  DeleteFile	c:\private\10202be9\persists\10286a26.cre
       
    91 START_TEST_BLOCK	1000	t_converter		c:\msgtest\converter\msg-converter.ini
       
    92 	CREATE_OBJECT	ConverterWrapper	0001_obj	
       
    93 	COMMAND		0001_obj		DoConversion  0001-VerifyHeaders
       
    94 END_TEST_BLOCK
       
    95 END_TESTCASE	MSG-Converter-0002
       
    96 
       
    97 START_TESTCASE	MSG-Converter-0003
       
    98 //! 	@SYMTestCaseID		MSG-Converter-003
       
    99 //! 	@SYMTestCaseDesc	Test the API GetConversionStatus(TInt aDrive)
       
   100 //!				
       
   101 //!	@SYMREQ			REQ  12513
       
   102 //!	@SYMPREQ 		PREQ2073
       
   103 //!	@SYMAPI			void CMsvSession::ConvertMesageStoreL (RArray<TDriveNumber>)
       
   104 //!				
       
   105 //!	
       
   106 //!				
       
   107 //! 	@SYMTestPriority	High
       
   108 //! 	@SYMTestActions		1. Place an incompatible message store in D:
       
   109 //! 							2.Call the API				
       
   110 //! 	@SYMTestExpectedResults 1. The conversion should be complete on D:
       
   111 //!	@SYMAuthor		Chaitanya T L
       
   112 //!				
       
   113 //! 	@SYMTestType		CIT
       
   114 //! 	@SYMTestStatus 		Defined
       
   115 
       
   116 RUN_UTILS  DeleteFile	d:\messaging.db
       
   117 RUN_UTILS  DeleteFile	e:\messaging.db
       
   118 RUN_UTILS  CopyFile   		d:\private\1000484b\mail2\Index_backup	d:\private\1000484b\mail2\Index
       
   119 START_TEST_BLOCK	1000	t_converter		c:\msgtest\converter\msg-converter.ini
       
   120 	CREATE_OBJECT	ConverterWrapper	0001_obj	
       
   121 	COMMAND		0001_obj	GetConversionStatus	0001_GetDrivelist_1 
       
   122 END_TEST_BLOCK
       
   123 END_TESTCASE	MSG-Converter-0003
       
   124 
       
   125 
       
   126 RUN_UTILS  DeleteFile	d:\messaging.db
       
   127 RUN_UTILS  DeleteFile	e:\messaging.db
       
   128 START_TESTCASE	MSG-Converter-0004
       
   129 //! 	@SYMTestCaseID		MSG-Converter-004
       
   130 //! 	@SYMTestCaseDesc	Test the API CancelConversion()
       
   131 //!				
       
   132 //!	@SYMREQ			REQ  12513
       
   133 //!	@SYMPREQ 		PREQ2073
       
   134 //!	@SYMAPI			void CMsvSession::CancelConversion()
       
   135 //!				
       
   136 //!	
       
   137 //!				
       
   138 //! 	@SYMTestPriority	High
       
   139 //! 	@SYMTestActions		1. Place an incompatible message store in D:
       
   140 //! 						2.Call the ConvertMessageStoreL
       
   141 //! 						3.Call CancelConversion()
       
   142 //! 	@SYMTestExpectedResults 1. The conversion should be cancelled.
       
   143 //!	@SYMAuthor		Chaitanya T L
       
   144 //!				
       
   145 //! 	@SYMTestType		CIT
       
   146 //! 	@SYMTestStatus 		Defined
       
   147 
       
   148 RUN_UTILS  CopyFile   		d:\private\1000484b\mail2\Index_backup	d:\private\1000484b\mail2\Index
       
   149 START_TEST_BLOCK	1000	t_converter		c:\msgtest\converter\msg-converter.ini
       
   150 	CREATE_OBJECT	ConverterWrapper	0001_obj	
       
   151 	COMMAND		0001_obj	CancelConversion	0001_UpdateDrive_high 
       
   152 END_TEST_BLOCK
       
   153 END_TESTCASE	MSG-Converter-0004
       
   154 
       
   155 START_TESTCASE	MSG-Converter-0007
       
   156 //! 	@SYMTestCaseID		MSG-Converter-007
       
   157 //! 	@SYMTestCaseDesc	Test the Multithreading functionality 
       
   158 //!				
       
   159 //!	@SYMREQ			REQ  12513
       
   160 //!	@SYMPREQ 		PREQ2073
       
   161 //!	
       
   162 //!				
       
   163 //!	
       
   164 //!				
       
   165 //! 	@SYMTestPriority	High
       
   166 //! 	@SYMTestActions		1. Place an incompatible message store in D:
       
   167 //! 						2.Call the ConvertMessageStoreL
       
   168 //! 						3.Provide a search request
       
   169 //! 	@SYMTestExpectedResults 1. The converter thread should be suspended and the search request should be 
       
   170 								given priority over conversion
       
   171 //!	@SYMAuthor		Chaitanya T L
       
   172 //!				
       
   173 //! 	@SYMTestType		CIT
       
   174 //! 	@SYMTestStatus 		Defined
       
   175 
       
   176 
       
   177 //RUN_UTILS  CopyFile   		d:\private\1000484b\mail2\Index_backup	d:\private\1000484b\mail2\Index
       
   178 START_TEST_BLOCK	1000	t_converter		c:\msgtest\converter\msg-converter.ini
       
   179 	CREATE_OBJECT	ConverterWrapper	0001_obj	
       
   180 	COMMAND		0001_obj		MultipleConversionRequests 0001_GetDrivelist_1
       
   181 END_TEST_BLOCK
       
   182 END_TESTCASE	MSG-Converter-0007