|
1 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
2 # Pbk2IconCustomApiTestModule.cfg |
|
3 # phonebook_2_contact_related_icon_customization_api test script for STIF |
|
4 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
5 |
|
6 [Define] |
|
7 |
|
8 EReallySmall 0 |
|
9 ESmall 1 |
|
10 EMedium 2 |
|
11 EMediumLarge 3 |
|
12 ELarge 4 |
|
13 |
|
14 NULL 0 |
|
15 |
|
16 EPsKeyIconUpdaterEnabled 1 |
|
17 EPsKeyIconUpdaterIntervalMs 2 |
|
18 EPsKeyNotificationEventType 3 |
|
19 EPsKeyNotificationEmptyUidArray 4 |
|
20 |
|
21 TEventType::EIconsMajorChange 0 |
|
22 TEventType::EIconsUpdated 1 |
|
23 TEventType::EIconsRemoved 2 |
|
24 TEventType::EIconsAdded 3 |
|
25 |
|
26 ETrue 1 |
|
27 EFalse 0 |
|
28 |
|
29 // Async signal completion codes |
|
30 KUpdateSignalReceived 1 |
|
31 |
|
32 [Enddefine] |
|
33 |
|
34 |
|
35 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
36 # ModTest 001: Load icons |
|
37 # |
|
38 # |
|
39 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
40 [Test] |
|
41 title ModTest 001: Load icons |
|
42 create Pbk2IconCustomApiTestModule client |
|
43 client LoadTestPluginL |
|
44 client LoadIconsL EMedium |
|
45 client DeleteIconsL |
|
46 delete client |
|
47 [Endtest] |
|
48 |
|
49 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
50 # ModTest 002: Load icon |
|
51 # |
|
52 # |
|
53 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
54 [Test] |
|
55 title ModTest 002: Load icon |
|
56 create Pbk2IconCustomApiTestModule client |
|
57 client LoadTestPluginL |
|
58 client LoadIconL EMedium 0501234567 |
|
59 client DeleteIconL |
|
60 delete client |
|
61 [Endtest] |
|
62 |
|
63 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
64 # ModTest 003: Verify icon match from array |
|
65 # |
|
66 # |
|
67 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
68 [Test] |
|
69 title ModTest 003: Verify icon match from array |
|
70 create Pbk2IconCustomApiTestModule client |
|
71 client LoadTestPluginL |
|
72 client LoadIconsL EMedium |
|
73 client IconChoiceL 0501234567 |
|
74 client DeleteIconsL |
|
75 delete client |
|
76 [Endtest] |
|
77 |
|
78 |
|
79 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
80 # ModTest 004: Major change notification twice |
|
81 # |
|
82 # Setup plugin to periodically nofity of icon change, use default update params: |
|
83 # - event type = EIconsMajorChange |
|
84 # - icon id array is empty |
|
85 # Register test case as observer |
|
86 # Listen to notifications (twice) |
|
87 # |
|
88 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
89 [Test] |
|
90 title ModTest 004: Major change notification twice |
|
91 create Pbk2IconCustomApiTestModule client |
|
92 client SetPsProperty EPsKeyIconUpdaterEnabled ETrue |
|
93 client SetPsProperty EPsKeyIconUpdaterIntervalMs 500 |
|
94 client LoadTestPluginL |
|
95 client SetTestCaseAsObserverL ETrue |
|
96 client LoadIconsL EMedium |
|
97 client IconChoiceL 0501234567 |
|
98 allownextresult TEventType::EIconsMajorChange |
|
99 waittestclass client |
|
100 allownextresult TEventType::EIconsMajorChange |
|
101 waittestclass client |
|
102 client SetTestCaseAsObserverL EFalse |
|
103 client DeleteIconsL |
|
104 client DeletePsProperty EPsKeyIconUpdaterEnabled |
|
105 client DeletePsProperty EPsKeyIconUpdaterIntervalMs |
|
106 delete client |
|
107 [Endtest] |
|
108 |
|
109 |
|
110 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
111 # ModTest 005: Update notification with refresh icon call |
|
112 # |
|
113 # Setup plugin to periodically nofity of icon change with params |
|
114 # - event type is EIconsUpdated |
|
115 # - icon id array is not empty (i.e. plug-in generates an id list) |
|
116 # Register test case as observer |
|
117 # Listen to notification from plugin |
|
118 # Request plugin for a new updated icon |
|
119 # |
|
120 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
121 [Test] |
|
122 title ModTest 005: Update notification with refresh icon call |
|
123 create Pbk2IconCustomApiTestModule client |
|
124 client SetPsProperty EPsKeyIconUpdaterEnabled ETrue |
|
125 client SetPsProperty EPsKeyIconUpdaterIntervalMs 500 |
|
126 client SetPsProperty EPsKeyNotificationEventType TEventType::EIconsUpdated |
|
127 client SetPsProperty EPsKeyNotificationEmptyUidArray EFalse |
|
128 client LoadTestPluginL |
|
129 client SetTestCaseAsObserverL ETrue |
|
130 client LoadIconsL EMedium |
|
131 client IconChoiceL 0501234567 |
|
132 allownextresult TEventType::EIconsUpdated |
|
133 waittestclass client |
|
134 client SetTestCaseAsObserverL EFalse |
|
135 client UpdateIconsWithLastIconIdsL EMedium |
|
136 client DeleteIconsL |
|
137 client DeletePsProperty EPsKeyIconUpdaterEnabled |
|
138 client DeletePsProperty EPsKeyIconUpdaterIntervalMs |
|
139 delete client |
|
140 [Endtest] |
|
141 |
|
142 |
|
143 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
144 # ModTest 006: Verify extension interface functionality |
|
145 # |
|
146 # Setup plugin to periodically nofity of icon change with params |
|
147 # - event type is EIconsUpdated |
|
148 # - icon id array is not empty (i.e. plug-in generates an id list) |
|
149 # Register test case as observer |
|
150 # Listen to notification from plugin |
|
151 # Request plugin for a new updated icon |
|
152 # |
|
153 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
|
154 [Test] |
|
155 title ModTest 006: Verify extension interface functionality |
|
156 create Pbk2IconCustomApiTestModule client |
|
157 client LoadTestPluginL |
|
158 client CheckIfHasExtensionL NULL EFalse |
|
159 delete client |
|
160 [Endtest] |