|
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-P81118 |
|
20 //! @file |
|
21 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81118 |
|
22 //! @SYMTestType CIT |
|
23 //! @SYMTestPriority Medium |
|
24 //! @SYMPREQ 811 |
|
25 //! @SYMTestCaseDesc ViewDef tests where contact item is opened/read using ViewDef containing all possible combinations of 2 existing uids |
|
26 //! @SYMTestActions Open and read a contact using the default ViewDefs. |
|
27 //! then read and minimally read a contact using ViewDef X containing 2 unique existing uid. |
|
28 //! store the number of hidden/non-hidden and empty/non-empty fields after each read/open, |
|
29 //! repeat until all existing uids combinations are tested |
|
30 //! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef. |
|
31 RUN_TEST_STEP 100 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini AllLabelUid |
|
32 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81118 |
|
33 |
|
34 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81119 |
|
35 //! @file |
|
36 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81119 |
|
37 //! @SYMTestType CIT |
|
38 //! @SYMTestPriority Medium |
|
39 //! @SYMPREQ 811 |
|
40 //! @SYMTestCaseDesc ViewDef tests where contact item is opened/read using ViewDef containing all possible combinations of 2 identical uids |
|
41 //! @SYMTestActions Open and read a contact using the default ViewDefs. |
|
42 //! then read and minimally read a contact using ViewDef X containing 2 identical existing uid. |
|
43 //! store the number of hidden/non-hidden and empty/non-empty fields after each read/open. |
|
44 //! repeat until all existing uids are tested |
|
45 //! @SYMTestExpectedResults Check that adding two identical uids to a ViewDef causes a panic in debug mode |
|
46 RUN_TEST_STEP 100 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini AllNewFields |
|
47 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81119 |
|
48 |
|
49 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81120 |
|
50 //! @file |
|
51 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81120 |
|
52 //! @SYMTestType CIT |
|
53 //! @SYMTestPriority Medium |
|
54 //! @SYMPREQ 811 |
|
55 //! @SYMTestCaseDesc ViewDef All Uids with custom fields Test |
|
56 //! @SYMTestActions Testing KUidContactFieldMatchAll in ViewDef with custom labels/uids |
|
57 //! opens contact item |
|
58 //! and adds a custom uid to each field |
|
59 //! changes label to custom label |
|
60 //! read a contact using the default ViewDefs. |
|
61 //! then minimally read a contact using ViewDef X containing KUidContactFieldMatchAll |
|
62 //! store the number of hidden/non-hidden and empty/non-empty fields after each read/open. |
|
63 //! repeat test 4 times so that X excludes/includes all possible combination of fields |
|
64 //! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef. |
|
65 RUN_TEST_STEP 100 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini AllOnlyNew |
|
66 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81120 |
|
67 |
|
68 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81121 |
|
69 //! @file |
|
70 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81121 |
|
71 //! @SYMTestType CIT |
|
72 //! @SYMTestPriority Medium |
|
73 //! @SYMPREQ 811 |
|
74 //! @SYMTestCaseDesc ViewDef All Uids with new fields Test |
|
75 //! @SYMTestActions Testing KUidContactFieldMatchAll in ViewDef with new fields |
|
76 //! opens contact item |
|
77 //! add Y new fields with custom Labels and Uids |
|
78 //! |
|
79 //! read a contact using the default ViewDefs. |
|
80 //! then minimally read a contact using ViewDef X containing KUidContactFieldMatchAll |
|
81 //! store the number of hidden/non-hidden and empty/non-empty fields after each read/open. |
|
82 //! repeat test 4 times so that X excludes/includes all possible combination of fields |
|
83 //! repeat test where contacts only contain new fields and all existing fields are deleted. |
|
84 //! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef. |
|
85 RUN_TEST_STEP 4000 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini ExistingLabelUid |
|
86 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81121 |
|
87 |
|
88 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81122 |
|
89 //! @file |
|
90 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81122 |
|
91 //! @SYMTestType CIT |
|
92 //! @SYMTestPriority Medium |
|
93 //! @SYMPREQ 811 |
|
94 //! @SYMTestCaseDesc |
|
95 //! @SYMTestActions Testing Multiple Exisiting & Custom Uids in ViewDef with custom labels/uids |
|
96 //! open contact item |
|
97 //! adds a custom uid to each field |
|
98 //! changes label to custom label |
|
99 //! |
|
100 //! read a contact using the default ViewDefs. |
|
101 //! then minimally read a contact using ViewDef X containing 2 unique existing uids |
|
102 //! store the number of hidden/non-hidden and empty/non-empty fields after each read/open. |
|
103 //! repeat until all existing uids combinations are tested |
|
104 //! Repeat test for custom uids |
|
105 //! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef. |
|
106 RUN_TEST_STEP 2000 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini ExistingNewFields |
|
107 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81122 |
|
108 |
|
109 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81123 |
|
110 //! @file |
|
111 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81123 |
|
112 //! @SYMTestType CIT |
|
113 //! @SYMTestPriority Medium |
|
114 //! @SYMPREQ 811 |
|
115 //! @SYMTestCaseDesc ViewDef Multiple Exisiting & Custom Uids with new fields Test |
|
116 //! @SYMTestActions Testing Multiple Exisiting & Custom Uids in ViewDef with new fields |
|
117 //! open contact item |
|
118 //! add Y new fields with custom Labels and Uids |
|
119 //! |
|
120 //! read a contact using the default ViewDefs. |
|
121 //! then minimally read a contact using ViewDef X containing 2 unique existing uids |
|
122 //! store the number of hidden/non-hidden and empty/non-empty fields after each read/open. |
|
123 //! repeat until all existing uids combinations are tested |
|
124 //! repeat test where contacts only contain new fields and all existing fields are deleted. |
|
125 //! Repeat test for custom uids |
|
126 //! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef. |
|
127 RUN_TEST_STEP 2000 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini ExistingOnlyNew |
|
128 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81123 |
|
129 |