[Define]
KTrue 1
KFalse 0

// CMPXCollectionPath
KMPXPathLevel1 33331
KMPXPathLevel2 33332
KMPXPathLevel3 33333
KMPXPathItem1  44441
KMPXPathItem2  44442
KMPXPathItem3  44443
KMPXPathItem4  44444
KMPXPathItem5  44445

[Enddefine]

[Test]
title 1: Create Utility: New Playlist
create mpxcollectionplaylisttest utility
utility CreateUtilityNewPlaylist
delete utility 
pause 1000
[Endtest]

[Test]
title 2: Create Utility: Using existing playlist
create mpxcollectionplaylisttest utility
utility CreateUtilityPlaylistExist
delete utility 
pause 1000
[Endtest]

[Test]
title 3: Create Utility: Using existing collection path
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
delete utility 
pause 1000
[Endtest]

[Test]
title 4: Create Utility: Using existing collection stream 
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionStream
delete utility 
pause 1000
[Endtest]

[Test]
title 5: Copy Content
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility CopyContentL
delete utility 
pause 1000
[Endtest]

[Test]
title 6: Next (With repeat ignored)
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Next KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 7: Next (With repeat not ignored)
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Next KFalse
delete utility 
pause 1000
[Endtest]

[Test]
title 8: Previous (With repeat ignored)
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Previous KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 9: Previous (With repeat not ignored)
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Previous KFalse
delete utility 
pause 1000
[Endtest]

[Test]
title 10: Set To First Item
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetToFirst
delete utility 
pause 1000
[Endtest]

[Test]
title 11: Set To Last Item
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetToLast
delete utility 
pause 1000
[Endtest]

[Test]
title 12: Set To Given Index
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetToIndex 2
delete utility 
pause 1000
[Endtest]

[Test]
title 13: Get Playlist Count
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Count
delete utility 
pause 1000
[Endtest]

[Test]
title 14: Get Playlist Levels
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Levels
delete utility 
pause 1000
[Endtest]

[Test]
title 15: Get Playlist Index
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Index
delete utility 
pause 1000
[Endtest]

[Test]
title 16: Get Remote Flag 
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Remote
delete utility 
pause 1000
[Endtest]

[Test]
title 17: Get Repeat Mode
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility RepeatMode
delete utility 
pause 1000
[Endtest]

[Test]
title 18: Get Shuffle mode
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Shuffle
delete utility 
pause 1000
[Endtest]

[Test]
title 19: Get Path
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Path
delete utility 
pause 1000
[Endtest]

[Test]
title 20: Get MediaL
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility MediaL
delete utility 
pause 1000
[Endtest]

[Test]
title 21: Set Repeat Mode Off
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetRepeatMode 0
delete utility 
pause 1000
[Endtest]

[Test]
title 22: Set Repeat Mode On
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetRepeatMode KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 23: Set Repeat Mode Repeat All
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetRepeatMode 2
delete utility 
pause 1000
[Endtest]

[Test]
title 24: Set Repeat Enabled False
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetRepeatEnabled KFalse
delete utility 
pause 1000
[Endtest]

[Test]
title 25: Set Repeat Enabled True
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetRepeatEnabled KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 26: Set Shuffle True and current to top True
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetShuffleL KTrue KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 27: Set Shuffle False and current to top False
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetShuffleL KFalse KFalse
delete utility 
pause 1000
[Endtest]

[Test]
title 28: Set Shuffle Enabled True
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetShuffleEnabledL KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 29: Set Shuffle Enabled False
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetShuffleEnabledL KFalse
delete utility 
pause 1000
[Endtest]

[Test]
title 30: Externalize/Internalize
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility StreamingL
delete utility 
pause 1000
[Endtest]

[Test]
title 31: Set Observer
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetObserver
delete utility 
pause 1000
[Endtest]

[Test]
title 32: Get Embedded Playlist flag
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility EmbeddedPlaylist
delete utility 
pause 1000
[Endtest]

[Test]
title 33: Set Embedded Playlist True
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetEmbeddedPlaylist KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 34: Set Embedded Playlist False
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetEmbeddedPlaylist KFalse
delete utility 
pause 1000
[Endtest]

[Test]
title 35: Set
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility SetL
delete utility 
pause 1000
[Endtest]

[Test]
title 36: Cancel Request
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility CancelRequest
delete utility 
pause 1000
[Endtest]

[Test]
title 37: Invalidate
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility Invalidate
delete utility 
pause 1000
[Endtest]

[Test] 
title 38:Collection Playlist: Path Index (With repeat ignored)
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility PathIndex KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 39:Collection Playlist: Next Index (With repeat ignored)
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility NextIndex KTrue
delete utility 
pause 1000
[Endtest]

[Test]
title 40:CMPXCollectionPlaylistDestructor
create mpxcollectionplaylisttest utility
utility CreateUtilityCollectionPath
utility CMPXCollectionPlaylistDestructor
delete utility 
pause 1000
[Endtest]

[Test]
title 41: CMPXCollectionOpenUtilityCreate
create mpxcollectionplaylisttest utility
utility CMPXCollectionOpenUtilityCreate
delete utility 
pause 1000
[Endtest]

[Test]
title 42 NewL mpxcollectionutility
create mpxcollectionplaylisttest utility
utility NewLMMPXCollectionUtility
delete utility
pause 1000
[Endtest]

[Test]
title 43 CMPXCollectionOpenUtilityStartL
create mpxcollectionplaylisttest utility
//utility CMPXCollectionOpenUtilityCreate
utility CMPXCollectionOpenUtilityStartL
delete utility
pause 1000
[Endtest]



[Test]
title 44 CMPXCollectionOpenUtilityPathL
create mpxcollectionplaylisttest utility
utility CMPXCollectionOpenUtilityCreate
utility CMPXCollectionOpenUtilityPathL
delete utility
pause 1000
[Endtest]


[Test]
title 45 CMPXCollectionOpenUtilityStop
create mpxcollectionplaylisttest utility
utility CMPXCollectionOpenUtilityCreate
utility CMPXCollectionOpenUtilityStop
delete utility
pause 1000
[Endtest]

[Test]
title 46 CMPXCollectionOpenUtilitySetDelay
create mpxcollectionplaylisttest utility
utility CMPXCollectionOpenUtilityCreate
utility CMPXCollectionOpenUtilitySetDelay
delete utility
pause 1000
[Endtest]

[Test]
title 47 CMPXCollectionOpenUtilityStartUsingPath
create mpxcollectionplaylisttest utility
//utility CMPXCollectionOpenUtilityCreate
utility CMPXCollectionOpenUtilityStartUsingPath KMPXPathLevel1
delete utility
pause 1000
[Endtest]

[Test]
title 48 CMPXCollectionOpenUtilitySetDirection
create mpxcollectionplaylisttest utility
utility CMPXCollectionOpenUtilityCreate
utility CMPXCollectionOpenUtilitySetDirection
delete utility
pause 1000
[Endtest]