summaryrefslogtreecommitdiffstats
path: root/plugins/contacts/symbian/contactsmodel/tsrc/integration/cntperftest/scripts/viewdefcustomfieldstest.script
blob: 29284d13c35c13867dd0ebae0bd008210901ca55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
//

LOAD_SUITE CntPerfTestServer

START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81118
//! @file
//! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81118
//! @SYMTestType CIT
//! @SYMTestPriority Medium
//! @SYMPREQ 811
//! @SYMTestCaseDesc ViewDef tests where contact item is opened/read using ViewDef containing all possible combinations of 2 existing uids 
//! @SYMTestActions Open and read a contact using the default ViewDefs. 
//! then read and minimally read a contact using ViewDef X containing 2 unique existing uid.
//! store the number of hidden/non-hidden and empty/non-empty fields after each read/open,
//! repeat until all existing uids combinations are tested
//! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef.
RUN_TEST_STEP 100 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini AllLabelUid
END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81118

START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81119
//! @file
//! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81119
//! @SYMTestType CIT
//! @SYMTestPriority Medium
//! @SYMPREQ 811
//! @SYMTestCaseDesc ViewDef tests where contact item is opened/read using ViewDef containing all possible combinations of 2 identical uids 
//! @SYMTestActions Open and read a contact using the default ViewDefs. 
//! then read and minimally read a contact using ViewDef X containing 2 identical existing uid.
//! store the number of hidden/non-hidden and empty/non-empty fields after each read/open.
//! repeat until all existing uids  are tested
//! @SYMTestExpectedResults Check that adding two identical uids to a ViewDef causes a panic in debug mode
RUN_TEST_STEP 100 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini AllNewFields
END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81119

START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81120
//! @file
//! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81120
//! @SYMTestType CIT
//! @SYMTestPriority Medium
//! @SYMPREQ 811
//! @SYMTestCaseDesc ViewDef All Uids with custom fields Test
//! @SYMTestActions Testing KUidContactFieldMatchAll in ViewDef with custom labels/uids
//! opens contact item
//! and adds a custom uid to each field
//! changes label to custom label	
//! read a contact using the default ViewDefs. 
//! then minimally read a contact using ViewDef X containing KUidContactFieldMatchAll  
//! store the number of hidden/non-hidden and empty/non-empty fields after each read/open.
//! repeat test 4 times so that X excludes/includes all possible combination of fields
//! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef.
RUN_TEST_STEP 100 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini AllOnlyNew
END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81120

START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81121
//! @file
//! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81121
//! @SYMTestType CIT
//! @SYMTestPriority Medium
//! @SYMPREQ 811
//! @SYMTestCaseDesc ViewDef All Uids with new fields Test
//! @SYMTestActions Testing KUidContactFieldMatchAll in ViewDef with new fields
//! opens contact item
//! add Y new fields with custom Labels and Uids
//! 
//! read a contact using the default ViewDefs. 
//! then minimally read a contact using ViewDef X containing KUidContactFieldMatchAll  
//! store the number of hidden/non-hidden and empty/non-empty fields after each read/open.
//! repeat test 4 times so that X excludes/includes all possible combination of fields
//! repeat test where contacts only contain new fields and all existing fields are deleted.
//! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef.
RUN_TEST_STEP 4000 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini ExistingLabelUid
END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81121

START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81122
//! @file
//! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81122
//! @SYMTestType CIT
//! @SYMTestPriority Medium
//! @SYMPREQ 811
//! @SYMTestCaseDesc 
//! @SYMTestActions Testing Multiple Exisiting & Custom Uids in ViewDef with custom labels/uids
//! open contact item
//! adds a custom uid to each field
//! changes label to custom label
//! 
//! read a contact using the default ViewDefs. 
//! then minimally read a contact using ViewDef X containing 2 unique existing uids
//! store the number of hidden/non-hidden and empty/non-empty fields after each read/open.
//! repeat until all existing uids combinations are tested
//! Repeat test for custom uids
//! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef.
RUN_TEST_STEP 2000 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini ExistingNewFields
END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81122

START_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81123
//! @file
//! @SYMTestCaseID PIM-APPENG-CNTMODEL-CIT-P81123
//! @SYMTestType CIT
//! @SYMTestPriority Medium
//! @SYMPREQ 811
//! @SYMTestCaseDesc ViewDef Multiple Exisiting & Custom Uids with new fields Test
//! @SYMTestActions Testing Multiple Exisiting & Custom Uids in ViewDef with new fields
//! open contact item
//! add Y new fields with custom Labels and Uids
//! 
//! read a contact using the default ViewDefs. 
//! then minimally read a contact using ViewDef X containing 2 unique existing uids
//! store the number of hidden/non-hidden and empty/non-empty fields after each read/open.
//! repeat until all existing uids combinations are tested
//! repeat test where contacts only contain new fields and all existing fields are deleted.
//! Repeat test for custom uids
//! @SYMTestExpectedResults Check that the values match the expected results as constrained by the fields that are excluded / included within the ViewDef.
RUN_TEST_STEP 2000 CntPerfTestServer ViewDefCustomFieldsTest c:\CntPerfTest\configs\cntperftest.ini ExistingOnlyNew
END_TESTCASE PIM-APPENG-CNTMODEL-CIT-P81123