phonebookengines/contactsmodel/tsrc/Integration/CntPerfTest/Scriptssql/ContactViewTest.script
changeset 0 e686773b3f54
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 
       
    17 LOAD_SUITE CntPerfTestServer
       
    18 
       
    19 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81137
       
    20 //! @file
       
    21 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81137
       
    22 //! @SYMTestType CIT
       
    23 //! @SYMTestPriority High
       
    24 //! @SYMPREQ 811
       
    25 //! @SYMTestCaseDesc Empty contacts and empty view Test
       
    26 //! @SYMTestActions Create database 
       
    27 //! Add ten empty contacts
       
    28 //! create local view with empty sortorder.
       
    29 //! Activate active object when view is populated
       
    30 //! Check value of local view
       
    31 //! Repeat test for local view accessing PL directly
       
    32 //! Repeat test for remote view
       
    33 //! @SYMTestExpectedResults check that the view contains 10 contacts, each containing 1 empty field
       
    34 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini EmptyAll
       
    35 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81137
       
    36 
       
    37 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81138
       
    38 //! @file
       
    39 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81138
       
    40 //! @SYMTestType CIT
       
    41 //! @SYMTestPriority High
       
    42 //! @SYMPREQ 811
       
    43 //! @SYMTestCaseDesc Full contacts and empty view Test
       
    44 //! @SYMTestActions Create database 
       
    45 //! Add ten contacts with all fields set to preset values
       
    46 //! Create local view with empty sort order.
       
    47 //! Activate active object when view is populated
       
    48 //! Check value of local view
       
    49 //! Repeat test for local view accessing PL directly
       
    50 //! Repeat test for remote view
       
    51 //! @SYMTestExpectedResults check that the view contains 10 contacts, each containing 1 field that equals to the first field in the missing field list
       
    52 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini FullContacts
       
    53 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81138
       
    54 
       
    55 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81139
       
    56 //! @file
       
    57 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81139
       
    58 //! @SYMTestType CIT
       
    59 //! @SYMTestPriority High
       
    60 //! @SYMPREQ 811
       
    61 //! @SYMTestCaseDesc Empty contacts and Full view Test
       
    62 //! @SYMTestActions Create database 
       
    63 //! Add ten empty contacts
       
    64 //! Create local view with sort order all (existing) uids.
       
    65 //! Activate active object when view is populated
       
    66 //! Check value of local view
       
    67 //! Repeat test for local view accessing PL directly
       
    68 //! Repeat test for remote view
       
    69 //! @SYMTestExpectedResults check that the view contains 10 contacts, each containing as many fields as there are uids in the sort order. All fields should be empty.
       
    70 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini FullView
       
    71 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81139
       
    72 
       
    73 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81140
       
    74 //! @file
       
    75 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81140
       
    76 //! @SYMTestType CIT
       
    77 //! @SYMTestPriority High
       
    78 //! @SYMPREQ 811
       
    79 //! @SYMTestCaseDesc Full contacts and Full view Test
       
    80 //! @SYMTestActions Create database 
       
    81 //! Add ten contacts with all fields set to preset values
       
    82 //! Create local view with sort order all (existing) uids.
       
    83 //! Activate active object when view is populated
       
    84 //! Check value of local view
       
    85 //! Repeat test for local view accessing PL directly
       
    86 //! Repeat test for remote view
       
    87 //! @SYMTestExpectedResults view contains 10 contacts, each containing as many fields as there are uids (114)
       
    88 //! all field that have a corresponding uid should be non-empty and equal the appropriate preset value.
       
    89 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini FullAll
       
    90 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81140
       
    91 
       
    92 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81141
       
    93 //! @file
       
    94 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81141
       
    95 //! @SYMTestType CIT
       
    96 //! @SYMTestPriority High
       
    97 //! @SYMPREQ 811
       
    98 //! @SYMTestCaseDesc Contacts with empty fieldsets and Full view Test
       
    99 //! @SYMTestActions Create database 
       
   100 //! Add ten contacts with a fieldset containing no fields
       
   101 //! Create local view with sort order all (existing) uids.
       
   102 //! Activate active object when view is populated
       
   103 //! Check value of local view
       
   104 //! Repeat test for local view accessing PL directly
       
   105 //! Repeat test for remote view
       
   106 //! @SYMTestExpectedResults view contains 10 contacts
       
   107 //! each containing as many fields as there are uids (114)
       
   108 //! all field should be empty. 
       
   109 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini EmptyFieldset
       
   110 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81141
       
   111 
       
   112 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81142
       
   113 //! @file
       
   114 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81142
       
   115 //! @SYMTestType CIT
       
   116 //! @SYMTestPriority High
       
   117 //! @SYMPREQ 811
       
   118 //! @SYMTestCaseDesc Contacts with empty fieldsets and empty view Test
       
   119 //! @SYMTestActions Create database 
       
   120 //! Add ten contacts with a fieldset containing no fields
       
   121 //! Create local view with empty sort order.
       
   122 //! Activate active object when view is populated
       
   123 //! Check value of local view
       
   124 //! Repeat test for local view accessing PL directly
       
   125 //! Repeat test for remote view
       
   126 //! @SYMTestExpectedResults view contains 10 contacts
       
   127 //! each containing as 1 field
       
   128 //! that field should be empty.
       
   129 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini EmptyFieldsetView
       
   130 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81142
       
   131 
       
   132 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81143
       
   133 //! @file
       
   134 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81143
       
   135 //! @SYMTestType CIT
       
   136 //! @SYMTestPriority High
       
   137 //! @SYMPREQ 811
       
   138 //! @SYMTestCaseDesc Contacts with 1 or more empty fields and empty view Test
       
   139 //! @SYMTestActions Create database 
       
   140 //! Add ten contacts with all fields set to preset values
       
   141 //! Create local view with empty sort order.
       
   142 //! Activate active object when view is populated
       
   143 //! Check value of local view
       
   144 //! Set the value of field, retrieved in local view, to empty within the contact
       
   145 //! Repeat test
       
   146 //! Repeat test for local view accessing PL directly
       
   147 //! Repeat test for remote view
       
   148 //! @SYMTestExpectedResults check that the view contains 10 contacts, each containing 1 field that equals to the next field in the missing field list until the last field is reached. After which all fields should be empty
       
   149 RUN_TEST_STEP 400 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini MissingFields
       
   150 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81143
       
   151 
       
   152 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81149
       
   153 //! @file
       
   154 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-SQL-P81149
       
   155 //! @SYMTestType CIT
       
   156 //! @SYMTestPriority High
       
   157 //! @SYMPREQ 811
       
   158 //! @SYMTestCaseDesc Contact view Performance Test
       
   159 //! @SYMTestActions Add 1000 type X contacts
       
   160 //! Load local view that contains uids for name and phone number
       
   161 //! Measure length of time to complete populating local view
       
   162 //! Store in Y
       
   163 //! Repeat test where X equals: empty contacts, partially filled contacts or heavily filled contacts
       
   164 //! Repeat test for local view accessing PL directly and remote view
       
   165 //! @SYMTestExpectedResults Y should take less than 5 seconds
       
   166 RUN_TEST_STEP 10000 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini Performance
       
   167 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-SQL-P81149
       
   168