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