|
1 # |
|
2 # Copyright (c) 2008-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 the License "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: Metadata Engine API tests |
|
15 # |
|
16 |
|
17 // --------------------------------------------------------------------------- |
|
18 // Metadata Engine API test cases |
|
19 // --------------------------------------------------------------------------- |
|
20 |
|
21 // These should be run in sequential mode if several cases are run at the same |
|
22 // time! |
|
23 |
|
24 [Define] |
|
25 KErrNotFound -1 |
|
26 KErrGeneral -2 |
|
27 KErrNotSupported -5 |
|
28 KErrArgument -6 |
|
29 KErrCorrupt -20 |
|
30 KErrAccessDenied -21 |
|
31 KErrLocked -22 |
|
32 KErrAlreadyExists -11 |
|
33 |
|
34 KErrIncorrectType = -36201 |
|
35 |
|
36 KLast -1; |
|
37 |
|
38 KById 0 |
|
39 KByUri 1 |
|
40 KByGuid 2 |
|
41 KByIds 3 |
|
42 KByDef 4 |
|
43 KByIndex 5 |
|
44 |
|
45 KAsync 0 |
|
46 KSync 1 |
|
47 |
|
48 KL 0 |
|
49 KLC 1 |
|
50 |
|
51 EFalse 0 |
|
52 ETrue 1 |
|
53 |
|
54 ESession 0 |
|
55 EObjectDef 1 |
|
56 ERelationDef 2 |
|
57 EPropertyDef 3 |
|
58 EEventDef 4 |
|
59 ENamespaceDef 5 |
|
60 EObject 6 |
|
61 ERelation 7 |
|
62 EProperty 8 |
|
63 EEvent 9 |
|
64 |
|
65 ENotifyAdd 1 |
|
66 ENotifyModify 2 |
|
67 ENotifyRemove 4 |
|
68 |
|
69 ESortDescending 0 |
|
70 ESortAscending 1 |
|
71 |
|
72 // enum TOrderRuleType |
|
73 EOrderRuleTypeItemID 1 |
|
74 EOrderRuleTypeObjectURI 2 |
|
75 EOrderRuleTypeObjectDef 3 |
|
76 EOrderRuleTypeProperty 4 |
|
77 EOrderRuleTypeCreationTime 5 |
|
78 EOrderRuleTypeUsageCount 6 |
|
79 EOrderRuleTypeSourceURI 7 |
|
80 EOrderRuleTypeParticipantURI 8 |
|
81 EOrderRuleTypeTargetObjectID 9 |
|
82 EOrderRuleTypeEventDef 10 |
|
83 EOrderRuleTypeParameterValue 11 |
|
84 EOrderRuleTypeLeftObjectID 12 |
|
85 EOrderRuleTypeRightObjectID 13 |
|
86 EOrderRuleTypeRelationDef 14 |
|
87 |
|
88 KNoNegate 0 |
|
89 KNegate 1 |
|
90 |
|
91 EOther 0 |
|
92 ECamera 1 |
|
93 EDownloaded 2 |
|
94 ESideLoaded 3 |
|
95 ERecorded 4 |
|
96 |
|
97 ELogicConditionOperatorAnd 1 |
|
98 ELogicConditionOperatorOr 2 |
|
99 |
|
100 EAlbumUser 0 |
|
101 EAlbumUserPredefined 1 |
|
102 EAlbumSystemFavourite 2 |
|
103 |
|
104 [Enddefine] |
|
105 |
|
106 [Test] |
|
107 title Observer 1: Add*ObserverL, Remove*ObserverL |
|
108 create MdETestScripter test |
|
109 waittestclass test |
|
110 test AddSchemaObserverL |
|
111 test RemoveSchemaObserverL |
|
112 allownextresult KErrNotFound |
|
113 test RemoveSchemaObserverL |
|
114 test AddObjectObserverL |
|
115 test RemoveObjectObserverL |
|
116 allownextresult KErrNotFound |
|
117 test RemoveObjectObserverL |
|
118 test AddObjectPresentObserverL |
|
119 test RemoveObjectPresentObserverL |
|
120 allownextresult KErrNotFound |
|
121 test RemoveObjectPresentObserverL |
|
122 test AddRelationObserverL |
|
123 test RemoveRelationObserverL |
|
124 allownextresult KErrNotFound |
|
125 test RemoveRelationObserverL |
|
126 test AddRelationItemObserverL |
|
127 test RemoveRelationItemObserverL |
|
128 allownextresult KErrNotFound |
|
129 test RemoveRelationItemObserverL |
|
130 test AddRelationPresentObserverL |
|
131 test RemoveRelationPresentObserverL |
|
132 allownextresult KErrNotFound |
|
133 test RemoveRelationPresentObserverL |
|
134 test AddEventObserverL |
|
135 test RemoveEventObserverL |
|
136 allownextresult KErrNotFound |
|
137 test RemoveEventObserverL |
|
138 delete test |
|
139 [Endtest] |
|
140 |
|
141 [Test] |
|
142 title Schema 1: ImportMetadataL, ExportMetadataL |
|
143 create MdETestScripter test |
|
144 waittestclass test |
|
145 test GetDefaultNamespaceDefL defaultNs |
|
146 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
147 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_01.mde KSync EFalse EFalse EFalse |
|
148 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_02.mde KSync EFalse EFalse ETrue |
|
149 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_03.mde KSync EFalse ETrue EFalse |
|
150 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_04.mde KSync EFalse ETrue ETrue |
|
151 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_05.mde KSync ETrue EFalse EFalse |
|
152 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_06.mde KSync ETrue EFalse ETrue |
|
153 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_07.mde KSync ETrue ETrue EFalse |
|
154 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_08.mde KSync ETrue ETrue ETrue |
|
155 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KAsync |
|
156 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_11.mde KAsync EFalse EFalse EFalse |
|
157 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_12.mde KAsync EFalse EFalse ETrue |
|
158 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_13.mde KAsync EFalse ETrue EFalse |
|
159 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_14.mde KAsync EFalse ETrue ETrue |
|
160 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_15.mde KAsync ETrue EFalse EFalse |
|
161 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_16.mde KAsync ETrue EFalse ETrue |
|
162 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_17.mde KAsync ETrue ETrue EFalse |
|
163 test ExportMetadataL defaultNs \Data\MdETestScripterExportMetadata1_18.mde KAsync ETrue ETrue ETrue |
|
164 delete test |
|
165 [Endtest] |
|
166 |
|
167 [Test] |
|
168 title Schema 2: ImportSchemaL, NamespaceDefCountL |
|
169 create MdETestScripter test |
|
170 waittestclass test |
|
171 test ImportSchemaL \Data\MDETestScripterSchema.mde |
|
172 allowerrorcodes KErrCorrupt |
|
173 test ImportSchemaL \Data\MdETestScripterSchema2.mde |
|
174 test NamespaceDefCountL 3 |
|
175 test LoadSchemaL |
|
176 test EngineSessionL |
|
177 test GetSchemaVersionL 1 0 |
|
178 delete test |
|
179 [Endtest] |
|
180 |
|
181 [Test] |
|
182 title Schema 3: GetNamespaceDefL, GetDefaultNamespaceDefL, NamespaceDefL, CompareL, NameL, ReadOnlyL |
|
183 create MdETestScripter test |
|
184 waittestclass test |
|
185 test GetNamespaceDefL ns "http:\/\/sw.nokia.com/MdE" |
|
186 test NameL ENamespaceDef ns "http:\/\/sw.nokia.com/MdE" |
|
187 test GetDefaultNamespaceDefL defaultNs |
|
188 test NameL ENamespaceDef defaultNs "http:\/\/sw.nokia.com/MdE" |
|
189 test NamespaceDefL ns2 ESession 0 |
|
190 test NameL ENamespaceDef ns2 "http:\/\/sw.nokia.com/MdE" |
|
191 test CompareL ENamespaceDef ns defaultNs 0 |
|
192 test CompareL ENamespaceDef defaultNs ns 0 |
|
193 test ReadOnlyL ENamespaceDef defaultNs EFalse |
|
194 delete test |
|
195 [Endtest] |
|
196 |
|
197 [Test] |
|
198 title Schema 4: SetObjectToPresentByGuidL |
|
199 create MdETestScripter test |
|
200 waittestclass test |
|
201 allownextresult KErrNotFound |
|
202 test SetObjectToPresentByGuidL 123 456 |
|
203 delete test |
|
204 [Endtest] |
|
205 |
|
206 [Test] |
|
207 title Definitions 1: AddRelationDefL |
|
208 create MdETestScripter test |
|
209 waittestclass test |
|
210 allowerrorcodes KErrCorrupt |
|
211 test ImportSchemaL \Data\MdETestScripterSchema2.mde |
|
212 test GetNamespaceDefL testNs "http:\/\/sw.nokia.com/MdE/TestSchema2" |
|
213 test AddSchemaObserverL |
|
214 request ESchemaModified |
|
215 allowerrorcodes KErrAlreadyExists |
|
216 test AddRelationDefL testNs TestRelation |
|
217 wait ESchemaModified |
|
218 release ESchemaModified |
|
219 test ResetNamespaceDefArray |
|
220 test GetNamespaceDefL testNs "http:\/\/sw.nokia.com/MdE/TestSchema2" |
|
221 test GetRelationDefL relationDef testNs TestRelation |
|
222 // Relation name must only be characters |
|
223 allownextresult KErrGeneral |
|
224 test AddRelationDefL testNs TestRelation1 |
|
225 delete test |
|
226 [Endtest] |
|
227 |
|
228 [Test] |
|
229 title Definitions 2: AddEventDefL |
|
230 create MdETestScripter test |
|
231 waittestclass test |
|
232 allowerrorcodes KErrCorrupt |
|
233 test ImportSchemaL \Data\MdETestScripterSchema2.mde |
|
234 test GetNamespaceDefL testNs "http:\/\/sw.nokia.com/MdE/TestSchema2" |
|
235 test AddSchemaObserverL |
|
236 request ESchemaModified |
|
237 allowerrorcodes KErrAlreadyExists |
|
238 test AddEventDefL testNs TestEvent |
|
239 wait ESchemaModified |
|
240 release ESchemaModified |
|
241 test ResetNamespaceDefArray |
|
242 test GetNamespaceDefL testNs "http:\/\/sw.nokia.com/MdE/TestSchema2" |
|
243 test GetEventDefL eventDef testNs TestEvent |
|
244 // Relation name must only be characters |
|
245 allownextresult KErrGeneral |
|
246 test AddEventDefL testNs TestEvent1 |
|
247 delete test |
|
248 [Endtest] |
|
249 |
|
250 [Test] |
|
251 title Definitions 3: GetRelationDefL, RelationDefL, RelationDefCountL, GetEventDefL, EventDefL, EventDefCountL |
|
252 create MdETestScripter test |
|
253 waittestclass test |
|
254 test GetDefaultNamespaceDefL defaultNs |
|
255 test GetRelationDefL relDefContains defaultNs Contains |
|
256 test GetRelationDefL relDefReplaces defaultNs Replaces |
|
257 test GetRelationDefL relDefIsVersionOf defaultNs IsVersionOf |
|
258 test GetRelationDefL relDefRequiresf defaultNs Requires |
|
259 test GetRelationDefL relDefUses defaultNs Uses |
|
260 test GetRelationDefL relDefReferences defaultNs References |
|
261 test GetRelationDefL relDefSummarises defaultNs Summarises |
|
262 test GetRelationDefL relDefContainsLocation defaultNs ContainsLocation |
|
263 loop 8 |
|
264 test RelationDefL relDefARRAY_INDEX defaultNs LOOP_COUNTER |
|
265 endloop |
|
266 test RelationDefCountL defaultNs 8 |
|
267 test GetEventDefL eventDefCreated defaultNs Created |
|
268 test GetEventDefL eventDefDeleted defaultNs Deleted |
|
269 test GetEventDefL eventDefOpened defaultNs Opened |
|
270 test GetEventDefL eventDefPlayed defaultNs Played |
|
271 test GetEventDefL eventDefEdited defaultNs Edited |
|
272 test GetEventDefL eventDefSent defaultNs Sent |
|
273 test GetEventDefL eventDefReceived defaultNs Received |
|
274 loop 7 |
|
275 test EventDefL eventDefARRAY_INDEX defaultNs LOOP_COUNTER |
|
276 endloop |
|
277 test EventDefCountL defaultNs 7 |
|
278 test NamespaceDefL ns1 ERelationDef relDefContains |
|
279 test NamespaceDefL ns2 EEventDef eventDefCreated |
|
280 delete test |
|
281 [Endtest] |
|
282 |
|
283 [Test] |
|
284 title Definitions 4: GetObjectDefL, GetPropertyDefL, ReadOnlyL, MandatoryL, NameL |
|
285 create MdETestScripter test |
|
286 waittestclass test |
|
287 test GetDefaultNamespaceDefL defaultNs |
|
288 test GetObjectDefL objectDefLocation defaultNs Location |
|
289 test GetObjectDefL objectDefCalendar defaultNs Calendar |
|
290 test GetObjectDefL objectDefContact defaultNs Contact |
|
291 test GetObjectDefL objectDefMessage defaultNs Message |
|
292 test GetObjectDefL objectDefAlbum defaultNs Album |
|
293 test GetObjectDefL objectDefTag defaultNs Tag |
|
294 test GetObjectDefL objectDefMediaObject defaultNs MediaObject |
|
295 test GetObjectDefL objectDefVideo defaultNs Video |
|
296 test ParentL objectDefVideo objectDefMediaObject |
|
297 test PropertyDefCountL objectDefVideo 5 |
|
298 test PropertyDefL propDefVideo0 defaultNs objectDefVideo 0 |
|
299 allownextresult KErrArgument |
|
300 test PropertyDefL propDefErr defaultNs objectDefVideo -1 |
|
301 test GetPropertyDefL videoCreationDatePropDef objectDefVideo CreationDate |
|
302 test NameL EPropertyDef videoCreationDatePropDef "CreationDate" |
|
303 test ReadOnlyL EPropertyDef videoCreationDatePropDef EFalse |
|
304 test MandatoryL videoCreationDatePropDef ETrue |
|
305 test ObjectDefL EPropertyDef objectDefVideo2 videoCreationDatePropDef |
|
306 test GetPropertyDefL lastModifiedDatePropDef objectDefVideo LastModifiedDate |
|
307 test NameL EPropertyDef lastModifiedDatePropDef "LastModifiedDate" |
|
308 test ReadOnlyL EPropertyDef lastModifiedDatePropDef EFalse |
|
309 test MandatoryL lastModifiedDatePropDef ETrue |
|
310 test ObjectDefL EPropertyDef objectDefVideo3 lastModifiedDatePropDef |
|
311 test GetObjectDefL objectDefImage defaultNs Image |
|
312 test ParentL objectDefImage objectDefMediaObject |
|
313 test GetPropertyDefL imageCreationDatePropDef objectDefImage CreationDate |
|
314 test NameL EPropertyDef imageCreationDatePropDef "CreationDate" |
|
315 test ReadOnlyL EPropertyDef imageCreationDatePropDef EFalse |
|
316 test ObjectDefL EPropertyDef objectDefImage2 imageCreationDatePropDef |
|
317 test MandatoryL imageCreationDatePropDef ETrue |
|
318 test GetPropertyDefL imageLastModifiedDatePropDef objectDefImage LastModifiedDate |
|
319 test NameL EPropertyDef imageLastModifiedDatePropDef "LastModifiedDate" |
|
320 test ReadOnlyL EPropertyDef imageLastModifiedDatePropDef EFalse |
|
321 test ObjectDefL EPropertyDef objectDefImage3 imageLastModifiedDatePropDef |
|
322 test MandatoryL imageLastModifiedDatePropDef ETrue |
|
323 test GetObjectDefL audioObjDef defaultNs Audio |
|
324 test GetPropertyDefL audioCreationDatePropDef audioObjDef CreationDate |
|
325 test NameL EPropertyDef audioCreationDatePropDef "CreationDate" |
|
326 test ReadOnlyL EPropertyDef audioCreationDatePropDef EFalse |
|
327 test ObjectDefL EPropertyDef audioObjDef2 audioCreationDatePropDef |
|
328 test MandatoryL audioCreationDatePropDef ETrue |
|
329 test GetPropertyDefL audioLastModifiedDatePropDef audioObjDef LastModifiedDate |
|
330 test NameL EPropertyDef audioLastModifiedDatePropDef "LastModifiedDate" |
|
331 test ReadOnlyL EPropertyDef audioLastModifiedDatePropDef EFalse |
|
332 test ObjectDefL EPropertyDef audioObjDef3 audioLastModifiedDatePropDef |
|
333 test MandatoryL audioLastModifiedDatePropDef ETrue |
|
334 test GetObjectDefL objectDefTrackLog defaultNs TrackLog |
|
335 test ObjectDefCountL defaultNs 12 |
|
336 test NamespaceDefL ns1 EPropertyDef videoCreationDatePropDef |
|
337 delete test |
|
338 [Endtest] |
|
339 |
|
340 [Test] |
|
341 title Edit Object 1: NewObjectL |
|
342 create MdETestScripter test |
|
343 waittestclass test |
|
344 test GetDefaultNamespaceDefL defaultNs |
|
345 test GetObjectDefL videoObjDef defaultNs Video |
|
346 test NewObjectL obj0 videoObjDef KL |
|
347 test NewObjectL obj1 videoObjDef KLC |
|
348 delete test |
|
349 [Endtest] |
|
350 |
|
351 [Test] |
|
352 title Edit Object 2: OpenObjectL, CancelObjectL, OpenForModificationsL, MovePropertiesL, CommitObjectL |
|
353 create MdETestScripter test |
|
354 waittestclass test |
|
355 test GetDefaultNamespaceDefL defaultNs |
|
356 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
357 test GetObjectDefL videoObjDef defaultNs Video |
|
358 test NewObjectL obj0 videoObjDef KL |
|
359 test SetUriL obj0 e:\testing\data\test2video1.3gp |
|
360 test OpenForModificationsL obj0 ETrue |
|
361 test OpenObjectL obj1 obj0 KByUri ENamespaceDef defaultNs |
|
362 test OpenForModificationsL obj1 ETrue |
|
363 allownextresult KErrLocked |
|
364 test OpenObjectL objNone obj1 KByUri ENamespaceDef defaultNs |
|
365 // objNone does not exist because open failed |
|
366 test CancelObjectL obj1 |
|
367 test OpenForModificationsL obj1 EFalse |
|
368 allownextresult KErrAccessDenied |
|
369 test MovePropertiesL obj0 obj1 |
|
370 test OpenObjectL obj2 obj1 KByUri ENamespaceDef defaultNs |
|
371 test SetMediaIdL obj2 121212 |
|
372 test CommitObjectL obj2 |
|
373 test OpenObjectL obj3 obj1 KByGuid ENamespaceDef defaultNs |
|
374 test CommitObjectL obj3 |
|
375 test OpenObjectL obj4 obj1 KById ENamespaceDef defaultNs |
|
376 test CommitObjectL obj4 |
|
377 test OpenObjectL obj5 obj1 KByUri EObjectDef videoObjDef |
|
378 test CommitObjectL obj5 |
|
379 test OpenObjectL obj6 obj1 KByGuid EObjectDef videoObjDef |
|
380 test CommitObjectL obj6 |
|
381 test OpenObjectL obj7 obj1 KById EObjectDef videoObjDef |
|
382 test SetGuidL EObject obj7 000002 000001 |
|
383 test CommitObjectL obj7 |
|
384 delete test |
|
385 [Endtest] |
|
386 |
|
387 [Test] |
|
388 title Edit Object 3: CommitObjectsL |
|
389 create MdETestScripter test |
|
390 waittestclass test |
|
391 test GetDefaultNamespaceDefL defaultNs |
|
392 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
393 test GetObjectDefL videoObjDef defaultNs Video |
|
394 test NewObjectL obj0 videoObjDef KL |
|
395 test SetUriL obj0 e:\testing\data\test3video1.3gp |
|
396 test OpenObjectL obj1 obj0 KByUri ENamespaceDef defaultNs |
|
397 test SetUriL obj0 e:\testing\data\test3video2.mp4 |
|
398 test OpenObjectL obj2 obj0 KByUri ENamespaceDef defaultNs |
|
399 // Commit two objects at starting from obj1 which created before obj2 |
|
400 test SetGuidL EObject obj2 000003 000002 |
|
401 test CommitObjectsL obj1 2 |
|
402 delete test |
|
403 [Endtest] |
|
404 |
|
405 [Test] |
|
406 title Edit Object 4: OpenFullObjectL |
|
407 create MdETestScripter test |
|
408 waittestclass test |
|
409 test GetDefaultNamespaceDefL defaultNs |
|
410 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
411 test GetObjectDefL videoObjDef defaultNs Video |
|
412 test NewObjectL obj0 videoObjDef KL |
|
413 test SetUriL obj0 e:\testing\data\test4video1.3gp |
|
414 test OpenFullObjectL obj1 obj0 KByUri |
|
415 allownextresult KErrLocked |
|
416 test OpenFullObjectL objNone obj0 KByUri |
|
417 // objNone does not exist because open failed |
|
418 test CancelObjectL obj1 |
|
419 test OpenFullObjectL obj2 obj1 KByUri |
|
420 test CommitObjectL obj2 |
|
421 test OpenFullObjectL obj3 obj1 KByGuid |
|
422 test CommitObjectL obj3 |
|
423 test OpenFullObjectL obj4 obj1 KById |
|
424 test SetGuidL EObject obj4 000004 000001 |
|
425 test CommitObjectL obj4 |
|
426 delete test |
|
427 [Endtest] |
|
428 |
|
429 [Test] |
|
430 title Edit Object 5: GetObjectL |
|
431 create MdETestScripter test |
|
432 waittestclass test |
|
433 test GetDefaultNamespaceDefL defaultNs |
|
434 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
435 test GetObjectDefL videoObjDef defaultNs Video |
|
436 test NewObjectL obj0 videoObjDef KL |
|
437 test SetUriL obj0 e:\testing\data\testvideo2.mp4 |
|
438 test GetObjectL obj1 obj0 KByUri EObjectDef videoObjDef |
|
439 test GetObjectL obj2 obj1 KById EObjectDef videoObjDef |
|
440 test GetObjectL obj3 obj1 KByGuid EObjectDef videoObjDef |
|
441 test GetObjectL obj4 obj1 KByUri ENamespaceDef defaultNs |
|
442 test GetObjectL obj5 obj1 KById ENamespaceDef defaultNs |
|
443 test GetObjectL obj6 obj1 KByGuid ENamespaceDef defaultNs |
|
444 delete test |
|
445 [Endtest] |
|
446 |
|
447 [Test] |
|
448 title Edit Object 6: GetFullObjectL |
|
449 create MdETestScripter test |
|
450 waittestclass test |
|
451 test GetDefaultNamespaceDefL defaultNs |
|
452 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
453 test GetObjectDefL videoObjDef defaultNs Video |
|
454 test NewObjectL obj0 videoObjDef KL |
|
455 test SetUriL obj0 e:\testing\data\testvideo2.mp4 |
|
456 test GetFullObjectL obj1 videoObjDef obj0 KByUri |
|
457 test GetFullObjectL obj2 videoObjDef obj1 KById |
|
458 test GetFullObjectL obj3 videoObjDef obj1 KByGuid |
|
459 delete test |
|
460 [Endtest] |
|
461 |
|
462 [Test] |
|
463 title Edit Object 7: AddObjectL, AddObjectsL, RemoveObjectL |
|
464 create MdETestScripter test |
|
465 waittestclass test |
|
466 test GetDefaultNamespaceDefL defaultNs |
|
467 |
|
468 // Create four objects. |
|
469 test GetObjectDefL videoObjDef defaultNs Video |
|
470 test NewObjectL obj0 videoObjDef KL |
|
471 test GetPropertyDefL creaDatePropDef0 videoObjDef CreationDate |
|
472 test AddTimePropertyL obj0 creaDatePropDef0 20081130:235959.999999 |
|
473 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
474 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
475 test SetGuidL EObject obj0 000007 000001 |
|
476 test NewObjectL obj1 videoObjDef KL |
|
477 test GetPropertyDefL creaDatePropDef1 videoObjDef CreationDate |
|
478 test AddTimePropertyL obj1 creaDatePropDef1 20081130:235959.999999 |
|
479 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
480 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
481 test SetGuidL EObject obj1 000007 000002 |
|
482 test NewObjectL obj2 videoObjDef KL |
|
483 test GetPropertyDefL creaDatePropDef2 videoObjDef CreationDate |
|
484 test AddTimePropertyL obj2 creaDatePropDef2 20081130:235959.999999 |
|
485 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
486 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
487 test SetGuidL EObject obj2 000007 000003 |
|
488 test NewObjectL obj3 videoObjDef KL |
|
489 test GetPropertyDefL creaDatePropDef3 videoObjDef CreationDate |
|
490 test AddTimePropertyL obj3 creaDatePropDef3 20081130:235959.999999 |
|
491 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
492 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
493 test SetGuidL EObject obj3 000007 000004 |
|
494 |
|
495 // Add the objects to the database, observe the additions and verify the observed results. |
|
496 test AddObjectObserverL |
|
497 test AddObjectL obj0 |
|
498 waittestclass test |
|
499 test VerifyObserverNotificationTypeL ENotifyAdd |
|
500 test AddObjectsL obj1 3 |
|
501 waittestclass test |
|
502 test VerifyObserverNotificationTypeL ENotifyAdd |
|
503 test RemoveObjectObserverL |
|
504 test VerifyTItemIdsL EObject 0 4 |
|
505 |
|
506 // Remove the objects, observe the removals and verify the observed results. |
|
507 test AddObjectObserverL |
|
508 test RemoveObjectL obj0 KById |
|
509 waittestclass test |
|
510 test VerifyObserverNotificationTypeL ENotifyRemove |
|
511 test RemoveObjectL obj1 KById |
|
512 waittestclass test |
|
513 test VerifyObserverNotificationTypeL ENotifyRemove |
|
514 test RemoveObjectL obj2 KById |
|
515 waittestclass test |
|
516 test VerifyObserverNotificationTypeL ENotifyRemove |
|
517 test RemoveObjectL obj3 KById |
|
518 waittestclass test |
|
519 test VerifyObserverNotificationTypeL ENotifyRemove |
|
520 test RemoveObjectObserverL |
|
521 test VerifyTItemIdsL EObject 0 4 |
|
522 |
|
523 // Final cleanup. |
|
524 delete test |
|
525 [Endtest] |
|
526 |
|
527 [Test] |
|
528 title Edit Object 8: CheckObjectL |
|
529 create MdETestScripter test |
|
530 waittestclass test |
|
531 test GetDefaultNamespaceDefL defaultNs |
|
532 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
533 test GetObjectDefL videoObjDef defaultNs Video |
|
534 test NewObjectL obj0 videoObjDef KL |
|
535 test SetUriL obj0 e:\testing\data\testvideo2.mp4 |
|
536 test GetObjectL obj1 obj0 KByUri EObjectDef videoObjDef |
|
537 test SetUriL obj0 e:\testing\data\testvideo1.3gp |
|
538 test GetObjectL obj2 obj0 KByUri EObjectDef videoObjDef |
|
539 test CheckObjectL obj1 KByUri |
|
540 test CheckObjectL obj1 KById |
|
541 test CheckObjectL obj1 KByIds 2 |
|
542 delete test |
|
543 [Endtest] |
|
544 |
|
545 [Test] |
|
546 title Edit Object 9: MovePropertiesL, PropertyCountL |
|
547 create MdETestScripter test |
|
548 waittestclass test |
|
549 test GetDefaultNamespaceDefL defaultNs |
|
550 test GetObjectDefL videoObjDef defaultNs Video |
|
551 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
552 test GetPropertyDefL lastModDatePropDef videoObjDef LastModifiedDate |
|
553 test GetPropertyDefL durationPropDef videoObjDef Duration |
|
554 test GetPropertyDefL sizePropDef videoObjDef Size |
|
555 test NewObjectL obj0 videoObjDef KL |
|
556 test SetUriL obj0 e:\testing\data\test9video0.mp4 |
|
557 test AddTimePropertyL obj0 creationDatePropDef 20090611:235959.999999 |
|
558 test AddTimePropertyL obj0 lastModDatePropDef 20090611:235959.999999 |
|
559 test AddReal32PropertyL obj0 durationPropDef 30 |
|
560 test AddUint32PropertyL obj0 sizePropDef 999999 |
|
561 test AddObjectL obj0 |
|
562 test NewObjectL obj1 videoObjDef KL |
|
563 test SetUriL obj1 e:\testing\data\test9video0.mp4 |
|
564 test GetObjectL obj2 obj1 KByUri EObjectDef videoObjDef |
|
565 test SetGuidL EObject obj2 000009 000001 |
|
566 test PropertyCountL EObject obj2 4 |
|
567 test MovePropertiesL obj2 obj1 |
|
568 test PropertyCountL EObject obj2 0 |
|
569 test PropertyCountL EObject obj1 4 |
|
570 test GetPropertyDefL creaDatePropDef0 videoObjDef CreationDate |
|
571 test PropertyCountL EPropertyDef obj1 creaDatePropDef0 1 |
|
572 test SetUriL obj1 e:\testing\data\test9video1.mp4 |
|
573 test AddObjectL obj1 |
|
574 test RemoveObjectsL KSync KById obj0 2 1 |
|
575 delete test |
|
576 [Endtest] |
|
577 |
|
578 [Test] |
|
579 title Edit Object 10: Add*PropertyL, Set*ValueL, RemovePropertyL, PropertyL |
|
580 create MdETestScripter test |
|
581 waittestclass test |
|
582 test GetDefaultNamespaceDefL defaultNs |
|
583 test GetObjectDefL videoObjDef defaultNs Video |
|
584 test NewObjectL obj0 videoObjDef KL |
|
585 test SetUriL KLast e:\testing\data\test10video2.mp4 |
|
586 test GetPropertyDefL creaDatePropDef0 videoObjDef CreationDate |
|
587 test AddTimePropertyL obj0 creaDatePropDef0 20081130:235959.999999 |
|
588 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
589 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
590 test GetPropertyDefL titleDef videoObjDef Title |
|
591 test AddTextPropertyL obj0 titleDef "Testi" |
|
592 test GetPropertyDefL descrDef videoObjDef Description |
|
593 test AddTextPropertyL obj0 descrDef "Testi" |
|
594 test GetPropertyDefL commentDef videoObjDef Comment |
|
595 test AddTextPropertyL obj0 commentDef "Testi" |
|
596 test GetPropertyDefL ratingDef videoObjDef Rating |
|
597 test AddUint8PropertyL obj0 ratingDef 3 |
|
598 test GetPropertyDefL genreDef videoObjDef Genre |
|
599 test AddTextPropertyL obj0 genreDef "Testi" |
|
600 test GetPropertyDefL copyrightDef videoObjDef Copyright |
|
601 test AddTextPropertyL obj0 copyrightDef "Testi" |
|
602 test GetPropertyDefL authorDef videoObjDef Author |
|
603 test AddTextPropertyL obj0 authorDef "Testi" |
|
604 test GetPropertyDefL bitrateDef videoObjDef Bitrate |
|
605 test AddUint16PropertyL obj0 bitrateDef 32 |
|
606 test GetPropertyDefL framerateDef videoObjDef Framerate |
|
607 test AddReal32PropertyL obj0 framerateDef 32 |
|
608 test PropertyCountL EObject obj0 11 |
|
609 test SetGuidL EObject obj0 000010 000001 |
|
610 test AddObjectL obj0 |
|
611 loop 11 |
|
612 test PropertyL propARRAY_INDEX KByDef obj0 LOOP_COUNTER 0 |
|
613 test BelongsToSessionL EProperty KLast ETrue |
|
614 test InDatabaseL EProperty KLast ETrue |
|
615 test DefL defARRAY_INDEX EPropertyDef KLast |
|
616 test CompareL EPropertyDef KLast LOOP_COUNTER 0 |
|
617 endloop |
|
618 loop 11 |
|
619 test PropertyL prop2_ARRAY_INDEX KByIndex obj0 LOOP_COUNTER |
|
620 endloop |
|
621 // Test out of range index parameters to PropertyL |
|
622 allownextresult KErrArgument |
|
623 test PropertyL propErr KByIndex obj0 -1 |
|
624 allownextresult KErrArgument |
|
625 test PropertyL propErr KByIndex obj0 12 |
|
626 test SetTextValueL prop2 "Testi2" |
|
627 test SetTextValueL prop3 "Testi2" |
|
628 test SetTextValueL prop4 "Testi2" |
|
629 test SetUint8ValueL prop5 4 |
|
630 test SetTextValueL prop6 "Testi2" |
|
631 test SetTextValueL prop7 "Testi2" |
|
632 test SetTextValueL prop8 "Testi2" |
|
633 test SetUint16ValueL prop9 16 |
|
634 test SetReal32ValueL prop10 16 |
|
635 test PropertyCountL EObject obj0 11 |
|
636 loop 11 |
|
637 test ObjectL LOOP_COUNTER obj0 |
|
638 endloop |
|
639 test OpenObjectL obj1 obj0 KById ENamespaceDef defaultNs |
|
640 test RemovePropertyL obj1 Title |
|
641 test RemovePropertyL obj1 Description |
|
642 test RemovePropertyL obj1 Comment |
|
643 test RemovePropertyL obj1 Rating |
|
644 test RemovePropertyL obj1 Genre |
|
645 test RemovePropertyL obj1 Copyright |
|
646 test RemovePropertyL obj1 Author |
|
647 test RemovePropertyL obj1 Bitrate |
|
648 test RemovePropertyL obj1 Framerate |
|
649 test PropertyCountL EObject obj1 3 |
|
650 test CommitObjectL obj1 |
|
651 test RemoveObjectL obj1 KById |
|
652 delete test |
|
653 [Endtest] |
|
654 |
|
655 [Test] |
|
656 title Edit Object 11: NewRelationL, AddRelationL, RemoveRelationL, SetGuid, GuidL |
|
657 create MdETestScripter test |
|
658 waittestclass test |
|
659 test GetDefaultNamespaceDefL defaultNs |
|
660 |
|
661 // Create two objects and add them to the database. |
|
662 test GetObjectDefL videoObjDef defaultNs Video |
|
663 test NewObjectL obj0 videoObjDef KL |
|
664 test GetPropertyDefL creteDatePropDef0 videoObjDef CreationDate |
|
665 test AddTimePropertyL obj0 creteDatePropDef0 20081130:235959.999999 |
|
666 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
667 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
668 test SetGuidL EObject obj0 000011 000001 |
|
669 test AddObjectL obj0 |
|
670 test NewObjectL obj1 videoObjDef KL |
|
671 test GetPropertyDefL creteDatePropDef1 videoObjDef CreationDate |
|
672 test AddTimePropertyL obj1 creteDatePropDef1 20081130:235959.999999 |
|
673 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
674 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
675 test SetGuidL EObject obj1 000011 000002 |
|
676 test AddObjectL obj1 |
|
677 |
|
678 // Now add some relations between the two objects. |
|
679 test GetRelationDefL relDefContains defaultNs Contains |
|
680 test NewRelationL rel0 obj1 relDefContains obj0 0 KL |
|
681 test SetGuidL ERelation rel0 000011 000101 |
|
682 test GetRelationDefL relDefReplaces defaultNs Replaces |
|
683 test NewRelationL rel1 obj1 relDefReplaces obj0 0 KLC |
|
684 test SetGuidL ERelation rel1 000011 000102 |
|
685 test GetRelationDefL relDefIsVersionOf defaultNs IsVersionOf |
|
686 test NewRelationL rel2 obj1 relDefIsVersionOf obj0 0 KL |
|
687 test SetGuidL ERelation rel2 000011 000103 |
|
688 test GetRelationDefL relDefRequires defaultNs Requires |
|
689 test NewRelationL rel3 obj1 relDefRequires obj0 0 KLC |
|
690 test SetGuidL ERelation rel3 000011 000104 |
|
691 test GetRelationDefL relDefUses defaultNs Uses |
|
692 test NewRelationL rel4 obj1 relDefUses obj0 0 KL |
|
693 test SetGuidL ERelation rel4 000011 000105 |
|
694 test GetRelationDefL relDefReferences defaultNs References |
|
695 test NewRelationL rel5 obj1 relDefReferences obj0 0 KLC |
|
696 test SetGuidL ERelation rel5 000011 000106 |
|
697 test GetRelationDefL relDefSummarises defaultNs Summarises |
|
698 test NewRelationL rel6 obj1 relDefSummarises obj0 0 KL |
|
699 test SetGuidL ERelation rel6 000011 000107 |
|
700 test CompareL ERelationDef relDefContains relDefContains 0 |
|
701 test CompareL ERelationDef relDefReplaces relDefContains 1 |
|
702 |
|
703 // Now add the relations to the database, observe the additions and verify the observed results. |
|
704 test AddRelationObserverL |
|
705 loop 7 |
|
706 test BelongsToSessionL ERelation LOOP_COUNTER EFalse |
|
707 test InDatabaseL ERelation LOOP_COUNTER EFalse |
|
708 test AddRelationL LOOP_COUNTER |
|
709 waittestclass test |
|
710 test VerifyObserverNotificationTypeL ENotifyAdd |
|
711 test BelongsToSessionL ERelation LOOP_COUNTER ETrue |
|
712 test SessionL ERelation LOOP_COUNTER |
|
713 test InDatabaseL ERelation LOOP_COUNTER ETrue |
|
714 endloop |
|
715 test RemoveRelationObserverL |
|
716 test VerifyTItemIdsL ERelation 0 7 |
|
717 |
|
718 test GuidL ERelation rel0 000011 000101 |
|
719 test GuidL ERelation rel1 000011 000102 |
|
720 test GuidL ERelation rel2 000011 000103 |
|
721 test GuidL ERelation rel3 000011 000104 |
|
722 test GuidL ERelation rel4 000011 000105 |
|
723 test GuidL ERelation rel5 000011 000106 |
|
724 test GuidL ERelation rel6 000011 000107 |
|
725 |
|
726 // Remove the relations, observe the removals and verify the observed results. |
|
727 test AddRelationItemObserverL |
|
728 test AddRelationObserverL |
|
729 loop 7 |
|
730 test RemoveRelationL LOOP_COUNTER |
|
731 waittestclass test |
|
732 test VerifyObserverNotificationTypeL ENotifyRemove |
|
733 waittestclass test |
|
734 test VerifyObserverNotificationTypeL ENotifyRemove |
|
735 endloop |
|
736 test RemoveRelationItemObserverL |
|
737 test RemoveRelationObserverL |
|
738 test VerifyMdERelationsL 0 7 |
|
739 |
|
740 // Final cleanup. |
|
741 test RemoveObjectL obj0 KById |
|
742 test RemoveObjectL obj1 KById |
|
743 delete test |
|
744 [Endtest] |
|
745 |
|
746 [Test] |
|
747 title Edit Object 12: NewEventL, AddEventL, GetEventL, RemoveEventL, CompareL, ObjectIdL, TimeL, SourceL, ParticipantL, DefL |
|
748 create MdETestScripter test |
|
749 waittestclass test |
|
750 test GetDefaultNamespaceDefL defaultNs |
|
751 |
|
752 // Create an object and add it to the database. |
|
753 test GetObjectDefL videoObjDef defaultNs Video |
|
754 test NewObjectL obj0 videoObjDef KL |
|
755 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
756 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
757 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
758 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
759 test SetGuidL EObject obj0 000012 000001 |
|
760 test AddObjectL obj0 |
|
761 |
|
762 // Add some events for the object. |
|
763 test GetEventDefL createdEventDef defaultNs Created |
|
764 test NewEventL event0 obj0 createdEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
765 test GetEventDefL deletedEventDef defaultNs Deleted |
|
766 test NewEventL event1 obj0 deletedEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
767 test GetEventDefL opendedEventDef defaultNs Opened |
|
768 test NewEventL event2 obj0 opendedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
769 test GetEventDefL playedEventDef defaultNs Played |
|
770 test NewEventL event3 obj0 playedEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
771 test GetEventDefL editedEventDef defaultNs Edited |
|
772 test NewEventL event4 obj0 editedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
773 test GetEventDefL sentEventDef defaultNs Sent |
|
774 test NewEventL event5 obj0 sentEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
775 test GetEventDefL receivedEventDef defaultNs Received |
|
776 test NewEventL event6 obj0 receivedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
777 |
|
778 // Test some assorted CMdEEvent methods. |
|
779 test DefL eventDef EEventDef event0 |
|
780 // Note: the last parameter to CompareL (in this case 0) is the expected result of the call to *::Compare. |
|
781 test CompareL EEventDef createdEventDef eventDef 0 |
|
782 test ObjectIdL event0 obj0 |
|
783 test TimeL event0 20081130:235959.999999 |
|
784 test SourceL event0 TestSource 0 |
|
785 test ParticipantL event0 TestParticipant 0 |
|
786 test CompareL EEventDef createdEventDef createdEventDef 0 |
|
787 test CompareL EEventDef deletedEventDef createdEventDef 1 |
|
788 |
|
789 // Now add the events to the database, observe the additions and verify the observed results. |
|
790 test AddEventObserverL |
|
791 loop 7 |
|
792 test BelongsToSessionL EEvent LOOP_COUNTER EFalse |
|
793 test InDatabaseL EEvent LOOP_COUNTER EFalse |
|
794 test AddEventL LOOP_COUNTER |
|
795 waittestclass test |
|
796 test VerifyObserverNotificationTypeL ENotifyAdd |
|
797 test BelongsToSessionL EEvent LOOP_COUNTER ETrue |
|
798 test SessionL EEvent LOOP_COUNTER |
|
799 test InDatabaseL EEvent LOOP_COUNTER ETrue |
|
800 endloop |
|
801 test RemoveEventObserverL |
|
802 test VerifyTItemIdsL EEvent 0 7 |
|
803 |
|
804 test GetEventL event7 event0 |
|
805 |
|
806 // Remove the events, observe the removals and verify the observed results. |
|
807 test AddEventObserverL |
|
808 loop 7 |
|
809 test RemoveEventL LOOP_COUNTER |
|
810 waittestclass test |
|
811 test VerifyObserverNotificationTypeL ENotifyRemove |
|
812 endloop |
|
813 test RemoveEventObserverL |
|
814 test VerifyTItemIdsL EEvent 0 7 |
|
815 |
|
816 // Final cleanup. |
|
817 test RemoveObjectL obj0 KById |
|
818 delete test |
|
819 [Endtest] |
|
820 |
|
821 [Test] |
|
822 title Edit Object 13: RemoveEventsL |
|
823 create MdETestScripter test |
|
824 waittestclass test |
|
825 test GetDefaultNamespaceDefL defaultNs |
|
826 |
|
827 // Create an object and add it to the database. |
|
828 test GetObjectDefL videoObjDef defaultNs Video |
|
829 test NewObjectL obj0 videoObjDef KL |
|
830 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
831 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
832 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
833 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
834 test SetGuidL EObject obj0 000013 000001 |
|
835 test AddObjectL obj0 |
|
836 |
|
837 // Add some events for the object. |
|
838 test GetEventDefL createdEventDef defaultNs Created |
|
839 test NewEventL event0 obj0 createdEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
840 test GetEventDefL deletedEventDef defaultNs Deleted |
|
841 test NewEventL event1 obj0 deletedEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
842 test GetEventDefL opendedEventDef defaultNs Opened |
|
843 test NewEventL event2 obj0 opendedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
844 test GetEventDefL playedEventDef defaultNs Played |
|
845 test NewEventL event3 obj0 playedEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
846 test GetEventDefL editedEventDef defaultNs Edited |
|
847 test NewEventL event4 obj0 editedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
848 test GetEventDefL sentEventDef defaultNs Sent |
|
849 test NewEventL event5 obj0 sentEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
850 test GetEventDefL receivedEventDef defaultNs Received |
|
851 test NewEventL event6 obj0 receivedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
852 |
|
853 // Now add the events to the database, observe the additions and verify the observed results. |
|
854 test AddEventObserverL |
|
855 loop 7 |
|
856 test BelongsToSessionL EEvent LOOP_COUNTER EFalse |
|
857 test InDatabaseL EEvent LOOP_COUNTER EFalse |
|
858 test AddEventL LOOP_COUNTER |
|
859 waittestclass test |
|
860 test VerifyObserverNotificationTypeL ENotifyAdd |
|
861 test BelongsToSessionL EEvent LOOP_COUNTER ETrue |
|
862 test SessionL EEvent LOOP_COUNTER |
|
863 test InDatabaseL EEvent LOOP_COUNTER ETrue |
|
864 endloop |
|
865 test RemoveEventObserverL |
|
866 test VerifyTItemIdsL EEvent 0 7 |
|
867 |
|
868 // Remove the events, observe the removals and verify the observed results. |
|
869 test AddEventObserverL |
|
870 test RemoveEventsL KSync event0 3 |
|
871 |
|
872 request EEventsAsyncRemoved |
|
873 test RemoveEventsL KAsync event3 4 |
|
874 wait EEventsAsyncRemoved |
|
875 release EEventsAsyncRemoved |
|
876 |
|
877 // Final cleanup. |
|
878 test RemoveEventObserverL |
|
879 test RemoveObjectL obj0 KById |
|
880 delete test |
|
881 [Endtest] |
|
882 |
|
883 [Test] |
|
884 title Edit Object 14: NewRelationL, AddRelationL, GetRelationL, UpdateRelationL, RemoveRelationL |
|
885 create MdETestScripter test |
|
886 waittestclass test |
|
887 test GetDefaultNamespaceDefL defaultNs |
|
888 |
|
889 // Create two objects and add them to the database. |
|
890 test GetObjectDefL videoObjDef defaultNs Video |
|
891 test NewObjectL obj0 videoObjDef KL |
|
892 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
893 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
894 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
895 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
896 test SetGuidL EObject obj0 000014 000001 |
|
897 test AddObjectL obj0 |
|
898 test NewObjectL obj1 videoObjDef KL |
|
899 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
900 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
901 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
902 test AddTimePropertyL obj1 lastModDatePropDef0 20081130:235959.999999 |
|
903 test SetGuidL EObject obj1 000014 000002 |
|
904 test AddObjectL obj1 |
|
905 |
|
906 // Now add some relations between the two objects. |
|
907 test GetRelationDefL relDefContains defaultNs Contains |
|
908 test NewRelationL rel0 obj1 relDefContains obj0 0 KL |
|
909 test GetRelationDefL relDefReplaces defaultNs Replaces |
|
910 test NewRelationL rel1 obj1 relDefReplaces obj0 0 KLC |
|
911 test GetRelationDefL relDefIsVersionOf defaultNs IsVersionOf |
|
912 test NewRelationL rel2 obj1 relDefIsVersionOf obj0 0 KL |
|
913 test GetRelationDefL relDefRequires defaultNs Requires |
|
914 test NewRelationL rel3 obj1 relDefRequires obj0 0 KLC |
|
915 test GetRelationDefL relDefUses defaultNs Uses |
|
916 test NewRelationL rel4 obj1 relDefUses obj0 0 KL |
|
917 test GetRelationDefL relDefReferences defaultNs References |
|
918 test NewRelationL rel5 obj1 relDefReferences obj0 0 KLC |
|
919 test GetRelationDefL relDefSummarises defaultNs Summarises |
|
920 test NewRelationL rel6 obj1 relDefSummarises obj0 0 KL |
|
921 |
|
922 // Now add the relations to the database. |
|
923 loop 7 |
|
924 test BelongsToSessionL ERelation LOOP_COUNTER EFalse |
|
925 test InDatabaseL ERelation LOOP_COUNTER EFalse |
|
926 test AddRelationL LOOP_COUNTER |
|
927 test BelongsToSessionL ERelation LOOP_COUNTER ETrue |
|
928 test SessionL ERelation LOOP_COUNTER |
|
929 test InDatabaseL ERelation LOOP_COUNTER ETrue |
|
930 endloop |
|
931 |
|
932 // Test UpdateRelationL. |
|
933 test GetRelationL rel7 rel0 |
|
934 test UpdateRelationL 7 |
|
935 |
|
936 // Now remove the relations from the database. |
|
937 loop 7 |
|
938 test RemoveRelationL LOOP_COUNTER |
|
939 endloop |
|
940 |
|
941 // Final cleanup. |
|
942 test RemoveObjectL obj0 KById |
|
943 test RemoveObjectL obj1 KById |
|
944 delete test |
|
945 [Endtest] |
|
946 |
|
947 [Test] |
|
948 title Edit Object 15: LeftObjectIdL, RightObjectIdL, ParameterL, SetParameterL, ... |
|
949 create MdETestScripter test |
|
950 waittestclass test |
|
951 test GetDefaultNamespaceDefL defaultNs |
|
952 |
|
953 // Create three objects and add them to the database. |
|
954 test GetObjectDefL videoObjDef defaultNs Video |
|
955 test NewObjectL obj0 videoObjDef KL |
|
956 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
957 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
958 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
959 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
960 test SetGuidL EObject obj0 000015 000001 |
|
961 test AddObjectL obj0 |
|
962 test NewObjectL obj1 videoObjDef KL |
|
963 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
964 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
965 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
966 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
967 test SetGuidL EObject obj1 000015 000002 |
|
968 test AddObjectL obj1 |
|
969 test NewObjectL obj2 videoObjDef KL |
|
970 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
971 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
972 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
973 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
974 test SetGuidL EObject obj2 000015 000003 |
|
975 test AddObjectL obj2 |
|
976 |
|
977 // Create some relations between obj1 and obj0. |
|
978 test GetRelationDefL relDefContains defaultNs Contains |
|
979 test NewRelationL rel0 obj1 relDefContains obj0 999 KL |
|
980 test GetRelationDefL relDefReplaces defaultNs Replaces |
|
981 test NewRelationL rel1 obj1 relDefReplaces obj0 999 KLC |
|
982 test GetRelationDefL relDefIsVersionOf defaultNs IsVersionOf |
|
983 test NewRelationL rel2 obj1 relDefIsVersionOf obj0 999 KL |
|
984 test GetRelationDefL relDefRequires defaultNs Requires |
|
985 test NewRelationL rel3 obj1 relDefRequires obj0 0 KLC |
|
986 test GetRelationDefL relDefUses defaultNs Uses |
|
987 test NewRelationL rel4 obj1 relDefUses obj0 0 KL |
|
988 test GetRelationDefL relDefReferences defaultNs References |
|
989 test NewRelationL rel5 obj1 relDefReferences obj0 0 KLC |
|
990 test GetRelationDefL relDefSummarises defaultNs Summarises |
|
991 test NewRelationL rel6 obj1 relDefSummarises obj0 0 KL |
|
992 |
|
993 // Test some relation methods. |
|
994 test LeftObjectIdL rel0 obj1 |
|
995 test RightObjectIdL rel0 obj0 |
|
996 test ParameterL rel0 999 |
|
997 test SetParameterL rel0 1000 |
|
998 test ParameterL rel0 1000 |
|
999 allownextresult KErrArgument |
|
1000 test SetLeftObjectIdL rel0 obj0 |
|
1001 test SetLeftObjectIdL rel0 obj2 |
|
1002 allownextresult KErrArgument |
|
1003 test SetRightObjectIdL rel0 obj2 |
|
1004 test SetRightObjectIdL rel0 obj1 |
|
1005 test SetLastModifiedDateL rel0 20101010:235959.999999 |
|
1006 test LastModifiedDateL rel0 20101010:235959.999999 |
|
1007 |
|
1008 // Now add the relations to the database. |
|
1009 loop 7 |
|
1010 test BelongsToSessionL ERelation LOOP_COUNTER EFalse |
|
1011 test InDatabaseL ERelation LOOP_COUNTER EFalse |
|
1012 test AddRelationL LOOP_COUNTER |
|
1013 test BelongsToSessionL ERelation LOOP_COUNTER ETrue |
|
1014 test SessionL ERelation LOOP_COUNTER |
|
1015 test InDatabaseL ERelation LOOP_COUNTER ETrue |
|
1016 endloop |
|
1017 |
|
1018 // Now remove the relations from the database. |
|
1019 test RemoveRelationsL KSync rel0 3 |
|
1020 |
|
1021 request ERelationsAsyncRemoved |
|
1022 test RemoveRelationsL KAsync rel3 4 |
|
1023 wait ERelationsAsyncRemoved |
|
1024 release ERelationsAsyncRemoved |
|
1025 |
|
1026 // Final cleanup. |
|
1027 test RemoveObjectL obj0 KById |
|
1028 test RemoveObjectL obj1 KById |
|
1029 test RemoveObjectL obj2 KById |
|
1030 delete test |
|
1031 [Endtest] |
|
1032 |
|
1033 [Test] |
|
1034 title Edit Object 16: UriL, SetUriL, DefL, SetDefL, CompareL, MediaIdL, ... |
|
1035 create MdETestScripter test |
|
1036 waittestclass test |
|
1037 test GetDefaultNamespaceDefL defaultNs |
|
1038 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
1039 |
|
1040 // Create an object and test some object definition primitives. |
|
1041 test GetObjectDefL objDef defaultNs Object |
|
1042 test GetObjectDefL videoObjDef defaultNs Video |
|
1043 test NewObjectL obj0 videoObjDef KL |
|
1044 test DefL objDef2 EObjectDef obj0 |
|
1045 test CompareL EObjectDef videoObjDef objDef2 0 |
|
1046 allownextresult KErrNotSupported |
|
1047 test SetDefL obj0 videoObjDef |
|
1048 |
|
1049 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1050 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1051 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1052 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1053 test SetGuidL EObject obj0 000016 000001 |
|
1054 |
|
1055 // Test the object's SetUri, Uri, SetMediaId, MediaId, SetConfidential, Confidential, SetPlaceholder and Placeholder methods. |
|
1056 test SetUriL obj0 e:\testing\data\Test16Video1.3gp |
|
1057 test UriL obj0 e:\testing\data\test16video1.3gp |
|
1058 test SetMediaIdL obj0 121212 |
|
1059 test MediaIdL obj0 121212 |
|
1060 test SetConfidentialL obj0 EFalse |
|
1061 test ConfidentialL obj0 EFalse |
|
1062 test SetConfidentialL obj0 ETrue |
|
1063 test ConfidentialL obj0 ETrue |
|
1064 test SetPlaceholderL obj0 EFalse |
|
1065 test PlaceholderL obj0 EFalse |
|
1066 test SetPlaceholderL obj0 ETrue |
|
1067 test PlaceholderL obj0 ETrue |
|
1068 |
|
1069 // Now add the object to the database. |
|
1070 test UsageCountL obj0 0 |
|
1071 test BelongsToSessionL EObject KLast EFalse |
|
1072 test InDatabaseL EObject KLast EFalse |
|
1073 test AddObjectObserverL |
|
1074 test AddObjectL obj0 |
|
1075 waittestclass test |
|
1076 test VerifyObserverNotificationTypeL ENotifyAdd |
|
1077 test RemoveObjectObserverL |
|
1078 test VerifyTItemIdsL EObject 0 1 |
|
1079 test BelongsToSessionL EObject KLast ETrue |
|
1080 test SessionL EObject KLast |
|
1081 test InDatabaseL EObject KLast ETrue |
|
1082 |
|
1083 // Final cleanup. |
|
1084 test RemoveObjectL obj0 KById |
|
1085 delete test |
|
1086 [Endtest] |
|
1087 |
|
1088 [Test] |
|
1089 title Edit Object 17: Create JPG Object |
|
1090 create MdETestScripter test |
|
1091 waittestclass test |
|
1092 test GetDefaultNamespaceDefL defaultNs |
|
1093 test GetObjectDefL imageObjDef defaultNs Image |
|
1094 test NewObjectL obj0 imageObjDef KL |
|
1095 test SetUriL obj0 c:\Test17Image1.jpg |
|
1096 test GetPropertyDefL originPropDef imageObjDef Origin |
|
1097 test AddUint8PropertyL obj0 originPropDef 0 |
|
1098 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
1099 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1100 test GetPropertyDefL lastModDatePropDef0 imageObjDef LastModifiedDate |
|
1101 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1102 test GetPropertyDefL sizePropDef imageObjDef Size |
|
1103 test AddUint32PropertyL obj0 sizePropDef 733064 |
|
1104 test GetPropertyDefL itemTypePropDef imageObjDef ItemType |
|
1105 test AddTextPropertyL obj0 itemTypePropDef "image/jpg" |
|
1106 test GetPropertyDefL drmPropDef imageObjDef DRM |
|
1107 test AddBoolPropertyL obj0 drmPropDef 0 |
|
1108 test GetPropertyDefL releaseDatePropDef imageObjDef ReleaseDate |
|
1109 test AddTimePropertyL obj0 releaseDatePropDef 20081130:235959.999999 |
|
1110 test GetPropertyDefL widthPropDef imageObjDef Width |
|
1111 test AddUint16PropertyL obj0 widthPropDef 1024 |
|
1112 test GetPropertyDefL heightPropDef imageObjDef Height |
|
1113 test AddUint16PropertyL obj0 heightPropDef 768 |
|
1114 test SetGuidL EObject obj0 000017 000001 |
|
1115 test BelongsToSessionL EObject KLast EFalse |
|
1116 test InDatabaseL EObject KLast EFalse |
|
1117 test AddObjectL obj0 |
|
1118 test BelongsToSessionL EObject KLast ETrue |
|
1119 test SessionL EObject KLast |
|
1120 test InDatabaseL EObject KLast ETrue |
|
1121 test RemoveObjectL obj0 KById |
|
1122 delete test |
|
1123 [Endtest] |
|
1124 |
|
1125 [Test] |
|
1126 title Edit Object 18: AddFreeTextL, RemoveFreeTextL, FreeTextCountL, FreeTextL, FreeTextIndexL |
|
1127 create MdETestScripter test |
|
1128 waittestclass test |
|
1129 test GetDefaultNamespaceDefL defaultNs |
|
1130 test GetObjectDefL videoObjDef defaultNs Video |
|
1131 test NewObjectL obj0 videoObjDef KL |
|
1132 test SetUriL obj0 e:\testing\data\Test18Video1.3gp |
|
1133 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
1134 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1135 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1136 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1137 test AddFreeTextL obj0 TestFreeText1 |
|
1138 test FreeTextL obj0 0 TestFreeText1 |
|
1139 test FreeTextIndexL obj0 0 TestFreeText1 |
|
1140 test FreeTextCountL obj0 1 |
|
1141 test RemoveFreeTextL obj0 0 |
|
1142 allowerrorcodes KErrNotFound |
|
1143 test FreeTextIndexL obj0 0 TestFreeText1 |
|
1144 test FreeTextCountL obj0 0 |
|
1145 test AddFreeTextL obj0 TestFreeText1 |
|
1146 test SetGuidL EObject KLast 000018 000001 |
|
1147 test BelongsToSessionL EObject KLast EFalse |
|
1148 test InDatabaseL EObject KLast EFalse |
|
1149 test AddObjectL obj0 |
|
1150 test BelongsToSessionL EObject KLast ETrue |
|
1151 test SessionL EObject KLast |
|
1152 test InDatabaseL EObject KLast ETrue |
|
1153 test RemoveObjectL obj0 KById |
|
1154 delete test |
|
1155 [Endtest] |
|
1156 |
|
1157 [Test] |
|
1158 title Edit Object 19: Create MP3 Object With 8 Text 7 Int Properties |
|
1159 create MdETestScripter test |
|
1160 waittestclass test |
|
1161 test GetDefaultNamespaceDefL defaultNs |
|
1162 test GetObjectDefL audioObjectDef defaultNs Audio |
|
1163 test NewObjectL obj0 audioObjectDef KL |
|
1164 test SetUriL 0 c:\Test19Audio1.mp3 |
|
1165 test GetPropertyDefL creationDatePropDef audioObjectDef CreationDate |
|
1166 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1167 test GetPropertyDefL lastModDatePropDef0 audioObjectDef LastModifiedDate |
|
1168 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1169 test GetPropertyDefL sizePropDef audioObjectDef Size |
|
1170 test AddUint32PropertyL obj0 sizePropDef 5000 |
|
1171 test GetPropertyDefL itemTypePropDef audioObjectDef ItemType |
|
1172 test AddTextPropertyL obj0 itemTypePropDef "audio/mp3" |
|
1173 test GetPropertyDefL titlePropDef audioObjectDef Title |
|
1174 test AddTextPropertyL obj0 titlePropDef "TestMp3" |
|
1175 test GetPropertyDefL drmPropDef audioObjectDef DRM |
|
1176 test AddBoolPropertyL obj0 drmPropDef 1 |
|
1177 test GetPropertyDefL durationPropDef audioObjectDef Duration |
|
1178 test AddReal32PropertyL obj0 durationPropDef 1234 |
|
1179 test GetPropertyDefL trackPropDef audioObjectDef Track |
|
1180 test AddUint16PropertyL obj0 trackPropDef 12 |
|
1181 test GetPropertyDefL descriptionPropDef audioObjectDef Description |
|
1182 test AddTextPropertyL obj0 descriptionPropDef "Ambient noise from street" |
|
1183 test GetPropertyDefL commentPropDef audioObjectDef Comment |
|
1184 test AddTextPropertyL obj0 commentPropDef "No comments." |
|
1185 test GetPropertyDefL genrePropDef audioObjectDef Genre |
|
1186 test AddTextPropertyL obj0 genrePropDef "ambient" |
|
1187 test GetPropertyDefL artistPropDef audioObjectDef Artist |
|
1188 test AddTextPropertyL obj0 artistPropDef "Cars on street" |
|
1189 test GetPropertyDefL albumPropDef audioObjectDef Album |
|
1190 test AddTextPropertyL obj0 albumPropDef "Noises" |
|
1191 test GetPropertyDefL composerPropDef audioObjectDef Composer |
|
1192 test AddTextPropertyL obj0 composerPropDef "Myself" |
|
1193 test SetGuidL EObject obj0 000019 000001 |
|
1194 test BelongsToSessionL EObject KLast EFalse |
|
1195 test InDatabaseL EObject KLast EFalse |
|
1196 test AddObjectL obj0 |
|
1197 test BelongsToSessionL EObject KLast ETrue |
|
1198 test SessionL EObject KLast |
|
1199 test InDatabaseL EObject KLast ETrue |
|
1200 test RemoveObjectL obj0 KById |
|
1201 delete test |
|
1202 [Endtest] |
|
1203 |
|
1204 [Test] |
|
1205 title Edit Object 20: Create MP4 Object With 17 Properties |
|
1206 create MdETestScripter test |
|
1207 waittestclass test |
|
1208 test GetDefaultNamespaceDefL defaultNs |
|
1209 test GetObjectDefL videoObjDef defaultNs Video |
|
1210 test NewObjectL obj0 videoObjDef KL |
|
1211 test SetUriL obj0 e:\testing\data\Test20Video1.mp4 |
|
1212 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
1213 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1214 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1215 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1216 test GetPropertyDefL titlePropDef videoObjDef Title |
|
1217 test AddTextPropertyL obj0 titlePropDef "Party video 1/2" |
|
1218 test GetPropertyDefL sizePropDef videoObjDef Size |
|
1219 test AddUint32PropertyL obj0 sizePropDef 12345678 |
|
1220 test GetPropertyDefL descriptionPropDef videoObjDef Description |
|
1221 test AddTextPropertyL obj0 descriptionPropDef "First video from party." |
|
1222 test GetPropertyDefL commentPropDef videoObjDef Comment |
|
1223 test AddTextPropertyL obj0 commentPropDef "No comments." |
|
1224 test GetPropertyDefL ratingPropDef videoObjDef Rating |
|
1225 test AddUint8PropertyL obj0 ratingPropDef 4 |
|
1226 test GetPropertyDefL accessCountPropDef videoObjDef AccessCount |
|
1227 test AddUint32PropertyL obj0 accessCountPropDef 0 |
|
1228 test GetPropertyDefL genrePropDef videoObjDef Genre |
|
1229 test AddTextPropertyL obj0 genrePropDef "Party." |
|
1230 test GetPropertyDefL drmPropDef videoObjDef DRM |
|
1231 test AddBoolPropertyL obj0 drmPropDef 1 |
|
1232 test GetPropertyDefL releasedatePropDef videoObjDef ReleaseDate |
|
1233 test AddTimePropertyL obj0 releasedatePropDef 20081130:235959.999999 |
|
1234 test GetPropertyDefL itemTypePropDef videoObjDef ItemType |
|
1235 test AddTextPropertyL obj0 itemTypePropDef "video/mp4" |
|
1236 test GetPropertyDefL widthPropDef videoObjDef Width |
|
1237 test AddUint16PropertyL obj0 widthPropDef 640 |
|
1238 test GetPropertyDefL heightPropDef videoObjDef Height |
|
1239 test AddUint16PropertyL obj0 heightPropDef 480 |
|
1240 test GetPropertyDefL durationPropDef videoObjDef Duration |
|
1241 test AddReal32PropertyL obj0 durationPropDef 1234 |
|
1242 test GetPropertyDefL bitratePropDef videoObjDef Bitrate |
|
1243 test AddUint16PropertyL obj0 bitratePropDef 25 |
|
1244 test GetPropertyDefL artistPropDef videoObjDef Artist |
|
1245 test AddTextPropertyL obj0 artistPropDef "Myself" |
|
1246 test SetGuidL EObject obj0 000020 000001 |
|
1247 test BelongsToSessionL EObject KLast EFalse |
|
1248 test InDatabaseL EObject KLast EFalse |
|
1249 test AddObjectL obj0 |
|
1250 test BelongsToSessionL EObject KLast ETrue |
|
1251 test SessionL EObject KLast |
|
1252 test InDatabaseL EObject KLast ETrue |
|
1253 test RemoveObjectL obj0 KByUri |
|
1254 delete test |
|
1255 [Endtest] |
|
1256 |
|
1257 [Test] |
|
1258 title Edit Object 21: Create MP4 Object |
|
1259 create MdETestScripter test |
|
1260 waittestclass test |
|
1261 test GetDefaultNamespaceDefL defaultNs |
|
1262 test GetObjectDefL videoObjDef defaultNs Video |
|
1263 test NewObjectL obj0 videoObjDef KL |
|
1264 test SetUriL obj0 e:\testing\data\Test21Video1.mp4 |
|
1265 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
1266 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1267 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1268 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1269 test GetPropertyDefL sizePropDef videoObjDef Size |
|
1270 test AddUint32PropertyL obj0 sizePropDef 12345678 |
|
1271 test GetPropertyDefL accessCountPropDef videoObjDef AccessCount |
|
1272 test AddUint32PropertyL obj0 accessCountPropDef 0 |
|
1273 test GetPropertyDefL drmPropDef videoObjDef DRM |
|
1274 test AddBoolPropertyL obj0 drmPropDef 1 |
|
1275 test GetPropertyDefL releasedatePropDef videoObjDef ReleaseDate |
|
1276 test AddTimePropertyL obj0 releasedatePropDef 20081130:235959.999999 |
|
1277 test GetPropertyDefL itemTypePropDef videoObjDef ItemType |
|
1278 test AddTextPropertyL obj0 itemTypePropDef "video/mp4" |
|
1279 test GetPropertyDefL widthPropDef videoObjDef Width |
|
1280 test AddUint16PropertyL obj0 widthPropDef 640 |
|
1281 test GetPropertyDefL heightPropDef videoObjDef Height |
|
1282 test AddUint16PropertyL obj0 heightPropDef 480 |
|
1283 test GetPropertyDefL durationPropDef videoObjDef Duration |
|
1284 test AddReal32PropertyL obj0 durationPropDef 1234 |
|
1285 test SetGuidL EObject obj0 000021 000001 |
|
1286 test BelongsToSessionL EObject KLast EFalse |
|
1287 test InDatabaseL EObject KLast EFalse |
|
1288 test AddObjectL obj0 |
|
1289 test BelongsToSessionL EObject KLast ETrue |
|
1290 test SessionL EObject KLast |
|
1291 test InDatabaseL EObject KLast ETrue |
|
1292 test RemoveObjectL obj0 KByUri |
|
1293 delete test |
|
1294 [Endtest] |
|
1295 |
|
1296 [Test] |
|
1297 title Edit Object 22: Create Album Object |
|
1298 create MdETestScripter test |
|
1299 waittestclass test |
|
1300 test GetDefaultNamespaceDefL defaultNs |
|
1301 test GetObjectDefL albumObjDef defaultNs Album |
|
1302 test NewObjectL obj0 albumObjDef KL |
|
1303 test GetPropertyDefL creationDatePropDef albumObjDef CreationDate |
|
1304 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1305 test GetPropertyDefL lastModDatePropDef0 albumObjDef LastModifiedDate |
|
1306 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1307 test GetPropertyDefL typePropDef albumObjDef Type |
|
1308 test AddUint16PropertyL obj0 typePropDef 25 |
|
1309 test GetPropertyDefL orderedPropDef albumObjDef Ordered |
|
1310 test AddBoolPropertyL obj0 orderedPropDef EFalse |
|
1311 test SetGuidL EObject obj0 000022 000001 |
|
1312 test BelongsToSessionL EObject KLast EFalse |
|
1313 test InDatabaseL EObject KLast EFalse |
|
1314 test AddObjectL obj0 |
|
1315 test BelongsToSessionL EObject KLast ETrue |
|
1316 test SessionL EObject KLast |
|
1317 test InDatabaseL EObject KLast ETrue |
|
1318 test RemoveObjectL obj0 KById |
|
1319 delete test |
|
1320 [Endtest] |
|
1321 |
|
1322 [Test] |
|
1323 title Edit Object 23: Create Video Object |
|
1324 create MdETestScripter test |
|
1325 waittestclass test |
|
1326 test GetDefaultNamespaceDefL defaultNs |
|
1327 test GetObjectDefL videoObjDef defaultNs Video |
|
1328 test NewObjectL obj0 videoObjDef KL |
|
1329 test SetUriL obj0 e:\testing\data\Test23Video1.mp4 |
|
1330 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
1331 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1332 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1333 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1334 test GetPropertyDefL frameratePropDef videoObjDef Framerate |
|
1335 test AddReal32PropertyL obj0 frameratePropDef 25 |
|
1336 test GetPropertyDefL audioFourCCPropDef videoObjDef AudioFourCC |
|
1337 test AddUint32PropertyL obj0 audioFourCCPropDef 2000 |
|
1338 test GetPropertyDefL drmPropDef videoObjDef DRM |
|
1339 test AddBoolPropertyL obj0 drmPropDef 1 |
|
1340 test GetPropertyDefL accessCountPropDef videoObjDef AccessCount |
|
1341 test AddUint32PropertyL obj0 accessCountPropDef 10 |
|
1342 test GetPropertyDefL releaseDatePropDef videoObjDef ReleaseDate |
|
1343 test AddTimePropertyL obj0 releaseDatePropDef 20081130:235959.999999 |
|
1344 test GetPropertyDefL durationPropDef videoObjDef Duration |
|
1345 test AddReal32PropertyL obj0 durationPropDef 60 |
|
1346 test SetGuidL EObject obj0 000023 000001 |
|
1347 test BelongsToSessionL EObject KLast EFalse |
|
1348 test InDatabaseL EObject KLast EFalse |
|
1349 test AddObjectL obj0 |
|
1350 test BelongsToSessionL EObject KLast ETrue |
|
1351 test SessionL EObject KLast |
|
1352 test InDatabaseL EObject KLast ETrue |
|
1353 test RemoveObjectL obj0 KByUri |
|
1354 delete test |
|
1355 [Endtest] |
|
1356 |
|
1357 [Test] |
|
1358 title Edit Object 24: Create Audio Object |
|
1359 create MdETestScripter test |
|
1360 waittestclass test |
|
1361 test GetDefaultNamespaceDefL defaultNs |
|
1362 test GetObjectDefL audioObjDef defaultNs Audio |
|
1363 test NewObjectL obj0 audioObjDef KL |
|
1364 test SetUriL obj0 e:\testing\data\Test24Audio1.mp3 |
|
1365 test GetPropertyDefL creationDatePropDef audioObjDef CreationDate |
|
1366 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1367 test GetPropertyDefL lastModifiedDatePropDef audioObjDef LastModifiedDate |
|
1368 test AddTimePropertyL obj0 lastModifiedDatePropDef 20081130:235959.999999 |
|
1369 test GetPropertyDefL samplingFrequencyPropDef audioObjDef SamplingFrequency |
|
1370 test AddReal32PropertyL obj0 samplingFrequencyPropDef 25 |
|
1371 test GetPropertyDefL composerPropDef audioObjDef Composer |
|
1372 test AddTextPropertyL obj0 composerPropDef "Bach" |
|
1373 test GetPropertyDefL trackPropDef audioObjDef Track |
|
1374 test AddUint16PropertyL obj0 trackPropDef 1 |
|
1375 test GetPropertyDefL originalArtistPropDef audioObjDef OriginalArtist |
|
1376 test AddTextPropertyL obj0 originalArtistPropDef "Nightwish" |
|
1377 test SetGuidL EObject obj0 000024 000001 |
|
1378 test BelongsToSessionL EObject KLast EFalse |
|
1379 test InDatabaseL EObject KLast EFalse |
|
1380 test AddObjectL obj0 |
|
1381 test BelongsToSessionL EObject KLast ETrue |
|
1382 test SessionL EObject KLast |
|
1383 test InDatabaseL EObject KLast ETrue |
|
1384 test RemoveObjectL obj0 KByUri |
|
1385 delete test |
|
1386 [Endtest] |
|
1387 |
|
1388 [Test] |
|
1389 title Edit Object 25: Create Image Object |
|
1390 create MdETestScripter test |
|
1391 waittestclass test |
|
1392 test GetDefaultNamespaceDefL defaultNs |
|
1393 test GetObjectDefL imageObjDef defaultNs Image |
|
1394 test NewObjectL obj0 imageObjDef KL |
|
1395 test SetUriL obj0 e:\testing\data\Test25Image1.jpg |
|
1396 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
1397 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
1398 test GetPropertyDefL lastModifiedDatePropDef imageObjDef LastModifiedDate |
|
1399 test AddTimePropertyL obj0 lastModifiedDatePropDef 20081130:235959.999999 |
|
1400 test GetPropertyDefL pixelXDimensionPropDef imageObjDef PixelXDimension |
|
1401 test AddUint32PropertyL obj0 pixelXDimensionPropDef 20 |
|
1402 test GetPropertyDefL pixelYDimensionPropDef imageObjDef PixelYDimension |
|
1403 test AddUint32PropertyL obj0 pixelYDimensionPropDef 20 |
|
1404 test GetPropertyDefL maxAperturePropDef imageObjDef MaxAperture |
|
1405 test AddReal32PropertyL obj0 maxAperturePropDef 20 |
|
1406 test SetGuidL EObject obj0 000025 000001 |
|
1407 test BelongsToSessionL EObject KLast EFalse |
|
1408 test InDatabaseL EObject KLast EFalse |
|
1409 test AddObjectL obj0 |
|
1410 test BelongsToSessionL EObject KLast ETrue |
|
1411 test SessionL EObject KLast |
|
1412 test InDatabaseL EObject KLast ETrue |
|
1413 test RemoveObjectL obj0 KByUri |
|
1414 delete test |
|
1415 [Endtest] |
|
1416 |
|
1417 [Test] |
|
1418 title Edit Object 26: *ValueL: Video |
|
1419 create MdETestScripter test |
|
1420 waittestclass test |
|
1421 test GetDefaultNamespaceDefL defaultNs |
|
1422 test GetObjectDefL videoObjDef defaultNs Video |
|
1423 test NewObjectL obj0 videoObjDef KL |
|
1424 test SetUriL KLast e:\testing\data\test26video1.3gp |
|
1425 test RemoveObjectsL KSync KByUri obj0 1 0 |
|
1426 test ImportMetadataL \Data\MdETestScripterImportMetadata.mde KSync |
|
1427 test OpenFullObjectL obj1 obj0 KByUri |
|
1428 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
1429 test PropertyL creationDate KByDef obj1 creationDatePropDef 0 |
|
1430 test TimeValueL creationDate 20080707: |
|
1431 test GetPropertyDefL lastModifiedDatePropDef videoObjDef LastModifiedDate |
|
1432 test PropertyL lastModifiedDate KByDef obj1 lastModifiedDatePropDef 0 |
|
1433 test TimeValueL lastModifiedDate 20080707: |
|
1434 test GetPropertyDefL bitratePropDef videoObjDef Bitrate |
|
1435 test PropertyL bitrate KByDef obj1 bitratePropDef 0 |
|
1436 test Uint16ValueL bitrate 23 |
|
1437 test GetPropertyDefL sizePropDef videoObjDef Size |
|
1438 test PropertyL size KByDef obj1 sizePropDef 0 |
|
1439 test Uint32ValueL size 66192 |
|
1440 test GetPropertyDefL ratingPropDef videoObjDef Rating |
|
1441 test PropertyL rating KByDef obj1 ratingPropDef 0 |
|
1442 test Uint8ValueL rating 4 |
|
1443 test GetPropertyDefL widthPropDef videoObjDef Width |
|
1444 test PropertyL width KByDef obj1 widthPropDef 0 |
|
1445 test Uint16ValueL width 176 |
|
1446 test GetPropertyDefL heightPropDef videoObjDef Height |
|
1447 test PropertyL height KByDef obj1 heightPropDef 0 |
|
1448 test Uint16ValueL height 144 |
|
1449 test GetPropertyDefL durationPropDef videoObjDef Duration |
|
1450 test PropertyL duration KByDef obj1 durationPropDef 0 |
|
1451 test Real32ValueL duration 21 |
|
1452 test GetPropertyDefL releaseDatePropDef videoObjDef ReleaseDate |
|
1453 test PropertyL releaseDate KByDef obj1 releaseDatePropDef 0 |
|
1454 test TimeValueL releaseDate 20080707: |
|
1455 test GetPropertyDefL captureDatePropDef videoObjDef CaptureDate |
|
1456 test PropertyL captureDate KByDef obj1 captureDatePropDef 0 |
|
1457 test TimeValueL captureDate 20080707: |
|
1458 test GetPropertyDefL frameratePropDef videoObjDef Framerate |
|
1459 test PropertyL framerate KByDef obj1 frameratePropDef 0 |
|
1460 test Real32ValueL framerate 7 |
|
1461 test GetPropertyDefL drmPropDef videoObjDef DRM |
|
1462 test PropertyL drm KByDef obj1 drmPropDef 0 |
|
1463 test BoolValueL drm EFalse |
|
1464 delete test |
|
1465 [Endtest] |
|
1466 |
|
1467 [Test] |
|
1468 title Edit Object 27: *ValueL: All property types |
|
1469 create MdETestScripter test |
|
1470 waittestclass test |
|
1471 allowerrorcodes KErrCorrupt |
|
1472 test ImportSchemaL \Data\MdETestScripterSchema2.mde |
|
1473 test GetNamespaceDefL testNs "http:\/\/sw.nokia.com/MdE/TestSchema2" |
|
1474 test GetObjectDefL testObjDef testNs TestObjectType |
|
1475 test NewObjectL obj0 testObjDef KL |
|
1476 test SetUriL obj0 c:\data\other\testobject27 |
|
1477 test GetPropertyDefL testPropertyBoolDef testObjDef TestPropertyBool |
|
1478 test AddBoolPropertyL obj0 testPropertyBoolDef EFalse |
|
1479 test PropertyL boolProp KByDef obj0 testPropertyBoolDef EFalse |
|
1480 test ReadOnlyL EPropertyDef testPropertyBoolDef EFalse |
|
1481 test BoolValueL boolProp EFalse |
|
1482 test GetPropertyDefL testPropertyInt8Def testObjDef TestPropertyInt8 |
|
1483 test AddInt8PropertyL obj0 testPropertyInt8Def 0 |
|
1484 test PropertyL int8Prop KByDef obj0 testPropertyInt8Def 0 |
|
1485 test ReadOnlyL EPropertyDef testPropertyInt8Def ETrue |
|
1486 test Int8ValueL int8Prop 0 |
|
1487 test GetPropertyDefL testPropertyUint8Def testObjDef TestPropertyUint8 |
|
1488 test AddUint8PropertyL obj0 testPropertyUint8Def 0 |
|
1489 test PropertyL uint8Prop KByDef obj0 testPropertyUint8Def 0 |
|
1490 test ReadOnlyL EPropertyDef testPropertyUint8Def EFalse |
|
1491 test Uint8ValueL uint8Prop 0 |
|
1492 test GetPropertyDefL testPropertyInt16Def testObjDef TestPropertyInt16 |
|
1493 test AddInt16PropertyL obj0 testPropertyInt16Def 0 |
|
1494 test PropertyL int16Prop KByDef obj0 testPropertyInt16Def 0 |
|
1495 test ReadOnlyL EPropertyDef testPropertyInt16Def ETrue |
|
1496 test Int16ValueL int16Prop 0 |
|
1497 test GetPropertyDefL testPropertyUint16Def testObjDef TestPropertyUint16 |
|
1498 test AddUint16PropertyL obj0 testPropertyUint16Def 0 |
|
1499 test PropertyL uint16Prop KByDef obj0 testPropertyUint16Def 0 |
|
1500 test ReadOnlyL EPropertyDef testPropertyUint16Def EFalse |
|
1501 test Uint16ValueL uint16Prop 0 |
|
1502 test GetPropertyDefL testPropertyInt32Def testObjDef TestPropertyInt32 |
|
1503 test AddInt32PropertyL obj0 testPropertyInt32Def 0 |
|
1504 test PropertyL int32Prop KByDef obj0 testPropertyInt32Def 0 |
|
1505 test ReadOnlyL EPropertyDef testPropertyInt32Def ETrue |
|
1506 test Int32ValueL int32Prop 0 |
|
1507 test GetPropertyDefL testPropertyUint32Def testObjDef TestPropertyUint32 |
|
1508 test AddUint32PropertyL obj0 testPropertyUint32Def 0 |
|
1509 test PropertyL uint32Prop KByDef obj0 testPropertyUint32Def 0 |
|
1510 test ReadOnlyL EPropertyDef testPropertyUint32Def EFalse |
|
1511 test Uint32ValueL uint32Prop 0 |
|
1512 test GetPropertyDefL testPropertyInt64Def testObjDef TestPropertyInt64 |
|
1513 test AddInt64PropertyL obj0 testPropertyInt64Def 0 |
|
1514 test PropertyL int64Prop KByDef obj0 testPropertyInt64Def 0 |
|
1515 test ReadOnlyL EPropertyDef testPropertyInt64Def ETrue |
|
1516 test Int64ValueL int64Prop 0 |
|
1517 test GetPropertyDefL testPropertyReal32Def testObjDef TestPropertyReal32 |
|
1518 test AddReal32PropertyL obj0 testPropertyReal32Def 0 |
|
1519 test PropertyL real32Prop KByDef obj0 testPropertyReal32Def 0 |
|
1520 test ReadOnlyL EPropertyDef testPropertyReal32Def EFalse |
|
1521 test Real32ValueL real32Prop 0 |
|
1522 test GetPropertyDefL testPropertyReal64Def testObjDef TestPropertyReal64 |
|
1523 test AddReal64PropertyL obj0 testPropertyReal64Def 0 |
|
1524 test PropertyL real64Prop KByDef obj0 testPropertyReal64Def 0 |
|
1525 test ReadOnlyL EPropertyDef testPropertyReal64Def ETrue |
|
1526 test Real64ValueL real64Prop 0 |
|
1527 test GetPropertyDefL testPropertyTimeDef testObjDef TestPropertyTime |
|
1528 test AddTimePropertyL obj0 testPropertyTimeDef 20081130:235959.999999 |
|
1529 test PropertyL timeProp KByDef obj0 testPropertyTimeDef 0 |
|
1530 test ReadOnlyL EPropertyDef testPropertyTimeDef EFalse |
|
1531 test TimeValueL timeProp 20081130:235959.999999 |
|
1532 test GetPropertyDefL testPropertyTextDef testObjDef TestPropertyText |
|
1533 test AddTextPropertyL obj0 testPropertyTextDef "Test Text" |
|
1534 test PropertyL textProp KByDef obj0 testPropertyTextDef 0 |
|
1535 test ReadOnlyL EPropertyDef testPropertyTextDef ETrue |
|
1536 test TextValueL textProp "Test Text" |
|
1537 test GetPropertyDefL creaDatePropDef0 testObjDef CreationDate |
|
1538 test AddTimePropertyL obj0 creaDatePropDef0 20081130:235959.999999 |
|
1539 test GetPropertyDefL lastModDatePropDef0 testObjDef LastModifiedDate |
|
1540 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1541 test SetGuidL EObject obj0 000027 000001 |
|
1542 test AddObjectL obj0 |
|
1543 test BelongsToSessionL EObject obj0 ETrue |
|
1544 test SessionL EObject obj0 |
|
1545 test InDatabaseL EObject obj0 ETrue |
|
1546 delete test |
|
1547 [Endtest] |
|
1548 |
|
1549 [Test] |
|
1550 title Edit Object 28: Add*PropertyL: KErrArgument |
|
1551 create MdETestScripter test |
|
1552 waittestclass test |
|
1553 allowerrorcodes KErrCorrupt |
|
1554 test ImportSchemaL \Data\MdETestScripterSchema2.mde |
|
1555 test GetNamespaceDefL testNs "http:\/\/sw.nokia.com/MdE/TestSchema2" |
|
1556 test GetObjectDefL testObjDef testNs TestObjectType |
|
1557 test NewObjectL obj0 testObjDef KL |
|
1558 test SetUriL obj0 c:\data\other\testobject28 |
|
1559 test GetPropertyDefL testPropertyTimeDef testObjDef TestPropertyTime |
|
1560 test GetPropertyDefL testPropertyTextDef testObjDef TestPropertyText |
|
1561 allownextresult KErrArgument |
|
1562 test AddBoolPropertyL obj0 testPropertyTimeDef EFalse |
|
1563 allownextresult KErrArgument |
|
1564 test AddInt8PropertyL obj0 testPropertyTimeDef 0 |
|
1565 allownextresult KErrArgument |
|
1566 test AddUint8PropertyL obj0 testPropertyTimeDef 0 |
|
1567 allownextresult KErrArgument |
|
1568 test AddInt16PropertyL obj0 testPropertyTimeDef 0 |
|
1569 allownextresult KErrArgument |
|
1570 test AddUint16PropertyL obj0 testPropertyTimeDef 0 |
|
1571 allownextresult KErrArgument |
|
1572 test AddInt32PropertyL obj0 testPropertyTimeDef 0 |
|
1573 allownextresult KErrArgument |
|
1574 test AddUint32PropertyL obj0 testPropertyTimeDef 0 |
|
1575 allownextresult KErrArgument |
|
1576 test AddInt64PropertyL obj0 testPropertyTimeDef 0 |
|
1577 allownextresult KErrArgument |
|
1578 test AddReal32PropertyL obj0 testPropertyTimeDef 0 |
|
1579 allownextresult KErrArgument |
|
1580 test AddReal64PropertyL obj0 testPropertyTimeDef 0 |
|
1581 allownextresult KErrArgument |
|
1582 test AddTextPropertyL obj0 testPropertyTimeDef "Test Text" |
|
1583 allownextresult KErrArgument |
|
1584 test AddTimePropertyL obj0 testPropertyTextDef 20080707: |
|
1585 test ReadOnlyL EPropertyDef testPropertyTextDef ETrue |
|
1586 test GetPropertyDefL creaDatePropDef0 testObjDef CreationDate |
|
1587 test AddTimePropertyL obj0 creaDatePropDef0 20081130:235959.999999 |
|
1588 test GetPropertyDefL lastModDatePropDef0 testObjDef LastModifiedDate |
|
1589 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1590 test SetGuidL EObject obj0 000028 000001 |
|
1591 test AddObjectL obj0 |
|
1592 test BelongsToSessionL EObject obj0 ETrue |
|
1593 test SessionL EObject obj0 |
|
1594 test InDatabaseL EObject obj0 ETrue |
|
1595 delete test |
|
1596 [Endtest] |
|
1597 |
|
1598 [Test] |
|
1599 title Edit Object 29: Min*ValueL, Max*ValueL |
|
1600 create MdETestScripter test |
|
1601 waittestclass test |
|
1602 allowerrorcodes KErrCorrupt |
|
1603 test ImportSchemaL \Data\MdETestScripterSchema2.mde |
|
1604 test GetNamespaceDefL testNs "http:\/\/sw.nokia.com/MdE/TestSchema2" |
|
1605 test GetObjectDefL testObjDef testNs TestObjectType |
|
1606 test GetPropertyDefL testPropInt32 testObjDef TestPropertyInt32 |
|
1607 test MinInt32ValueL testPropInt32 -2147483648 |
|
1608 test MaxInt32ValueL testPropInt32 2147483647 |
|
1609 test GetPropertyDefL testPropUint32 testObjDef TestPropertyUint32 |
|
1610 test MinUint32ValueL testPropUint32 0 |
|
1611 test MaxUint32ValueL testPropUint32 4294967295 |
|
1612 test GetPropertyDefL testPropInt64 testObjDef TestPropertyInt64 |
|
1613 test MinInt64ValueL testPropInt64 -9223372036854775808 |
|
1614 test MaxInt64ValueL testPropInt64 +9223372036854775807 |
|
1615 test GetPropertyDefL testPropReal64 testObjDef TestPropertyReal64 |
|
1616 test MinRealValueL testPropReal64 "-1.797693134862e+308" |
|
1617 test MaxRealValueL testPropReal64 "1.797693134862e+308" |
|
1618 test GetPropertyDefL testPropTime testObjDef TestPropertyTime |
|
1619 test MinTimeValueL testPropTime 00000000: |
|
1620 test MaxTimeValueL testPropTime 20100528:163021 |
|
1621 test GetPropertyDefL testPropText testObjDef TestPropertyText |
|
1622 test MinTextLengthL testPropText 1 |
|
1623 test MaxTextLengthL testPropText 65535 |
|
1624 delete test |
|
1625 [Endtest] |
|
1626 |
|
1627 [Test] |
|
1628 title Edit Object 30: RemoveObjectsL KSync KById |
|
1629 create MdETestScripter test |
|
1630 waittestclass test |
|
1631 test GetDefaultNamespaceDefL defaultNs |
|
1632 test GetObjectDefL videoObjDef defaultNs Video |
|
1633 test NewObjectL obj0 videoObjDef KL |
|
1634 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1635 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1636 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1637 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1638 test SetGuidL EObject obj0 000030 000001 |
|
1639 test AddObjectL obj0 |
|
1640 test NewObjectL obj1 videoObjDef KL |
|
1641 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
1642 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
1643 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
1644 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
1645 test SetGuidL EObject obj1 000030 000002 |
|
1646 test AddObjectL obj1 |
|
1647 test NewObjectL obj2 videoObjDef KL |
|
1648 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
1649 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
1650 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
1651 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
1652 test SetGuidL EObject obj2 000030 000003 |
|
1653 test AddObjectL obj2 |
|
1654 test NewObjectL obj3 videoObjDef KL |
|
1655 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
1656 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
1657 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
1658 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
1659 test SetGuidL EObject obj3 000030 000004 |
|
1660 test AddObjectL obj3 |
|
1661 test NewObjectL obj4 videoObjDef KL |
|
1662 test GetPropertyDefL creationDatePropDef4 videoObjDef CreationDate |
|
1663 test AddTimePropertyL obj4 creationDatePropDef4 20081130:235959.999999 |
|
1664 test GetPropertyDefL lastModDatePropDef4 videoObjDef LastModifiedDate |
|
1665 test AddTimePropertyL obj4 lastModDatePropDef4 20081130:235959.999999 |
|
1666 test SetGuidL EObject obj4 000030 000005 |
|
1667 test AddObjectL obj4 |
|
1668 test RemoveObjectsL KSync KById obj0 5 |
|
1669 delete test |
|
1670 [Endtest] |
|
1671 |
|
1672 [Test] |
|
1673 title Edit Object 31: RemoveObjectsL KSync KByUri |
|
1674 create MdETestScripter test |
|
1675 waittestclass test |
|
1676 test GetDefaultNamespaceDefL defaultNs |
|
1677 test GetObjectDefL videoObjDef defaultNs Video |
|
1678 test NewObjectL obj0 videoObjDef KL |
|
1679 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1680 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1681 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1682 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1683 test SetGuidL EObject obj0 000031 000001 |
|
1684 test SetUriL obj0 e:\testing\data\Test31Video1.3gp |
|
1685 test AddObjectL obj0 |
|
1686 test NewObjectL obj1 videoObjDef KL |
|
1687 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
1688 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
1689 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
1690 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
1691 test SetGuidL EObject obj1 000031 000002 |
|
1692 test SetUriL obj1 e:\testing\data\Test31Video2.3gp |
|
1693 test AddObjectL obj1 |
|
1694 test NewObjectL obj2 videoObjDef KL |
|
1695 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
1696 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
1697 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
1698 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
1699 test SetGuidL EObject obj2 000031 000003 |
|
1700 test SetUriL obj2 e:\testing\data\Test31Video3.3gp |
|
1701 test AddObjectL obj2 |
|
1702 test NewObjectL obj3 videoObjDef KL |
|
1703 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
1704 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
1705 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
1706 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
1707 test SetGuidL EObject obj3 000031 000004 |
|
1708 test SetUriL obj3 e:\testing\data\Test31Video4.3gp |
|
1709 test AddObjectL obj3 |
|
1710 test NewObjectL obj4 videoObjDef KL |
|
1711 test GetPropertyDefL creationDatePropDef4 videoObjDef CreationDate |
|
1712 test AddTimePropertyL obj4 creationDatePropDef4 20081130:235959.999999 |
|
1713 test GetPropertyDefL lastModDatePropDef4 videoObjDef LastModifiedDate |
|
1714 test AddTimePropertyL obj4 lastModDatePropDef4 20081130:235959.999999 |
|
1715 test SetGuidL EObject obj4 000031 000005 |
|
1716 test SetUriL obj4 e:\testing\data\Test31Video5.3gp |
|
1717 test AddObjectL obj4 |
|
1718 test RemoveObjectsL KSync KByUri obj0 5 |
|
1719 delete test |
|
1720 [Endtest] |
|
1721 |
|
1722 [Test] |
|
1723 title Edit Object 32: RemoveObjectsL KAsync KById |
|
1724 create MdETestScripter test |
|
1725 waittestclass test |
|
1726 test GetDefaultNamespaceDefL defaultNs |
|
1727 test GetObjectDefL videoObjDef defaultNs Video |
|
1728 test NewObjectL obj0 videoObjDef KL |
|
1729 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1730 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1731 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1732 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1733 test SetGuidL EObject obj0 000032 000001 |
|
1734 test AddObjectL obj0 |
|
1735 test NewObjectL obj1 videoObjDef KL |
|
1736 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
1737 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
1738 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
1739 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
1740 test SetGuidL EObject obj1 000032 000002 |
|
1741 test AddObjectL obj1 |
|
1742 test NewObjectL obj2 videoObjDef KL |
|
1743 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
1744 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
1745 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
1746 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
1747 test SetGuidL EObject obj2 000032 000003 |
|
1748 test AddObjectL obj2 |
|
1749 test NewObjectL obj3 videoObjDef KL |
|
1750 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
1751 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
1752 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
1753 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
1754 test SetGuidL EObject obj3 000032 000004 |
|
1755 test AddObjectL obj3 |
|
1756 test NewObjectL obj4 videoObjDef KL |
|
1757 test GetPropertyDefL creationDatePropDef4 videoObjDef CreationDate |
|
1758 test AddTimePropertyL obj4 creationDatePropDef4 20081130:235959.999999 |
|
1759 test GetPropertyDefL lastModDatePropDef4 videoObjDef LastModifiedDate |
|
1760 test AddTimePropertyL obj4 lastModDatePropDef4 20081130:235959.999999 |
|
1761 test SetGuidL EObject obj4 000032 000005 |
|
1762 test AddObjectL obj4 |
|
1763 request EObjectsAsyncRemoved |
|
1764 test RemoveObjectsL KAsync KById obj0 5 |
|
1765 wait EObjectsAsyncRemoved |
|
1766 release EObjectsAsyncRemoved |
|
1767 delete test |
|
1768 [Endtest] |
|
1769 |
|
1770 [Test] |
|
1771 title Edit Object 33: RemoveObjectsL KAsync KByUri |
|
1772 create MdETestScripter test |
|
1773 waittestclass test |
|
1774 test GetDefaultNamespaceDefL defaultNs |
|
1775 test GetObjectDefL videoObjDef defaultNs Video |
|
1776 test NewObjectL obj0 videoObjDef KL |
|
1777 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1778 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1779 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1780 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1781 test SetGuidL EObject obj0 000033 000001 |
|
1782 test SetUriL obj0 e:\testing\data\Test33Video1.3gp |
|
1783 test AddObjectL obj0 |
|
1784 test NewObjectL obj1 videoObjDef KL |
|
1785 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
1786 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
1787 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
1788 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
1789 test SetGuidL EObject obj1 000033 000002 |
|
1790 test SetUriL obj1 e:\testing\data\Test33Video2.3gp |
|
1791 test AddObjectL obj1 |
|
1792 test NewObjectL obj2 videoObjDef KL |
|
1793 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
1794 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
1795 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
1796 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
1797 test SetGuidL EObject obj2 000033 000003 |
|
1798 test SetUriL obj2 e:\testing\data\Test33Video3.3gp |
|
1799 test AddObjectL obj2 |
|
1800 test NewObjectL obj3 videoObjDef KL |
|
1801 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
1802 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
1803 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
1804 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
1805 test SetGuidL EObject obj3 000033 000004 |
|
1806 test SetUriL obj3 e:\testing\data\Test33Video4.3gp |
|
1807 test AddObjectL obj3 |
|
1808 test NewObjectL obj4 videoObjDef KL |
|
1809 test GetPropertyDefL creationDatePropDef4 videoObjDef CreationDate |
|
1810 test AddTimePropertyL obj4 creationDatePropDef4 20081130:235959.999999 |
|
1811 test GetPropertyDefL lastModDatePropDef4 videoObjDef LastModifiedDate |
|
1812 test AddTimePropertyL obj4 lastModDatePropDef4 20081130:235959.999999 |
|
1813 test SetGuidL EObject obj4 000033 000005 |
|
1814 test SetUriL obj4 e:\testing\data\Test33Video5.3gp |
|
1815 test AddObjectL obj4 |
|
1816 request EObjectsAsyncRemoved |
|
1817 test RemoveObjectsL KAsync KByUri obj0 5 |
|
1818 wait EObjectsAsyncRemoved |
|
1819 release EObjectsAsyncRemoved |
|
1820 delete test |
|
1821 [Endtest] |
|
1822 |
|
1823 [Test] |
|
1824 title Edit Object 34: AddItemsL KSync KAsync |
|
1825 create MdETestScripter test |
|
1826 waittestclass test |
|
1827 test GetDefaultNamespaceDefL defaultNs |
|
1828 test GetObjectDefL videoObjDef defaultNs Video |
|
1829 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1830 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1831 test NewObjectL obj0 videoObjDef KL |
|
1832 test AddTimePropertyL obj0 creationDatePropDef0 20090507: |
|
1833 test AddTimePropertyL obj0 lastModDatePropDef0 20090507: |
|
1834 test SetGuidL EObject obj0 000034 000001 |
|
1835 test SetUriL obj0 e:\testing\data\Test34Video1.3gp |
|
1836 test NewObjectL obj1 videoObjDef KL |
|
1837 test AddTimePropertyL obj1 creationDatePropDef0 20090507: |
|
1838 test AddTimePropertyL obj1 lastModDatePropDef0 20090507: |
|
1839 test SetGuidL EObject obj1 000034 000002 |
|
1840 test SetUriL obj1 e:\testing\data\Test34Video2.3gp |
|
1841 test NewObjectL obj2 videoObjDef KL |
|
1842 test AddTimePropertyL obj2 creationDatePropDef0 20090507: |
|
1843 test AddTimePropertyL obj2 lastModDatePropDef0 20090507: |
|
1844 test SetGuidL EObject obj2 000034 000003 |
|
1845 test SetUriL obj2 e:\testing\data\Test34Video3.mp4 |
|
1846 test AddItemsL KSync EObject 0 1 |
|
1847 request EItemsAsyncAdd |
|
1848 test AddItemsL KAsync EObject 1 2 |
|
1849 wait EItemsAsyncAdd |
|
1850 release EItemsAsyncAdd |
|
1851 delete test |
|
1852 [Endtest] |
|
1853 |
|
1854 [Test] |
|
1855 title Edit Object 35: UpdateItemsL KSync KAsync |
|
1856 create MdETestScripter test |
|
1857 waittestclass test |
|
1858 test GetDefaultNamespaceDefL defaultNs |
|
1859 test GetObjectDefL videoObjDef defaultNs Video |
|
1860 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1861 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1862 test NewObjectL obj0 videoObjDef KL |
|
1863 test AddTimePropertyL obj0 creationDatePropDef0 20090601: |
|
1864 test AddTimePropertyL obj0 lastModDatePropDef0 20090601: |
|
1865 test SetGuidL EObject obj0 000035 000001 |
|
1866 test SetUriL obj0 e:\testing\data\Test35Video1.3gp |
|
1867 test AddItemsL KSync EObject 0 1 |
|
1868 test OpenObjectL obj1 obj0 KByUri ENamespaceDef defaultNs |
|
1869 test SetGuidL EObject obj1 000035 000002 |
|
1870 test SetUriL obj1 e:\testing\data\Test35Video2.3gp |
|
1871 test UpdateItemsL KSync EObject 1 1 |
|
1872 test OpenObjectL obj2 obj1 KByUri ENamespaceDef defaultNs |
|
1873 test SetGuidL EObject obj2 000035 000003 |
|
1874 test SetUriL obj2 e:\testing\data\Test35Video3.3gp |
|
1875 request EItemsAsyncUpdate |
|
1876 test UpdateItemsL KAsync EObject 2 1 |
|
1877 wait EItemsAsyncUpdate |
|
1878 release EItemsAsyncUpdate |
|
1879 delete test |
|
1880 [Endtest] |
|
1881 |
|
1882 [Test] |
|
1883 title Query 1: Object |
|
1884 create MdETestScripter test |
|
1885 waittestclass test |
|
1886 test GetDefaultNamespaceDefL defaultNs |
|
1887 // Add 4 video objects to DB |
|
1888 test GetObjectDefL videoObjDef defaultNs Video |
|
1889 test NewObjectL obj0 videoObjDef KL |
|
1890 test SetUriL obj0 e:\testing\data\TEST_VIDEO8.mp4 |
|
1891 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1892 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1893 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1894 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1895 test NewObjectL obj1 videoObjDef KL |
|
1896 test SetUriL obj1 e:\testing\data\TEST_VIDEO9.mp4 |
|
1897 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
1898 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
1899 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
1900 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
1901 test NewObjectL obj2 videoObjDef KL |
|
1902 test SetUriL obj2 e:\testing\data\TEST_VIDEO10.mp4 |
|
1903 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
1904 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
1905 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
1906 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
1907 test NewObjectL obj3 videoObjDef KL |
|
1908 test SetUriL obj3 e:\testing\data\TEST_VIDEO11.mp4 |
|
1909 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
1910 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
1911 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
1912 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
1913 test AddObjectsL obj0 4 |
|
1914 |
|
1915 // Query |
|
1916 test NewObjectQueryL rootCond defaultNs Item Video Object |
|
1917 |
|
1918 test AddObjectConditionL objCond rootCond ObjectConditionCompare Uri e:\testing\data\TEST_VIDEO8.mp4 |
|
1919 |
|
1920 test SetObjectQueryResultL { obj0 } |
|
1921 test FindL -1 -1 |
|
1922 waittestclass test |
|
1923 |
|
1924 test RemoveObjectsL KSync KById obj0 4 |
|
1925 delete test |
|
1926 [Endtest] |
|
1927 |
|
1928 [Test] |
|
1929 title Query 2: Relation Conditions |
|
1930 create MdETestScripter test |
|
1931 waittestclass test |
|
1932 test GetDefaultNamespaceDefL defaultNs |
|
1933 // Add 4 video objects to DB |
|
1934 test GetObjectDefL videoObjDef defaultNs Video |
|
1935 test NewObjectL obj0 videoObjDef KL |
|
1936 test SetUriL obj0 e:\testing\data\TEST_VIDEO12.mp4 |
|
1937 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1938 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1939 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1940 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1941 test NewObjectL obj1 videoObjDef KL |
|
1942 test SetUriL obj1 e:\testing\data\TEST_VIDEO13.mp4 |
|
1943 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
1944 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
1945 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
1946 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
1947 test NewObjectL obj2 videoObjDef KL |
|
1948 test SetUriL obj2 e:\testing\data\TEST_VIDEO14.mp4 |
|
1949 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
1950 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
1951 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
1952 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
1953 test NewObjectL obj3 videoObjDef KL |
|
1954 test SetUriL obj3 e:\testing\data\TEST_VIDEO15.mp4 |
|
1955 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
1956 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
1957 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
1958 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
1959 test AddObjectsL obj0 4 |
|
1960 test GetRelationDefL relDefContains defaultNs Contains |
|
1961 test NewRelationL rel0 obj0 relDefContains obj1 0 KL |
|
1962 test NewRelationL rel1 obj0 relDefContains obj2 0 KL |
|
1963 test NewRelationL rel2 obj2 relDefContains obj3 0 KLC |
|
1964 loop 3 |
|
1965 test AddRelationL LOOP_COUNTER |
|
1966 endloop |
|
1967 |
|
1968 // Query |
|
1969 test NewRelationQueryL rootCond defaultNs Item Video Object |
|
1970 |
|
1971 test AddRelationConditionL containsRelCond rootCond Left RelationDef Contains |
|
1972 |
|
1973 test LeftL leftCond containsRelCond |
|
1974 test AddObjectConditionL objCond leftCond ObjectConditionCompare Uri e:\testing\data\TEST_VIDEO12.mp4 |
|
1975 |
|
1976 test SetRelationQueryResultL { rel0 rel1 } |
|
1977 test FindL -1 -1 |
|
1978 waittestclass test |
|
1979 |
|
1980 test RemoveRelationsL KSync rel0 3 |
|
1981 test RemoveObjectsL KSync KById obj0 4 |
|
1982 delete test |
|
1983 [Endtest] |
|
1984 |
|
1985 |
|
1986 [Test] |
|
1987 title Query 3: Time Property Conditions |
|
1988 create MdETestScripter test |
|
1989 waittestclass test |
|
1990 test GetDefaultNamespaceDefL defaultNs |
|
1991 // Add 4 video objects to DB |
|
1992 test GetObjectDefL videoObjDef defaultNs Video |
|
1993 test NewObjectL obj0 videoObjDef KL |
|
1994 test SetUriL obj0 e:\testing\data\TEST_VIDEO16.mp4 |
|
1995 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
1996 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
1997 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
1998 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
1999 test NewObjectL obj1 videoObjDef KL |
|
2000 test SetUriL obj1 e:\testing\data\TEST_VIDE17.mp4 |
|
2001 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
2002 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
2003 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
2004 test AddTimePropertyL obj1 lastModDatePropDef1 20090000:000000.000000 |
|
2005 test NewObjectL obj2 videoObjDef KL |
|
2006 test SetUriL obj2 e:\testing\data\TEST_VIDEO18.mp4 |
|
2007 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
2008 test AddTimePropertyL obj2 creationDatePropDef2 20090000:000000.000000 |
|
2009 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
2010 test AddTimePropertyL obj2 lastModDatePropDef2 20090000:000000.000001 |
|
2011 test NewObjectL obj3 videoObjDef KL |
|
2012 test SetUriL obj3 e:\testing\data\TEST_VIDEO19.mp4 |
|
2013 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
2014 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
2015 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
2016 test AddTimePropertyL obj3 lastModDatePropDef3 20090000:000000.000002 |
|
2017 test AddObjectsL obj0 4 |
|
2018 |
|
2019 |
|
2020 test NewObjectQueryL rootCond defaultNs Item Video Object |
|
2021 test AddPropertyConditionL propCond rootCond lastModDatePropDef0 TimeRange Greater 20090000:000000.000000 00000000:000000.000000 |
|
2022 |
|
2023 |
|
2024 test SetObjectQueryResultL { obj2 obj3 } |
|
2025 test FindL -1 -1 |
|
2026 waittestclass test |
|
2027 |
|
2028 test RemoveObjectsL KSync KById obj0 4 |
|
2029 delete test |
|
2030 [Endtest] |
|
2031 |
|
2032 |
|
2033 [Test] |
|
2034 title Query 4: all images with JPEG MIME |
|
2035 create MdETestScripter test |
|
2036 waittestclass test |
|
2037 test GetDefaultNamespaceDefL defaultNs |
|
2038 test GetObjectDefL imageObjDef defaultNs Image |
|
2039 test NewObjectL obj0 imageObjDef KL |
|
2040 test SetUriL obj0 e:\testing\data\Test25Image1.jpg |
|
2041 test GetPropertyDefL itemTypePropertyPropDef imageObjDef ItemType |
|
2042 test AddTextPropertyL obj0 itemTypePropertyPropDef "image/jpeg" |
|
2043 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2044 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
2045 test GetPropertyDefL lastModifiedDatePropDef imageObjDef LastModifiedDate |
|
2046 test AddTimePropertyL obj0 lastModifiedDatePropDef 20081130:235959.999999 |
|
2047 test AddObjectL obj0 |
|
2048 |
|
2049 test GetObjectDefL videoObjDef defaultNs Video |
|
2050 test NewObjectL obj1 videoObjDef KL |
|
2051 test SetUriL obj1 e:\testing\data\TEST_VIDE17.mp4 |
|
2052 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
2053 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
2054 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
2055 test AddTimePropertyL obj1 lastModDatePropDef1 20090000:000000.000000 |
|
2056 test AddObjectL obj1 |
|
2057 |
|
2058 test NewObjectQueryL rootCond defaultNs Item Image Object |
|
2059 test AddPropertyConditionL jpegMimeCond rootCond itemTypePropertyPropDef TextCompare Equals image/jpeg |
|
2060 test SetObjectQueryResultL { obj0 } |
|
2061 test FindL -1 -1 |
|
2062 waittestclass test |
|
2063 test RemoveObjectL obj0 KById |
|
2064 delete test |
|
2065 [Endtest] |
|
2066 |
|
2067 [Test] |
|
2068 title Query 5: all mediaobject properties from images and videos |
|
2069 create MdETestScripter test |
|
2070 waittestclass test |
|
2071 test GetDefaultNamespaceDefL defaultNs |
|
2072 test GetObjectDefL mediaObjectDef defaultNs MediaObject |
|
2073 test GetObjectDefL imageObjDef defaultNs Image |
|
2074 test GetObjectDefL videoObjDef defaultNs Video |
|
2075 test NewObjectL obj0 imageObjDef KL |
|
2076 test SetUriL obj0 e:\testing\data\Test25Image1.jpg |
|
2077 test GetPropertyDefL itemTypePropertyPropDef imageObjDef ItemType |
|
2078 test AddTextPropertyL obj0 itemTypePropertyPropDef "image/jpeg" |
|
2079 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2080 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
2081 test GetPropertyDefL lastModifiedDatePropDef imageObjDef LastModifiedDate |
|
2082 test AddTimePropertyL obj0 lastModifiedDatePropDef 20081130:235959.999999 |
|
2083 test AddObjectL obj0 |
|
2084 |
|
2085 test NewObjectL obj1 videoObjDef KL |
|
2086 test SetUriL obj1 e:\testing\data\TEST_VIDE17.mp4 |
|
2087 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
2088 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
2089 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
2090 test AddTimePropertyL obj1 lastModDatePropDef1 20090000:000000.000000 |
|
2091 test AddObjectL obj1 |
|
2092 |
|
2093 test NewObjectQueryL rootCond defaultNs Item MediaObject LookupObject { imageObjDef videoObjDef } |
|
2094 test SetObjectQueryResultL { obj0 obj1 } |
|
2095 test FindL -1 -1 |
|
2096 waittestclass test |
|
2097 |
|
2098 test RemoveObjectsL KSync KById obj0 2 |
|
2099 [Endtest] |
|
2100 |
|
2101 [Test] |
|
2102 title Query 6: usage counts and titles from "user" albums, sorted by title A->Z |
|
2103 create MdETestScripter test |
|
2104 waittestclass test |
|
2105 test GetDefaultNamespaceDefL defaultNs |
|
2106 |
|
2107 test GetObjectDefL albumObjDef defaultNs Album |
|
2108 test NewObjectL obj0 albumObjDef KL |
|
2109 test GetPropertyDefL titleDef albumObjDef Title |
|
2110 test AddTextPropertyL obj0 titleDef "Humppaa 0" |
|
2111 // test GetPropertyDefL usageCountPropDef albumObjDef UsageCount |
|
2112 // test AddInt32PropertyL obj0 usageCountPropDef 25 |
|
2113 test GetPropertyDefL creationDatePropDef albumObjDef CreationDate |
|
2114 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
2115 test GetPropertyDefL lastModDatePropDef0 albumObjDef LastModifiedDate |
|
2116 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
2117 test GetPropertyDefL typePropDef albumObjDef Type |
|
2118 test AddUint16PropertyL obj0 typePropDef EAlbumUser |
|
2119 test GetPropertyDefL orderedPropDef albumObjDef Ordered |
|
2120 test AddBoolPropertyL obj0 orderedPropDef EFalse |
|
2121 test SetGuidL EObject obj0 000022 000001 |
|
2122 test AddObjectL obj0 |
|
2123 |
|
2124 test GetObjectDefL albumObjDef1 defaultNs Album |
|
2125 test NewObjectL obj1 albumObjDef1 KL |
|
2126 // test GetPropertyDefL titleDef albumObjDef Title |
|
2127 test AddTextPropertyL obj1 titleDef "Humppaa 1" |
|
2128 // test GetPropertyDefL usageCountPropDef1 albumObjDef1 UsageCount |
|
2129 // test AddInt32PropertyL obj1 usageCountPropDef1 10 |
|
2130 test GetPropertyDefL creationDatePropDef1 albumObjDef1 CreationDate |
|
2131 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
2132 test GetPropertyDefL lastModDatePropDef1 albumObjDef1 LastModifiedDate |
|
2133 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
2134 test GetPropertyDefL typePropDef1 albumObjDef1 Type |
|
2135 test AddUint16PropertyL obj1 typePropDef1 EAlbumUser |
|
2136 test GetPropertyDefL orderedPropDef1 albumObjDef1 Ordered |
|
2137 test AddBoolPropertyL obj1 orderedPropDef1 EFalse |
|
2138 test SetGuidL EObject obj1 000022 000002 |
|
2139 test AddObjectL obj1 |
|
2140 |
|
2141 |
|
2142 test NewObjectL obj2 albumObjDef KL |
|
2143 // test GetPropertyDefL titleDef albumObjDef Title |
|
2144 test AddTextPropertyL obj2 titleDef "Humppaa 2" |
|
2145 // test GetPropertyDefL usageCountPropDef1 albumObjDef1 UsageCount |
|
2146 // test AddInt32PropertyL obj2 usageCountPropDef1 10 |
|
2147 test AddTimePropertyL obj2 creationDatePropDef1 20081130:235959.999999 |
|
2148 test AddTimePropertyL obj2 lastModDatePropDef1 20081130:235959.999999 |
|
2149 test AddUint16PropertyL obj2 typePropDef1 EAlbumUserPredefined |
|
2150 test AddBoolPropertyL obj2 orderedPropDef1 EFalse |
|
2151 test SetGuidL EObject obj2 000022 000003 |
|
2152 test AddObjectL obj2 |
|
2153 |
|
2154 test GetRelationDefL relDefContains defaultNs Contains |
|
2155 test NewRelationL rel0 obj0 relDefContains obj1 0 KL |
|
2156 test NewRelationL rel1 obj0 relDefContains obj2 0 KL |
|
2157 |
|
2158 // test UsageCountL obj0 2 |
|
2159 // test UsageCountL obj1 1 |
|
2160 // test UsageCountL obj2 1 |
|
2161 |
|
2162 loop 2 |
|
2163 test AddRelationL LOOP_COUNTER |
|
2164 endloop |
|
2165 |
|
2166 |
|
2167 |
|
2168 test NewObjectQueryL rootCond defaultNs Item Album Object |
|
2169 |
|
2170 test GetPropertyDefL titlePropDef albumObjDef Title |
|
2171 test AddPropertyFilterL titlePropDef |
|
2172 test AppendOrderRuleL ESortAscending EOrderRuleTypeProperty titlePropDef |
|
2173 |
|
2174 test SetOperatorL rootCond ELogicConditionOperatorOr |
|
2175 test AddPropertyConditionL albumPropCond rootCond typePropDef UintRange Less EAlbumUserPredefined EAlbumUserPredefined |
|
2176 test AddPropertyConditionL typePropCond rootCond typePropDef PropCond |
|
2177 test SetNegateL typePropCond ETrue |
|
2178 |
|
2179 test SetObjectQueryResultL { obj0 obj1 } |
|
2180 test FindL -1 -1 |
|
2181 waittestclass test |
|
2182 |
|
2183 |
|
2184 |
|
2185 test RemoveRelationsL KSync rel0 2 |
|
2186 test RemoveObjectsL KSync KById obj0 2 |
|
2187 [Endtest] |
|
2188 |
|
2189 [Test] |
|
2190 title Query 7: usage counts and titles from used tags and sort in descending order by usage count |
|
2191 create MdETestScripter test |
|
2192 waittestclass test |
|
2193 test GetDefaultNamespaceDefL defaultNs |
|
2194 |
|
2195 test GetObjectDefL albumObjDef defaultNs Album |
|
2196 test NewObjectL obj0 albumObjDef KL |
|
2197 test GetPropertyDefL titleDef albumObjDef Title |
|
2198 test AddTextPropertyL obj0 titleDef "Humppaa 0" |
|
2199 // test GetPropertyDefL usageCountPropDef albumObjDef UsageCount |
|
2200 // test AddInt32PropertyL obj0 usageCountPropDef 25 |
|
2201 test GetPropertyDefL creationDatePropDef albumObjDef CreationDate |
|
2202 test AddTimePropertyL obj0 creationDatePropDef 20081130:235959.999999 |
|
2203 test GetPropertyDefL lastModDatePropDef0 albumObjDef LastModifiedDate |
|
2204 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
2205 test GetPropertyDefL typePropDef albumObjDef Type |
|
2206 test AddUint16PropertyL obj0 typePropDef EAlbumUser |
|
2207 test GetPropertyDefL orderedPropDef albumObjDef Ordered |
|
2208 test AddBoolPropertyL obj0 orderedPropDef EFalse |
|
2209 test SetGuidL EObject obj0 000022 000001 |
|
2210 test AddObjectL obj0 |
|
2211 |
|
2212 test GetObjectDefL albumObjDef1 defaultNs Album |
|
2213 test NewObjectL obj1 albumObjDef1 KL |
|
2214 // test GetPropertyDefL titleDef albumObjDef Title |
|
2215 test AddTextPropertyL obj1 titleDef "Humppaa 1" |
|
2216 // test GetPropertyDefL usageCountPropDef1 albumObjDef1 UsageCount |
|
2217 // test AddInt32PropertyL obj1 usageCountPropDef1 10 |
|
2218 test GetPropertyDefL creationDatePropDef1 albumObjDef1 CreationDate |
|
2219 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
2220 test GetPropertyDefL lastModDatePropDef1 albumObjDef1 LastModifiedDate |
|
2221 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
2222 test GetPropertyDefL typePropDef1 albumObjDef1 Type |
|
2223 test AddUint16PropertyL obj1 typePropDef1 EAlbumUser |
|
2224 test GetPropertyDefL orderedPropDef1 albumObjDef1 Ordered |
|
2225 test AddBoolPropertyL obj1 orderedPropDef1 EFalse |
|
2226 test SetGuidL EObject obj1 000022 000002 |
|
2227 test AddObjectL obj1 |
|
2228 |
|
2229 |
|
2230 test NewObjectL obj2 albumObjDef KL |
|
2231 // test GetPropertyDefL titleDef albumObjDef Title |
|
2232 test AddTextPropertyL obj2 titleDef "Humppaa 2" |
|
2233 // test GetPropertyDefL usageCountPropDef1 albumObjDef1 UsageCount |
|
2234 // test AddInt32PropertyL obj2 usageCountPropDef1 10 |
|
2235 test AddTimePropertyL obj2 creationDatePropDef1 20081130:235959.999999 |
|
2236 test AddTimePropertyL obj2 lastModDatePropDef1 20081130:235959.999999 |
|
2237 test AddUint16PropertyL obj2 typePropDef1 EAlbumUserPredefined |
|
2238 test AddBoolPropertyL obj2 orderedPropDef1 EFalse |
|
2239 test SetGuidL EObject obj2 000022 000003 |
|
2240 test AddObjectL obj2 |
|
2241 |
|
2242 test GetObjectDefL tagObjDef defaultNs Tag |
|
2243 |
|
2244 test NewObjectL tag0 tagObjDef KL |
|
2245 test AddTimePropertyL tag0 creationDatePropDef1 20081130:235959.999999 |
|
2246 test AddTimePropertyL tag0 lastModDatePropDef1 20081130:235959.999999 |
|
2247 |
|
2248 test NewObjectL tag1 tagObjDef KL |
|
2249 test AddTimePropertyL tag1 creationDatePropDef1 20081130:235959.999999 |
|
2250 test AddTimePropertyL tag1 lastModDatePropDef1 20081130:235959.999999 |
|
2251 |
|
2252 test AddObjectL tag0 |
|
2253 test AddObjectL tag1 |
|
2254 |
|
2255 test GetRelationDefL relDefContains defaultNs Contains |
|
2256 test NewRelationL rel0 obj0 relDefContains tag0 0 KL |
|
2257 test NewRelationL rel1 obj1 relDefContains tag1 0 KL |
|
2258 test NewRelationL rel2 obj2 relDefContains tag1 0 KL |
|
2259 |
|
2260 loop 3 |
|
2261 test AddRelationL LOOP_COUNTER |
|
2262 endloop |
|
2263 |
|
2264 test NewObjectQueryL rootCond defaultNs Count Object Object |
|
2265 |
|
2266 test AddRelationConditionL relCond rootCond Left RelationDef Contains |
|
2267 test RightL rightRelCond relCond |
|
2268 test AddObjectConditionL objCond rightRelCond Object tag1 1 |
|
2269 |
|
2270 test SetObjectQueryResultL { obj1 obj2 } |
|
2271 test FindL -1 -1 |
|
2272 waittestclass test |
|
2273 |
|
2274 test RemoveRelationsL KSync rel0 3 |
|
2275 test RemoveObjectsL KSync KById obj0 2 |
|
2276 test RemoveObjectsL KSync KById tag0 2 |
|
2277 [Endtest] |
|
2278 |
|
2279 [Test] |
|
2280 title Query 8: object IDs from defined album |
|
2281 create MdETestScripter test |
|
2282 waittestclass test |
|
2283 test GetDefaultNamespaceDefL defaultNs |
|
2284 |
|
2285 |
|
2286 test GetObjectDefL albumObjDef defaultNs Album |
|
2287 test NewObjectL albumObj0 albumObjDef KL |
|
2288 test GetPropertyDefL titleDef albumObjDef Title |
|
2289 test AddTextPropertyL albumObj0 titleDef "Humppaa 0" |
|
2290 test GetPropertyDefL creationDatePropDef albumObjDef CreationDate |
|
2291 test AddTimePropertyL albumObj0 creationDatePropDef 20081130:235959.999999 |
|
2292 test GetPropertyDefL lastModDatePropDef0 albumObjDef LastModifiedDate |
|
2293 test AddTimePropertyL albumObj0 lastModDatePropDef0 20081130:235959.999999 |
|
2294 test GetPropertyDefL typePropDef albumObjDef Type |
|
2295 test AddUint16PropertyL albumObj0 typePropDef 25 |
|
2296 test GetPropertyDefL orderedPropDef albumObjDef Ordered |
|
2297 test AddBoolPropertyL albumObj0 orderedPropDef EFalse |
|
2298 test SetGuidL EObject albumObj0 000022 000001 |
|
2299 test AddObjectL albumObj0 |
|
2300 |
|
2301 test GetObjectDefL audioObjDef defaultNs Audio |
|
2302 test NewObjectL track0 audioObjDef KL |
|
2303 test AddTextPropertyL track0 titleDef "HumppaSong" |
|
2304 test AddTimePropertyL track0 creationDatePropDef 20081130:235959.999999 |
|
2305 test AddTimePropertyL track0 lastModDatePropDef0 20081130:235959.999999 |
|
2306 test AddObjectL track0 |
|
2307 |
|
2308 test GetRelationDefL relDefContains defaultNs Contains |
|
2309 test NewRelationL rel0 albumObj0 relDefContains track0 0 KL |
|
2310 test AddRelationL rel0 |
|
2311 |
|
2312 test NewObjectQueryL rootCond defaultNs Id Object Object |
|
2313 test AddRelationConditionL containsRelCond rootCond Right RelationDef Contains |
|
2314 test LeftL leftRelCond containsRelCond |
|
2315 test AddObjectConditionL objCond leftRelCond Object albumObj0 1 |
|
2316 |
|
2317 |
|
2318 test SetObjectQueryResultL { track0 } |
|
2319 test FindL -1 -1 |
|
2320 waittestclass test |
|
2321 |
|
2322 test RemoveRelationL rel0 |
|
2323 test RemoveObjectsL KSync KById albumObj0 2 |
|
2324 |
|
2325 [Endtest] |
|
2326 |
|
2327 [Test] |
|
2328 title Query 9: object count from defined tag |
|
2329 create MdETestScripter test |
|
2330 waittestclass test |
|
2331 test GetDefaultNamespaceDefL defaultNs |
|
2332 |
|
2333 test GetObjectDefL albumObjDef defaultNs Album |
|
2334 test NewObjectL albumObj0 albumObjDef KL |
|
2335 test GetPropertyDefL titleDef albumObjDef Title |
|
2336 test AddTextPropertyL albumObj0 titleDef "Humppaa 0" |
|
2337 test GetPropertyDefL creationDatePropDef albumObjDef CreationDate |
|
2338 test AddTimePropertyL albumObj0 creationDatePropDef 20081130:235959.999999 |
|
2339 test GetPropertyDefL lastModDatePropDef0 albumObjDef LastModifiedDate |
|
2340 test AddTimePropertyL albumObj0 lastModDatePropDef0 20081130:235959.999999 |
|
2341 test GetPropertyDefL typePropDef albumObjDef Type |
|
2342 test AddUint16PropertyL albumObj0 typePropDef 25 |
|
2343 test GetPropertyDefL orderedPropDef albumObjDef Ordered |
|
2344 test AddBoolPropertyL albumObj0 orderedPropDef EFalse |
|
2345 test SetGuidL EObject albumObj0 000022 000001 |
|
2346 |
|
2347 |
|
2348 test GetObjectDefL audioObjDef defaultNs Audio |
|
2349 test NewObjectL track0 audioObjDef KL |
|
2350 test AddTextPropertyL track0 titleDef "HumppaSong" |
|
2351 test AddTimePropertyL track0 creationDatePropDef 20081130:235959.999999 |
|
2352 test AddTimePropertyL track0 lastModDatePropDef0 20081130:235959.999999 |
|
2353 |
|
2354 test AddObjectL albumObj0 |
|
2355 test AddObjectL track0 |
|
2356 |
|
2357 test GetRelationDefL relDefContains defaultNs Contains |
|
2358 test NewRelationL rel0 albumObj0 relDefContains track0 0 KL |
|
2359 |
|
2360 |
|
2361 test AddRelationL rel0 |
|
2362 |
|
2363 test NewObjectQueryL rootCond defaultNs Count Object Object |
|
2364 test AddRelationConditionL containsRelCond rootCond Left RelationDef Contains |
|
2365 test RightL rightRelCond containsRelCond |
|
2366 test AddObjectConditionL objCond rightRelCond Object track0 1 |
|
2367 |
|
2368 test SetObjectQueryResultL { track0 } |
|
2369 test FindL -1 -1 |
|
2370 waittestclass test |
|
2371 |
|
2372 test RemoveRelationL rel0 |
|
2373 test RemoveObjectsL KSync KById albumObj0 2 |
|
2374 |
|
2375 // test RemoveRelationsL KSync rel0 1 |
|
2376 [Endtest] |
|
2377 |
|
2378 [Test] |
|
2379 title Query 10: videos created within a year and (length less or equal than 30 seconds or size less than 1 MB) |
|
2380 create MdETestScripter test |
|
2381 waittestclass test |
|
2382 test GetDefaultNamespaceDefL defaultNs |
|
2383 // Add 4 video objects to DB |
|
2384 test GetObjectDefL videoObjDef defaultNs Video |
|
2385 |
|
2386 |
|
2387 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
2388 test GetPropertyDefL lastModDatePropDef videoObjDef LastModifiedDate |
|
2389 |
|
2390 test GetPropertyDefL durationPropDef videoObjDef Duration |
|
2391 test GetPropertyDefL sizePropDef videoObjDef Size |
|
2392 |
|
2393 test NewObjectL obj0 videoObjDef KL |
|
2394 test SetUriL obj0 e:\testing\data\TEST_VIDEO16.mp4 |
|
2395 test AddTimePropertyL obj0 creationDatePropDef 20071130:235959.999999 |
|
2396 test AddTimePropertyL obj0 lastModDatePropDef 20081130:235959.999999 |
|
2397 test AddReal32PropertyL obj0 durationPropDef 30 |
|
2398 test AddUint32PropertyL obj0 sizePropDef 999999 |
|
2399 |
|
2400 test NewObjectL obj1 videoObjDef KL |
|
2401 test SetUriL obj1 e:\testing\data\TEST_VIDEO17.mp4 |
|
2402 test AddTimePropertyL obj1 creationDatePropDef 20081130:235959.999999 |
|
2403 test AddTimePropertyL obj1 lastModDatePropDef 20090000:000000.000000 |
|
2404 test AddReal32PropertyL obj1 durationPropDef 28 |
|
2405 test AddUint32PropertyL obj1 sizePropDef 999999 |
|
2406 |
|
2407 test NewObjectL obj2 videoObjDef KL |
|
2408 test SetUriL obj2 e:\testing\data\TEST_VIDEO18.mp4 |
|
2409 test AddTimePropertyL obj2 creationDatePropDef 20080001:000000.000000 |
|
2410 test AddTimePropertyL obj2 lastModDatePropDef 20090000:000000.000001 |
|
2411 test AddReal32PropertyL obj2 durationPropDef 28 |
|
2412 test AddUint32PropertyL obj2 sizePropDef 1000000 |
|
2413 |
|
2414 test NewObjectL obj3 videoObjDef KL |
|
2415 test SetUriL obj3 e:\testing\data\TEST_VIDEO19.mp4 |
|
2416 test AddTimePropertyL obj3 creationDatePropDef 20091130:235959.999999 |
|
2417 test AddTimePropertyL obj3 lastModDatePropDef 20090000:000000.000002 |
|
2418 test AddReal32PropertyL obj3 durationPropDef 28 |
|
2419 test AddUint32PropertyL obj3 sizePropDef 999999 |
|
2420 |
|
2421 test AddObjectsL obj0 4 |
|
2422 |
|
2423 test NewObjectQueryL rootCond defaultNs Item Video Object |
|
2424 test AddPropertyConditionL propCond rootCond creationDatePropDef TimeRange Between 20080000:000000.000000 20090000:000000.000000 |
|
2425 test AddLogicConditionL durationCond rootCond OR |
|
2426 |
|
2427 test AddPropertyConditionL durationPropCond durationCond durationPropDef RealRange LessOrEqual 30 30 |
|
2428 test AddPropertyConditionL sizePropCond durationCond sizePropDef UintRange Less 1000000 1000000 |
|
2429 |
|
2430 test SetObjectQueryResultL { obj1 obj2 } |
|
2431 test FindL -1 -1 |
|
2432 waittestclass test |
|
2433 |
|
2434 test RemoveObjectsL KSync KById obj0 4 |
|
2435 delete test |
|
2436 [Endtest] |
|
2437 |
|
2438 [Test] |
|
2439 title Query 11: images within some region (GPS location in some rectangle) |
|
2440 create MdETestScripter test |
|
2441 waittestclass test |
|
2442 test GetDefaultNamespaceDefL defaultNs |
|
2443 // Add 4 video objects to DB |
|
2444 test GetObjectDefL imageObjDef defaultNs Image |
|
2445 |
|
2446 |
|
2447 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2448 test GetPropertyDefL lastModDatePropDef imageObjDef LastModifiedDate |
|
2449 |
|
2450 test GetPropertyDefL sizePropDef imageObjDef Size |
|
2451 |
|
2452 test NewObjectL image0 imageObjDef KL |
|
2453 test SetUriL image0 e:\testing\data\TEST_IMAGE16.jpg |
|
2454 test AddTimePropertyL image0 creationDatePropDef 20071130:235959.999999 |
|
2455 test AddTimePropertyL image0 lastModDatePropDef 20081130:235959.999999 |
|
2456 test AddUint32PropertyL image0 sizePropDef 999999 |
|
2457 |
|
2458 test NewObjectL image1 imageObjDef KL |
|
2459 test SetUriL image1 e:\testing\data\TEST_IMAGE17.jpg |
|
2460 test AddTimePropertyL image1 creationDatePropDef 20081130:235959.999999 |
|
2461 test AddTimePropertyL image1 lastModDatePropDef 20090000:000000.000000 |
|
2462 test AddUint32PropertyL image1 sizePropDef 999999 |
|
2463 |
|
2464 test NewObjectL image2 imageObjDef KL |
|
2465 test SetUriL image2 e:\testing\data\TEST_IMAGE18.jpg |
|
2466 test AddTimePropertyL image2 creationDatePropDef 20080001:000000.000000 |
|
2467 test AddTimePropertyL image2 lastModDatePropDef 20090000:000000.000001 |
|
2468 test AddUint32PropertyL image2 sizePropDef 999999 |
|
2469 |
|
2470 test NewObjectL image3 imageObjDef KL |
|
2471 test SetUriL image3 e:\testing\data\TEST_IMAGE19.jpg |
|
2472 test AddTimePropertyL image3 creationDatePropDef 20091130:235959.999999 |
|
2473 test AddTimePropertyL image3 lastModDatePropDef 20090000:000000.000002 |
|
2474 test AddUint32PropertyL image3 sizePropDef 999999 |
|
2475 |
|
2476 test AddObjectsL image0 4 |
|
2477 |
|
2478 test GetObjectDefL locationObjectDef defaultNs Location |
|
2479 test GetPropertyDefL latitudeLocationPropDef locationObjectDef Latitude |
|
2480 test GetPropertyDefL longitudeLocationPropDef locationObjectDef Longitude |
|
2481 |
|
2482 test NewObjectL loc0 locationObjectDef KL |
|
2483 test AddTimePropertyL loc0 creationDatePropDef 20091130:235959.999999 |
|
2484 test AddTimePropertyL loc0 lastModDatePropDef 20090000:000000.000002 |
|
2485 test AddReal64PropertyL loc0 latitudeLocationPropDef 61 |
|
2486 test AddReal64PropertyL loc0 longitudeLocationPropDef 26 |
|
2487 |
|
2488 test NewObjectL loc1 locationObjectDef KL |
|
2489 test AddTimePropertyL loc1 creationDatePropDef 20091130:235959.999999 |
|
2490 test AddTimePropertyL loc1 lastModDatePropDef 20090000:000000.000002 |
|
2491 test AddReal64PropertyL loc1 latitudeLocationPropDef 62 |
|
2492 test AddReal64PropertyL loc1 longitudeLocationPropDef 60 |
|
2493 |
|
2494 test AddObjectsL loc0 2 |
|
2495 |
|
2496 test GetRelationDefL relContainsLocationDef defaultNs ContainsLocation |
|
2497 |
|
2498 test NewRelationL rel00 image0 relContainsLocationDef loc0 0 KL |
|
2499 test NewRelationL rel11 image1 relContainsLocationDef loc1 0 KL |
|
2500 test NewRelationL rel21 image2 relContainsLocationDef loc1 0 KL |
|
2501 |
|
2502 test AddRelationL rel00 |
|
2503 test AddRelationL rel11 |
|
2504 test AddRelationL rel21 |
|
2505 |
|
2506 test NewObjectQueryL rootCond defaultNs Item Image Object |
|
2507 |
|
2508 test AddRelationConditionL relCond rootCond Left RelationDef ContainsLocation |
|
2509 test RightL rightRelCond relCond |
|
2510 |
|
2511 test AddPropertyConditionL latitudePropCond rightRelCond latitudeLocationPropDef RealRange Between 60 63 |
|
2512 test AddPropertyConditionL longitudePropCond rightRelCond longitudeLocationPropDef RealRange Between 21 27 |
|
2513 |
|
2514 test SetObjectQueryResultL { image0 } |
|
2515 test FindL -1 -1 |
|
2516 waittestclass test |
|
2517 |
|
2518 test RemoveObjectsL KSync KById image0 4 |
|
2519 test RemoveObjectsL KSync KById loc0 2 |
|
2520 test RemoveRelationsL KSync rel00 3 |
|
2521 |
|
2522 delete test |
|
2523 [Endtest] |
|
2524 |
|
2525 [Test] |
|
2526 title Query 12: from downloaded objects, which are modified (last modified date) during this month |
|
2527 create MdETestScripter test |
|
2528 waittestclass test |
|
2529 test GetDefaultNamespaceDefL defaultNs |
|
2530 // Add 4 video objects to DB |
|
2531 test GetObjectDefL imageObjDef defaultNs Image |
|
2532 test GetObjectDefL videoObjDef defaultNs Video |
|
2533 test GetObjectDefL objDef defaultNs Object |
|
2534 |
|
2535 test GetPropertyDefL originPropDef objDef Origin |
|
2536 |
|
2537 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2538 test GetPropertyDefL lastModDatePropDef imageObjDef LastModifiedDate |
|
2539 |
|
2540 test GetPropertyDefL videoCreationDatePropDef videoObjDef CreationDate |
|
2541 test GetPropertyDefL videoLastModDatePropDef videoObjDef LastModifiedDate |
|
2542 |
|
2543 test GetPropertyDefL sizePropDef imageObjDef Size |
|
2544 |
|
2545 test NewObjectL image0 imageObjDef KL |
|
2546 test SetUriL image0 e:\testing\data\TEST_IMAGE16.jpg |
|
2547 test AddTimePropertyL image0 creationDatePropDef 20071130:235959.999999 |
|
2548 test AddTimePropertyL image0 lastModDatePropDef 20081130:235959.999999 |
|
2549 test AddUint32PropertyL image0 sizePropDef 999999 |
|
2550 test AddUint8PropertyL image0 originPropDef ECamera |
|
2551 |
|
2552 test NewObjectL image1 imageObjDef KL |
|
2553 test SetUriL image1 e:\testing\data\TEST_IMAGE17.jpg |
|
2554 test AddTimePropertyL image1 creationDatePropDef 20081130:235959.999999 |
|
2555 test AddTimePropertyL image1 lastModDatePropDef 20090001:000000.000000 |
|
2556 test AddUint32PropertyL image1 sizePropDef 999999 |
|
2557 test AddUint8PropertyL image1 originPropDef EDownloaded |
|
2558 |
|
2559 test NewObjectL video0 videoObjDef KL |
|
2560 test SetUriL video0 e:\testing\data\TEST_VIDEO18.jpg |
|
2561 test AddTimePropertyL video0 videoCreationDatePropDef 20080001:000000.000000 |
|
2562 test AddTimePropertyL video0 videoLastModDatePropDef 20090000:000000.000001 |
|
2563 test AddUint32PropertyL video0 sizePropDef 999999 |
|
2564 test AddUint8PropertyL video0 originPropDef ESideLoaded |
|
2565 |
|
2566 test NewObjectL video1 videoObjDef KL |
|
2567 test SetUriL video1 e:\testing\data\TEST_VIDEO19.jpg |
|
2568 test AddTimePropertyL video1 videoCreationDatePropDef 20091130:235959.999999 |
|
2569 test AddTimePropertyL video1 videoLastModDatePropDef 20091130:235959.999999 |
|
2570 test AddUint32PropertyL video1 sizePropDef 999999 |
|
2571 test AddUint8PropertyL video1 originPropDef EDownloaded |
|
2572 |
|
2573 test AddObjectsL image0 2 |
|
2574 test AddObjectsL video0 2 |
|
2575 |
|
2576 test NewObjectQueryL rootCond defaultNs Item Object Object |
|
2577 |
|
2578 test AddPropertyFilterL sizePropDef |
|
2579 test AddPropertyConditionL originPropCond rootCond originPropDef UintRange Equal EDownloaded 0 |
|
2580 test AddPropertyConditionL lastModPropCond rootCond videoLastModDatePropDef TimeRange Between 20090000:000000.000000 20090100:000000.000000 |
|
2581 |
|
2582 test SetObjectQueryResultL { image1 } |
|
2583 test FindL -1 -1 |
|
2584 waittestclass test |
|
2585 |
|
2586 test RemoveObjectsL KSync KById image0 2 |
|
2587 test RemoveObjectsL KSync KById video0 2 |
|
2588 |
|
2589 |
|
2590 [Endtest] |
|
2591 |
|
2592 [Test] |
|
2593 title Query 13: width, height and size properties from images and videos, sorted by size (largest->smallest) |
|
2594 create MdETestScripter test |
|
2595 waittestclass test |
|
2596 test GetDefaultNamespaceDefL defaultNs |
|
2597 // Add 2 image objects and 2 video objects to DB |
|
2598 test GetObjectDefL imageObjDef defaultNs Image |
|
2599 test GetObjectDefL videoObjDef defaultNs Video |
|
2600 test GetObjectDefL objDef defaultNs Object |
|
2601 test GetObjectDefL mediaObjDef defaultNs MediaObject |
|
2602 |
|
2603 test GetPropertyDefL originPropDef objDef Origin |
|
2604 |
|
2605 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2606 test GetPropertyDefL lastModDatePropDef imageObjDef LastModifiedDate |
|
2607 |
|
2608 test GetPropertyDefL videoCreationDatePropDef videoObjDef CreationDate |
|
2609 test GetPropertyDefL videoLastModDatePropDef videoObjDef LastModifiedDate |
|
2610 |
|
2611 test GetPropertyDefL widthPropDef mediaObjDef Width |
|
2612 test GetPropertyDefL heightPropDef mediaObjDef Height |
|
2613 test GetPropertyDefL sizePropDef imageObjDef Size |
|
2614 |
|
2615 test NewObjectL image0 imageObjDef KL |
|
2616 test SetUriL image0 e:\testing\data\TEST_IMAGE16.jpg |
|
2617 test AddTimePropertyL image0 creationDatePropDef 20071130:235959.999999 |
|
2618 test AddTimePropertyL image0 lastModDatePropDef 20081130:235959.999999 |
|
2619 test AddUint32PropertyL image0 sizePropDef 999999 |
|
2620 test AddUint8PropertyL image0 originPropDef ECamera |
|
2621 test AddUint16PropertyL image0 widthPropDef 200 |
|
2622 test AddUint16PropertyL image0 heightPropDef 100 |
|
2623 |
|
2624 test NewObjectL image1 imageObjDef KL |
|
2625 test SetUriL image1 e:\testing\data\TEST_IMAGE17.jpg |
|
2626 test AddTimePropertyL image1 creationDatePropDef 20081130:235959.999999 |
|
2627 test AddTimePropertyL image1 lastModDatePropDef 20090000:000000.000000 |
|
2628 test AddUint32PropertyL image1 sizePropDef 999997 |
|
2629 test AddUint8PropertyL image1 originPropDef EDownloaded |
|
2630 test AddUint16PropertyL image1 widthPropDef 200 |
|
2631 test AddUint16PropertyL image1 heightPropDef 100 |
|
2632 |
|
2633 test NewObjectL video0 videoObjDef KL |
|
2634 test SetUriL video0 e:\testing\data\TEST_VIDEO18.mp4 |
|
2635 test AddTimePropertyL video0 videoCreationDatePropDef 20080001:000000.000000 |
|
2636 test AddTimePropertyL video0 videoLastModDatePropDef 20090000:000000.000001 |
|
2637 test AddUint32PropertyL video0 sizePropDef 999998 |
|
2638 test AddUint8PropertyL video0 originPropDef ESideLoaded |
|
2639 test AddUint16PropertyL video0 widthPropDef 200 |
|
2640 test AddUint16PropertyL video0 heightPropDef 100 |
|
2641 |
|
2642 test NewObjectL video1 videoObjDef KL |
|
2643 test SetUriL video1 e:\testing\data\TEST_VIDEO19.mp4 |
|
2644 test AddTimePropertyL video1 videoCreationDatePropDef 20091130:235959.999999 |
|
2645 test AddTimePropertyL video1 videoLastModDatePropDef 20091130:235959.999999 |
|
2646 test AddUint32PropertyL video1 sizePropDef 999996 |
|
2647 test AddUint8PropertyL video1 originPropDef EDownloaded |
|
2648 test AddUint16PropertyL video1 widthPropDef 200 |
|
2649 test AddUint16PropertyL video1 heightPropDef 100 |
|
2650 |
|
2651 test AddObjectsL image0 2 |
|
2652 test AddObjectsL video0 2 |
|
2653 |
|
2654 test NewObjectQueryL rootCond defaultNs Item MediaObject LookupObject { imageObjDef videoObjDef } |
|
2655 |
|
2656 test AddPropertyFilterL widthPropDef |
|
2657 test AddPropertyFilterL heightPropDef |
|
2658 test AddPropertyFilterL sizePropDef |
|
2659 test AppendOrderRuleL ESortDescending EOrderRuleTypeProperty sizePropDef |
|
2660 |
|
2661 test SetObjectQueryResultL { image0 video0 image1 video1 } |
|
2662 test FindL -1 -1 |
|
2663 waittestclass test |
|
2664 |
|
2665 test RemoveObjectsL KSync KById image0 2 |
|
2666 test RemoveObjectsL KSync KById video0 2 |
|
2667 [Endtest] |
|
2668 |
|
2669 [Test] |
|
2670 title Query 14: distinct models from images by prefix "N", sorted A->Z |
|
2671 create MdETestScripter test |
|
2672 waittestclass test |
|
2673 test GetDefaultNamespaceDefL defaultNs |
|
2674 // Add 4 video objects to DB |
|
2675 test GetObjectDefL imageObjDef defaultNs Image |
|
2676 test GetObjectDefL videoObjDef defaultNs Video |
|
2677 test GetObjectDefL objDef defaultNs Object |
|
2678 test GetObjectDefL mediaObjDef defaultNs MediaObject |
|
2679 |
|
2680 test GetPropertyDefL originPropDef objDef Origin |
|
2681 |
|
2682 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2683 test GetPropertyDefL lastModDatePropDef imageObjDef LastModifiedDate |
|
2684 |
|
2685 |
|
2686 |
|
2687 test GetPropertyDefL widthPropDef mediaObjDef Width |
|
2688 test GetPropertyDefL heightPropDef mediaObjDef Height |
|
2689 test GetPropertyDefL sizePropDef imageObjDef Size |
|
2690 test GetPropertyDefL modelPropDef imageObjDef Model |
|
2691 |
|
2692 test NewObjectL image0 imageObjDef KL |
|
2693 test SetUriL image0 e:\testing\data\TEST_IMAGE16.jpg |
|
2694 test AddTimePropertyL image0 creationDatePropDef 20071130:235959.999999 |
|
2695 test AddTimePropertyL image0 lastModDatePropDef 20081130:235959.999999 |
|
2696 test AddUint32PropertyL image0 sizePropDef 999999 |
|
2697 test AddUint8PropertyL image0 originPropDef ECamera |
|
2698 test AddUint16PropertyL image0 widthPropDef 200 |
|
2699 test AddUint16PropertyL image0 heightPropDef 100 |
|
2700 test AddTextPropertyL image0 modelPropDef "NModel" |
|
2701 |
|
2702 test NewObjectL image1 imageObjDef KL |
|
2703 test SetUriL image1 e:\testing\data\TEST_IMAGE17.jpg |
|
2704 test AddTimePropertyL image1 creationDatePropDef 20081130:235959.999999 |
|
2705 test AddTimePropertyL image1 lastModDatePropDef 20090000:000000.000000 |
|
2706 test AddUint32PropertyL image1 sizePropDef 999999 |
|
2707 test AddUint8PropertyL image1 originPropDef EDownloaded |
|
2708 test AddUint16PropertyL image1 widthPropDef 200 |
|
2709 test AddUint16PropertyL image1 heightPropDef 100 |
|
2710 test AddTextPropertyL image1 modelPropDef "NModel" |
|
2711 |
|
2712 test NewObjectL image2 imageObjDef KL |
|
2713 test SetUriL image2 e:\testing\data\TEST_IMAGE18.jpg |
|
2714 test AddTimePropertyL image2 creationDatePropDef 20080001:000000.000000 |
|
2715 test AddTimePropertyL image2 lastModDatePropDef 20090000:000000.000001 |
|
2716 test AddUint32PropertyL image2 sizePropDef 999999 |
|
2717 test AddUint8PropertyL image2 originPropDef ESideLoaded |
|
2718 test AddUint16PropertyL image2 widthPropDef 200 |
|
2719 test AddUint16PropertyL image2 heightPropDef 100 |
|
2720 test AddTextPropertyL image2 modelPropDef "NModel" |
|
2721 |
|
2722 test NewObjectL image3 imageObjDef KL |
|
2723 test SetUriL image3 e:\testing\data\TEST_IMAGE39.jpg |
|
2724 test AddTimePropertyL image3 creationDatePropDef 20091130:235959.999999 |
|
2725 test AddTimePropertyL image3 lastModDatePropDef 20091130:235959.999999 |
|
2726 test AddUint32PropertyL image3 sizePropDef 999999 |
|
2727 test AddUint8PropertyL image3 originPropDef EDownloaded |
|
2728 test AddUint16PropertyL image3 widthPropDef 200 |
|
2729 test AddUint16PropertyL image3 heightPropDef 100 |
|
2730 test AddTextPropertyL image3 modelPropDef "ModelN" |
|
2731 |
|
2732 test AddObjectsL image0 2 |
|
2733 test AddObjectsL image2 2 |
|
2734 |
|
2735 test NewObjectQueryL rootCond defaultNs DistinctValues Image Object |
|
2736 |
|
2737 test AddPropertyConditionL modelPropCond rootCond modelPropDef TextCompare BeginsWith N |
|
2738 test AppendOrderRuleL ESortAscending EOrderRuleTypeProperty modelPropDef |
|
2739 test AddPropertyFilterL modelPropDef |
|
2740 |
|
2741 test SetObjectQueryResultL { image0 image1 image2 } |
|
2742 test FindL -1 -1 |
|
2743 waittestclass test |
|
2744 |
|
2745 test RemoveObjectsL KSync KById image0 2 |
|
2746 test RemoveObjectsL KSync KById image2 2 |
|
2747 |
|
2748 [Endtest] |
|
2749 |
|
2750 [Test] |
|
2751 title Query 15: objects with freetexts with freetext contains some text |
|
2752 create MdETestScripter test |
|
2753 waittestclass test |
|
2754 test GetDefaultNamespaceDefL defaultNs |
|
2755 // Add 4 video objects to DB |
|
2756 test GetObjectDefL imageObjDef defaultNs Image |
|
2757 test GetObjectDefL videoObjDef defaultNs Video |
|
2758 test GetObjectDefL objDef defaultNs Object |
|
2759 test GetObjectDefL mediaObjDef defaultNs MediaObject |
|
2760 |
|
2761 test GetPropertyDefL originPropDef objDef Origin |
|
2762 |
|
2763 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2764 test GetPropertyDefL lastModDatePropDef imageObjDef LastModifiedDate |
|
2765 |
|
2766 |
|
2767 |
|
2768 test GetPropertyDefL widthPropDef mediaObjDef Width |
|
2769 test GetPropertyDefL heightPropDef mediaObjDef Height |
|
2770 test GetPropertyDefL sizePropDef imageObjDef Size |
|
2771 test GetPropertyDefL modelPropDef imageObjDef Model |
|
2772 |
|
2773 test NewObjectL image0 imageObjDef KL |
|
2774 test SetUriL image0 e:\testing\data\TEST_IMAGE16.jpg |
|
2775 test AddTimePropertyL image0 creationDatePropDef 20071130:235959.999999 |
|
2776 test AddTimePropertyL image0 lastModDatePropDef 20081130:235959.999999 |
|
2777 test AddUint32PropertyL image0 sizePropDef 999999 |
|
2778 test AddUint8PropertyL image0 originPropDef ECamera |
|
2779 test AddUint16PropertyL image0 widthPropDef 200 |
|
2780 test AddUint16PropertyL image0 heightPropDef 100 |
|
2781 |
|
2782 test AddFreeTextL image0 cat |
|
2783 |
|
2784 test NewObjectL image1 imageObjDef KL |
|
2785 test SetUriL image1 e:\testing\data\TEST_IMAGE17.jpg |
|
2786 test AddTimePropertyL image1 creationDatePropDef 20081130:235959.999999 |
|
2787 test AddTimePropertyL image1 lastModDatePropDef 20090000:000000.000000 |
|
2788 test AddUint32PropertyL image1 sizePropDef 999999 |
|
2789 test AddUint8PropertyL image1 originPropDef EDownloaded |
|
2790 test AddUint16PropertyL image1 widthPropDef 200 |
|
2791 test AddUint16PropertyL image1 heightPropDef 100 |
|
2792 |
|
2793 test AddFreeTextL image1 cata |
|
2794 |
|
2795 test NewObjectL image2 imageObjDef KL |
|
2796 test SetUriL image2 e:\testing\data\TEST_IMAGE18.jpg |
|
2797 test AddTimePropertyL image2 creationDatePropDef 20080001:000000.000000 |
|
2798 test AddTimePropertyL image2 lastModDatePropDef 20090000:000000.000001 |
|
2799 test AddUint32PropertyL image2 sizePropDef 999999 |
|
2800 test AddUint8PropertyL image2 originPropDef ESideLoaded |
|
2801 test AddUint16PropertyL image2 widthPropDef 200 |
|
2802 test AddUint16PropertyL image2 heightPropDef 100 |
|
2803 |
|
2804 test AddFreeTextL image2 acat |
|
2805 |
|
2806 test NewObjectL image3 imageObjDef KL |
|
2807 test SetUriL image3 e:\testing\data\TEST_IMAGE39.jpg |
|
2808 test AddTimePropertyL image3 creationDatePropDef 20091130:235959.999999 |
|
2809 test AddTimePropertyL image3 lastModDatePropDef 20091130:235959.999999 |
|
2810 test AddUint32PropertyL image3 sizePropDef 999999 |
|
2811 test AddUint8PropertyL image3 originPropDef EDownloaded |
|
2812 test AddUint16PropertyL image3 widthPropDef 200 |
|
2813 test AddUint16PropertyL image3 heightPropDef 100 |
|
2814 |
|
2815 test AddFreeTextL image3 TestFreeText3 |
|
2816 |
|
2817 test AddObjectsL image0 4 |
|
2818 |
|
2819 |
|
2820 test NewObjectQueryL rootCond defaultNs ObjectWithFreetexts Object Object |
|
2821 test AddObjectConditionL objCond rootCond ObjectConditionCompare FreeTextContains cat |
|
2822 |
|
2823 test SetObjectQueryResultL { image0 image1 image2 } |
|
2824 test FindL -1 -1 |
|
2825 waittestclass test |
|
2826 |
|
2827 test RemoveObjectsL KSync KById image0 2 |
|
2828 test RemoveObjectsL KSync KById image2 2 |
|
2829 |
|
2830 |
|
2831 [Endtest] |
|
2832 |
|
2833 [Test] |
|
2834 title Query 16: 5 newest objects, sort by creation date, limit to 5 |
|
2835 create MdETestScripter test |
|
2836 waittestclass test |
|
2837 test GetDefaultNamespaceDefL defaultNs |
|
2838 // Add 6 image objects and 1 video object to DB |
|
2839 test GetObjectDefL imageObjDef defaultNs Image |
|
2840 test GetObjectDefL videoObjDef defaultNs Video |
|
2841 test GetObjectDefL objDef defaultNs Object |
|
2842 test GetObjectDefL mediaObjDef defaultNs MediaObject |
|
2843 |
|
2844 test GetPropertyDefL originPropDef objDef Origin |
|
2845 |
|
2846 test GetPropertyDefL creationDatePropDef imageObjDef CreationDate |
|
2847 test GetPropertyDefL lastModDatePropDef imageObjDef LastModifiedDate |
|
2848 |
|
2849 |
|
2850 |
|
2851 test GetPropertyDefL widthPropDef mediaObjDef Width |
|
2852 test GetPropertyDefL heightPropDef mediaObjDef Height |
|
2853 test GetPropertyDefL sizePropDef imageObjDef Size |
|
2854 test GetPropertyDefL modelPropDef imageObjDef Model |
|
2855 |
|
2856 test NewObjectL image0 imageObjDef KL |
|
2857 test SetUriL image0 e:\testing\data\TEST_IMAGE16.jpg |
|
2858 test AddTimePropertyL image0 creationDatePropDef 20171130:235959.999999 |
|
2859 test AddTimePropertyL image0 lastModDatePropDef 20081130:235959.999999 |
|
2860 test AddUint32PropertyL image0 sizePropDef 999999 |
|
2861 test AddUint8PropertyL image0 originPropDef ECamera |
|
2862 test AddUint16PropertyL image0 widthPropDef 200 |
|
2863 test AddUint16PropertyL image0 heightPropDef 100 |
|
2864 test AddTextPropertyL image0 modelPropDef "NModel" |
|
2865 test AddFreeTextL image0 cat |
|
2866 |
|
2867 test NewObjectL image1 imageObjDef KL |
|
2868 test SetUriL image1 e:\testing\data\TEST_IMAGE17.jpg |
|
2869 test AddTimePropertyL image1 creationDatePropDef 20181130:235959.999999 |
|
2870 test AddTimePropertyL image1 lastModDatePropDef 20090000:000000.000000 |
|
2871 test AddUint32PropertyL image1 sizePropDef 999999 |
|
2872 test AddUint8PropertyL image1 originPropDef EDownloaded |
|
2873 test AddUint16PropertyL image1 widthPropDef 200 |
|
2874 test AddUint16PropertyL image1 heightPropDef 100 |
|
2875 test AddTextPropertyL image1 modelPropDef "NModel" |
|
2876 test AddFreeTextL image1 cata |
|
2877 |
|
2878 test NewObjectL image2 imageObjDef KL |
|
2879 test SetUriL image2 e:\testing\data\TEST_IMAGE18.jpg |
|
2880 test AddTimePropertyL image2 creationDatePropDef 20180001:000000.000000 |
|
2881 test AddTimePropertyL image2 lastModDatePropDef 20090000:000000.000001 |
|
2882 test AddUint32PropertyL image2 sizePropDef 999999 |
|
2883 test AddUint8PropertyL image2 originPropDef ESideLoaded |
|
2884 test AddUint16PropertyL image2 widthPropDef 200 |
|
2885 test AddUint16PropertyL image2 heightPropDef 100 |
|
2886 test AddTextPropertyL image2 modelPropDef "NModel" |
|
2887 test AddFreeTextL image2 acat |
|
2888 |
|
2889 test NewObjectL image3 imageObjDef KL |
|
2890 test SetUriL image3 e:\testing\data\TEST_IMAGE39.jpg |
|
2891 test AddTimePropertyL image3 creationDatePropDef 20191130:235959.999999 |
|
2892 test AddTimePropertyL image3 lastModDatePropDef 20091130:235959.999999 |
|
2893 test AddUint32PropertyL image3 sizePropDef 999999 |
|
2894 test AddUint8PropertyL image3 originPropDef EDownloaded |
|
2895 test AddUint16PropertyL image3 widthPropDef 200 |
|
2896 test AddUint16PropertyL image3 heightPropDef 100 |
|
2897 test AddTextPropertyL image3 modelPropDef "ModelN" |
|
2898 test AddFreeTextL image3 TestFreeText3 |
|
2899 |
|
2900 test NewObjectL image4 imageObjDef KL |
|
2901 test SetUriL image4 e:\testing\data\TEST_IMAGE49.jpg |
|
2902 test AddTimePropertyL image4 creationDatePropDef 20191130:235959.999999 |
|
2903 test AddTimePropertyL image4 lastModDatePropDef 20091130:235959.999999 |
|
2904 test AddUint32PropertyL image4 sizePropDef 999999 |
|
2905 test AddUint8PropertyL image4 originPropDef EDownloaded |
|
2906 test AddUint16PropertyL image4 widthPropDef 200 |
|
2907 test AddUint16PropertyL image4 heightPropDef 100 |
|
2908 test AddTextPropertyL image4 modelPropDef "ModelN" |
|
2909 test AddFreeTextL image4 TestFreeText3 |
|
2910 |
|
2911 test NewObjectL image5 imageObjDef KL |
|
2912 test SetUriL image5 e:\testing\data\TEST_IMAGE59.jpg |
|
2913 test AddTimePropertyL image5 creationDatePropDef 20161130:235959.999999 |
|
2914 test AddTimePropertyL image5 lastModDatePropDef 20091130:235959.999999 |
|
2915 test AddUint32PropertyL image5 sizePropDef 999999 |
|
2916 test AddUint8PropertyL image5 originPropDef EDownloaded |
|
2917 test AddUint16PropertyL image5 widthPropDef 200 |
|
2918 test AddUint16PropertyL image5 heightPropDef 100 |
|
2919 test AddTextPropertyL image5 modelPropDef "ModelN" |
|
2920 test AddFreeTextL image5 TestFreeText3 |
|
2921 |
|
2922 |
|
2923 test GetPropertyDefL durationPropDef videoObjDef Duration |
|
2924 |
|
2925 test NewObjectL video0 videoObjDef KL |
|
2926 test SetUriL video0 e:\testing\data\TEST_VIDEO16.mp4 |
|
2927 test AddTimePropertyL video0 creationDatePropDef 20181130:235959.999999 |
|
2928 test AddTimePropertyL video0 lastModDatePropDef 20081130:235959.999999 |
|
2929 test AddReal32PropertyL video0 durationPropDef 30 |
|
2930 test AddUint32PropertyL video0 sizePropDef 999999 |
|
2931 |
|
2932 test AddObjectsL image0 6 |
|
2933 test AddObjectsL video0 1 |
|
2934 |
|
2935 test NewObjectQueryL rootCond defaultNs ObjectWithFreetexts Object Object |
|
2936 test AppendOrderRuleL ESortDescending EOrderRuleTypeProperty creationDatePropDef |
|
2937 |
|
2938 test SetObjectQueryResultL { image1 image2 image3 image4 video0 } |
|
2939 test FindL 5 -1 |
|
2940 waittestclass test |
|
2941 |
|
2942 test RemoveObjectsL KSync KById image0 6 |
|
2943 test RemoveObjectsL KSync KById video0 1 |
|
2944 [Endtest] |
|
2945 |
|
2946 [Test] |
|
2947 title Query 17: all Played events, which belongs to object with some ID |
|
2948 create MdETestScripter test |
|
2949 waittestclass test |
|
2950 test GetDefaultNamespaceDefL defaultNs |
|
2951 test GetObjectDefL videoObjDef defaultNs Video |
|
2952 test NewObjectL obj0 videoObjDef KL |
|
2953 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
2954 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
2955 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
2956 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
2957 test SetGuidL EObject obj0 000013 000001 |
|
2958 test AddObjectL obj0 |
|
2959 |
|
2960 test NewObjectL obj1 videoObjDef KL |
|
2961 test AddTimePropertyL obj1 creationDatePropDef0 20081130:235959.999999 |
|
2962 test AddTimePropertyL obj1 lastModDatePropDef0 20081130:235959.999999 |
|
2963 test SetGuidL EObject obj1 000013 000002 |
|
2964 test AddObjectL obj1 |
|
2965 |
|
2966 test GetEventDefL createdEventDef defaultNs Created |
|
2967 test NewEventL event0 obj0 createdEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
2968 test GetEventDefL deletedEventDef defaultNs Deleted |
|
2969 test NewEventL event1 obj0 deletedEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
2970 test GetEventDefL playedEventDef defaultNs Played |
|
2971 test NewEventL event2 obj0 playedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
2972 test NewEventL event3 obj1 playedEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
2973 test GetEventDefL editedEventDef defaultNs Edited |
|
2974 test NewEventL event4 obj1 editedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
2975 test GetEventDefL sentEventDef defaultNs Sent |
|
2976 test NewEventL event5 obj1 sentEventDef TestSource TestParticipant 20081130:235959.999999 KLC |
|
2977 test GetEventDefL receivedEventDef defaultNs Received |
|
2978 test NewEventL event6 obj1 receivedEventDef TestSource TestParticipant 20081130:235959.999999 KL |
|
2979 loop 7 |
|
2980 test BelongsToSessionL EEvent LOOP_COUNTER EFalse |
|
2981 test InDatabaseL EEvent LOOP_COUNTER EFalse |
|
2982 test AddEventL LOOP_COUNTER |
|
2983 test BelongsToSessionL EEvent LOOP_COUNTER ETrue |
|
2984 test SessionL EEvent LOOP_COUNTER |
|
2985 test InDatabaseL EEvent LOOP_COUNTER ETrue |
|
2986 endloop |
|
2987 |
|
2988 |
|
2989 test NewEventQueryL rootCond defaultNs Item |
|
2990 |
|
2991 test AddEventConditionL eventCond rootCond EventDef Played |
|
2992 test ObjectConditionsL objectCondition eventCond |
|
2993 test AddObjectConditionL objCond objectCondition Object obj1 1 |
|
2994 |
|
2995 test SetEventQueryResultL { event3 } |
|
2996 test FindL -1 -1 |
|
2997 waittestclass test |
|
2998 |
|
2999 test RemoveEventsL KSync event0 3 |
|
3000 request EEventsAsyncRemoved |
|
3001 test RemoveEventsL KAsync event3 4 |
|
3002 wait EEventsAsyncRemoved |
|
3003 release EEventsAsyncRemoved |
|
3004 test RemoveObjectL obj0 KById |
|
3005 test RemoveObjectL obj1 KById |
|
3006 delete test |
|
3007 [Endtest] |
|
3008 |
|
3009 [Test] |
|
3010 title Query 18: all IsVersionOf relations, which belongs to video objects and parameter is not equal to |
|
3011 create MdETestScripter test |
|
3012 waittestclass test |
|
3013 test GetDefaultNamespaceDefL defaultNs |
|
3014 // Add 4 video objects to DB |
|
3015 test GetObjectDefL videoObjDef defaultNs Video |
|
3016 test NewObjectL obj0 videoObjDef KL |
|
3017 test SetUriL obj0 e:\testing\data\TEST_VIDEO12.mp4 |
|
3018 test GetPropertyDefL creationDatePropDef0 videoObjDef CreationDate |
|
3019 test AddTimePropertyL obj0 creationDatePropDef0 20081130:235959.999999 |
|
3020 test GetPropertyDefL lastModDatePropDef0 videoObjDef LastModifiedDate |
|
3021 test AddTimePropertyL obj0 lastModDatePropDef0 20081130:235959.999999 |
|
3022 test NewObjectL obj1 videoObjDef KL |
|
3023 test SetUriL obj1 e:\testing\data\TEST_VIDEO13.mp4 |
|
3024 test GetPropertyDefL creationDatePropDef1 videoObjDef CreationDate |
|
3025 test AddTimePropertyL obj1 creationDatePropDef1 20081130:235959.999999 |
|
3026 test GetPropertyDefL lastModDatePropDef1 videoObjDef LastModifiedDate |
|
3027 test AddTimePropertyL obj1 lastModDatePropDef1 20081130:235959.999999 |
|
3028 test NewObjectL obj2 videoObjDef KL |
|
3029 test SetUriL obj2 e:\testing\data\TEST_VIDEO14.mp4 |
|
3030 test GetPropertyDefL creationDatePropDef2 videoObjDef CreationDate |
|
3031 test AddTimePropertyL obj2 creationDatePropDef2 20081130:235959.999999 |
|
3032 test GetPropertyDefL lastModDatePropDef2 videoObjDef LastModifiedDate |
|
3033 test AddTimePropertyL obj2 lastModDatePropDef2 20081130:235959.999999 |
|
3034 test NewObjectL obj3 videoObjDef KL |
|
3035 test SetUriL obj3 e:\testing\data\TEST_VIDEO15.mp4 |
|
3036 test GetPropertyDefL creationDatePropDef3 videoObjDef CreationDate |
|
3037 test AddTimePropertyL obj3 creationDatePropDef3 20081130:235959.999999 |
|
3038 test GetPropertyDefL lastModDatePropDef3 videoObjDef LastModifiedDate |
|
3039 test AddTimePropertyL obj3 lastModDatePropDef3 20081130:235959.999999 |
|
3040 test AddObjectsL obj0 4 |
|
3041 |
|
3042 test GetRelationDefL relDefContains defaultNs Contains |
|
3043 test GetRelationDefL isVersionOfRelDef defaultNs IsVersionOf |
|
3044 test NewRelationL rel0 obj0 isVersionOfRelDef obj1 1 KL |
|
3045 test NewRelationL rel1 obj0 isVersionOfRelDef obj2 1 KL |
|
3046 test NewRelationL rel2 obj2 isVersionOfRelDef obj3 0 KLC |
|
3047 loop 3 |
|
3048 test AddRelationL LOOP_COUNTER |
|
3049 endloop |
|
3050 |
|
3051 // Query |
|
3052 test NewRelationQueryL rootCond defaultNs Item Video Object |
|
3053 |
|
3054 test AddRelationConditionL isVersionOfRelCond rootCond Left RelationDefRange IsVersionOf NotEqual 0 0 |
|
3055 |
|
3056 test LeftL leftRelCond isVersionOfRelCond |
|
3057 test AddObjectConditionL objCond leftRelCond ObjectDef Video |
|
3058 |
|
3059 test SetRelationQueryResultL { rel0 rel1 } |
|
3060 test FindL -1 -1 |
|
3061 waittestclass test |
|
3062 |
|
3063 test RemoveRelationsL KSync rel0 3 |
|
3064 test RemoveObjectsL KSync KById obj0 4 |
|
3065 delete test |
|
3066 [Endtest] |
|
3067 |
|
3068 [Test] |
|
3069 title Query 19: query the videos that are modified in the last 30 seconds |
|
3070 create MdETestScripter test |
|
3071 waittestclass test |
|
3072 test GetDefaultNamespaceDefL defaultNs |
|
3073 // Add 3 video objects to DB |
|
3074 test GetObjectDefL videoObjDef defaultNs Video |
|
3075 |
|
3076 test GetPropertyDefL creationDatePropDef videoObjDef CreationDate |
|
3077 test GetPropertyDefL lastModDatePropDef videoObjDef LastModifiedDate |
|
3078 |
|
3079 test NewObjectL obj0 videoObjDef KL |
|
3080 test SetUriL obj0 e:\testing\data\TEST_VIDEO19_1.mp4 |
|
3081 test AddTimePropertyL obj0 creationDatePropDef 20090101:000000.000000 |
|
3082 test AddTimePropertyL obj0 lastModDatePropDef 20090809:115000.000000 |
|
3083 |
|
3084 test NewObjectL obj1 videoObjDef KL |
|
3085 test SetUriL obj1 e:\testing\data\TEST_VIDEO19_2.mp4 |
|
3086 test AddTimePropertyL obj1 creationDatePropDef 20090101:000000.000000 |
|
3087 test AddTimePropertyL obj1 lastModDatePropDef 20090808:115000.000000 |
|
3088 |
|
3089 test NewObjectL obj2 videoObjDef KL |
|
3090 test SetUriL obj2 e:\testing\data\TEST_VIDEO19_3.3gp |
|
3091 test AddTimePropertyL obj2 creationDatePropDef 20090101:000000.000000 |
|
3092 test AddTimePropertyL obj2 lastModDatePropDef 20090809:115020.000000 |
|
3093 |
|
3094 test AddObjectsL obj0 3 |
|
3095 |
|
3096 test NewObjectQueryL rootCond defaultNs Item Video Object |
|
3097 test AddPropertyConditionL propCond rootCond lastModDatePropDef TimeRange Between 20090809:115000.000000 20090809:115030.000000 |
|
3098 |
|
3099 test SetObjectQueryResultL { obj0 obj2 } |
|
3100 test FindL -1 -1 |
|
3101 waittestclass test |
|
3102 |
|
3103 test RemoveObjectsL KSync KById obj0 3 |
|
3104 delete test |
|
3105 [Endtest] |
|
3106 |
|
3107 // [Test] |
|
3108 // title Query : TestPopulateDbL |
|
3109 // create MdETestScripter test |
|
3110 // waittestclass test |
|
3111 // test TestPopulateDbL |
|
3112 // waittestclass test |
|
3113 // [Endtest] |