|
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-P81137 |
|
20 //! @file |
|
21 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-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 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini PLViewEmptyAll |
|
36 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81137 |
|
37 |
|
38 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81138 |
|
39 //! @file |
|
40 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81138 |
|
41 //! @SYMTestType CIT |
|
42 //! @SYMTestPriority High |
|
43 //! @SYMPREQ 811 |
|
44 //! @SYMTestCaseDesc Full contacts and empty view Test |
|
45 //! @SYMTestActions Create database |
|
46 //! Add ten contacts with all fields set to preset values |
|
47 //! Create local view with empty sort order. |
|
48 //! Activate active object when view is populated |
|
49 //! Check value of local view |
|
50 //! Repeat test for local view accessing PL directly |
|
51 //! Repeat test for remote view |
|
52 //! @SYMTestExpectedResults check that the view contains 10 contacts, each containing 1 field that equals to the first field in the missing field list |
|
53 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini FullContacts |
|
54 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini PLViewFullContacts |
|
55 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81138 |
|
56 |
|
57 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81139 |
|
58 //! @file |
|
59 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81139 |
|
60 //! @SYMTestType CIT |
|
61 //! @SYMTestPriority High |
|
62 //! @SYMPREQ 811 |
|
63 //! @SYMTestCaseDesc Empty contacts and Full view Test |
|
64 //! @SYMTestActions Create database |
|
65 //! Add ten empty contacts |
|
66 //! Create local view with sort order all (existing) uids. |
|
67 //! Activate active object when view is populated |
|
68 //! Check value of local view |
|
69 //! Repeat test for local view accessing PL directly |
|
70 //! Repeat test for remote view |
|
71 //! @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. |
|
72 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini FullView |
|
73 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini PLViewFullView |
|
74 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81139 |
|
75 |
|
76 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81140 |
|
77 //! @file |
|
78 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81140 |
|
79 //! @SYMTestType CIT |
|
80 //! @SYMTestPriority High |
|
81 //! @SYMPREQ 811 |
|
82 //! @SYMTestCaseDesc Full contacts and Full view Test |
|
83 //! @SYMTestActions Create database |
|
84 //! Add ten contacts with all fields set to preset values |
|
85 //! Create local view with sort order all (existing) uids. |
|
86 //! Activate active object when view is populated |
|
87 //! Check value of local view |
|
88 //! Repeat test for local view accessing PL directly |
|
89 //! Repeat test for remote view |
|
90 //! @SYMTestExpectedResults view contains 10 contacts, each containing as many fields as there are uids (114) |
|
91 //! all field that have a corresponding uid should be non-empty and equal the appropriate preset value. |
|
92 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini FullAll |
|
93 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini PLViewFullAll |
|
94 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81140 |
|
95 |
|
96 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81141 |
|
97 //! @file |
|
98 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81141 |
|
99 //! @SYMTestType CIT |
|
100 //! @SYMTestPriority High |
|
101 //! @SYMPREQ 811 |
|
102 //! @SYMTestCaseDesc Contacts with empty fieldsets and Full view Test |
|
103 //! @SYMTestActions Create database |
|
104 //! Add ten contacts with a fieldset containing no fields |
|
105 //! Create local view with sort order all (existing) uids. |
|
106 //! Activate active object when view is populated |
|
107 //! Check value of local view |
|
108 //! Repeat test for local view accessing PL directly |
|
109 //! Repeat test for remote view |
|
110 //! @SYMTestExpectedResults view contains 10 contacts |
|
111 //! each containing as many fields as there are uids (114) |
|
112 //! all field should be empty. |
|
113 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini EmptyFieldset |
|
114 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini PLViewEmptyFieldset |
|
115 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81141 |
|
116 |
|
117 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81142 |
|
118 //! @file |
|
119 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81142 |
|
120 //! @SYMTestType CIT |
|
121 //! @SYMTestPriority High |
|
122 //! @SYMPREQ 811 |
|
123 //! @SYMTestCaseDesc Contacts with empty fieldsets and empty view Test |
|
124 //! @SYMTestActions Create database |
|
125 //! Add ten contacts with a fieldset containing no fields |
|
126 //! Create local view with empty sort order. |
|
127 //! Activate active object when view is populated |
|
128 //! Check value of local view |
|
129 //! Repeat test for local view accessing PL directly |
|
130 //! Repeat test for remote view |
|
131 //! @SYMTestExpectedResults view contains 10 contacts |
|
132 //! each containing as 1 field |
|
133 //! that field should be empty. |
|
134 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini EmptyFieldsetView |
|
135 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini PLViewEmptyFieldsetView |
|
136 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81142 |
|
137 |
|
138 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81143 |
|
139 //! @file |
|
140 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81143 |
|
141 //! @SYMTestType CIT |
|
142 //! @SYMTestPriority High |
|
143 //! @SYMPREQ 811 |
|
144 //! @SYMTestCaseDesc Contacts with 1 or more empty fields and empty view Test |
|
145 //! @SYMTestActions Create database |
|
146 //! Add ten contacts with all fields set to preset values |
|
147 //! Create local view with empty sort order. |
|
148 //! Activate active object when view is populated |
|
149 //! Check value of local view |
|
150 //! Set the value of field, retrieved in local view, to empty within the contact |
|
151 //! Repeat test |
|
152 //! Repeat test for local view accessing PL directly |
|
153 //! Repeat test for remote view |
|
154 //! @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 |
|
155 RUN_TEST_STEP 500 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini MissingFields |
|
156 RUN_TEST_STEP 400 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini PLViewMissingFields |
|
157 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81143 |
|
158 |
|
159 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81161 |
|
160 //! @file |
|
161 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81161 |
|
162 //! @SYMTestType CIT |
|
163 //! @SYMTestPriority High |
|
164 //! @SYMPREQ 811 |
|
165 //! @SYMTestCaseDesc Views Recovery and Compression test |
|
166 //! @SYMTestActions Add 10 contacts |
|
167 //! Set all contact fields |
|
168 //! Create local view |
|
169 //! |
|
170 //! Start compression/recovery |
|
171 //! Wait for view to get populated |
|
172 //! End compression/recovery |
|
173 //! Store Error in X |
|
174 //! |
|
175 //! Recreate Local View |
|
176 //! Wait for view to get populated |
|
177 //! Check view contains correct Fields |
|
178 //! Repeat test for remote views and for local views calling the PL directly. |
|
179 //! @SYMTestExpectedResults X should equal sort error, Errors are correctly propagated to the view |
|
180 //! All checks should pass, View can still be created once database has transitioned into writable state |
|
181 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini CompressRecover |
|
182 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini Recover_CompressRecover |
|
183 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81161 |
|
184 |
|
185 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81162 |
|
186 //! @file |
|
187 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81162 |
|
188 //! @SYMTestType CIT |
|
189 //! @SYMTestPriority High |
|
190 //! @SYMPREQ 811 |
|
191 //! @SYMTestCaseDesc Views Concurrent Recovery and Compression test |
|
192 //! @SYMTestActions Add 10 contacts |
|
193 //! Set all contact fields |
|
194 //! |
|
195 //! Start compression/recovery in separate thread |
|
196 //! Create local view |
|
197 //! End compression/recovery in separate thread |
|
198 //! Check create view error |
|
199 //! |
|
200 //! Recreate Local View |
|
201 //! Wait for view to get populated |
|
202 //! Check view contains correct Fields |
|
203 //! |
|
204 //! Repeat test for remote views and for local views calling the PL directly. |
|
205 //! @SYMTestExpectedResults View creation will fail with error KErrNotReady for remote view when compression/recovery is started in the other thread |
|
206 //! All checks should pass, View can still be created once database has transitioned into writable state |
|
207 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini ConcurrentCNR |
|
208 RUN_TEST_STEP 100 CntPerfTestServer ContactViewTest c:\CntPerfTest\configs\cntperftest.ini Recover_ConcurrentCNR |
|
209 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81162 |