|
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-P81124 |
|
20 //! @file |
|
21 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81124 |
|
22 //! @SYMTestType CIT |
|
23 //! @SYMTestPriority High |
|
24 //! @SYMPREQ 811 |
|
25 //! @SYMTestCaseDesc Empty template Test |
|
26 //! @SYMTestActions create template with no fields (empty fieldset) |
|
27 //! create contact based on template |
|
28 //! count the number of fields in the contact |
|
29 //! @SYMTestExpectedResults Check that the number of field is 0 |
|
30 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini Empty |
|
31 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81124 |
|
32 |
|
33 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81125 |
|
34 //! @file |
|
35 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81125 |
|
36 //! @SYMTestType CIT |
|
37 //! @SYMTestPriority High |
|
38 //! @SYMPREQ 811 |
|
39 //! @SYMTestCaseDesc Full template Test |
|
40 //! @SYMTestActions create template with all fields |
|
41 //! create contact based on template |
|
42 //! count the number of fields in the contact |
|
43 //! @SYMTestExpectedResults Check that the number of field is equal to number of fields in template |
|
44 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini Full |
|
45 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81125 |
|
46 |
|
47 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81126 |
|
48 //! @file |
|
49 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81126 |
|
50 //! @SYMTestType CIT |
|
51 //! @SYMTestPriority High |
|
52 //! @SYMPREQ 811 |
|
53 //! @SYMTestCaseDesc Modified template Test |
|
54 //! @SYMTestActions create template then set all its fields to preset values |
|
55 //! create contact based on template |
|
56 //! repeate test where contact is loaded minimally |
|
57 //! @SYMTestExpectedResults check that all field values, labels, uids match between template and contact |
|
58 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini Modified |
|
59 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini MinimalModified |
|
60 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81126 |
|
61 |
|
62 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81127 |
|
63 //! @file |
|
64 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81127 |
|
65 //! @SYMTestType CIT |
|
66 //! @SYMTestPriority High |
|
67 //! @SYMPREQ 811 |
|
68 //! @SYMTestCaseDesc Template plus custom new fields Test |
|
69 //! @SYMTestActions create template |
|
70 //! add 10 new custom fields to template |
|
71 //! set all fields to preset values |
|
72 //! create contact based on template |
|
73 //! repeat test where all existing fields are deleted before adding the custom fields |
|
74 //! @SYMTestExpectedResults check that all field values, labels, uids match between template and contact |
|
75 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini CustomNew |
|
76 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini OnlyNew |
|
77 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81127 |
|
78 |
|
79 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81128 |
|
80 //! @file |
|
81 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81128 |
|
82 //! @SYMTestType CIT |
|
83 //! @SYMTestPriority High |
|
84 //! @SYMPREQ 811 |
|
85 //! @SYMTestCaseDesc System and custom template dynamic loading Test |
|
86 //! @SYMTestActions create template |
|
87 //! create contact based on template |
|
88 //! delete 1 field from template |
|
89 //! reload contact |
|
90 //! compare contact to template |
|
91 //! repeat for all fields |
|
92 //! repeat test for contact based on system template |
|
93 //! @SYMTestExpectedResults check that all field values, labels, uids match between template and contact |
|
94 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini Dynamic |
|
95 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81128 |
|
96 |
|
97 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81129 |
|
98 //! @file |
|
99 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81129 |
|
100 //! @SYMTestType CIT |
|
101 //! @SYMTestPriority High |
|
102 //! @SYMPREQ 811 |
|
103 //! @SYMTestCaseDesc System and custom template with custom labels and uids Test |
|
104 //! @SYMTestActions set custom labels and uids for all fields in template. |
|
105 //! create contact based on template. |
|
106 //! check contact matches template. |
|
107 //! repeat for contact based on system template |
|
108 //! @SYMTestExpectedResults check that all field values, labels, uids match between template and contact |
|
109 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini CustomLabelUid |
|
110 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81129 |
|
111 |
|
112 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81130 |
|
113 //! @file |
|
114 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81130 |
|
115 //! @SYMTestType CIT |
|
116 //! @SYMTestPriority High |
|
117 //! @SYMPREQ 811 |
|
118 //! @SYMTestCaseDesc Deletion of system template Test |
|
119 //! @SYMTestActions attempt to delete system template |
|
120 //! check system template |
|
121 //! check contacts based on system template |
|
122 //! @SYMTestExpectedResults delete fails and any contacts based on system template are not affected. |
|
123 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini DeleteCustom |
|
124 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81130 |
|
125 |
|
126 START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81131 |
|
127 //! @file |
|
128 //! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81131 |
|
129 //! @SYMTestType CIT |
|
130 //! @SYMTestPriority High |
|
131 //! @SYMPREQ 811 |
|
132 //! @SYMTestCaseDesc Deletion of custom template Test |
|
133 //! @SYMTestActions create custom template |
|
134 //! create contact based on template |
|
135 //! delete template |
|
136 //! reload template, |
|
137 //! check to see it is marked as deleted. |
|
138 //! attempt to read contact again. |
|
139 //! delete contact |
|
140 //! check whether template is still in the database |
|
141 //! if so delete template |
|
142 //! @SYMTestExpectedResults Custom template should be marked as deleted |
|
143 //! Template, marked as deleted, is not deleted after all contacts based on it are deleted. |
|
144 RUN_TEST_STEP 100 CntPerfTestServer CustomTemplateTest c:\CntPerfTest\configs\cntperftest.ini DeleteSystem |
|
145 END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81131 |