|
1 //--------------------------------------------------------------------------------------------- |
|
2 // Test 1 - Test DDF Version and DDF structure |
|
3 [Test] |
|
4 title Op_logo_DDF |
|
5 create ThemesTest ttest |
|
6 |
|
7 ttest LoadL 1020782A |
|
8 |
|
9 ttest DDFVersionL ET="1.0" |
|
10 |
|
11 ttest AddDDFCheckL URI="Customization" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
12 ttest AddDDFCheckL URI="Customization/OperatorLogo" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
13 ttest AddDDFCheckL URI="Customization/OperatorLogo/Data" AccessTypes=GR Format=Bin Occurence=One Scope=Permanent Title="" MimeType="image/*" ObjectGroup=0 |
|
14 |
|
15 ttest DDFStructureL |
|
16 |
|
17 delete ttest |
|
18 [Endtest] |
|
19 //--------------------------------------------------------------------------------------------- |
|
20 // Test 2 - Test all DM operations |
|
21 [Test] |
|
22 title Op_Logo_Child |
|
23 create ThemesTest ttest |
|
24 ttest LoadL 1020782A |
|
25 |
|
26 // |
|
27 // enum TError |
|
28 // { |
|
29 // /** The command was successful */ |
|
30 // EOk = 0, |
|
31 // /** The command failed because no setting exists in the store which corresponds to the |
|
32 // URI or LUID passed to the adapter */ |
|
33 // ENotFound = 1, |
|
34 // /** The command failed because the setting can't take the value being passed to the adapter */ |
|
35 // EInvalidObject = 2, |
|
36 // /** The command failed because the setting already exists in the store */ |
|
37 // EAlreadyExists = 3, |
|
38 // /** The command failed because the setting value is too large to be accommodated in the store */ |
|
39 // ETooLargeObject = 4, |
|
40 // /** The command failed because the disk on which the device store resides is full */ |
|
41 // EDiskFull = 5, |
|
42 // /** The command failed for an unspecified reason */ |
|
43 // EError = 6, |
|
44 // /** The command could not be rolled back successfully */ |
|
45 // ERollbackFailed = 7, |
|
46 // /** The command failed because the setting is being used by another client */ |
|
47 // EObjectInUse = 8, |
|
48 // /** The command failed because no memory could be allocated */ |
|
49 // ENoMemory = 9 |
|
50 // }; |
|
51 // |
|
52 |
|
53 ttest ChildURIListL URI="" ES=1 ET="" |
|
54 ttest ChildURIListL URI="Customization" ES=0 ET="OperatorLogo" |
|
55 ttest ChildURIListL URI="Customization/OperatorLogo" ES=0 ET="Data" |
|
56 ttest ChildURIListL URI="Customization/OperatorLogo/Data" ES=0 ET="" |
|
57 |
|
58 |
|
59 delete ttest |
|
60 [Endtest] |
|
61 //--------------------------------------------------------------------------------------------- |
|
62 // Test 3 - Test Startup text |
|
63 [Test] |
|
64 title Op_Logo_commit |
|
65 create ThemesTest ttest |
|
66 ttest LoadL 1020782A |
|
67 |
|
68 ttest StartAtomicL |
|
69 ttest UpdateLeafObjectL URI="Customization/OperatorLogo/Data" ES=0 IF="E:\Testing\Data\bug_OpLogoAdapter.jpg" IM="image/jpg" |
|
70 //Sivaji: As GET on Data is not supported, adapter returns an error code EError(=6) so ES=6 |
|
71 ttest FetchLeafObjectL URI="Customization/OperatorLogo/Data" ES=6 /*ET="Startup text" EM="text/plain"*/ |
|
72 ttest CommitAtomicL |
|
73 |
|
74 ttest StartAtomicL |
|
75 ttest UpdateLeafObjectL URI="Customization/OperatorLogo/Data" ES=0 IF="E:\Testing\Data\bug_OpLogoAdapter.jpg" IM="image/jpg" |
|
76 //Sivaji: As GET on Data is not supported, adapter returns an error code EError(=6) so ES=6 |
|
77 ttest FetchLeafObjectL URI="Customization/OperatorLogo/Data" ES=6 /*ET="Welcome!" EM="text/plain"*/ |
|
78 ttest RollbackAtomicL |
|
79 |
|
80 ttest FetchLeafObjectSizeL URI="Customization/OperatorLogo/Data" ES=6 //ET="12" |
|
81 ttest FetchLeafObjectL URI="Customization/OperatorLogo/Data" ES=6 //ET="Startup text" |
|
82 |
|
83 delete ttest |
|
84 [Endtest] |
|
85 |
|
86 //--------------------------------------------------------------------------------------------- |
|
87 // Test 4 - Test Bitmap |
|
88 [Test] |
|
89 title Op_Logo_Change |
|
90 create ThemesTest ttest |
|
91 ttest LoadL 1020782A |
|
92 |
|
93 ttest UpdateLeafObjectL URI="Customization/OperatorLogo/Data" ES=0 IF="E:\Testing\Data\bug_OpLogoAdapter.jpg" IM="image/jpg" |
|
94 //Sivaji: As GET on Data is not supported, adapter returns an error code EError(=6) so ES=6 |
|
95 ttest FetchLeafObjectL URI="Customization/OperatorLogo/Data" ES=6 |
|
96 |
|
97 delete ttest |
|
98 [Endtest] |
|
99 |
|
100 //--------------------------------------------------------------------------------------------- |
|
101 // EOF |
|
102 |
|
103 |
|
104 |
|
105 //**************************************************************************************************************************************** |
|
106 |
|
107 |
|
108 [Test] |
|
109 title SS_DDF |
|
110 create ThemesTest ttest |
|
111 |
|
112 ttest LoadL 1020782E |
|
113 ttest DDFVersionL ET="1.0" |
|
114 |
|
115 ttest AddDDFCheckL URI="Customization" AccessTypes=G DefaultValue="" Description="The interior object holds all customization objects" Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
116 ttest AddDDFCheckL URI="Customization/ScreenSavers" AccessTypes=G DefaultValue="" Description="ScreenSavers is a common parent node for nodes managing screen savers" Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
117 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers" AccessTypes=AG DefaultValue="" Description="This node holds the available screen saver placeholders" Format=Node Occurence=ZeroOrMore Scope=Dynamic Title="" MimeType="" ObjectGroup=0 |
|
118 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>" AccessTypes=ADGR DefaultValue="" Description="This is a placeholder to screen saver ID identifying a screen saver" Format=Node Occurence=ZeroOrMore Scope=Dynamic Title="" MimeType="" ObjectGroup=1 |
|
119 ttest AddDDFCheckL URI="Customization/ScreenSavers/ActiveSc" AccessTypes=GR DefaultValue="" Description="This node is a link to the currently active screen saver" Format=Chr Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
120 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Data" AccessTypes=R DefaultValue="" Description="Replace command will install a screen saver that's in the data field of the command" Format=Bin Occurence=One Scope=Permanent Title="" MimeType="x-epoc/x-sisx-app" ObjectGroup=0 |
|
121 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/ID" AccessTypes=GR DefaultValue="" Description="This leaf node holds the ID of the screen saver" Format=Chr Occurence=One Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
122 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Name" AccessTypes=GR DefaultValue="" Description="This leaf node holds the name of the screen saver" Format=Chr Occurence=One Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
123 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Description" AccessTypes=GR DefaultValue="" Description="This leaf node holds the description of the screen saver" Format=Chr Occurence=One Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
124 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/CustomProperty" AccessTypes=GR DefaultValue="" Description="This leaf node holds the custom property value of the screen saver" Format=Chr Occurence=One Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
125 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Version" AccessTypes=GR DefaultValue="" Description="This leaf node holds the version of the screen saver" Format=Chr Occurence=One Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
126 ttest AddDDFCheckL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/InstallOptions" AccessTypes=R DefaultValue="" Description="Holds the install options for next install" Format=Chr Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
127 |
|
128 ttest DDFStructureL |
|
129 |
|
130 delete ttest |
|
131 [Endtest] |
|
132 |
|
133 //**************************************************************************************************************************************** |
|
134 [Test] |
|
135 title SS_GetAll |
|
136 create ThemesTest ttest |
|
137 ttest LoadL 1020782E |
|
138 |
|
139 ttest ChildURIListL URI="Customization" ES=0 ET="ScreenSavers" |
|
140 ttest ChildURIListL URI="Customization/ScreenSavers" ES=0 ET="AvailableScreenSavers/ActiveSc" |
|
141 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers" ES=0 //sf-ET="" |
|
142 ttest ChildURIListL URI="Customization/ScreenSavers/ActiveSc" ES=0 ET="" |
|
143 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/InstallOptions" ES=0 ET="" |
|
144 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>" ES=0 ET="Data/ID/Name/Description/CustomProperty/Version/InstallOptions" |
|
145 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Data" ES=0 ET="" |
|
146 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/ID" ES=0 ET="" |
|
147 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Name" ES=0 ET="" |
|
148 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Description" ES=0 ET="" |
|
149 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/CustomProperty" ES=0 ET="" |
|
150 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>/Version" ES=0 ET="" |
|
151 |
|
152 ttest FetchLeafObjectSizeL URI="Customization" ES=6 |
|
153 ttest FetchLeafObjectL URI="Customization" ES=6 |
|
154 |
|
155 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers" ES=6 |
|
156 ttest FetchLeafObjectL URI="Customization/ScreenSavers" ES=6 |
|
157 |
|
158 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers" ES=6 |
|
159 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers" ES=6 |
|
160 |
|
161 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>" ES=6 // ET="" |
|
162 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/<X>" ES=6 // ET="" |
|
163 |
|
164 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/ID" ES=1 // ET="0" |
|
165 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/ID" ES=1 // ET="" |
|
166 |
|
167 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Name" ES=1 // ET="0" |
|
168 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Name" ES=1 // ET="" |
|
169 |
|
170 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Version" ES=1 // ET="0" |
|
171 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Version" ES=1 // ET="" |
|
172 |
|
173 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/InstallOptions" ES=6 // ET="0" |
|
174 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/InstallOptions" ES=6 // ET="" |
|
175 |
|
176 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Description" ES=1 // ET="0" |
|
177 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Description" ES=1 // ET="" |
|
178 |
|
179 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/CustomProperty" ES=1 // ET="0" |
|
180 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/CustomProperty" ES=1 // ET="" |
|
181 |
|
182 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Data" ES=6 // ET="0" |
|
183 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Warp/Data" ES=6 // ET="" |
|
184 |
|
185 ttest FetchLeafObjectSizeL URI="Customization/ScreenSavers/ActiveSc" ES=0 // ET="0" |
|
186 ttest FetchLeafObjectL URI="Customization/ScreenSavers/ActiveSc" ES=0 // ET="" |
|
187 |
|
188 delete ttest |
|
189 [Endtest] |
|
190 |
|
191 //----------------------------------------------------------------------------- |
|
192 [Test] |
|
193 title Install_Theme |
|
194 create ThemesTest ttest |
|
195 ttest LoadL 1020782E |
|
196 ttest AddNodeObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1" ES=0 |
|
197 ttest UpdateLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/Name" ES=0 IT=Sivaji |
|
198 ttest UpdateLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/Version" ES=0 IT=1.0 |
|
199 ttest UpdateLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/InstallOptions" ES=0 IF="E:\Testing\Data\verysilent_c_en.xml" IM="Xml" |
|
200 ttest UpdateLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/Data" ES=0 IF="E:\Testing\Data\testhbuf_S60_3_X_v_1_0_0.SISx" IM="Bin" |
|
201 ttest ChildURIListL URI="Customization/ScreenSavers/AvailableScreenSavers" ES=0 /*ET=Theme1*/ |
|
202 |
|
203 |
|
204 delete ttest |
|
205 [Endtest] |
|
206 //----------------------------------------------------------------------------- |
|
207 |
|
208 [Test] |
|
209 title SS_COMMIT_ATOMIC |
|
210 create ThemesTest ttest |
|
211 ttest LoadL 1020782E |
|
212 ttest StartAtomicL |
|
213 ttest UpdateLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/Name" ES=6 IT=Sivaji |
|
214 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/Name" ES=0 ET=Sivaji |
|
215 ttest CommitAtomicL |
|
216 |
|
217 ttest StartAtomicL |
|
218 ttest UpdateLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/Name" ES=6 IT=Koya |
|
219 ttest FetchLeafObjectL URI="Customization/ScreenSavers/AvailableScreenSavers/Theme1/Name" ES=0 ET=Koya |
|
220 ttest RollbackAtomicL |
|
221 |
|
222 |
|
223 delete ttest |
|
224 [Endtest] |
|
225 |
|
226 //--------------------------------------------------------------------------------------------- |
|
227 // Test 1 - Test DDF Version and DDF structure |
|
228 [Test] |
|
229 title Sup_DDF |
|
230 create ThemesTest ttest |
|
231 |
|
232 ttest LoadL 10207822 |
|
233 |
|
234 ttest DDFVersionL ET="1.0" |
|
235 |
|
236 ttest AddDDFCheckL URI="Customization" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
237 ttest AddDDFCheckL URI="Customization/Startup" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
238 ttest AddDDFCheckL URI="Customization/Startup/Data" AccessTypes=R Format=Bin Occurence=ZeroOrOne Scope=Permanent Title="" MimeType="image/x-epoc-mbm" ObjectGroup=0 |
|
239 |
|
240 ttest AddDDFCheckL URI="Customization/Startup/Text" AccessTypes=GR Format=Chr Occurence=ZeroOrOne Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
241 |
|
242 ttest DDFStructureL |
|
243 |
|
244 delete ttest |
|
245 [Endtest] |
|
246 //--------------------------------------------------------------------------------------------- |
|
247 // Test 2 - Test all DM operations |
|
248 [Test] |
|
249 title SUP_CHILD |
|
250 create ThemesTest ttest |
|
251 ttest LoadL 10207822 |
|
252 |
|
253 // |
|
254 // enum TError |
|
255 // { |
|
256 // /** The command was successful */ |
|
257 // EOk = 0, |
|
258 // /** The command failed because no setting exists in the store which corresponds to the |
|
259 // URI or LUID passed to the adapter */ |
|
260 // ENotFound = 1, |
|
261 // /** The command failed because the setting can't take the value being passed to the adapter */ |
|
262 // EInvalidObject = 2, |
|
263 // /** The command failed because the setting already exists in the store */ |
|
264 // EAlreadyExists = 3, |
|
265 // /** The command failed because the setting value is too large to be accommodated in the store */ |
|
266 // ETooLargeObject = 4, |
|
267 // /** The command failed because the disk on which the device store resides is full */ |
|
268 // EDiskFull = 5, |
|
269 // /** The command failed for an unspecified reason */ |
|
270 // EError = 6, |
|
271 // /** The command could not be rolled back successfully */ |
|
272 // ERollbackFailed = 7, |
|
273 // /** The command failed because the setting is being used by another client */ |
|
274 // EObjectInUse = 8, |
|
275 // /** The command failed because no memory could be allocated */ |
|
276 // ENoMemory = 9 |
|
277 // }; |
|
278 // |
|
279 |
|
280 ttest ChildURIListL URI="" ES=0 ET="Customization" |
|
281 ttest ChildURIListL URI="Customization" ES=0 ET="Startup" |
|
282 ttest ChildURIListL URI="Customization/Startup" ES=0 ET="DataText" |
|
283 ttest ChildURIListL URI="Customization/Startup/Data" ES=0 ET="" |
|
284 // Sivaji: the below false cases are commented |
|
285 |
|
286 // False cases |
|
287 /* |
|
288 ttest ChildURIListL URI="Customisation" ES=1 ET="" |
|
289 ttest ChildURIListL URI="Customisation/Startup" ES=1 ET="" |
|
290 ttest ChildURIListL URI="Customization/Endup" ES=1 ET="" |
|
291 ttest ChildURIListL URI="Customization/Startup/WelcomeData/WelcomeData" ES=1 ET="" |
|
292 ttest ChildURIListL URI="Startup/WelcomeData" ES=1 ET="" |
|
293 ttest ChildURIListL URI="WelcomeData" ES=1 ET="" |
|
294 ttest ChildURIListL URI="Customization/x/WelcomeData" ES=1 ET="" |
|
295 // ttest ChildURIListL URI="Customization//WelcomeData" ES=1 ET="" |
|
296 ttest ChildURIListL URI="Customization/Startup/WelcomeDataa" ES=1 ET="" |
|
297 ttest ChildURIListL URI="Customization/Startup/WelcomeDat" ES=1 ET="" |
|
298 ttest ChildURIListL URI="CCustomization/Startup/WelcomeData" ES=1 ET="" |
|
299 ttest ChildURIListL URI="Customization/Startup/WelcomeData" ES=1 ET="" |
|
300 */ |
|
301 |
|
302 ttest FetchLeafObjectSizeL URI="Customization" ES=0 ET="0" |
|
303 ttest FetchLeafObjectL URI="Customization" ES=0 ET="" |
|
304 |
|
305 ttest FetchLeafObjectSizeL URI="Customization/Startup" ES=0 ET="0" |
|
306 ttest FetchLeafObjectL URI="Customization" ES=0 ET="" |
|
307 |
|
308 delete ttest |
|
309 [Endtest] |
|
310 //--------------------------------------------------------------------------------------------- |
|
311 // Test 3 - Test Startup text |
|
312 [Test] |
|
313 title SUP_TEXT |
|
314 create ThemesTest ttest |
|
315 ttest LoadL 10207822 |
|
316 |
|
317 ttest StartAtomicL |
|
318 //Sivaji: ES=-1 for update leaf object as SUP adapter is not calling SetStatusL after updating leaf nodes. |
|
319 ttest UpdateLeafObjectL URI="Customization/Startup/Text" ES=-1 IT="Startup text" IM="text/plain" |
|
320 ttest FetchLeafObjectL URI="Customization/Startup/Text" ES=0 ET="Startup text" EM="text/plain" |
|
321 ttest CommitAtomicL |
|
322 |
|
323 ttest StartAtomicL |
|
324 ttest UpdateLeafObjectL URI="Customization/Startup/Text" ES=-1 IT="Welcome!" IM="text/dunno" |
|
325 ttest FetchLeafObjectL URI="Customization/Startup/Text" ES=0 ET="Welcome!" EM="text/plain" |
|
326 ttest RollbackAtomicL |
|
327 |
|
328 ttest FetchLeafObjectSizeL URI="Customization/Startup/Text" ES=0 ET="12" |
|
329 ttest FetchLeafObjectL URI="Customization/Startup/Text" ES=0 ET="Startup text" |
|
330 |
|
331 delete ttest |
|
332 [Endtest] |
|
333 |
|
334 //--------------------------------------------------------------------------------------------- |
|
335 // Test 4 - Test Bitmap |
|
336 [Test] |
|
337 title SUP_BITMAP |
|
338 create ThemesTest ttest |
|
339 ttest LoadL 10207822 |
|
340 |
|
341 ttest UpdateLeafObjectL URI="Customization/Startup/Data" ES=-1 IF="E:\Testing\Data\bug_SupAdapter.jpg" IM="image/jpg" |
|
342 //Sivaji: As GET on Data is not supported, adapter returns an error code EError(=6) so ES=6 |
|
343 ttest FetchLeafObjectL URI="Customization/Startup/Data" ES=6 |
|
344 |
|
345 delete ttest |
|
346 [Endtest] |
|
347 |
|
348 //--------------------------------------------------------------------------------------------- |
|
349 // EOF |
|
350 //**************************************************************************************************************************************** |
|
351 |
|
352 |
|
353 [Test] |
|
354 title th_DDF |
|
355 create ThemesTest ttest |
|
356 |
|
357 ttest LoadL 10207828 |
|
358 ttest DDFVersionL ET="1.0" |
|
359 |
|
360 ttest AddDDFCheckL URI="Customization" AccessTypes=G DefaultValue="" Description="Customization node" Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
361 ttest AddDDFCheckL URI="Customization/Themes" AccessTypes=G DefaultValue="" Description="Themes node" Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
362 ttest AddDDFCheckL URI="Customization/Themes/AvailableThemes" AccessTypes=AG DefaultValue="" Description="AvailableThemes node" Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
363 ttest AddDDFCheckL URI="Customization/Themes/AvailableThemes/<X>" AccessTypes=ADGR DefaultValue="" Description="" Format=Node Occurence=ZeroOrMore Scope=Dynamic Title="" MimeType="" ObjectGroup=1 |
|
364 ttest AddDDFCheckL URI="Customization/Themes/AvailableThemes/<X>/ID" AccessTypes=G DefaultValue="" Description="ID node" Format=Chr Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
365 ttest AddDDFCheckL URI="Customization/Themes/AvailableThemes/<X>/Name" AccessTypes=GR DefaultValue="" Description="Name node" Format=Chr Occurence=ZeroOrOne Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
366 ttest AddDDFCheckL URI="Customization/Themes/AvailableThemes/<X>/Version" AccessTypes=GR DefaultValue="" Description="Version node" Format=Chr Occurence=ZeroOrOne Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
367 ttest AddDDFCheckL URI="Customization/Themes/AvailableThemes/<X>/Data" AccessTypes=R DefaultValue="" Description="Data node" Format=Bin Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
368 ttest AddDDFCheckL URI="Customization/Themes/AvailableThemes/<X>/InstallOptions" AccessTypes=R DefaultValue="" Description="InstallOptions node" Format=Xml Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
369 ttest AddDDFCheckL URI="Customization/Themes/ActiveTheme" AccessTypes=GR DefaultValue="" Description="ActiveTheme node" Format=Chr Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
370 |
|
371 ttest DDFStructureL |
|
372 |
|
373 delete ttest |
|
374 [Endtest] |
|
375 |
|
376 //**************************************************************************************************************************************** |
|
377 [Test] |
|
378 title th_GetAll |
|
379 create ThemesTest ttest |
|
380 ttest LoadL 10207828 |
|
381 |
|
382 ttest ChildURIListL URI="Customization" ES=0 ET="Themes" |
|
383 ttest ChildURIListL URI="Customization/Themes" ES=0 ET="AvailableThemes/ActiveTheme" |
|
384 ttest ChildURIListL URI="Customization/Themes/AvailableThemes" ES=0 //sf-ET="" |
|
385 ttest ChildURIListL URI="Customization/Themes/AvailableThemes/<X>" ES=0 ET="ID/Name/Version/Data/InstallOptions" |
|
386 ttest ChildURIListL URI="Customization/Themes/AvailableThemes/<X>/ID" ES=0 ET="" |
|
387 ttest ChildURIListL URI="Customization/Themes/AvailableThemes/<X>/Name" ES=0 ET="" |
|
388 ttest ChildURIListL URI="Customization/Themes/AvailableThemes/<X>/Version" ES=0 ET="" |
|
389 ttest ChildURIListL URI="Customization/Themes/ActiveTheme" ES=0 ET="" |
|
390 ttest ChildURIListL URI="Customization/Themes/AvailableThemes/<X>/InstallOptions" ES=0 ET="" |
|
391 ttest ChildURIListL URI="Customization/Themes/ActiveTheme" ES=0 ET="" |
|
392 |
|
393 |
|
394 ttest FetchLeafObjectSizeL URI="Customization" ES=6 |
|
395 ttest FetchLeafObjectL URI="Customization" ES=6 |
|
396 |
|
397 ttest FetchLeafObjectSizeL URI="Customization/Themes" ES=6 |
|
398 ttest FetchLeafObjectL URI="Customization/Themes" ES=6 |
|
399 |
|
400 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes" ES=6 |
|
401 ttest FetchLeafObjectL URI="Customization/Themes/AvailableThemes" ES=6 |
|
402 |
|
403 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes/<X>" ES=6 // ET="" |
|
404 ttest FetchLeafObjectL URI="Customization/Themes/AvailableThemes/<X>" ES=6 // ET="" |
|
405 |
|
406 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes/Warp/ID" ES=1 // ET="0" |
|
407 ttest FetchLeafObjectL URI="Customization/Themes/AvailableThemes/Warp/ID" ES=1 // ET="" |
|
408 |
|
409 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes/Warp/Name" ES=1 // ET="0" |
|
410 ttest FetchLeafObjectL URI="Customization/Themes/CurrentThemes/Warp/Name" ES=1 // ET="" |
|
411 |
|
412 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes/Warp/Version" ES=1 // ET="0" |
|
413 ttest FetchLeafObjectL URI="Customization/Themes/AvailableThemes/Warp/Version" ES=1 // ET="" |
|
414 |
|
415 ttest FetchLeafObjectSizeL URI="Customization/Themes/ActiveTheme" ES=0 // ET="0" |
|
416 ttest FetchLeafObjectL URI="Customization/Themes/ActiveTheme" ES=0 // ET="" |
|
417 |
|
418 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes/Warp/InstallOptions" ES=6 // ET="0" |
|
419 ttest FetchLeafObjectL URI="Customization/Themes/AvailableThemes/Warp/InstallOptions" ES=6 // ET="" |
|
420 |
|
421 ttest FetchLeafObjectSizeL URI="Customization/Themes/InstallTheme" ES=6 |
|
422 ttest FetchLeafObjectL URI="Customization/Themes/InstallTheme" ES=6 |
|
423 |
|
424 delete ttest |
|
425 [Endtest] |
|
426 |
|
427 //----------------------------------------------------------------------------- |
|
428 [Test] |
|
429 title Install_Theme |
|
430 create ThemesTest ttest |
|
431 ttest LoadL 10207828 |
|
432 ttest AddNodeObjectL URI="Customization/Themes/AvailableThemes/Theme1" ES=0 |
|
433 ttest UpdateLeafObjectL URI="Customization/Themes/AvailableThemes/Theme1/Name" ES=0 IT=Sivaji |
|
434 ttest UpdateLeafObjectL URI="Customization/Themes/AvailableThemes/Theme1/Version" ES=0 IT=1.0 |
|
435 ttest UpdateLeafObjectL URI="Customization/Themes/AvailableThemes/Theme1/InstallOptions" ES=0 IF="E:\Testing\Data\verysilent_c_en.xml" IM="Xml" |
|
436 ttest UpdateLeafObjectL URI="Customization/Themes/AvailableThemes/Theme1/Data" ES=0 IF="E:\Testing\Data\testhbuf_S60_3_X_v_1_0_0.SISx" IM="Bin" |
|
437 ttest ChildURIListL URI="Customization/Themes/AvailableThemes" ES=0 /*ET=Theme1*/ |
|
438 |
|
439 |
|
440 delete ttest |
|
441 [Endtest] |
|
442 //----------------------------------------------------------------------------- |
|
443 |
|
444 [Test] |
|
445 title Theme_Commit_Rollback_Atomic |
|
446 create ThemesTest ttest |
|
447 ttest LoadL 1020782E |
|
448 ttest StartAtomicL |
|
449 ttest UpdateLeafObjectL URI="Customization/Themes/AvailableThemes/Theme1/Name" ES=6 IT=Sivaji |
|
450 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes/Warp/Name" ES=0 ET=Sivaji |
|
451 ttest CommitAtomicL |
|
452 |
|
453 ttest StartAtomicL |
|
454 ttest UpdateLeafObjectL URI="Customization/Themes/AvailableThemes/Theme1/Name" ES=6 IT=Sivaji |
|
455 ttest FetchLeafObjectSizeL URI="Customization/Themes/AvailableThemes/Warp/Name" ES=0 ET=Sivaji |
|
456 ttest RollbackAtomicL |
|
457 |
|
458 delete ttest |
|
459 [Endtest] |
|
460 |
|
461 |
|
462 //--------------------------------------------------------------------------------------------- |
|
463 // Test 1 - Test DDF Version and DDF structure |
|
464 [Test] |
|
465 title WallPaper_DDF |
|
466 create ThemesTest ttest |
|
467 |
|
468 ttest LoadL 10207830 |
|
469 |
|
470 ttest DDFVersionL ET="1.0" |
|
471 |
|
472 ttest AddDDFCheckL URI="Customization" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
473 ttest AddDDFCheckL URI="Customization/Wallpaper" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
474 ttest AddDDFCheckL URI="Customization/Wallpaper/Data" AccessTypes=GR Format=Bin Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
475 |
|
476 ttest DDFStructureL |
|
477 |
|
478 delete ttest |
|
479 [Endtest] |
|
480 //--------------------------------------------------------------------------------------------- |
|
481 // Test 2 - Test all DM operations |
|
482 [Test] |
|
483 title WallPaper_Child |
|
484 create ThemesTest ttest |
|
485 ttest LoadL 10207830 |
|
486 |
|
487 // |
|
488 // enum TError |
|
489 // { |
|
490 // /** The command was successful */ |
|
491 // EOk = 0, |
|
492 // /** The command failed because no setting exists in the store which corresponds to the |
|
493 // URI or LUID passed to the adapter */ |
|
494 // ENotFound = 1, |
|
495 // /** The command failed because the setting can't take the value being passed to the adapter */ |
|
496 // EInvalidObject = 2, |
|
497 // /** The command failed because the setting already exists in the store */ |
|
498 // EAlreadyExists = 3, |
|
499 // /** The command failed because the setting value is too large to be accommodated in the store */ |
|
500 // ETooLargeObject = 4, |
|
501 // /** The command failed because the disk on which the device store resides is full */ |
|
502 // EDiskFull = 5, |
|
503 // /** The command failed for an unspecified reason */ |
|
504 // EError = 6, |
|
505 // /** The command could not be rolled back successfully */ |
|
506 // ERollbackFailed = 7, |
|
507 // /** The command failed because the setting is being used by another client */ |
|
508 // EObjectInUse = 8, |
|
509 // /** The command failed because no memory could be allocated */ |
|
510 // ENoMemory = 9 |
|
511 // }; |
|
512 // |
|
513 |
|
514 ttest ChildURIListL URI="" ES=0 ET="Customization" |
|
515 ttest ChildURIListL URI="Customization" ES=0 ET="Wallpaper" |
|
516 ttest ChildURIListL URI="Customization/Wallpaper" ES=0 ET="Data" |
|
517 ttest ChildURIListL URI="Customization/Wallpaper/Data" ES=0 ET="" |
|
518 |
|
519 |
|
520 delete ttest |
|
521 [Endtest] |
|
522 //--------------------------------------------------------------------------------------------- |
|
523 // Test 3 - Test Startup text |
|
524 [Test] |
|
525 title WallPaper_commit |
|
526 create ThemesTest ttest |
|
527 ttest LoadL 10207830 |
|
528 |
|
529 ttest StartAtomicL |
|
530 ttest UpdateLeafObjectL URI="Customization/OperatorLogo/Data" ES=0 IF="E:\Testing\Data\bug_WallPaperAdapter.jpg" IM="image/jpeg" |
|
531 ttest CommitAtomicL |
|
532 //Sivaji: Since ttest RollbackAtomicL not suported, just calling that API to get fn coverage |
|
533 ttest RollbackAtomicL |
|
534 delete ttest |
|
535 [Endtest] |
|
536 |
|
537 //--------------------------------------------------------------------------------------------- |
|
538 // Test 4 - Test Bitmap |
|
539 [Test] |
|
540 title WallPaper_Change |
|
541 create ThemesTest ttest |
|
542 ttest LoadL 10207830 |
|
543 |
|
544 ttest UpdateLeafObjectL URI="Customization/OperatorLogo/Data" ES=0 IF="E:\Testing\Data\bug_OpLogoAdapter.jpg" IM="image/jpeg" |
|
545 //Sivaji: As GET on Data is not supported, adapter returns an error code EError(=6) so ES=6 |
|
546 ttest FetchLeafObjectL URI="Customization/OperatorLogo/Data" ES=6 |
|
547 |
|
548 delete ttest |
|
549 [Endtest] |
|
550 |
|
551 //--------------------------------------------------------------------------------------------- |
|
552 // EOF |
|
553 //--------------------------------------------------------------------------------------------- |
|
554 // Test 1 - Test DDF Version and DDF structure |
|
555 [Test] |
|
556 title ELink_DDF |
|
557 create ThemesTest ttest |
|
558 |
|
559 ttest LoadL 1020782C |
|
560 |
|
561 ttest DDFVersionL ET="1.0" |
|
562 |
|
563 ttest AddDDFCheckL URI="Customization" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
564 ttest AddDDFCheckL URI="Customization/EmbeddedLinks" AccessTypes=G Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
565 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>" AccessTypes=G Format=Node Occurence=ZeroOrMore Scope=Dynamic Title="" MimeType="" ObjectGroup=1 |
|
566 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>/Links" AccessTypes=AG Format=Node Occurence=One Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
567 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>/Links/<x>" AccessTypes=AGDR Format=Node Occurence=ZeroOrMore Scope=Dynamic Title="" MimeType="" ObjectGroup=1 |
|
568 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>/Links/<x>/URL" AccessTypes=GR Format=Chr Occurence=One Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
569 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>/Links/<x>/Name" AccessTypes=GR Format=Chr Occurence=ZeroOrOne Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
570 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>/Links/<x>/UserName" AccessTypes=GR Format=Chr Occurence=ZeroOrOne Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
571 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>/Links/<x>/Password" AccessTypes=GR Format=Chr Occurence=ZeroOrOne Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
572 ttest AddDDFCheckL URI="Customization/EmbeddedLinks/<x>/Links/<x>/ConRef" AccessTypes=GR Format=Chr Occurence=ZeroOrOne Scope=Dynamic Title="" MimeType="text/plain" ObjectGroup=0 |
|
573 |
|
574 |
|
575 ttest DDFStructureL |
|
576 |
|
577 delete ttest |
|
578 [Endtest] |
|
579 //--------------------------------------------------------------------------------------------- |
|
580 // Test 2 - Test all DM operations |
|
581 [Test] |
|
582 title ELink_Child |
|
583 create ThemesTest ttest |
|
584 ttest LoadL 1020782C |
|
585 |
|
586 // |
|
587 // enum TError |
|
588 // { |
|
589 // /** The command was successful */ |
|
590 // EOk = 0, |
|
591 // /** The command failed because no setting exists in the store which corresponds to the |
|
592 // URI or LUID passed to the adapter */ |
|
593 // ENotFound = 1, |
|
594 // /** The command failed because the setting can't take the value being passed to the adapter */ |
|
595 // EInvalidObject = 2, |
|
596 // /** The command failed because the setting already exists in the store */ |
|
597 // EAlreadyExists = 3, |
|
598 // /** The command failed because the setting value is too large to be accommodated in the store */ |
|
599 // ETooLargeObject = 4, |
|
600 // /** The command failed because the disk on which the device store resides is full */ |
|
601 // EDiskFull = 5, |
|
602 // /** The command failed for an unspecified reason */ |
|
603 // EError = 6, |
|
604 // /** The command could not be rolled back successfully */ |
|
605 // ERollbackFailed = 7, |
|
606 // /** The command failed because the setting is being used by another client */ |
|
607 // EObjectInUse = 8, |
|
608 // /** The command failed because no memory could be allocated */ |
|
609 // ENoMemory = 9 |
|
610 // }; |
|
611 // |
|
612 |
|
613 ttest ChildURIListL URI="" ES=0 ET="EmbeddedLinks" |
|
614 |
|
615 ttest ChildURIListL URI="Customization/EmbeddedLinks" ES=0 ET="1/2/3/4/5/6/7/8" |
|
616 ttest ChildURIListL URI="Customization/EmbeddedLinks/<x>" ES=0 ET="Links/ID/AppName" |
|
617 ttest ChildURIListL URI="Customization/EmbeddedLinks/1/Links" ES=0 ET="" |
|
618 ttest ChildURIListL URI="Customization/EmbeddedLinks/2/Links" ES=0 ET="" |
|
619 ttest ChildURIListL URI="Customization/EmbeddedLinks/3/Links" ES=0 ET="" |
|
620 ttest ChildURIListL URI="Customization/EmbeddedLinks/4/Links" ES=0 ET="" |
|
621 ttest ChildURIListL URI="Customization/EmbeddedLinks/5/Links" ES=0 ET="" |
|
622 ttest ChildURIListL URI="Customization/EmbeddedLinks/6/Links" ES=0 ET="" |
|
623 ttest ChildURIListL URI="Customization/EmbeddedLinks/7/Links" ES=0 ET="" |
|
624 ttest ChildURIListL URI="Customization/EmbeddedLinks/8/Links" ES=0 ET="" |
|
625 ttest ChildURIListL URI="Customization/EmbeddedLinks/1/Links/<x>" ES=0 ET="URL/Name/UserName/Password/ConRef" |
|
626 ttest ChildURIListL URI="Customization/EmbeddedLinks/<x>/Links/<x>/URL" ES=2 ET="" |
|
627 ttest ChildURIListL URI="Customization/EmbeddedLinks/<x>/Links/<x>/Name" ES=2 ET="" |
|
628 ttest ChildURIListL URI="Customization/EmbeddedLinks/<x>/Links/<x>/UserName" ES=2 ET="" |
|
629 ttest ChildURIListL URI="Customization/EmbeddedLinks/<x>/Links/<x>/Password" ES=2 ET="" |
|
630 ttest ChildURIListL URI="Customization/EmbeddedLinks/<x>/Links/<x>/ConRef" ES=2 ET="" |
|
631 |
|
632 delete ttest |
|
633 [Endtest] |
|
634 |
|
635 //--------------------------------------------------------------------------------------------- |
|
636 |
|
637 // Test 3 - Test Startup text |
|
638 [Test] |
|
639 title ELink_commit |
|
640 create ThemesTest ttest |
|
641 ttest LoadL 1020782C |
|
642 |
|
643 ttest StartAtomicL |
|
644 ttest AddNodeObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext" ES=0 |
|
645 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/URL" ES=0 IT=www.nokia.com |
|
646 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Name" ES=0 IT=Nokia |
|
647 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/UserName" ES=0 IT=Koya |
|
648 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Password" ES=0 IT=Sivaji |
|
649 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/ConRef" ES=0 IT=airtelgprs.com |
|
650 |
|
651 ttest FetchLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/URL" ES=0 ET=www.nokia.com |
|
652 //Sivaji: as we run test cases repeatedly, name will be added as Nokia,Nokia(1),Nokia(2).. etc..So if ET= Nokia and if |
|
653 //we run test cae two times, it will fetch Nokia(2) and returns error code as KErrGeneral so here ES= -2 |
|
654 ttest FetchLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Name" ES=-2 |
|
655 ttest FetchLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/UserName" ES=6 |
|
656 ttest FetchLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Password" ES=6 |
|
657 //Sivaji: Need to check later why null is returning for ConRef. Might be it should bes et as APId001 like this .... :) |
|
658 ttest FetchLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/ConRef" ES=0 ET=null |
|
659 ttest CommitAtomicL |
|
660 //Sivaji: Since ttest RollbackAtomicL not suported, just calling that API to get fn coverage |
|
661 ttest RollbackAtomicL |
|
662 delete ttest |
|
663 [Endtest] |
|
664 |
|
665 //--------------------------------------------------------------------------------------------- |
|
666 // Test 4 - Test Bitmap |
|
667 [Test] |
|
668 title ELink_Not_supported |
|
669 create ThemesTest ttest |
|
670 ttest LoadL 1020782C |
|
671 |
|
672 //Sivaji: these are not supported. Just called to get function coverage |
|
673 ttest CopyCommandL |
|
674 ttest ExecuteCommandL |
|
675 ttest CompleteOutstandingCmdsL |
|
676 ttest StreamingSupportL |
|
677 ttest StreamCommittedL |
|
678 //Sivaji: The ID and Appname is not supported. Added here to get code coverage |
|
679 ttest FetchLeafObjectL URI="Customization/EmbeddedLinks/1/ID" |
|
680 ttest FetchLeafObjectL URI="Customization/EmbeddedLinks/1/AppName" |
|
681 |
|
682 delete ttest |
|
683 [Endtest] |
|
684 |
|
685 //--------------------------------------------------------------------------------------------- |
|
686 |
|
687 [Test] |
|
688 title ELink_Delete_Bookmark |
|
689 create ThemesTest ttest |
|
690 ttest LoadL 1020782C |
|
691 |
|
692 ttest AddNodeObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext" ES=0 |
|
693 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/URL" ES=0 IT=www.nokia.com |
|
694 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Name" ES=0 IT=Nokia |
|
695 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/UserName" ES=0 IT=Koya |
|
696 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Password" ES=0 IT=Sivaji |
|
697 ttest UpdateLeafObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/ConRef" ES=0 IT=airtelgprs.com |
|
698 |
|
699 |
|
700 ttest DeleteObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/URL" ES=0 IT=www.nokia.com |
|
701 ttest DeleteObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Name" ES=0 IT=Nokia |
|
702 ttest DeleteObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/UserName" ES=0 IT=Koya |
|
703 ttest DeleteObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/Password" ES=0 IT=Sivaji |
|
704 ttest DeleteObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext/ConRef" ES=0 IT=airtelgprs.com |
|
705 ttest DeleteObjectL URI="Customization/EmbeddedLinks/1/Links/AppContext" ES=0 |
|
706 |
|
707 |
|
708 delete ttest |
|
709 [Endtest] |
|
710 |
|
711 // EOF |
|
712 //--------------------------------------------------------------------------------------------- |
|
713 // Test 1 - Test DDF Version and DDF structure |
|
714 [Test] |
|
715 title IS_DDF |
|
716 create ThemesTest ttest |
|
717 |
|
718 ttest LoadL 10207832 |
|
719 |
|
720 ttest DDFVersionL ET="1.0" |
|
721 |
|
722 // ttest AddDDFCheckL URI="" Name="" AccessTypes=[ACDEGR] DefaultValue="" Description="" Format={B64,Bool,Chr,Int,Node,Null,Xml,Bin} Occurence={One,ZeroOrOne,ZeroOrMore,OneOrMore,ZeroOrN,OneOrN} Scope={Permanent,Dynamic} Title="" MimeType="" ObjectGroup={0,1} |
|
723 |
|
724 ttest AddDDFCheckL URI="Customization" AccessTypes=G Occurence=One Format=Node Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
725 ttest AddDDFCheckL URI="Customization/IdleSoftkeys" AccessTypes=G Occurence=One Format=Node Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
726 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/SoftKeys" AccessTypes=G Occurence=One Format=Node Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
727 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/Targets" AccessTypes=G Occurence=One Format=Node Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
728 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets" AccessTypes=AG Occurence=One Format=Node Scope=Permanent Title="" MimeType="" ObjectGroup=0 |
|
729 |
|
730 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/SoftKeys/<X>" AccessTypes=G Occurence=OneOrMore Format=Node Scope=Dynamic Title="" MimeType="" ObjectGroup=1 |
|
731 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/SoftKeys/<X>/ID" AccessTypes=G Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
732 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/SoftKeys/<X>/TargetRef" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
733 //ttest AddDDFCheckL URI="Customization/IdleSoftkeys/SoftKeys/<X>/Caption" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
734 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/SoftKeys/<X>/Image" AccessTypes=GR Occurence=One Format=Bin Scope=Permanent Title="" MimeType="image/x-epoc-mbm" ObjectGroup=0 |
|
735 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/SoftKeys/<X>/Mask" AccessTypes=GR Occurence=One Format=Bin Scope=Permanent Title="" MimeType="image/x-epoc-mbm" ObjectGroup=0 |
|
736 |
|
737 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/Targets/<X>" AccessTypes=G Occurence=ZeroOrMore Format=Node Scope=Dynamic Title="" MimeType="" ObjectGroup=1 |
|
738 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/Targets/<X>/ID" AccessTypes=G Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
739 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/Targets/<X>/Description" AccessTypes=G Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
740 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/Targets/<X>/Caption" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
741 //ttest AddDDFCheckL URI="Customization/IdleSoftkeys/Targets/<X>/Image" AccessTypes=GR Occurence=One Format=Bin Scope=Permanent Title="" MimeType="image/x-epoc-mbm" ObjectGroup=0 |
|
742 //ttest AddDDFCheckL URI="Customization/IdleSoftkeys/Targets/<X>/Mask" AccessTypes=GR Occurence=One Format=Bin Scope=Permanent Title="" MimeType="image/x-epoc-mbm" ObjectGroup=0 |
|
743 |
|
744 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>" AccessTypes=ADGR Occurence=ZeroOrMore Format=Node Scope=Dynamic Title="" MimeType="" ObjectGroup=1 |
|
745 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/ID" AccessTypes=G Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
746 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/Description" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
747 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/URL" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
748 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/UserName" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
749 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/Password" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
750 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/ConRef" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
751 ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/Caption" AccessTypes=GR Occurence=One Format=Chr Scope=Permanent Title="" MimeType="text/plain" ObjectGroup=0 |
|
752 //ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/Image" AccessTypes=GR Occurence=One Format=Bin Scope=Permanent Title="" MimeType="image/x-epoc-mbm" ObjectGroup=0 |
|
753 //ttest AddDDFCheckL URI="Customization/IdleSoftkeys/WebTargets/<X>/Mask" AccessTypes=GR Occurence=One Format=Bin Scope=Permanent Title="" MimeType="image/x-epoc-mbm" ObjectGroup=0 |
|
754 |
|
755 ttest DDFStructureL |
|
756 |
|
757 delete ttest |
|
758 [Endtest] |
|
759 //--------------------------------------------------------------------------------------------- |
|
760 // Test 2.1 - List targets |
|
761 [Test] |
|
762 title IS_LIST_TARGETS |
|
763 create ThemesTest ttest |
|
764 ttest LoadL 10207832 |
|
765 |
|
766 ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets" ES=0 |
|
767 |
|
768 delete ttest |
|
769 [Endtest] |
|
770 //--------------------------------------------------------------------------------------------- |
|
771 // Test 2.2 - List webtargets |
|
772 [Test] |
|
773 title IS_LIST_WEBTARGETS |
|
774 create ThemesTest ttest |
|
775 ttest LoadL 10207832 |
|
776 |
|
777 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets" ES=0 |
|
778 |
|
779 delete ttest |
|
780 [Endtest] |
|
781 //--------------------------------------------------------------------------------------------- |
|
782 // Test 2.3 - Child URI lists |
|
783 [Test] |
|
784 title IS_CHILD |
|
785 create ThemesTest ttest |
|
786 ttest LoadL 10207832 |
|
787 |
|
788 // |
|
789 // enum TError |
|
790 // { |
|
791 // /** The command was successful */ |
|
792 // EOk = 0, |
|
793 // /** The command failed because no setting exists in the store which corresponds to the |
|
794 // URI or LUID passed to the adapter */ |
|
795 // ENotFound = 1, |
|
796 // /** The command failed because the setting can't take the value being passed to the adapter */ |
|
797 // EInvalidObject = 2, |
|
798 // /** The command failed because the setting already exists in the store */ |
|
799 // EAlreadyExists = 3, |
|
800 // /** The command failed because the setting value is too large to be accommodated in the store */ |
|
801 // ETooLargeObject = 4, |
|
802 // /** The command failed because the disk on which the device store resides is full */ |
|
803 // EDiskFull = 5, |
|
804 // /** The command failed for an unspecified reason */ |
|
805 // EError = 6, |
|
806 // /** The command could not be rolled back successfully */ |
|
807 // ERollbackFailed = 7, |
|
808 // /** The command failed because the setting is being used by another client */ |
|
809 // EObjectInUse = 8, |
|
810 // /** The command failed because no memory could be allocated */ |
|
811 // ENoMemory = 9 |
|
812 // }; |
|
813 // |
|
814 |
|
815 ttest ChildURIListL URI="" ES=0 ET="Customization" |
|
816 ttest ChildURIListL URI="Customization" ES=0 ET="IdleSoftkeys" |
|
817 ttest ChildURIListL URI="Customization/IdleSoftkeys" ES=0 ET="SoftKeys/Targets/WebTargets" |
|
818 |
|
819 ttest ChildURIListL URI="Customization/IdleSoftkeys/SoftKeys" ES=0 |
|
820 ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets" ES=0 |
|
821 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets" ES=0 |
|
822 |
|
823 ttest ChildURIListL URI="Customization/IdleSoftkeys/SoftKeys/X" ES=0 ET="ID/TargetRef/Image/Mask" |
|
824 //ttest ChildURIListL URI="Customization/IdleSoftkeys/SoftKeys/X" ES=0 ET="ID/TargetRef" |
|
825 ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets/X" ES=0 ET="ID/Description/Caption" |
|
826 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X" ES=0 ET="ID/Description/URL/UserName/Password/ConRef/Caption" |
|
827 |
|
828 ttest ChildURIListL URI="Customization/IdleSoftkeys/SoftKeys/X/ID" ES=0 ET="" |
|
829 ttest ChildURIListL URI="Customization/IdleSoftkeys/SoftKeys/X/TargetRef" ES=0 ET="" |
|
830 //ttest ChildURIListL URI="Customization/IdleSoftkeys/SoftKeys/X/Mask" ES=0 ET="" |
|
831 //ttest ChildURIListL URI="Customization/IdleSoftkeys/SoftKeys/X/Image" ES=0 ET="" |
|
832 |
|
833 ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets/X/ID" ES=0 ET="" |
|
834 ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets/X/Description" ES=0 ET="" |
|
835 ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets/X/Caption" ES=0 ET="" |
|
836 //ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets/X/Image" ES=0 ET="" |
|
837 //ttest ChildURIListL URI="Customization/IdleSoftkeys/Targets/X/Mask" ES=0 ET="" |
|
838 |
|
839 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/ID" ES=0 ET="" |
|
840 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/Description" ES=0 ET="" |
|
841 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/URL" ES=0 ET="" |
|
842 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/UserName" ES=0 ET="" |
|
843 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/Password" ES=0 ET="" |
|
844 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/ConRef" ES=0 ET="" |
|
845 ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/Caption" ES=0 ET="" |
|
846 //ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/Image" ES=0 ET="" |
|
847 //ttest ChildURIListL URI="Customization/IdleSoftkeys/WebTargets/X/Mask" ES=0 ET="" |
|
848 |
|
849 delete ttest |
|
850 [Endtest] |
|
851 //--------------------------------------------------------------------------------------------- |
|
852 // Test 3 - Test fetch operations |
|
853 [Test] |
|
854 title IS_FETCH |
|
855 create ThemesTest ttest |
|
856 ttest LoadL 10207832 |
|
857 |
|
858 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/ID" IM="text/plain" ES=0 |
|
859 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/TargetRef" IM="text/plain" ES=0 |
|
860 |
|
861 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/ID" IM="text/plain" ES=0 |
|
862 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/Description" IM="text/plain" ES=0 |
|
863 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/Caption" IM="text/plain" ES=0 |
|
864 //ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/Image" IM="image/x-epoc-mbm" ES=0 |
|
865 //ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/Mask" IM="image/x-epoc-mbm" ES=0 |
|
866 |
|
867 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/ID" IM="text/plain" ES=0 |
|
868 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/Description" IM="text/plain" ES=0 |
|
869 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/Caption" IM="text/plain" ES=0 |
|
870 //ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/Image" IM="image/x-epoc-mbm" ES=0 |
|
871 //ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/Mask" IM="image/x-epoc-mbm" ES=0 |
|
872 |
|
873 delete ttest |
|
874 [Endtest] |
|
875 //--------------------------------------------------------------------------------------------- |
|
876 // Test 4 - Test app target setting |
|
877 [Test] |
|
878 title IS_SET_APPTARGET |
|
879 create ThemesTest ttest |
|
880 ttest LoadL 10207832 |
|
881 |
|
882 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/ID" IM="text/plain" ES=0 |
|
883 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/ID" IM="text/plain" ES=0 |
|
884 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/TargetRef" IM="text/plain" ES=0 IT="Customization/IdleSoftkeys/Targets/Target1" |
|
885 |
|
886 delete ttest |
|
887 [Endtest] |
|
888 //--------------------------------------------------------------------------------------------- |
|
889 // Test 5 - Test wab target setting |
|
890 [Test] |
|
891 title IS_SET_WEBTARGET |
|
892 create ThemesTest ttest |
|
893 ttest LoadL 10207832 |
|
894 |
|
895 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/ID" IM="text/plain" ES=0 |
|
896 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/ID" IM="text/plain" ES=0 |
|
897 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/TargetRef" IM="text/plain" ES=0 IT="Customization/IdleSoftkeys/WebTargets/WebTarget1" |
|
898 |
|
899 delete ttest |
|
900 [Endtest] |
|
901 //--------------------------------------------------------------------------------------------- |
|
902 // Test 6 - Rename WebTarget |
|
903 [Test] |
|
904 title IS_RENAME_WEBTARGET |
|
905 create ThemesTest ttest |
|
906 ttest LoadL 10207832 |
|
907 |
|
908 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTargetX" IT="Customization/IdleSoftkeys/WebTargets/WebTarget1" |
|
909 |
|
910 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/ID" IM="text/plain" ES=0 |
|
911 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1" IT="Customization/IdleSoftkeys/WebTargets/WebTargetX" ES=0 |
|
912 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/ID" IM="text/plain" ES=6 |
|
913 |
|
914 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTargetX/ID" IM="text/plain" ES=0 |
|
915 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTargetX" IT="Customization/IdleSoftkeys/WebTargets/WebTarget1" ES=0 |
|
916 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTargetX/ID" IM="text/plain" ES=6 |
|
917 |
|
918 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTargetX" IT="Customization/IdleSoftkeys/WebTargets/WebTarget1" ES=6 |
|
919 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1" IT="Customization/IdleSoftkeys/WebTargets/WebTarget1" ES=6 |
|
920 |
|
921 delete ttest |
|
922 [Endtest] |
|
923 //--------------------------------------------------------------------------------------------- |
|
924 // Test 7 - Add new bookmark |
|
925 [Test] |
|
926 title IS_NEW_BM |
|
927 create ThemesTest ttest |
|
928 ttest LoadL 10207832 |
|
929 |
|
930 ttest AddNodeObjectL URI="Customization/IdleSoftkeys/WebTargets/Targetti" ES=0 |
|
931 |
|
932 delete ttest |
|
933 [Endtest] |
|
934 //--------------------------------------------------------------------------------------------- |
|
935 // Test 8 - Delete bookmark |
|
936 [Test] |
|
937 title IS_DELETE_BM |
|
938 create ThemesTest ttest |
|
939 ttest LoadL 10207832 |
|
940 |
|
941 ttest DeleteObjectL URI="Customization/IdleSoftkeys/WebTargets/Targetti" ES=0 |
|
942 |
|
943 delete ttest |
|
944 [Endtest] |
|
945 //--------------------------------------------------------------------------------------------- |
|
946 // Test 9 - Set idle softkey image |
|
947 [Test] |
|
948 title IS_SET_IMAGE_APP |
|
949 create ThemesTest ttest |
|
950 ttest LoadL 10207832 |
|
951 |
|
952 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/Image" IM="image/jpeg" ES=0 IF="E:\Testing\Data\dontpush_IsAdapter.jpg" |
|
953 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/TargetRef" IM="text/plain" ES=0 IT="Customization/IdleSoftkeys/Targets/Target1" |
|
954 delete ttest |
|
955 [Endtest] |
|
956 //--------------------------------------------------------------------------------------------- |
|
957 // Test 9 - Set idle softkey image |
|
958 [Test] |
|
959 title IS_SET_IMAGE_WEB |
|
960 create ThemesTest ttest |
|
961 ttest LoadL 10207832 |
|
962 |
|
963 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/WebTargets/WebTarget1/Image" IM="image/jpeg" ES=0 IF="z:\testframework\IsAdapter\dontpush.jpg" |
|
964 ttest UpdateLeafObjectL URI="Customization/IdleSoftkeys/SoftKeys/Softkey1/TargetRef" IM="text/plain" ES=0 IT="Customization/IdleSoftkeys/WebTargets/WebTarget1" |
|
965 delete ttest |
|
966 [Endtest] |
|
967 //--------------------------------------------------------------------------------------------- |
|
968 // Test 10 - Get idle softkey image |
|
969 [Test] |
|
970 title IS_GET_IMAGE |
|
971 create ThemesTest ttest |
|
972 ttest LoadL 10207832 |
|
973 |
|
974 ttest FetchLeafObjectL URI="Customization/IdleSoftkeys/Targets/Target1/Image" ES=0 |
|
975 |
|
976 delete ttest |
|
977 [Endtest] |
|
978 //--------------------------------------------------------------------------------------------- |
|
979 // EOF |