phonebookengines/contactsmodel/tsrc/Integration/CntPerfTest/Scripts/TestContactViewSuite.Script
changeset 0 e686773b3f54
child 24 0ba2181d7c28
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 //! @file
       
    17 //! @SYMTestSuiteName	TestContactViewSuite
       
    18 //! @SYMScriptTestEnvironment
       
    19 
       
    20 PRINT Run all TestContactView tests
       
    21 
       
    22 LOAD_SUITE CntPerfTestServer
       
    23 
       
    24 
       
    25 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0035-HP
       
    26 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0035-HP
       
    27 //! @SYMTestCaseDesc 		Impact of SyncML operations on Contact views
       
    28 //! @SYMPREQ			1187
       
    29 //! @SYMTestStatus 		Implemented
       
    30 //! @SYMTestPriority 		High
       
    31 //! @SYMTestActions 		1. Construct multiple contact views.
       
    32 //!				2. Initiate a contact import operation.
       
    33 //!				3. Access the contact views as per 3.1.2.
       
    34 //!				4. Validate the contact view access results i.e. it is perfectly valid if the contact 
       
    35 //!				view access fails with KErrNotFound if the contact item doesn’t exist in the view, But there 
       
    36 //!				should not be any invalid error codes or panics as a result of contact view access when a syncml 
       
    37 //!				operation is initiated in parallel. 
       
    38 //! @SYMTestExpectedResults 	SyncML operations doesn’t affect contact view operations
       
    39 //! @SYMTestType 		CIT
       
    40 
       
    41 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews35 
       
    42 CONCURRENT
       
    43 
       
    44 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews35_1 
       
    45 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews35_2
       
    46 
       
    47 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0035-HP
       
    48 
       
    49 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0002-HP
       
    50 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0002-HP
       
    51 //! @SYMTestCaseDesc 		Construct contact views with different view sort order.
       
    52 //! @SYMPREQ			1187
       
    53 //! @SYMTestStatus 		Implemented
       
    54 //! @SYMTestPriority 		High
       
    55 //! @SYMTestActions 		1. Add contacts in the contacts database.
       
    56 //!				2. Construct a contact view.
       
    57 //!				3. During view construction, supply the desired view preference and sort order.
       
    58 //!				4. Validate the contact views related notifications or events are as per expectations.
       
    59 //!				5. Validate that the newly constructed view contains the desired view preference and sort order i.e. check that the contact ids in the view are as per the desired sort order. And the contact items in the view meet the desired view preferences.
       
    60 //!				6. Repeat the above mentioned steps for different view sort order. Refer to 1.2.2.1 for information on contact view sort order
       
    61 //! @SYMTestExpectedResults 	It is possible to construct contact views with different view sort order.
       
    62 //! @SYMTestType 		CIT
       
    63 
       
    64 CONSECUTIVE
       
    65 
       
    66 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_2
       
    67 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0002-HP
       
    68 
       
    69 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0003-HP
       
    70 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0003-HP
       
    71 //! @SYMTestCaseDesc 		contacts view with different contact view preferences
       
    72 //! @SYMPREQ			1187
       
    73 //! @SYMTestStatus 		Implemented
       
    74 //! @SYMTestPriority 		High
       
    75 //! @SYMTestActions 		1. Add contacts in the contacts database.
       
    76 //!				2. Construct a contact view.
       
    77 //!				3. During view construction, supply the desired view preference and sort order.				
       
    78 //!				4. Access the view as per 4.1.1.1.
       
    79 //!				5. Validate that the newly constructed view possess the desired view preference and sort order 
       
    80 //!				i.e. check that the contact ids in the view are as per the desired sort order. And the contact items in the view
       
    81 //!				are as per the desired view preferences.
       
    82 //!				6. Repeat the above mentioned steps for different view preferences. Refer to 1.2.2.2 for information on view preferences.
       
    83 //! @SYMTestExpectedResults 	It is possible to construct contact views with different view preferences.
       
    84 //! @SYMTestType 		CIT
       
    85 
       
    86 
       
    87 
       
    88 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini createviews2
       
    89 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews3
       
    90 
       
    91 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0003-HP
       
    92 
       
    93 
       
    94 
       
    95 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0007-HP
       
    96 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0007-HP
       
    97 //! @SYMTestCaseDesc 		Construction of a Named Remote view with desired Sort Plug-In
       
    98 //! @SYMPREQ			1187
       
    99 //! @SYMTestStatus 		Implemented
       
   100 //! @SYMTestPriority 		High
       
   101 //! @SYMTestActions 		1.Construct a named remote view.
       
   102 //!				2.Specify the desired contacts view preference and sort order.
       
   103 //!				3.Specify the desired Sort Plugin.
       
   104 //!				4.Validate the contacts view preference and sort order after the successful completion of the view.
       
   105 //!				5.Validate that the view elements are sorted as per the desired sort plug-in i.e. check that the contact ids in the view are as per the sort plug-in criteria.
       
   106 //! @SYMTestExpectedResults 	It is possible to construct contacts named remote view with a user defined sort plugin
       
   107 //! @SYMTestType 		CIT
       
   108 
       
   109 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_7
       
   110 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini namedremoteviewwithplugin
       
   111 
       
   112 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0007-HP
       
   113 
       
   114 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0008-HP
       
   115 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0008-HP
       
   116 //! @SYMTestCaseDesc 		Test the contacts find view for basic view operations.
       
   117 //! @SYMPREQ			1187
       
   118 //! @SYMTestStatus 		Implemented
       
   119 //! @SYMTestPriority 		High
       
   120 //! @SYMTestActions 		1.Construct a find view over an existing local view.
       
   121 //!				2.Specify the desired search criteria as part of construction.				
       
   122 //!				3.Validate that the view elements meet the search criteria by checking the any of the contact item field contents of the contacts in the view possess the desired search string.
       
   123 //! @SYMTestExpectedResults 	It is possible construct and access a contacts find view.
       
   124 //! @SYMTestType 		CIT
       
   125 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0008-HP
       
   126 
       
   127 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0010-HP-0001
       
   128 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0010-HP-0001
       
   129 //! @SYMTestCaseDesc 		Update a find view indirectly and access the same
       
   130 //! @SYMPREQ			1187
       
   131 //! @SYMTestStatus 		Implemented
       
   132 //! @SYMTestPriority 		High
       
   133 //! @SYMTestActions 		1.Construct a find view over an existing local view.
       
   134 //!				2.Validate that the find view elements meet the search criteria.
       
   135 //!				3.Modify the underlying Local view.
       
   136 //!				4.Validate that the updated contact find view items still meets the find criteria i.e. validate that the view elements meet the desired search criteria by checking the any of the contact item field contents of the contacts in the view possess the desired string.
       
   137 //! @SYMTestExpectedResults 	The find view is still accessible and updated correctly, even though the underlying view is modified. 
       
   138 //! @SYMTestType 		CIT
       
   139 
       
   140 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_8
       
   141 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini findviewonlocalview
       
   142 
       
   143 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0010-HP-0001
       
   144 
       
   145 
       
   146 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0009-HP
       
   147 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0009-HP
       
   148 //! @SYMTestCaseDesc 		Refine the search criteria of a find view and access the same
       
   149 //! @SYMPREQ			1187
       
   150 //! @SYMTestStatus 		Implemented
       
   151 //! @SYMTestPriority 		High
       
   152 //! @SYMTestActions 		1.Perform test case APPENG-CONTACTS-VIEWS-I-0008-HP.
       
   153 //!				2.Refine the search criteria. 
       
   154 //!				3.Validate that the updated contact view items meet the find criteria i.e. Validate that the view elements meet the updated search criteria by checking the any of the contact item field contents of the contacts in the view possess the updated desired string.
       
   155 //! @SYMTestExpectedResults 	It is possible to perform construct a contacts local or remote and named local view sorted as per user defined sort plug-in
       
   156 //! @SYMTestType 		CIT
       
   157 
       
   158 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_9
       
   159 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini refinefindview9
       
   160 
       
   161 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0009-HP
       
   162 
       
   163 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0011-HP
       
   164 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0011-HP
       
   165 //! @SYMTestCaseDesc 		Test the contacts find view built on an underlying remote view for basic view operations.
       
   166 //! @SYMPREQ			1187
       
   167 //! @SYMTestStatus 		Implemented
       
   168 //! @SYMTestPriority 		High
       
   169 //! @SYMTestActions 		1.Construct a find view over an existing remote view.
       
   170 //!				2.Carry out operation specified in APPENG-CONTACTS-VIEWS-I-0001-HP.
       
   171 //!				3.Validate that the view elements meet the desired search criteria by checking the any of the contact item field contents of the contacts in the view possess the desired string.
       
   172 //! @SYMTestExpectedResults 	It is possible to construct and perform basic contacts view related operations on find view based on underlying remote view.
       
   173 //! @SYMTestType 		CIT
       
   174 
       
   175 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_11
       
   176 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini findviewonremoteview
       
   177 
       
   178 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0011-HP
       
   179 
       
   180 
       
   181 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0012-HP
       
   182 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0012-HP
       
   183 //! @SYMTestCaseDesc 		Refine the search criteria of a find view based on existing remote view and access the same.
       
   184 //! @SYMPREQ			1187
       
   185 //! @SYMTestStatus 		Implemented
       
   186 //! @SYMTestPriority 		High
       
   187 //! @SYMTestActions 		1.Perform test case APPENG-CONTACTS-VIEWS-I-0011-HP.
       
   188 //!				2.Refine the search criteria and validate the view elements again.
       
   189 //!				3.Validate that the updated contact view items meet the find criteria i.e. Validate that the view elements meet the updated search criteria by checking the any of the contact item field contents of the contacts in the view, to possess the updated desired string
       
   190 //! @SYMTestExpectedResults 	It is possible to refine the search criteria of Find view based on an existing remote view.
       
   191 //! @SYMTestType 		CIT
       
   192 
       
   193 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_12
       
   194 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini refinefindviewonremoteview
       
   195 
       
   196 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0012-HP
       
   197 
       
   198 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0014-HP
       
   199 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0014-HP
       
   200 //! @SYMTestCaseDesc 		OOM tests for the Find View
       
   201 //! @SYMFssID			
       
   202 //! @SYMREQ				
       
   203 //! @SYMPREQ			1187
       
   204 //! @SYMTestStatus 		Implemented
       
   205 //! @SYMTestPriority 		High
       
   206 //! @SYMTestActions 		1. Run all find view related tests listed under 3.2.1 to 3.2.6 under OOM conditions.
       
   207 //! @SYMTestExpectedResults 	Under OOM conditions, Find view related operations leave with KErrNoMemory.
       
   208 //! @SYMTestType 		CIT
       
   209 
       
   210 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_14
       
   211 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews_14
       
   212 
       
   213 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0014-HP
       
   214 
       
   215 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0015-HP
       
   216 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0015-HP
       
   217 //! @SYMTestCaseDesc 		Create a Filtered view and access the same
       
   218 //! @SYMPREQ			1187
       
   219 //! @SYMTestStatus 		Implemented
       
   220 //! @SYMTestPriority 		High
       
   221 //! @SYMTestActions 		1.Construct a Filtered view over a existing local view by specifying a valid  contact view filter criteria 
       
   222 //!				2.Carry out the basic operations specified in APPENG-CONTACTS-VIEWS –I-0001-HP.
       
   223 //!				3.Validate that the contact items in the view meet the view filter criteria i.e. check that the view contacts contains the desired view filter.
       
   224 //! @SYMTestExpectedResults 	It is possible to create a filtered view and carry out basic view operations.
       
   225 //! @SYMTestType 		CIT
       
   226 
       
   227 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_15
       
   228 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createfilteredview
       
   229 
       
   230 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0015-HP
       
   231 
       
   232 
       
   233 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0017-HP
       
   234 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0017-HP
       
   235 //! @SYMTestCaseDesc 		Create a filtered view over an existing remote view and access the same
       
   236 //! @SYMPREQ			1187
       
   237 //! @SYMTestStatus 		Implemented
       
   238 //! @SYMTestPriority 		High
       
   239 //! @SYMTestActions 		1.Construct a Filtered view on the existing remote view by specifying valid filter criteria 
       
   240 //!				2.Carry out the basic operations specified in APPENG-CONTACTS-VIEWS –I-0001-HP.
       
   241 //!				3.Validate that the contact items in the view meet the view filter criteria i.e. check that the view contacts contains the desired view filter.
       
   242 //! @SYMTestExpectedResults 	It is possible to create a filtered view and access the same.
       
   243 //! @SYMTestType 		CIT
       
   244 
       
   245 RUN_TEST_STEP 600 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_17
       
   246 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createfilteredviewonremoteview
       
   247 
       
   248 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0017-HP
       
   249 
       
   250 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0019-HP
       
   251 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0019-HP
       
   252 //! @SYMTestCaseDesc 		OOM tests for the Filtered View
       
   253 //! @SYMPREQ			1187
       
   254 //! @SYMTestStatus 		Implemented
       
   255 //! @SYMTestPriority 		High
       
   256 //! @SYMTestActions 		1. Run all filtered view related tests listed under 3.3.1 to 3.3.4 under OOM Conditions.
       
   257 //! @SYMTestExpectedResults 	Under OOM conditions, Find view related operations  leave with KErrNoMemory.
       
   258 //! @SYMTestType 		CIT
       
   259 
       
   260 RUN_TEST_STEP 600 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_19
       
   261 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews_19
       
   262 
       
   263 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0019-HP
       
   264 
       
   265 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0020-HP
       
   266 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0020-HP
       
   267 //! @SYMTestCaseDesc 		Create and access a group view over an existing local view.
       
   268 //! @SYMPREQ			1187
       
   269 //! @SYMTestStatus 		Implemented
       
   270 //! @SYMTestPriority 		High
       
   271 //! @SYMTestActions 		1.Construct a Group view over an existing local view by specifying valid Group type criteria.
       
   272 //!				2.Carry out the basic view operations specified in APPENG-CONTACTS-VIEWS –I-0001-HP.
       
   273 //!				3.Validate that the contact items in the group view meet the group type criteria i.e. check that the view contacts are of desired group type.
       
   274 //! @SYMTestExpectedResults 	It is possible to create a group view over an existing local view and carry out basic view operations
       
   275 //! @SYMTestType 		CIT
       
   276 
       
   277 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_20
       
   278 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini creategroupview
       
   279 
       
   280 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0020-HP
       
   281 
       
   282 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0022-HP
       
   283 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0022-HP
       
   284 //! @SYMTestCaseDesc 		Create and access a group view over an existing remote view.
       
   285 //! @SYMPREQ			1187
       
   286 //! @SYMTestStatus 		Implemented
       
   287 //! @SYMTestPriority 		High
       
   288 //! @SYMTestActions 		1.Construct a group view on a existing remote view by specifying a valid group type criteria 
       
   289 //!				2.Carry out the basic operations specified in APPENG-CONTACTS-VIEWS-I-0001-HP.
       
   290 //!				3.Validate that the contact items in the group view meet the group type criteria.
       
   291 //! @SYMTestExpectedResults 	It is possible to create and access a group view built over an existing remote view.
       
   292 //! @SYMTestType 		CIT
       
   293 
       
   294 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_22
       
   295 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini creategroupviewonremoteview
       
   296 
       
   297 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0022-HP
       
   298 
       
   299 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0024-HP
       
   300 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0024-HP
       
   301 //! @SYMTestCaseDesc 		OOM tests for the Group View
       
   302 //! @SYMPREQ			1187
       
   303 //! @SYMTestStatus 		Implemented
       
   304 //! @SYMTestPriority 		High
       
   305 //! @SYMTestActions 		1. Run all group view related tests listed under 3.3.1 to 3.3.4 under OOM Conditions.
       
   306 //! @SYMTestExpectedResults 	Under OOM conditions, group view related operations leave with KErrNoMemory
       
   307 //! @SYMTestType 		CIT
       
   308 
       
   309 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_24
       
   310 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews7
       
   311 
       
   312 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0024-HP
       
   313 
       
   314 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0025-HP-0001
       
   315 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0025-HP-0001
       
   316 //! @SYMTestCaseDesc 		Create and access a sub view
       
   317 //! @SYMPREQ			1187
       
   318 //! @SYMTestStatus 		Implemented
       
   319 //! @SYMTestPriority 		High
       
   320 //! @SYMTestActions 		1.Construct a Sub view on the existing local view by specifying valid boundary conditions.
       
   321 //!				2.Carry out the basic view operations specified in APPENG-CONTACTS-VIEWS-I-0001-HP.
       
   322 //!				3.Validate that the contact items in the group view meet the boundary criteria.
       
   323 //! @SYMTestExpectedResults 	It is possible to create and access a sub view
       
   324 //! @SYMTestType 		CIT
       
   325 
       
   326 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_25
       
   327 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createsubviewonlocalview
       
   328 
       
   329 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0025-HP
       
   330 
       
   331 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0027-HP
       
   332 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0027-HP
       
   333 //! @SYMTestCaseDesc 		Create and access a sub view based on existing remote view
       
   334 //! @SYMPREQ			1187
       
   335 //! @SYMTestStatus 		Implemented
       
   336 //! @SYMTestPriority 		High
       
   337 //! @SYMTestActions 		1.Construct a Sub view on the existing remote view by specifying a valid boundary 
       
   338 //!				2.Validate the view elements.
       
   339 //! @SYMTestExpectedResults 	It is possible to construct and access a sub view over a remote view.
       
   340 //! @SYMTestType 		CIT
       
   341 
       
   342 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_27
       
   343 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createsubviewonremoteview
       
   344 
       
   345 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0027-HP
       
   346 
       
   347 
       
   348 
       
   349 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0029-HP
       
   350 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0029-HP
       
   351 //! @SYMTestCaseDesc 		OOM tests for the Sub View
       
   352 //! @SYMPREQ			1187
       
   353 //! @SYMTestStatus 		Implemented
       
   354 //! @SYMTestPriority 		High
       
   355 //! @SYMTestActions 		1. Run all sub view related tests listed under 3.3.1 to 3.3.4 under OOM Conditions.
       
   356 //! @SYMTestExpectedResults 	Under OOM conditions, sub view related operations leave with KErrNoMemory
       
   357 //! @SYMTestType 		CIT
       
   358 
       
   359 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_29
       
   360 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews_29
       
   361 
       
   362 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0029-HP
       
   363 
       
   364 
       
   365 
       
   366 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0030-HP
       
   367 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0030-HP
       
   368 //! @SYMTestCaseDesc 		Construct a Concatenated view
       
   369 //! @SYMPREQ			1187
       
   370 //! @SYMTestStatus 		Implemented
       
   371 //! @SYMTestPriority 		High
       
   372 //! @SYMTestActions 		1. Construct a Concatenated view over multiple existing views.
       
   373 //!				2. verify and validate whether the concatenated view is constructed properly
       
   374 //! @SYMTestExpectedResults 	View is constructed successfuly
       
   375 //! @SYMTestType 		CIT
       
   376 
       
   377 
       
   378 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_30
       
   379 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini concatenatedview
       
   380 
       
   381 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0030-HP
       
   382 
       
   383 
       
   384 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0031-HP
       
   385 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0031-HP
       
   386 //! @SYMTestCaseDesc 		User defined sort plug-in 
       
   387 //! @SYMPREQ			1187
       
   388 //! @SYMTestStatus 		Implemented
       
   389 //! @SYMTestPriority 		High
       
   390 //! @SYMTestActions 		1. Construct a Contact local or remote and named local view.
       
   391 //!				2. During view construction, specify a user-defined sort plug-in 
       
   392 //!				3. Validate that the view is sorted as per the user defined sort plug-in by checking the order of the contact-ids in the view i.e. the indices of the contact ids in the view must meet the sort plug-in criteria.
       
   393 //! @SYMTestExpectedResults 	It is possible to perform construct a contacts local or remote and named local view sorted as per user defined sort plug-in
       
   394 //! @SYMTestType 		CIT
       
   395 
       
   396 
       
   397 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini localviewswithuserdefinesortplugin
       
   398 
       
   399 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0031-HP
       
   400 
       
   401 
       
   402 
       
   403 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0032-HP
       
   404 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0032-HP
       
   405 //! @SYMTestCaseDesc 		Default sort plug-in not available
       
   406 //! @SYMPREQ			1187
       
   407 //! @SYMTestStatus 		Implemented
       
   408 //! @SYMTestPriority 		High
       
   409 //! @SYMTestActions 		1. Construct a Contacts local view or remote view or named remote view.
       
   410 //!				2. During view construction, don’t specify any sort plug-in.
       
   411 //!				3. At the same time, the default sort plug-must not be available.
       
   412 //!				4. Validate that the view is sorted by checking the order of the contact-ids in the view
       
   413 //!				i.e. the indices of the contact ids in the view must be sorted using CContactViewBase::CompareFieldsL()
       
   414 //!				which uses TDesC::CompareC().
       
   415 //! @SYMTestExpectedResults 	It is possible to construct a contacts local view or remote view or named local view, 
       
   416 //!				when the default sort plug-in is unavailable.
       
   417 //! @SYMTestType 		CIT
       
   418 
       
   419 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini localviewswithdefaultsortplugin
       
   420 
       
   421 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0032-HP
       
   422 
       
   423 
       
   424 
       
   425 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0033-HP
       
   426 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0033-HP
       
   427 //! @SYMTestCaseDesc 		Empty descriptor as sort plug-in 
       
   428 //! @SYMPREQ			1187
       
   429 //! @SYMTestStatus 		Implemented
       
   430 //! @SYMTestPriority 		High
       
   431 //! @SYMTestActions 		1. Construct a Contact local or remote or named remote view.
       
   432 //!				2. During view construction, specify a Null Descriptor as sort plug-in name.
       
   433 //!				3. Validate that the view is sorted by checking the order of the contact-ids in the view i.e.
       
   434 //!				the indices of the contact ids in the view must meet the built-in sort criteria which is based on 
       
   435 //!				TDesC::CompareC() behaviour.
       
   436 //! @SYMTestExpectedResults 	It is possible to construct a contact local or remote or named remote view by specifying an empty descriptor as the sort plug-in name.
       
   437 //! @SYMTestType 		CIT
       
   438 
       
   439 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini localviewswithemptysortplugin
       
   440 
       
   441 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0033-HP
       
   442 
       
   443 
       
   444 
       
   445 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0034-HP
       
   446 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0034-HP
       
   447 //! @SYMTestCaseDesc 		Default sort plug-in not available
       
   448 //! @SYMPREQ			1187
       
   449 //! @SYMTestStatus 		Implemented
       
   450 //! @SYMTestPriority 		High
       
   451 //! @SYMTestActions 		1. Construct a Contacts local view or remote view or named remote view.
       
   452 //!				2. During view construction, don’t specify any sort plug-in.
       
   453 //!				3. At the same time, the default sort plug-must not be available.
       
   454 //!				4. Validate that the view is sorted by checking the order of the contact-ids in the view
       
   455 //!				i.e. the indices of the contact ids in the view must be sorted using CContactViewBase::CompareFieldsL()
       
   456 //!				which uses TDesC::CompareC().
       
   457 //! @SYMTestExpectedResults 	It is possible to construct a contacts local view or remote view or named local view, 
       
   458 //!				when the default sort plug-in is unavailable.
       
   459 //! @SYMTestType 		CIT
       
   460 
       
   461 RUN_TEST_STEP !Error=-1 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini localviewswithinvalidplugin
       
   462 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0034-HP
       
   463 
       
   464 
       
   465 
       
   466 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0036-HP
       
   467 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0036-HP
       
   468 //! @SYMTestCaseDesc 		Contact views operation under low disk conditions
       
   469 //! @SYMPREQ			1187
       
   470 //! @SYMTestStatus 		Implemented
       
   471 //! @SYMTestPriority 		High
       
   472 //! @SYMTestActions 		1. Construct multiple contact views.
       
   473 //!				2. Set the file system to throw KErrDiskFull using RFs::SetErrorCondition API.
       
   474 //!				3. Access the contact views as per 3.1.2.
       
   475 //!				4. Validate the contact view access results i.e. it is perfectly valid if the contact 
       
   476 //!				view access which further requires disk access fails with KErrDiskFull, But there should not 
       
   477 //!				be any invalid error codes or panics as a result of contact view access under low disk conditions.
       
   478 //! @SYMTestExpectedResults 	Contact View access that involves disk access should fail none other than KErrDiskFull error
       
   479 //! @SYMTestType 		CIT
       
   480 
       
   481 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini lowdiskcondition
       
   482 
       
   483 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0036-HP
       
   484 
       
   485 
       
   486 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0037-HP
       
   487 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0037-HP
       
   488 //! @SYMTestCaseDesc 		Test contact view operations with media not in place.
       
   489 //! @SYMPREQ			1187
       
   490 //! @SYMTestStatus 		Implemented
       
   491 //! @SYMTestPriority 		High
       
   492 //! @SYMTestActions 		1.Construct multiple contact views.
       
   493 //!				2.Set the file system to throw KErrNotReady using RFs::SetErrorCondition API.
       
   494 //!				3.Access the contact views as per 4.1.1.1.
       
   495 //!				4.Validate the contact view access results i.e. it is perfectly valid if the contact view access which requires disk access fails with KErrNotReady, but there should not be any invalid error codes or panics as a result of contact view access when the media is not present.
       
   496 //! @SYMTestExpectedResults 	Contact View access that involves disk access should fail with none other than KErrNotReady error, when the media doesn’t exist.
       
   497 //! @SYMTestType 		CIT
       
   498 
       
   499 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep c:\cntviewtest\configs\TestContactViewSuite.ini disknotreadycondition
       
   500 
       
   501 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0037-HP
       
   502 
       
   503 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0038-HP
       
   504 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0038-HP
       
   505 //! @SYMTestCaseDesc 		Multiple views over a local view
       
   506 //! @SYMPREQ			1187
       
   507 //! @SYMTestStatus 		Implemented
       
   508 //! @SYMTestPriority 		High
       
   509 //! @SYMTestActions 		1.Construct at least 5 dependent contact views over an existing local view.
       
   510 //!				2.These dependent views can be any of the following - group view, sub view, concatenated view, filtered view, find view
       
   511 //!				3.Validate the contact view count
       
   512 //! @SYMTestExpectedResults 	It is possible to have multiple views over a local view and access them.
       
   513 //! @SYMTestType 		CIT
       
   514 
       
   515 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_38
       
   516 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini multipleviewonlocalview
       
   517 
       
   518 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0038-HP
       
   519 
       
   520 
       
   521 
       
   522 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0039-HP
       
   523 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0039-HP
       
   524 //! @SYMTestCaseDesc 		Multiple views over an existing remote view.
       
   525 //! @SYMPREQ			1187
       
   526 //! @SYMTestStatus 		Implemented
       
   527 //! @SYMTestPriority 		High
       
   528 //! @SYMTestActions 		1.Construct at least 5 dependent contact views over an existing remote view.
       
   529 //!				2.These dependent views can be any of the following - group view, sub view, concatenated view, filtered view, find view.
       
   530 //!				3.Validate the contact view count
       
   531 //! @SYMTestExpectedResults 	It is possible to have multiple views over a remote view and access them.
       
   532 //! @SYMTestType 		CIT
       
   533 
       
   534 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_39
       
   535 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini multipleviewonremoteview
       
   536 
       
   537 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0039-HP
       
   538 
       
   539 
       
   540 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0040-HP
       
   541 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0040-HP
       
   542 //! @SYMTestCaseDesc 		Allocate concurrent views and access the same
       
   543 //! @SYMPREQ			1187
       
   544 //! @SYMTestStatus 		Implemented
       
   545 //! @SYMTestPriority 		High
       
   546 //! @SYMTestActions 		1.Launch concurrent threads and construct all possible contact views in each individual thread.
       
   547 //!				2.Perform view and database related operations simultaneously in each thread.
       
   548 //!				3.Validate the results
       
   549 //! @SYMTestExpectedResults 	It should be possible to access multiple views in multiple threads concurrently.
       
   550 //! @SYMTestType 		CIT
       
   551 
       
   552 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_39
       
   553 
       
   554 CONCURRENT
       
   555 
       
   556 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini concurrentviewsaccess1
       
   557 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini concurrentviewsaccess2
       
   558 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini concurrentviewsaccess3
       
   559 
       
   560 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0040-HP
       
   561 
       
   562 
       
   563 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0043-HP
       
   564 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0043-HP
       
   565 //! @SYMTestCaseDesc 		Pass valid index in the API and find all the fields of a contact item in the view.
       
   566 //! @SYMPREQ			1187
       
   567 //! @SYMTestStatus 		Implemented
       
   568 //! @SYMTestPriority 		High
       
   569 //! @SYMTestActions 		1.Construct a local view or group view or find view or filtered view or sub View.
       
   570 //!				2.After the view is constructed, find all the fields of the contact item in the view by passing the valid index in the API AllFieldsLC().
       
   571 //!				3.Verify if they are returned correctly by comparing it with the expected result that is passed from the ini file.
       
   572 //! @SYMTestExpectedResults 	All the fields of the contact item in the view are returned correctly
       
   573 //! @SYMTestType 		CIT
       
   574 
       
   575 CONSECUTIVE
       
   576 
       
   577 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_43
       
   578 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini findallfieldsincontact
       
   579 
       
   580 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0043-HP
       
   581 
       
   582 
       
   583 
       
   584 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0044-HP
       
   585 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0044-HP
       
   586 //! @SYMTestCaseDesc 		Pass invalid index and find all the fields in the view. 
       
   587 //! @SYMPREQ			1187
       
   588 //! @SYMTestStatus 		Implemented
       
   589 //! @SYMTestPriority 		High
       
   590 //! @SYMTestActions 		1. Construct a local view or group view or find view or filtered view or Sub view.
       
   591 //!				2. After the view is constructed, Call the API AllFieldsLC() by passing the invalid index. 
       
   592 //! @SYMTestExpectedResults 	The API leaves with error code KErrNotFound.
       
   593 //! @SYMTestType 		CIT
       
   594 
       
   595 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_43
       
   596 RUN_TEST_STEP !Error=-1 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews11
       
   597 
       
   598 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0044-HP
       
   599 
       
   600 //this test case should only run for urel mode
       
   601 
       
   602 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0045-HP
       
   603 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0045-HP
       
   604 //! @SYMTestCaseDesc 		Create a sub view and find all the fields of the contact item in the view.
       
   605 //! @SYMPREQ			1187
       
   606 //! @SYMTestStatus 		Implemented
       
   607 //! @SYMTestPriority 		High
       
   608 //! @SYMTestActions 		1.Construct a sub View. During construction, don’t specify the upper and lower boundaries.
       
   609 //!				2.After the view is constructed, find all the fields of the contact item by passing the valid index in the API AllFieldsLC(). 
       
   610 //! @SYMTestExpectedResults 	Fields are not returned instead a NULL descriptor is returned for urel builds and panic occurs for udeb builds.
       
   611 //! @SYMTestType 		CIT
       
   612 
       
   613 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_25
       
   614 RUN_TEST_STEP !Result=Fail 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini findallfieldsinsubview
       
   615 
       
   616 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0045-HP
       
   617 
       
   618 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0046-HP
       
   619 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0046-HP
       
   620 //! @SYMTestCaseDesc 		Create any view and retrieve the contact item id present in the particular index of the view.
       
   621 //! @SYMPREQ			1187
       
   622 //! @SYMTestStatus 		Implemented
       
   623 //! @SYMTestPriority 		High
       
   624 //! @SYMTestActions 		1.Construct a sub View or find view or group view or filtered view or concatenated view. 
       
   625 //!				2.After the view is constructed, get the contact item Id in the view by passing the valid index in the API AtL().
       
   626 //!				3.Verify if the contact item id is retrieved correctly by comparing it with the expected result that is passed from the ini file.
       
   627 //! @SYMTestExpectedResults 	Contact item id in the view is retrieved correctly.
       
   628 //! @SYMTestType 		CIT
       
   629 
       
   630 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini getvalidcontactid
       
   631 
       
   632 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0046-HP
       
   633 
       
   634 
       
   635 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0047-HP
       
   636 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0047-HP
       
   637 //! @SYMTestCaseDesc 		Create any view and retrieve the contact item id present in the particular index of the view.
       
   638 //! @SYMPREQ			1187
       
   639 //! @SYMTestStatus 		Implemented
       
   640 //! @SYMTestPriority 		High
       
   641 //! @SYMTestActions 		1.Construct a sub View or find view or group view or filtered view or concatenated view. 
       
   642 //!				2.After the view is constructed, Call the API AtL() by passing the invalid index.
       
   643 //! @SYMTestExpectedResults 	The AtL () API leaves with error code KErrNotFound if the index is out of bounds or invalid.
       
   644 //! @SYMTestType 		CIT
       
   645 
       
   646 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_8
       
   647 RUN_TEST_STEP !Error=-1 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini getinvalidcontactid
       
   648 
       
   649 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0047-HP
       
   650 
       
   651 
       
   652 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0048-HP
       
   653 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0048-HP
       
   654 //! @SYMTestCaseDesc 		Create any view and retrieve the contact item present in the particular index of the view.
       
   655 //! @SYMPREQ			1187
       
   656 //! @SYMTestStatus 		Implemented
       
   657 //! @SYMTestPriority 		High
       
   658 //! @SYMTestActions 		1.Construct a sub View or find view or group view or filtered view or concatenated view. 
       
   659 //!				2.After the view is constructed, Get the contact item in the view by passing the valid index in the API ContactAtL().
       
   660 //!				3.Verify whether the contact item is retrieved correctly by comparing it with the expected result that is passed from the ini file.
       
   661 //! @SYMTestExpectedResults 	The contact item is retrieved correctly.
       
   662 //! @SYMTestType 		CIT
       
   663 
       
   664 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini getvalidcontactitem
       
   665 
       
   666 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0048-HP
       
   667 
       
   668 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0049-HP
       
   669 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0049-HP
       
   670 //! @SYMTestCaseDesc 		Create any view and retrieve the contact item present in the particular index of the view.
       
   671 //! @SYMPREQ			1187
       
   672 //! @SYMTestStatus 		Implemented
       
   673 //! @SYMTestPriority 		High
       
   674 //! @SYMTestActions 		1.Construct a sub View or find view or group view or filtered view or concatenated view. 
       
   675 //!				2.After the view is constructed, Call the API ContactAtL () by passing the valid index.
       
   676 //! @SYMTestExpectedResults 	The API leaves with error code KErrNotFound if the index is out of bounds or invalid.
       
   677 //! @SYMTestType 		CIT
       
   678 
       
   679 RUN_TEST_STEP !Error=-1 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini getcontactatinvalidindex
       
   680 
       
   681 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0049-HP
       
   682 
       
   683 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0050-HP
       
   684 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0050-HP
       
   685 //! @SYMTestCaseDesc 		Get the number of contact items id present in the view.
       
   686 //! @SYMPREQ			1187
       
   687 //! @SYMTestStatus 		Implemented
       
   688 //! @SYMTestPriority 		High
       
   689 //! @SYMTestActions 		1.Construct a sub View or find view or group view or filtered view or concatenated view. 
       
   690 //!				2.After the view is constructed, get the number of contact item ids present in the view.
       
   691 //!				3.Verify whether the numbers of contacts returned are correct by comparing it with the expected result that is passed from the ini file.
       
   692 //! @SYMTestExpectedResults 	The numbers of contact item ids are returned correctly from the view.
       
   693 //! @SYMTestType 		CIT
       
   694 
       
   695 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_8
       
   696 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini getnumberofcontactid
       
   697 
       
   698 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0050-HP
       
   699 
       
   700 
       
   701 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0051-HP-0001
       
   702 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0051-HP-0001
       
   703 //! @SYMTestCaseDesc 		Pass the valid contact item Id and find the index of the contact item id in the view
       
   704 //! @SYMPREQ			1187
       
   705 //! @SYMTestStatus 		Implemented
       
   706 //! @SYMTestPriority 		High
       
   707 //! @SYMTestActions 		1.Construct a sub View or find view or group view or filtered view or concatenated view. 
       
   708 //!				2.After the view is constructed, Find the index of the contact item in the view by passing the valid contact item id in the API FindL(). 
       
   709 //!				3.Verify if the index is retrieved correctly by comparing it with the expected result that is passed from the ini file.
       
   710 //! @SYMTestExpectedResults 	The index of the contact item Id is retrieved correctly.
       
   711 //! @SYMTestType 		CIT
       
   712 
       
   713 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini gettheindexofcontactid
       
   714 
       
   715 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0051-HP-0001
       
   716 
       
   717 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0052-HP
       
   718 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0052-HP
       
   719 //! @SYMTestCaseDesc 		Pass the invalid contact item Id and find the index of the contact item id in the view
       
   720 //! @SYMPREQ			1187
       
   721 //! @SYMTestStatus 		Implemented
       
   722 //! @SYMTestPriority 		High
       
   723 //! @SYMTestActions 		1.Construct a sub View or find view or group view or filtered view or concatenated view. 
       
   724 //!				2.After the view is constructed, Call the API FindL() by passing the invalid contact item id. 
       
   725 //! @SYMTestExpectedResults 	The API will leave with error code KErrNotFound if an invalid contact item id is passed.
       
   726 //! @SYMTestType 		CIT
       
   727 
       
   728 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini gettheindexofinvalidcontactid
       
   729 
       
   730 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0052-HP
       
   731 
       
   732 
       
   733 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0053-HP
       
   734 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0053-HP
       
   735 //! @SYMTestCaseDesc 		Refine the find view criteria by appending some characters along with the search character used during construction.
       
   736 //! @SYMPREQ			1187
       
   737 //! @SYMTestStatus 		Implemented
       
   738 //! @SYMTestPriority 		High
       
   739 //! @SYMTestActions 		1. Construct a find view by passing a search string.
       
   740 //!				2. After the view is constructed, refine the find view by appending some more characters 
       
   741 //!				along with the search string that was used during construction.
       
   742 //!				3. Verify whether the find view is refined by retrieving the contact item and comparing it with
       
   743 //!				the expected result that is passed from the ini file.
       
   744 //! @SYMTestExpectedResults 	We should be able to refine the find view.
       
   745 //! @SYMTestType 		CIT
       
   746 
       
   747 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_53
       
   748 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini refinefindview_53
       
   749 
       
   750 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0053-HP
       
   751 
       
   752 
       
   753 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0054-HP
       
   754 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0054-HP
       
   755 //! @SYMTestCaseDesc 		Refine the find view criteria with entirely new characters in the search criteria
       
   756 //! @SYMPREQ			1187
       
   757 //! @SYMTestStatus 		Implemented
       
   758 //! @SYMTestPriority 		High
       
   759 //! @SYMTestActions 		1. Construct a find view by specifying the search string.
       
   760 //!				2. After the view is constructed, refine the find view by entirely replacing the search 
       
   761 //!				string with the new string.
       
   762 //!				3. Verify whether the find view is refined by retrieving the contact item and comparing it
       
   763 //!				with the expected result that is passed from the ini file.
       
   764 //! @SYMTestExpectedResults 	We should be able to refine the find view.
       
   765 //! @SYMTestType 		CIT
       
   766 
       
   767 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_54
       
   768 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini refinefindview_54
       
   769 
       
   770 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0054-HP
       
   771 
       
   772 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0055-HP-0001
       
   773 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0055-HP-0001
       
   774 //! @SYMTestCaseDesc 		Get the underlying views sort order
       
   775 //! @SYMPREQ			1187
       
   776 //! @SYMTestStatus 		Implemented
       
   777 //! @SYMTestPriority 		High
       
   778 //! @SYMTestActions 		1.Construct a find view or local view or group view or filtered view or concatenated view or sub view.
       
   779 //!				2.After the view is constructed, get the underlying view’s sort order.
       
   780 //!				3.Verify whether the sort order is retrieved correctly by comparing it with the expected result that is passed from the ini file.
       
   781 //! @SYMTestExpectedResults 	The sort order of the view is retrieved correctly.
       
   782 //! @SYMTestType 		CIT
       
   783 
       
   784 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_2
       
   785 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini getsortorder
       
   786 
       
   787 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0055-HP-0001
       
   788 
       
   789 
       
   790 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0056-HP-0001
       
   791 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0056-HP-0001
       
   792 //! @SYMTestCaseDesc 		Get the contact view preferences
       
   793 //! @SYMPREQ			1187
       
   794 //! @SYMTestStatus 		Implemented
       
   795 //! @SYMTestPriority 		High
       
   796 //! @SYMTestActions 		1.Construct a find view or local view or group view or filtered view or concatenated view or sub view.
       
   797 //!				2.After the view is constructed, get the contact view preferences.
       
   798 //!				3.Verify whether the contact view preference is retrieved correctly by comparing it with the expected result that is passed from the ini file.
       
   799 //! @SYMTestExpectedResults 	The contact view’s preference is retrieved correctly.
       
   800 //! @SYMTestType 		CIT
       
   801 
       
   802 
       
   803 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_2
       
   804 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini getviewpreference
       
   805 
       
   806 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0056-HP-0001
       
   807 
       
   808 
       
   809 
       
   810 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0057-HP
       
   811 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0057-HP
       
   812 //! @SYMTestCaseDesc 		Construct a filter view and get the contacts matching the criteria.
       
   813 //! @SYMPREQ			1187
       
   814 //! @SYMTestStatus 		Implemented
       
   815 //! @SYMTestPriority 		High
       
   816 //! @SYMTestActions 		1. Construct a filter view.
       
   817 //!				2. After the view is constructed, retrieve the contacts matching the specified search string.
       
   818 //!				3. Verify whether the contacts are retrieved correctly by comparing it with the expected 
       
   819 //!				result that is passed from the ini file.
       
   820 //! @SYMTestExpectedResults 	The contacts matching the specified search string are retrieved correctly.
       
   821 //! @SYMTestType 		CIT
       
   822 
       
   823 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_57
       
   824 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews57
       
   825 
       
   826 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0057-HP
       
   827 
       
   828 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0058-HP
       
   829 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0058-HP
       
   830 //! @SYMTestCaseDesc 		Construct a filter view and get the contacts matching the prefix
       
   831 //! @SYMPREQ			1187
       
   832 //! @SYMTestStatus 		Implemented
       
   833 //! @SYMTestPriority 		High
       
   834 //! @SYMTestActions 		1. Construct a filter view.
       
   835 //!				2. After the view is constructed, retrieve the contacts where the prefix is matching with 
       
   836 //!				the specified search string.
       
   837 //!				3. Verify whether the contacts are retrieved correctly by comparing it with the expected result 
       
   838 //!				that is passed from the ini file.
       
   839 //! @SYMTestExpectedResults 	The contacts matching the prefix are retrieved correctly
       
   840 //! @SYMTestType 		CIT
       
   841 
       
   842 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_57
       
   843 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews58
       
   844 
       
   845 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0058-HP
       
   846 
       
   847 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0059-HP
       
   848 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0059-HP
       
   849 //! @SYMTestCaseDesc 		Construct a filter view and get the contacts matching the prefix
       
   850 //! @SYMPREQ			1187
       
   851 //! @SYMTestStatus 		Implemented
       
   852 //! @SYMTestPriority 		High
       
   853 //! @SYMTestActions 		1.Construct a filter view.
       
   854 //!				2.After the view is constructed, Call the API ContactsMatchingPrefixL() where the search string does not match the prefix of the contact. 
       
   855 //!				3.Verify whether the contacts are retrieved correctly by comparing it with the expected result that is passed from the ini file.
       
   856 //! @SYMTestExpectedResults 	The contacts are not retrieved where the search string is not matching with the prefix.
       
   857 //! @SYMTestType 		CIT
       
   858 
       
   859 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_57
       
   860 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews59
       
   861 
       
   862 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0059-HP
       
   863 
       
   864 
       
   865 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0060-HP
       
   866 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0060-HP
       
   867 //! @SYMTestCaseDesc 		Test the View API’s before the view is ready
       
   868 //! @SYMPREQ			1187
       
   869 //! @SYMTestStatus 		Implemented
       
   870 //! @SYMTestPriority 		High
       
   871 //! @SYMTestActions 		1. Construct a local view or group view or find view or filtered view or sub view or concatenated view.
       
   872 //!				2. Before the view is constructed i.e before the view gets ready, call the API’s FindL, AtL, 
       
   873 //!				ContactAtL and AllFieldsLC.
       
   874 //!				3. Verify if these API’s leave with proper error code.
       
   875 //! @SYMTestExpectedResults 	All the API’s leave with error code KErrNotReady
       
   876 //! @SYMTestType 		CIT
       
   877 
       
   878 RUN_TEST_STEP !Error=-18 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviews60
       
   879 
       
   880 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0060-HP
       
   881 
       
   882 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0061-HP
       
   883 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0061-HP
       
   884 //! @SYMTestCaseDesc 		Construct any view where there are no contacts for the preferences specified in the API construction.
       
   885 //! @SYMPREQ			1187
       
   886 //! @SYMTestStatus 		Implemented
       
   887 //! @SYMTestPriority 		High
       
   888 //! @SYMTestActions 		1.Construct a local view or group view or find view or filtered view or sub view or concatenated view.
       
   889 //!				2.After the view is constructed, get the number of contact items by calling the API countL().
       
   890 //! @SYMTestExpectedResults 	The countL() API returns zero as there are no contacts matching the preferences.
       
   891 //! @SYMTestType 		CIT
       
   892 
       
   893 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini createviewwithinvalidpref
       
   894 
       
   895 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0061-HP
       
   896 
       
   897 
       
   898 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0062-HP
       
   899 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0062-HP
       
   900 //! @SYMTestCaseDesc 		Test view sort during Start-Up
       
   901 //! @SYMPREQ			1187
       
   902 //! @SYMTestStatus 		Implemented
       
   903 //! @SYMTestPriority 		High
       
   904 //! @SYMTestActions 		1.Add more than thousand contacts in the database i.e. contacts in the database must be in the order of 10000,3000 …. 5000.
       
   905 //!				2.Construct a local or remote or named remote view.
       
   906 //!				3.Specify the view preferences and the view sort order such that all the contacts in the database meet the criteria.
       
   907 //!				4.Check that the contact view elements are in expected sort order by validating that contacts view item indices are in the expected order, specified in the ini file.
       
   908 //! @SYMTestExpectedResults 	The contact view elements are sorted as per expected order
       
   909 //! @SYMTestType 		CIT
       
   910 
       
   911 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_62
       
   912 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini mergesortorder
       
   913 
       
   914 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0062-HP
       
   915 
       
   916 START_TESTCASE	PIM-APPENG-CONTACTS-VIEWS-I-0063-HP
       
   917 //! @SYMTestCaseID		PIM-APPENG-CONTACTS-VIEWS-I-0063-HP
       
   918 //! @SYMTestCaseDesc 		Test view sort during resort
       
   919 //! @SYMPREQ			1187
       
   920 //! @SYMTestStatus 		Implemented
       
   921 //! @SYMTestPriority 		High
       
   922 //! @SYMTestActions 		1.Add more than thousand contacts in the database i.e. contacts in the database must be in the order of 10000,3000 …. 5000.
       
   923 //!				2.Construct a named remote view.
       
   924 //!				3.Specify the view preferences and the view sort order such that all the contacts in the database meet the criteria.
       
   925 //!				4.Check that the contact view elements are in expected sort order by validating that contacts view item indices are in the expected order, specified in the ini file.
       
   926 //!				5.Now change the sort order using ChangeSortOrderL() Api
       
   927 //!				6.Check that the updated contact view elements are in expected sort order by validating that contacts view item indices are in the expected order, specified in the ini file.
       
   928 //! @SYMTestExpectedResults 	The contact view elements are sorted as per expected order
       
   929 //! @SYMTestType 		CIT
       
   930 
       
   931 RUN_TEST_STEP 300 CntPerfTestServer PrepareDataTestStep c:\cntviewtest\configs\TestContactViewSuite.ini preparedata_63
       
   932 RUN_TEST_STEP 300 CntPerfTestServer TestContactViewAccessStep C:\Cntviewtest\configs\TestContactViewSuite.ini sortorderduringresort
       
   933 
       
   934 END_TESTCASE PIM-APPENG-CONTACTS-VIEWS-I-0063-HP
       
   935 
       
   936 PRINT Completed TestCalInterimApi_Tests
       
   937