serviceproviders/sapi_mediamanagement/tsrc/testing/tmediaprovidertesting/conf/tmediamgmttest_all.cfg
changeset 22 fc9cf246af83
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
       
     1  /*  ===========================================================================
       
     2  *  Copyright © 2006-2007 Nokia Corporation.
       
     3  *  This material, including documentation and any related
       
     4  *  computer programs, is protected by copyright controlled by
       
     5  *  Nokia Corporation. All rights are reserved. Copying,
       
     6  *  including reproducing, storing, adapting or translating, any
       
     7  *  or All of this material requires the prior written consent of
       
     8  *  Nokia Corporation. This material also contains confidential
       
     9  *  information which may not be disclosed to others without the
       
    10  *  prior written consent of Nokia Corporation.
       
    11  * ============================================================================
       
    12  Expected aaaa aaaa aaaa aaaa aaaa aaaa aaaa Next Bbbb bbb bbb bbb bbb bbb bbb End 
       
    13  
       
    14  */
       
    15 
       
    16 /*key startRange endRange sortKey sortOrder errorcode 
       
    17 [Expected type fileName fileExtension drive fileSize fileDate fileNameAndPath mimeType
       
    18 [Next "next map data" End]].
       
    19 */
       
    20 ################################################## All ###################################################
       
    21 /*
       
    22 NOTE:
       
    23 1. NULL input means not passing any value for the placeholder
       
    24 2. NULLVALUE means a NULL is passed as value to the placeholder
       
    25 3. "NULL" as input to a parameter means a Null string or a string of value "NULL" is passed as input
       
    26 4. All the fields in input is mandatory, if no value is to be passed for any field, a value NULL can be passed. And if NULL is to be passed as value, then 
       
    27 	value "NULLVALUE" needs to be passed.
       
    28 5. The key-value pair in Expected output can be in any order and All are optional.
       
    29 
       
    30 
       
    31 Requirements:
       
    32 The following image files are expected to be present at the mentioned locations. All the cases below are written based on this assumption. 
       
    33 The expected output is as per this list.
       
    34 
       
    35 The Expected output is of the form where All fields of each map is written in between two keys StartMap and EndMap 
       
    36 All the maps are written between two key words ExpectedStart and ExpectedEnd, as shown below
       
    37 
       
    38 FileNameAndPath:											Expected o/p for the file in format mentioned below:
       
    39 c:\data\Images\a.jpg          				StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap
       
    40 c:\data\Images\ant.jpg								StartMap Type Media FileName ant FileExtension .jpg Drive c: FileSize 8474 FileDate 20060819:102426 FileNameAndPath c:\data\Images\ant.jpg MimeType image/jpeg EndMap
       
    41 c:\data\Images\blue.png 							StartMap Type Media FileName blue FileExtension .png Drive c: FileSize 4796 FileDate 20070302:120443 FileNameAndPath c:\data\Images\blue.png MimeType image/png EndMap
       
    42 c:\data\Images\pictures\dreams.bmp 		StartMap Type Media FileName dreams FileExtension .bmp Drive c: FileSize 73105 FileDate 20070108:015537 FileNameAndPath c:\data\Images\pictures\dreams.bmp MimeType image/bmp EndMap
       
    43 e:\data\Images\stars.jpg 							StartMap Type Media FIleName stars FileExtension .jpg Drive e: FileSize 24790 FileDate 20081019:033638 FileNameAndPath e:\data\Images\stars.jpg MimeType image/jpeg EndMap
       
    44 
       
    45 
       
    46 
       
    47 //Testcase format:
       
    48 //Description of the testcase
       
    49 //Input: Input values
       
    50 //Expected:(+ve/-ve case) Expected output or behaviour 
       
    51 [Test]
       
    52 title Sample
       
    53 create tmediaprovidertesting foobar
       
    54 //foobar GetFilesListL <Type> <FileType> <Key> <StartRange> <EndRange> <SortKey> <SortOrder> <expected error code> ExpectedStart StartMap Type <Type value> FileName <filename value FileExtension <FileExtension value> Drive <Drive value> FileSize <FileSize value> FileDate <FileDate value> FileNameAndPath <FileNameAndPath value> MimeType <MimeType value> EndMap ExpectedEnd
       
    55 foobar GetFilesListL FileInfo Image FileName a NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap ExpectedEnd 
       
    56 delete foobar
       
    57 [Endtest]
       
    58 
       
    59 */
       
    60 ############################################### Test cases starts ###############################################
       
    61 
       
    62 //GetList with value "FileInfo" for Type input and no other input parameters
       
    63 //Input: FileInfo as Type, other inputs are NULL
       
    64 //Expected: errorcode 1003- MissingArgumentType error as the mandatory FileType input is missing
       
    65 [Test]
       
    66 title All_FileName
       
    67 create tmediaprovidertesting foobar
       
    68 foobar GetFilesListL FileInfo All FileName tempo NULL NULL NULL 0  
       
    69 delete foobar
       
    70 [Endtest]
       
    71 
       
    72 //GetList of All files by FileName, no startrange
       
    73 //Input: FileName as Key and Null startrange
       
    74 //Expected: errorcode 1003-MissingArgumentType is expected o/p as the startrange is mandatory when Key is mentioned
       
    75 [Test]
       
    76 title AllNeg_FileNameKeywithNoStartRange
       
    77 create tmediaprovidertesting foobar
       
    78 foobar GetFilesListL FileInfo All FileName NULL NULL NULL NULL 1003  
       
    79 delete foobar
       
    80 [Endtest]
       
    81 
       
    82 
       
    83 //GetList of All files by key SongName, no startrange
       
    84 //Input: SongName as key and Null startrange
       
    85 //Expected: errorcode 1003-MissingArgumentType
       
    86 [Test]
       
    87 title AllNeg_SongNameKeyWithNoStartRange
       
    88 create tmediaprovidertesting foobar
       
    89 foobar GetFilesListL FileInfo All SongName NULL NULL NULL NULL 1003
       
    90 delete foobar
       
    91 [Endtest]
       
    92 
       
    93 //GetList of All files by key Artist, no startrange
       
    94 //Input: Artist as Key and Null startrange
       
    95 //Expected: errorcode 1003-MissingArgumentType
       
    96 [Test]
       
    97 title AllNeg_ArtistKeyWithNoStartRange
       
    98 create tmediaprovidertesting foobar
       
    99 foobar GetFilesListL FileInfo All Artist NULL NULL NULL NULL 1003
       
   100 delete foobar
       
   101 [Endtest]
       
   102 
       
   103 
       
   104 //GetList of All files by key Album, no startrange
       
   105 //Input: Album as Key and Null startrange
       
   106 //Expected: errorcode 1003-MissingArgumentType
       
   107 [Test]
       
   108 title AllNeg_AlbumKeyWithNoStartRange
       
   109 create tmediaprovidertesting foobar
       
   110 foobar GetFilesListL FileInfo All Album NULL NULL NULL NULL 1003
       
   111 delete foobar
       
   112 [Endtest]
       
   113 
       
   114 //GetList of All files by key TrackNumber, no startrange
       
   115 //Input: TrackNumber as Key and Null startrange
       
   116 //Expected: errorcode 1002-BadArgumentType
       
   117 [Test]
       
   118 title AllNeg_TrackNumberKeyWithNoStartRange
       
   119 create tmediaprovidertesting foobar
       
   120 foobar GetFilesListL FileInfo All TrackNumber NULL NULL NULL NULL 1002
       
   121 delete foobar
       
   122 [Endtest]
       
   123 
       
   124 //GetList of All files by key Genre, no startrange
       
   125 //Input: Genre as Key and Null startrange
       
   126 //Expected: errorcode 1003-MissingArgumentType
       
   127 [Test]
       
   128 title AllNeg_GenreKey_WithNoStartRange
       
   129 create tmediaprovidertesting foobar
       
   130 foobar GetFilesListL FileInfo All Genre NULL NULL NULL NULL 1003
       
   131 delete foobar
       
   132 [Endtest]
       
   133 
       
   134 //GetList of All files by key Composer, no startrange
       
   135 //Input: Composer as Key and Null startrange
       
   136 //Expected: errorcode 1003-MissingArgumentType
       
   137 [Test]
       
   138 title AllNeg_ComposerKey_WithNoStartRange
       
   139 create tmediaprovidertesting foobar
       
   140 foobar GetFilesListL FileInfo All Composer NULL NULL NULL NULL 1003
       
   141 delete foobar
       
   142 [Endtest]
       
   143 
       
   144 //GetList with startrange for FileName
       
   145 //Input: FileName as Key, music1 as startrange
       
   146 //Expected: list of All files with FileName music1, sorted in ascending order based on FileName, which is the default sort key and order
       
   147 [Test]
       
   148 title All_FileNameKeyWithValidStartRange
       
   149 create tmediaprovidertesting foobar
       
   150 foobar GetFilesListL FileInfo All FileName tempo NULL NULL NULL 0 ExpectedStart StartMap FileName tempo EndMap ExpectedEnd 
       
   151 delete foobar
       
   152 [Endtest]
       
   153 
       
   154 //GetList of All files by MimeType
       
   155 //Input: MimeType as Key, AUDIO/MPEG as startrange 
       
   156 //Expected: list of All files with MimeType AUDIO/MPEG are expected
       
   157 [Test]
       
   158 title All_MimeTypeKey_Audio/mpegStartRange
       
   159 create tmediaprovidertesting foobar
       
   160 foobar GetFilesListL FileInfo All MimeType AUDIO/MPEG NULL NULL NULL 0 ExpectedStart StartMap FileName music1 MimeType AUDIO/MPEG EndMap StartMap FileName music2 MimeType AUDIO/MPEG EndMap StartMap FileName music3 MimeType AUDIO/MPEG EndMap StartMap FileName music4 MimeType AUDIO/MPEG EndMap ExpectedEnd
       
   161 delete foobar
       
   162 [Endtest]
       
   163 
       
   164 //GetList of All files by FileNameAndPath
       
   165 //Input: FileNameAndPath as Key and c:\data\sounds\digital\music2.mp3 as startrange
       
   166 //Expected: list of All files with file path c:\data\sounds\digital\music2.mp3 is expected
       
   167 [Test]
       
   168 title All_FileNameAndPathKey_WithValidStartRange
       
   169 create tmediaprovidertesting foobar
       
   170 foobar GetFilesListL FileInfo All FileNameAndPath c:\data\sounds\digital\music2.mp3 NULL NULL NULL 0 ExpectedStart StartMap FileNameAndPath c:\data\sounds\digital\music2.mp3 EndMap ExpectedEnd   
       
   171 delete foobar
       
   172 [Endtest]
       
   173 
       
   174  //This case is removed as we are not able to get SongName field from the underlying
       
   175 //A bug with ID: RCHA-7N2938 has been raised for the same
       
   176 //GetList of All files by key SongName
       
   177 //Input: SongName as Key and music1 as startrange
       
   178 //Expected: list of All files with SongName as music1 is expected
       
   179 [Test]
       
   180 title All_SongNameKey_music1.mp3StartRange
       
   181 create tmediaprovidertesting foobar
       
   182 foobar GetFilesListL FileInfo All SongName music1.mp3 NULL NULL NULL 0 ExpectedStart StartMap FileName music1 SongName music1.mp3 EndMap ExpectedEnd
       
   183 delete foobar
       
   184 [Endtest]
       
   185 
       
   186 
       
   187 //GetList of All files by key Artist
       
   188 //Input: Artist as Key Rafi as startrange
       
   189 //Expected: list of All files with Artist Rafi is expected
       
   190 [Test]
       
   191 title All_ArtistKey_WithValidStartRange
       
   192 create tmediaprovidertesting foobar
       
   193 foobar GetFilesListL FileInfo All Artist Rafi NULL NULL NULL 0 ExpectedStart StartMap FileName music2 EndMap ExpectedEnd
       
   194 delete foobar
       
   195 [Endtest]
       
   196 
       
   197 //GetList of All files by key Album
       
   198 //Input: Album as Key and Shaheed as startrange 
       
   199 //Expected: list of All files with Album value as Shaheed is expected
       
   200 [Test]
       
   201 title All_AlbumKey_WithValidStartRange
       
   202 create tmediaprovidertesting foobar
       
   203 foobar GetFilesListL FileInfo All Album Shaheed NULL NULL NULL 0 ExpectedStart StartMap FileName music2 Album Shaheed EndMap ExpectedEnd
       
   204 delete foobar
       
   205 [Endtest]
       
   206 
       
   207 //GetList of All files by key Genre
       
   208 //Input: Genre as Key and Rock as startrange
       
   209 //Expected: list of All files with Genre as Rock is expected
       
   210 [Test]
       
   211 title All_GenreKeyWithValidStartRange
       
   212 create tmediaprovidertesting foobar
       
   213 foobar GetFilesListL FileInfo All Genre Rock NULL NULL NULL 0 ExpectedStart StartMap FileName music1 Genre Rock EndMap StartMap FileName music4 Genre Rock EndMap ExpectedEnd
       
   214 delete foobar
       
   215 [Endtest]
       
   216 
       
   217 //GetList of All files by key Composer
       
   218 //Input: Composer as Key and malik as startrange
       
   219 //Expected: list of All with Composer as Malik
       
   220 [Test]
       
   221 title All_ComposerKeyWithValidStartRange
       
   222 create tmediaprovidertesting foobar
       
   223 foobar GetFilesListL FileInfo All Composer Malik NULL NULL NULL 0 ExpectedStart StartMap FileName music4 Composer Malik EndMap ExpectedEnd
       
   224 delete foobar
       
   225 [Endtest]
       
   226 
       
   227 
       
   228 //GetList with null string as value for FileNameAndPath
       
   229 //Input: FileNameAndPath as Key and a null string "null" as startrange
       
   230 //Expected: errorcode 0 and empty list
       
   231 [Test]
       
   232 title All_FileNameAndPathKey_NullStringStartRange
       
   233 create tmediaprovidertesting foobar
       
   234 foobar GetFilesListL FileInfo All FileNameAndPath "NULL" NULL NULL NULL 0 
       
   235 delete foobar
       
   236 [Endtest]
       
   237 
       
   238 //GetList with integer value for FileName
       
   239 //Input: FileName as Key and an integer value 12 as startrange
       
   240 //Expected: errorcode 0 and empty list as there are no All files with this name
       
   241 [Test]
       
   242 title All_IntegerStartRange
       
   243 create tmediaprovidertesting foobar
       
   244 foobar GetFilesListL FileInfo All FileName 12 NULL NULL NULL 0 
       
   245 delete foobar
       
   246 [Endtest]
       
   247 
       
   248 #####################################  Type==“FileInfo” + Passing Filter Map with FileType==All + Sort Map #################################
       
   249 
       
   250 //GetList with Ascending order for a given drive
       
   251 //Input: Drive as SortKey and Ascending as SortOrder
       
   252 //Expected: list of music files sorted in ascending order based on drive
       
   253 [Test]
       
   254 title All_SortAscendingOnDrive
       
   255 create tmediaprovidertesting foobar
       
   256 foobar GetFilesListL FileInfo All Genre Rock NULL Drive Ascending 0 ExpectedStart StartMap FileName music1 Genre Rock EndMap StartMap FileName music4 Genre Rock EndMap ExpectedEnd
       
   257 delete foobar
       
   258 [Endtest]
       
   259 
       
   260 //GetList with Descending order for a given drive
       
   261 //Input: Drive as SortKey and Descending as SortOrder
       
   262 //Expected: list of music files sorted in descending order based on drive
       
   263 [Test]
       
   264 title All_SortDescendingOnDrive
       
   265 create tmediaprovidertesting foobar
       
   266 foobar GetFilesListL FileInfo All Genre Rock NULL Drive Descending 0 ExpectedStart StartMap FileName music4 Genre Rock EndMap StartMap FileName music1 Genre Rock EndMap ExpectedEnd
       
   267 delete foobar
       
   268 [Endtest]
       
   269 
       
   270 //GetList with Ascending order for a given FileExtension
       
   271 //Input: FileExtension as SortKey and Ascending as SortOrder
       
   272 //Expected: list of music files sorted in ascending order based on FileExtension
       
   273 [Test]
       
   274 title All_SortAscendingOnFileExtension
       
   275 create tmediaprovidertesting foobar
       
   276 foobar GetFilesListL FileInfo All Drive e: NULL FileExtension Ascending 0 ExpectedStart StartMap FileName music4 FileExtension .mp3 EndMap StartMap FileName music5 FileExtension .rm EndMap ExpectedEnd
       
   277 delete foobar
       
   278 [Endtest]
       
   279 
       
   280 //GetList with Descending order for a given FileExtension
       
   281 //Input: FileExtension as SortKey and Descending as SortOrder
       
   282 //Expected: list of music files sorted in descending order based on FileExtensions
       
   283 [Test]
       
   284 title All_SortDescendingOnFileExtension
       
   285 create tmediaprovidertesting foobar
       
   286 foobar GetFilesListL FileInfo All Drive e: NULL FileExtension Descending 0 ExpectedStart StartMap FileName music5 FileExtension .rm EndMap StartMap FileName music4 FileExtension .mp3 EndMap ExpectedEnd
       
   287 delete foobar
       
   288 [Endtest]
       
   289 
       
   290 //GetList with Ascending order for a given MimeType
       
   291 //Input: MimeType as SortKey and Ascending as SortOrder
       
   292 //Expected: list of music files sorted in ascending order based on MimeType
       
   293 [Test]
       
   294 title All_SortAscendingOnMimeType
       
   295 create tmediaprovidertesting foobar
       
   296 foobar GetFilesListL FileInfo All Drive e: NULL MimeType Ascending 0 ExpectedStart StartMap FileName music4 MimeType AUDIO/MPEG EndMap StartMap FileName music5 MimeType audio/x-pn-realaudio EndMap ExpectedEnd
       
   297 delete foobar
       
   298 [Endtest]
       
   299 
       
   300 //GetList with Descending order for a given MimeType
       
   301 //Input: MimeType as sortKey and Descending as SortOrder
       
   302 //Expected: list of music files sorted in descending order based on MimeType
       
   303 [Test]
       
   304 title All_SortDescendingOnMimeType
       
   305 create tmediaprovidertesting foobar
       
   306 foobar GetFilesListL FileInfo All Drive e: NULL MimeType Descending 0 ExpectedStart StartMap FileName music5 MimeType audio/x-pn-realaudio EndMap StartMap FileName music4 MimeType AUDIO/MPEG EndMap ExpectedEnd
       
   307 delete foobar
       
   308 [Endtest]
       
   309 
       
   310 //GetList with Ascending order for a given FileSize
       
   311 //Input: FileSize as sortKey and Ascending as SortOrder
       
   312 //Expected: list of music files sorted in ascending order based on FileSize
       
   313 [Test]
       
   314 title All_SortAscendingOnFileSize
       
   315 create tmediaprovidertesting foobar
       
   316 foobar GetFilesListL FileInfo All Drive e: NULL FileSize Ascending 0 ExpectedStart StartMap FileName music4 FileSize 434288 EndMap StartMap FileName music5 FileSize 1381291 EndMap ExpectedEnd
       
   317 delete foobar
       
   318 [Endtest]
       
   319 
       
   320 //GetList with Descending order for a given FileSize
       
   321 //Input: FileSize as sortKey and Descending as SortOrder
       
   322 //Expected: list of music files sorted in descending order based on FileSize
       
   323 [Test]
       
   324 title All_SortDescendingOnFileSize
       
   325 create tmediaprovidertesting foobar
       
   326 foobar GetFilesListL FileInfo All Drive e: NULL FileSize Descending 0 ExpectedStart StartMap FileName music5 FileSize 1381291 EndMap StartMap FileName music4 FileSize 434288 EndMap ExpectedEnd
       
   327 delete foobar
       
   328 [Endtest]
       
   329 
       
   330 //GetList with Ascending order for a given FileDate
       
   331 //Input: FileDate as SortKey and Ascending as SortOrder
       
   332 //Expected: list of music files sorted in ascending order based on FileDate
       
   333 [Test]
       
   334 title All_SortAscendingOnFileDate
       
   335 create tmediaprovidertesting foobar
       
   336 foobar GetFilesListL FileInfo All Genre Rock NULL FileDate Ascending 0 ExpectedStart StartMap FileName music1 FileDate 20090116:091802 EndMap StartMap FileName music4 FileDate 20090117:111341 EndMap ExpectedEnd 
       
   337 delete foobar
       
   338 [Endtest]
       
   339 
       
   340 //GetList with Descending order for a given FileDate
       
   341 //Input: FileDate as SortKey and Descending as SortOrder
       
   342 //Expected: list of music files sorted in descending order based on FileDate
       
   343 [Test]
       
   344 title All_SortDescendingOnFileDate
       
   345 create tmediaprovidertesting foobar
       
   346 foobar GetFilesListL FileInfo All Genre Rock NULL FileDate Descending 0 ExpectedStart StartMap FileName music4 FileDate 20090117:111341 EndMap StartMap FileName music1 FileDate 20090116:091802 EndMap ExpectedEnd 
       
   347 delete foobar
       
   348 [Endtest]
       
   349 
       
   350 //GetList with Ascending order for a given Artist
       
   351 //Input: Artist as SortKey and Ascending as SortOrder
       
   352 //Expected: list of music files sorted in ascending order based on Artist
       
   353 [Test]
       
   354 title All_SortAscendingOnArtist
       
   355 create tmediaprovidertesting foobar
       
   356 foobar GetFilesListL FileInfo All Drive c: NULL Artist Ascending 0 ExpectedStart StartMap FileName music1 Artist Lata EndMap StartMap FileName music2 Artist Rafi EndMap StartMap FileName music3 Artist Sonu EndMap ExpectedEnd
       
   357 delete foobar
       
   358 [Endtest]
       
   359 
       
   360 //GetList with Descending order for a given Artist
       
   361 //Input: Artist as SortKey and Descending as SortOrder
       
   362 //Expected: list of music files sorted in descending order based on Artist
       
   363 [Test]
       
   364 title All_SortDescendingOnArtist
       
   365 create tmediaprovidertesting foobar
       
   366 foobar GetFilesListL FileInfo All Drive c: NULL Artist Descending 0 ExpectedStart StartMap FileName music3 Artist Sonu EndMap StartMap FileName music2 Artist Rafi EndMap StartMap FileName music1 Artist Lata EndMap ExpectedEnd
       
   367 delete foobar
       
   368 [Endtest]
       
   369 
       
   370 
       
   371 //GetList with Ascending order for a given Genre
       
   372 //Input: Genre as SortKey and Ascending as SortOrder
       
   373 //Expected: list of music files sorted in ascending order based on Genre
       
   374 [Test]
       
   375 title All_SortAscendingOnGenre
       
   376 create tmediaprovidertesting foobar
       
   377 foobar GetFilesListL FileInfo All FileSize 400000 500000 Genre Ascending 0 ExpectedStart StartMap FileName music3 Genre Classical EndMap StartMap FileName music4 Genre Rock EndMap ExpectedEnd
       
   378 delete foobar
       
   379 [Endtest]
       
   380 
       
   381 //GetList with Descending order for a given Genre
       
   382 //Input: Genre as SortKey and Descending as SortOrder
       
   383 //Expected: list of music files sorted in descending order based on Genre
       
   384 [Test]
       
   385 title All_SortDescendingOnGenre
       
   386 create tmediaprovidertesting foobar
       
   387 foobar GetFilesListL FileInfo All FileSize 400000 500000 Genre Descending 0 ExpectedStart StartMap FileName music4 Genre Rock EndMap StartMap FileName music3 Genre Classical EndMap ExpectedEnd
       
   388 delete foobar
       
   389 [Endtest]
       
   390 
       
   391 //GetList with Ascending order for a given Composer
       
   392 //Input: Composer as SortKey and Ascending as SortOrder
       
   393 //Expected: list of music files sorted in ascending order based on Composer
       
   394 [Test]
       
   395 title All_SortAscendingOnComposer
       
   396 create tmediaprovidertesting foobar
       
   397 foobar GetFilesListL FileInfo All Drive c: NULL Composer Ascending 0 ExpectedStart StartMap FileName music1 Composer Anu EndMap StartMap FileName music2 Composer Dhawan EndMap StartMap FileName music3 Composer Rahman EndMap ExpectedEnd
       
   398 delete foobar
       
   399 [Endtest]
       
   400 
       
   401 //GetList with Descending order for a given Composer
       
   402 //Input: Composer as SortKey and Descending as SortOrder
       
   403 //Expected: list of music files sorted in descending order based on Composer
       
   404 [Test]
       
   405 title All_SortDescendingOnComposer
       
   406 create tmediaprovidertesting foobar
       
   407 foobar GetFilesListL FileInfo All Drive c: NULL Composer Descending 0 ExpectedStart StartMap FileName music3 Composer Rahman EndMap StartMap FileName music2 Composer Dhawan EndMap StartMap FileName music1 Composer Anu EndMap ExpectedEnd
       
   408 delete foobar
       
   409 [Endtest]
       
   410 
       
   411 
       
   412 //GetList with Ascending order for a given Album
       
   413 //Input: Album as SortKey and Ascending as SortOrder
       
   414 //Expected: list of music files sorted in ascending order based on Album
       
   415 [Test]
       
   416 title All_SortAscendingOnAlbum
       
   417 create tmediaprovidertesting foobar
       
   418 foobar GetFilesListL FileInfo All Drive c: NULL Album Ascending 0 ExpectedStart StartMap FileName music3 Album Album1 EndMap StartMap FileName music1 Album Album2 EndMap StartMap FileName music2 Album Shaheed EndMap ExpectedEnd
       
   419 delete foobar
       
   420 [Endtest]
       
   421 
       
   422 
       
   423 //GetList Nokia as SortOrder
       
   424 //Input: FileDate as SortKey and Nokia as SortOrder
       
   425 //Expected: errorcode 1002-BadArgumentType
       
   426 [Test]
       
   427 title AllNeg_NokiaSortOrder
       
   428 create tmediaprovidertesting foobar
       
   429 foobar GetFilesListL FileInfo All NULL NULL NULL FileDate Nokia 1002
       
   430 delete foobar
       
   431 [Endtest]
       
   432 
       
   433 
       
   434 //GetList ascending(case sensitive) as sort order
       
   435 //Input: FileName as SortKey and ascending as SortOrder
       
   436 //Expected: list of music files sorted in ascending order based on FileName
       
   437 [Test]
       
   438 title All_WithLowercaseascendingAsSortOrder
       
   439 create tmediaprovidertesting foobar
       
   440 foobar GetFilesListL FileInfo All Drive c: NULL FileName ascending 0 ExpectedStart StartMap FileName music1 EndMap StartMap FileName music2 EndMap StartMap FileName music3 EndMap ExpectedEnd 
       
   441 delete foobar
       
   442 [Endtest]
       
   443 
       
   444 
       
   445 //GetList Ascending sort order for FileNameAndPath
       
   446 //Input: FileNameAndPath as SortKey and Ascending as SortOrder
       
   447 //Expected: list of music files sorted in ascending order based on FileNameAndPath
       
   448 [Test]
       
   449 title All_SortAscendingOnFileNameAndPath
       
   450 create tmediaprovidertesting foobar
       
   451 foobar GetFilesListL FileInfo All Drive c: NULL FileNameAndPath Ascending 0 ExpectedStart StartMap FileNameAndPath c:\data\others\music3.mp3 EndMap StartMap FileNameAndPath c:\data\sounds\digital\music1.mp3 EndMap StartMap FileNameAndPath c:\data\sounds\digital\music2.mp3 EndMap ExpectedEnd
       
   452 delete foobar
       
   453 [Endtest]
       
   454 
       
   455 
       
   456 //GetList Descending order for FileName
       
   457 //Input: FileName as SortKey and Descending as SortOrder
       
   458 //Expected: list of music files sorted in descending order based on FileName
       
   459 [Test]
       
   460 title All_SortDescendingOnFileName
       
   461 create tmediaprovidertesting foobar
       
   462 foobar GetFilesListL FileInfo All Drive c: NULL FileName Descending 0 ExpectedStart StartMap FileName music3 EndMap StartMap FileName music2 EndMap StartMap FileName music1 EndMap ExpectedEnd
       
   463 delete foobar
       
   464 [Endtest]
       
   465 ############################################################################ End Music cases #############################################################
       
   466 //GetList with value "FileInfo" for Type input and no other input parameters
       
   467 //Input: FileInfo as Type, other inputs are NULL
       
   468 //Expected: errorcode 1003- MissingArgumentType error as the mandatory FileType input is missing
       
   469 [Test]
       
   470 title AllNeg_FileInfoType_NoFileType
       
   471 create tmediaprovidertesting foobar
       
   472 foobar GetFilesListL FileInfo NULL NULL NULL NULL NULL NULL 1003
       
   473 delete foobar
       
   474 [Endtest]
       
   475 
       
   476 
       
   477 //GetList with value other than "FileInfo" for Type input
       
   478 //Input: FolderInfo inplace of Type input where valid value to be passed is FileInfo
       
   479 //Expected: errorcode 1004- ServiceNotSupported
       
   480 [Test]
       
   481 title AllNeg_FolderInfoType
       
   482 create tmediaprovidertesting foobar
       
   483 foobar GetFilesListL FolderInfo All FileName a NULL NULL NULL 1004 
       
   484 delete foobar
       
   485 [Endtest]
       
   486 
       
   487 //GetList with "FileInfo" as value for Type with a FileType input
       
   488 //Input: "FileInfo" as value for Type and Image as value for FileType, FileName as Key, "a" as startrange
       
   489 //Expected: list of details of All image files named 'a' are returned
       
   490 [Test]
       
   491 title All_NoOptionalInputs
       
   492 create tmediaprovidertesting foobar
       
   493 foobar GetFilesListL FileInfo All NULL NULL NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap StartMap FileName stars EndMap ExpectedEnd
       
   494 delete foobar
       
   495 [Endtest]
       
   496 
       
   497 
       
   498 //GetList with lower case "fileinfo" as value for Type input
       
   499 //Input: lowercase "fileinfo" as value for Type
       
   500 //Expected: image list based on the filter key and value
       
   501 [Test]
       
   502 title All_fileinfoType
       
   503 create tmediaprovidertesting foobar
       
   504 foobar GetFilesListL fileinfo All FileName a NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap ExpectedEnd 
       
   505 delete foobar
       
   506 [Endtest]
       
   507 
       
   508 //GetList with NULL as Type input
       
   509 //Input: NULLVALUE as value for Type(Note: Passing NULLVALUE means that a value null is passed as input to Type), Image as FileType
       
   510 //Expected: errorcode 1004- ServiceNotSupported error is expected as the value FileInfo is expected as input for Type and not NULLVALUE
       
   511 [Test]
       
   512 title AllNeg_NullType
       
   513 create tmediaprovidertesting foobar
       
   514 foobar GetFilesListL NULLVALUE All NULL NULL NULL NULL NULL 1004
       
   515 delete foobar
       
   516 [Endtest]
       
   517 
       
   518 
       
   519 //GetList with no input for Type 
       
   520 //Input: NULL as value for Type(Note: Passing NULL means that no input is passed), Image as FileType 
       
   521 //Expected: errorcode 1003- MissingArgument error is expected as the Type is mandatory input
       
   522 [Test]
       
   523 title AllNeg_NoType
       
   524 create tmediaprovidertesting foobar
       
   525 foobar GetFilesListL NULL All NULL NULL NULL NULL NULL 1003
       
   526 delete foobar
       
   527 [Endtest]
       
   528 
       
   529 
       
   530 //GetList with integer value for Type input
       
   531 //Input: integer value 12 for Type, Image as FileType
       
   532 //Expected: errorcode 1004- ServiceNotSupported
       
   533 [Test]
       
   534 title AllNeg_IntegerType
       
   535 create tmediaprovidertesting foobar
       
   536 foobar GetFilesListL 12 All NULL NULL NULL NULL NULL 1004
       
   537 delete foobar
       
   538 [Endtest]
       
   539 
       
   540 //GetList with lowercase value "image" for FileType input
       
   541 //Input: "image"(1st letter lowercase) as value for FileType, FileName as Key and a as value for startrange
       
   542 //Expected: list of image files filtered based on Filter Key and Value. The list of All files with name a is returned. The expected result has All the details of the expected file named a
       
   543 //The output is in terms of a map starting and ending with keywords StartMap and EndMap respectively
       
   544 [Test]
       
   545 title All_imageFileType
       
   546 create tmediaprovidertesting foobar
       
   547 foobar GetFilesListL FileInfo All FileName a NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap ExpectedEnd 
       
   548 delete foobar
       
   549 [Endtest]
       
   550 
       
   551 //GetList with img as value to FileType input
       
   552 //Input: img as value for FileType and no values(NULL) for All other inputs
       
   553 //Expected errorcode 1002- BadArgumentType error
       
   554 [Test]
       
   555 title AllNeg_imgFileType
       
   556 create tmediaprovidertesting foobar
       
   557 foobar GetFilesListL FileInfo al NULL NULL NULL NULL NULL 1002
       
   558 delete foobar
       
   559 [Endtest]
       
   560 
       
   561 
       
   562 //GetList with Nokia as input to FileType input
       
   563 //Input: Nokia as value for FileType and no values(NULL) for All other inputs
       
   564 //Expected: errorcode 1002- BadArgumentType error
       
   565 [Test]
       
   566 title AllNeg_NokiaFileType
       
   567 create tmediaprovidertesting foobar
       
   568 foobar GetFilesListL FileInfo Nokia NULL NULL NULL NULL NULL 1002
       
   569 delete foobar
       
   570 [Endtest]
       
   571 
       
   572 
       
   573 //GetList with E:\Image as value to FileType input
       
   574 //Input: E:\Image as FIleType and no value (NULL) for All other values
       
   575 /Expected: errorcode 1002- BadArgumentType error
       
   576 [Test]
       
   577 title AllNeg_E:\ImageFileType
       
   578 create tmediaprovidertesting foobar
       
   579 foobar GetFilesListL FileInfo E:\Image NULL NULL NULL NULL NULL 1002
       
   580 delete foobar
       
   581 [Endtest]
       
   582 
       
   583 
       
   584 
       
   585 //GetList with empty string as FileType
       
   586 //Input: empty string as FileType and no values(NULL) for All other inputs
       
   587 /Expected: errorcode 1002- BadArgumentType error
       
   588 [Test]
       
   589 title AllNeg_EmptyStringFileType
       
   590 create tmediaprovidertesting foobar
       
   591 foobar GetFilesListL FileInfo "" NULL NULL NULL NULL NULL 1002
       
   592 delete foobar
       
   593 [Endtest]
       
   594 
       
   595 
       
   596 //GetList with NULL as FileType
       
   597 //Input: NULLVALUE as FileType(Note this means that we are passing NULL as input to FileType),All other inputs are not passed
       
   598 /Expected: errorcode 1002- BadArgumentType error
       
   599 [Test]
       
   600 title AllNeg_NullFileType
       
   601 create tmediaprovidertesting foobar
       
   602 foobar GetFilesListL FileInfo NULLVALUE NULL NULL NULL NULL NULL 1002
       
   603 delete foobar
       
   604 [Endtest]
       
   605 
       
   606 
       
   607 //GetList with integer value input to FileType
       
   608 //Input: 12 as value for FileType and no values for All other inputs
       
   609 /Expected: errorcode 1002- BadArgumentType error as invalid value is passed for FileType
       
   610 [Test]
       
   611 title AllNeg_IntegerFileType
       
   612 create tmediaprovidertesting foobar
       
   613 foobar GetFilesListL FileInfo 12 NULL NULL NULL NULL NULL 1002
       
   614 delete foobar
       
   615 [Endtest]
       
   616 
       
   617 ###################################################################Type==“FileInfo” + Passing Filter Map with FileType==Image + [Key]############################################################################
       
   618 
       
   619 //GetList with FileName as key, no StartRange
       
   620 //Input: FileName as key, All other values are not passed
       
   621 /Expected: errorcode 1003- MissingArgumentType
       
   622 [Test]
       
   623 title All_ImgNeg_FileNameKey
       
   624 create tmediaprovidertesting foobar
       
   625 foobar GetFilesListL FileInfo All FileName NULL NULL NULL NULL 1003 
       
   626 delete foobar
       
   627 [Endtest]
       
   628 
       
   629 //GetList with no FilterKey
       
   630 //Input:  NULL(means no value being passed) as Key ,All other inputs are not passed
       
   631 //Expected: list of All images present in the device, The expected output has the FileName of All files expected to be retrieved.
       
   632 [Test]
       
   633 title All_Img_NoOptionalFields
       
   634 create tmediaprovidertesting foobar
       
   635 foobar GetFilesListL FileInfo All NULL NULL NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap StartMap FileName stars EndMap ExpectedEnd
       
   636 delete foobar
       
   637 [Endtest]
       
   638 
       
   639 //GetList with FileExtension as key, but no StartRange
       
   640 //Input: FileExtension as Key and no value for All other keys
       
   641 //Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned
       
   642 [Test]
       
   643 title All_ImgNeg_FileExtensionKey_NoStartRange
       
   644 create tmediaprovidertesting foobar
       
   645 foobar GetFilesListL FileInfo All FileExtension NULL NULL NULL NULL 1003 
       
   646 delete foobar
       
   647 [Endtest]
       
   648 
       
   649 //GetList with Drive as key and no startrange
       
   650 //Input: Drive as Key and no input for All other input parameters
       
   651 //Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned
       
   652 [Test]
       
   653 title All_ImgNeg_DriveKey_NoStartRange
       
   654 create tmediaprovidertesting foobar
       
   655 foobar GetFilesListL FileInfo All Drive NULL NULL NULL NULL 1003 
       
   656 delete foobar
       
   657 [Endtest]
       
   658 
       
   659 
       
   660 //GetList with FileSize as key and no startrange
       
   661 //Input: FileSize as Key and no input for All other input parameters
       
   662 //Expected: errorcode 1002- BadArgumentType as the StartRange is mandatory when Key is mentioned
       
   663 [Test]
       
   664 title All_ImgNeg_FileSizeKey_NoStartRange
       
   665 create tmediaprovidertesting foobar
       
   666 foobar GetFilesListL FileInfo All FileSize NULL NULL NULL NULL 1002 
       
   667 delete foobar
       
   668 [Endtest]
       
   669 
       
   670 
       
   671 //GetList with FileDate as key and no startrange
       
   672 //Input: FileDate as Key and no input for All other input parameters
       
   673 //Expected: errorcode 1002- BadArgumentType as the StartRange is mandatory when Key is mentioned
       
   674 [Test]
       
   675 title All_ImgNeg_FileDateKey_NoStartRange
       
   676 create tmediaprovidertesting foobar
       
   677 foobar GetFilesListL FileInfo All FileDate NULL NULL NULL NULL 1002 
       
   678 delete foobar
       
   679 [Endtest]
       
   680 
       
   681 
       
   682 //GetList with MimeType as key and no startrange
       
   683 //Input: MimeType as Key and no input for All other input parameters
       
   684 //Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned
       
   685 [Test]
       
   686 title All_ImgNeg_MimeTypeKey_NoStartRange
       
   687 create tmediaprovidertesting foobar
       
   688 foobar GetFilesListL FileInfo All MimeType NULL NULL NULL NULL 1003 
       
   689 delete foobar
       
   690 [Endtest]
       
   691 
       
   692 
       
   693 //GetList with FileNameAndPath as key and no startrange
       
   694 //Input: FileNameAndPath as Key and no input for All other input parameters
       
   695 //Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned
       
   696 [Test]
       
   697 title All_ImgNeg_FileNameAndPathKey_NoStartRange
       
   698 create tmediaprovidertesting foobar
       
   699 foobar GetFilesListL FileInfo All FileNameAndPath NULL NULL NULL NULL 1003
       
   700 delete foobar
       
   701 [Endtest]
       
   702 
       
   703 
       
   704 //GetList with Nokia as key
       
   705 //Input: Nokia as key and a valid value c:\data\Images\a.jpg as value for startrange, and no input for All other parameters
       
   706 //Expected: errorcode 1002- BadArgumentType is expected as the value for key is invalid
       
   707 [Test]
       
   708 title All_ImgNeg_NokiaKey
       
   709 create tmediaprovidertesting foobar
       
   710 foobar GetFilesListL FileInfo All Nokia c:\data\Images\a.jpg NULL NULL NULL 1002
       
   711 delete foobar
       
   712 [Endtest]
       
   713 
       
   714 
       
   715 //GetList with NULL value as key
       
   716 //Input: NULLVALUE as input for Key(means a value NULL is input to Key),and a valid c:\data\Images\a.jpg as value for startrange and no value for other inputs
       
   717 //Expected: 1002-BadArgumentType errorcode is returned as NULL is invalid value for Key
       
   718 [Test]
       
   719 title All_Img_NullKey
       
   720 create tmediaprovidertesting foobar
       
   721 foobar GetFilesListL FileInfo All NULLVALUE c:\data\Images\a.jpg NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap StartMap FileName stars EndMap ExpectedEnd
       
   722 delete foobar
       
   723 [Endtest]
       
   724 
       
   725 
       
   726 //GetList with Empty string as key
       
   727 //Input: empty string "" as value for Key and a valid value "c:\data\Images\a.jpg" as value for startrange and other inputs are not passed
       
   728 //Expected: errorcode 1002- BadArgumentType 
       
   729 [Test]
       
   730 title All_ImgNeg_EmptyStringKey
       
   731 create tmediaprovidertesting foobar
       
   732 foobar GetFilesListL FileInfo All "" c:\data\Images\a.jpg NULL NULL NULL 1002
       
   733 delete foobar
       
   734 [Endtest]
       
   735 
       
   736 
       
   737 //GetList with invalid case as key
       
   738 //Input: filename(1st letter lowercase) as Key and a as value for startrange
       
   739 //returns list of images based on the filter key and value. details of files named a is expected as output
       
   740 [Test]
       
   741 title All_Img_filenameKey
       
   742 create tmediaprovidertesting foobar
       
   743 foobar GetFilesListL FileInfo All filename a NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap ExpectedEnd
       
   744 delete foobar
       
   745 [Endtest]
       
   746 
       
   747 
       
   748 //GetList with Sapi as value for filter key
       
   749 //Input: Sapi as Key and a valid c:\data\Images\a.jpg as value for startrange
       
   750 //Expected: errorcode 1002- BadArgumentType as Sapi is invalid key
       
   751 [Test]
       
   752 title All_ImgNeg_SapiKey
       
   753 create tmediaprovidertesting foobar
       
   754 foobar GetFilesListL FileInfo All Sapi c:\data\Images\a.jpg NULL NULL NULL 1002
       
   755 delete foobar
       
   756 [Endtest]
       
   757 
       
   758 
       
   759 //GetList with integer value for Filter key
       
   760 //Input: 12 as Key, and a valid value "c:\data\Images\a.jpg" as value for startrange
       
   761 //Expected: errorcode 1002- BadArgumentType as the value expected is out of type string and integer is input
       
   762 [Test]
       
   763 title All_ImgNeg_IntegerKey
       
   764 create tmediaprovidertesting foobar
       
   765 foobar GetFilesListL FileInfo All 12 c:\data\Images\a.jpg NULL NULL NULL 1002
       
   766 delete foobar
       
   767 [Endtest]
       
   768 
       
   769 ##########################Type==“FileInfo” + Passing Filter Map with FileType==Image + Key+Start Range###############################
       
   770 //GetList with NULL StartRange
       
   771 //Input: FileName as Key and NULLVALUE as startrange(means we are passing NULL as value for startrange)
       
   772 //Expected: errorcode- 1003 MissingArgumenterror, as the startrange is mandatory when key is input
       
   773 [Test]
       
   774 title All_ImgNeg_NoStartRange
       
   775 create tmediaprovidertesting foobar
       
   776 foobar GetFilesListL FileInfo All FileName NULLVALUE NULL NULL NULL 1003
       
   777 delete foobar
       
   778 [Endtest]
       
   779 
       
   780 //GetList with FileName StartRange
       
   781 //Input: FileName as Key and value a as startrange
       
   782 //Expected list of images filtered based on FileName. Details of All files named a is expected output
       
   783 [Test]
       
   784 title All_Img_FileNameKeyWithStartRange
       
   785 create tmediaprovidertesting foobar
       
   786 foobar GetFilesListL FileInfo All FileName a NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap ExpectedEnd
       
   787 delete foobar
       
   788 [Endtest]
       
   789 
       
   790 //GetList with FileExtension StartRange
       
   791 //Input: FileExtension as Key and .jpg as value for startrange
       
   792 //Expected  list of images filtered based on FileExtension. details of All files with extension .jpg is the expected output
       
   793 [Test]
       
   794 title All_Img_FileExtensionKeyWithStartRange
       
   795 create tmediaprovidertesting foobar
       
   796 foobar GetFilesListL FileInfo All FileExtension .jpg NULL NULL NULL 0 ExpectedStart StartMap FileName a FileExtension .jpg EndMap StartMap FileName ant FileExtension .jpg EndMap StartMap FileName stars FileExtension .jpg EndMap ExpectedEnd
       
   797 delete foobar
       
   798 [Endtest]
       
   799 
       
   800 //GetList with Drive StartRange
       
   801 //Input: Drive as Key and c: as value for startrange
       
   802 //Expected list of images filtered based on Drive. details of All files with drive value c: is expected
       
   803 [Test]
       
   804 title All_Img_DriveKey_c:StartRange
       
   805 create tmediaprovidertesting foobar
       
   806 foobar GetFilesListL FileInfo All Drive c: NULL NULL NULL 0 ExpectedStart StartMap FileName a Drive c: EndMap StartMap FileName ant Drive c: EndMap StartMap FileName blue Drive c: EndMap StartMap FileName dreams Drive c: EndMap ExpectedEnd
       
   807 delete foobar
       
   808 [Endtest]
       
   809 
       
   810 //GetList with FileSize StartRange
       
   811 //Input: FileSize as Key and 70000 as value for startrange
       
   812 //Expected: list of images filtered based on FileSize. details of All files with size 70000 is expected
       
   813 [Test]
       
   814 title All_Img_FileSizeKeyWithStartRange
       
   815 create tmediaprovidertesting foobar
       
   816 foobar GetFilesListL FileInfo All FileSize 70000 NULL NULL NULL 0 ExpectedStart StartMap FileSize dreams FileSize 73105 EndMap ExpectedEnd
       
   817 delete foobar
       
   818 [Endtest]
       
   819 
       
   820 //GetList with FileDate StartRange
       
   821 //Input: FileDate as Key and 20081019:033638 as value for startrange
       
   822 //Expected: list of images filtered based on FileDate 20081019:033638. The details of All files with date 20081019:033638 is the output
       
   823 [Test]
       
   824 title All_Img_FileDateKeyWithStartRange
       
   825 create tmediaprovidertesting foobar
       
   826 foobar GetFilesListL FileInfo All FileDate 20081019:033638 NULL NULL NULL 0 ExpectedStart StartMap FileName stars FileDate 20081019:033638 EndMap ExpectedEnd
       
   827 delete foobar
       
   828 [Endtest]
       
   829 
       
   830 //GetList with MimeType StartRange
       
   831 //Input: MimeType as Key and image/jpeg as value for startrange
       
   832 //Expected: list of images filtered based on MimeType image/jpeg. 
       
   833 [Test]
       
   834 title All_Img_MimeTypeKeyWithStartRange
       
   835 create tmediaprovidertesting foobar
       
   836 foobar GetFilesListL FileInfo All MimeType image/jpeg NULL NULL NULL 0 ExpectedStart StartMap FileName a MimeType image/jpeg EndMap StartMap FileName ant MimeType image/jpeg EndMap StartMap FileName stars MimeType image/jpeg EndMap ExpectedEnd
       
   837 delete foobar
       
   838 [Endtest]
       
   839 
       
   840 //GetList with FileNameAndPath StartRange
       
   841 //Input: FileNameAndPath as StartRange and c:\data\Images\a.jpg as value for startrange
       
   842 //Expected: list of images filtered based on FileNameAndPath, i.e., returns the details about file a.jpg at c:\data\Images\a.jpg
       
   843 [Test]
       
   844 title All_Img_FileNameAndPathKeyWithStartRange
       
   845 create tmediaprovidertesting foobar
       
   846 foobar GetFilesListL FileInfo All FileNameAndPath c:\data\Images\a.jpg NULL NULL NULL 0 ExpectedStart StartMap FileNameAndPath c:\data\Images\a.jpg EndMap ExpectedEnd
       
   847 delete foobar
       
   848 [Endtest]
       
   849 
       
   850 //FIleSize startrange with value greater than the values of a file
       
   851 //Input: FileSize as Key and 95000 as startrange
       
   852 //Expected: should return errocode as 0 and empty list
       
   853 [Test]
       
   854 title All_Img_FileSizeKeyWithStartRange_NoExpectedo/p
       
   855 create tmediaprovidertesting foobar
       
   856 foobar GetFilesListL FileInfo All FileSize 95000 NULL NULL NULL 0 
       
   857 delete foobar
       
   858 [Endtest]
       
   859 
       
   860 //GetList with FileDate StartRange
       
   861 //Input: FileDate as Key and 20091019:033638 as value for startrange
       
   862 //Expected: should return errocode as 0 and empty list
       
   863 [Test]
       
   864 title All_Img_FileDateWithStartRange_NoExpectedo/p
       
   865 create tmediaprovidertesting foobar
       
   866 foobar GetFilesListL FileInfo All FileDate 20091019:033638 NULL NULL NULL 0 
       
   867 delete foobar
       
   868 [Endtest]
       
   869 
       
   870 //GetList with negative FileSize StartRange
       
   871 //Input: FileSize as Key and -12 as value for StartRange
       
   872 //Expected: errorcode 1002- BadArgumentType as the value is out of range
       
   873 [Test]
       
   874 title All_ImgNeg_NegativeFileSize
       
   875 create tmediaprovidertesting foobar
       
   876 foobar GetFilesListL FileInfo All FileSize -12 NULL NULL NULL 1002
       
   877 delete foobar
       
   878 [Endtest]
       
   879 
       
   880 
       
   881 //GetList with negative FileDate StartRange
       
   882 //Input: FileDate as Key and -12 as value for StartRange
       
   883 //Expected: errorcode 1002- BadArgumentType as the value is out of range
       
   884 [Test]
       
   885 title All_Img_NegativeFileDate
       
   886 create tmediaprovidertesting foobar
       
   887 foobar GetFilesListL FileInfo All FileDate -12 NULL NULL NULL 1002
       
   888 delete foobar
       
   889 [Endtest]
       
   890 
       
   891 
       
   892 //GetList with FileDate StartRange
       
   893 //Input: FileDate as Key and an invalid value 20093045:450990 as startrange
       
   894 //Expected: errorcode 1002- BadArgumentType as the value is invalid
       
   895 [Test]
       
   896 title All_Img_InvalidFileDate
       
   897 create tmediaprovidertesting foobar
       
   898 foobar GetFilesListL FileInfo All FileDate 20093045:450990 NULL NULL NULL 1002
       
   899 delete foobar
       
   900 [Endtest]
       
   901 
       
   902 //GetList with no Key input, but with values for start and endrange
       
   903 //Input: NULL as Key(no input for Key) and 70000 as StartRange and 80000 as endrange
       
   904 //Expected: list of All image files
       
   905 [Test]
       
   906 title All_Img_NoFilterKeyWithStartRangeValues
       
   907 create tmediaprovidertesting foobar
       
   908 foobar GetFilesListL FileInfo All NULL 70000 80000 NULL NULL 0
       
   909 delete foobar
       
   910 [Endtest]
       
   911 
       
   912 //GetList with empty string StartRange for FileName
       
   913 //Input: FileName as Key and empty string as value for StartRange
       
   914 //Expected: 0 as errorcode and empty list
       
   915 [Test]
       
   916 title All_Img_EmptyStringStartRange
       
   917 create tmediaprovidertesting foobar
       
   918 foobar GetFilesListL FileInfo All FileName "" NULL NULL NULL 0 
       
   919 delete foobar
       
   920 [Endtest]
       
   921 
       
   922 
       
   923 //GetList with integer StartRange for FileName
       
   924 //Input: FileName as Key and integer value 23 as value for StartRange
       
   925 //Expected: 0 errocode and empty list is returned
       
   926 [Test]
       
   927 title All_Img_IntegerStartRangea
       
   928 create tmediaprovidertesting foobar
       
   929 foobar GetFilesListL FileInfo All FileName 23 NULL NULL NULL 0
       
   930 delete foobar
       
   931 [Endtest]
       
   932 
       
   933 
       
   934 //GetList with Null string as value for FileName
       
   935 //Input: FileName as Key and null string "NULL" as value for startrange
       
   936 //Expected: 0 errorcode and empty list
       
   937 [Test]
       
   938 title All_Img_FileNameKey_NullStringStartRange
       
   939 create tmediaprovidertesting foobar
       
   940 foobar GetFilesListL FileInfo All FileName "NULL" NULL NULL NULL 0 
       
   941 delete foobar
       
   942 [Endtest]
       
   943 
       
   944 //GetList with Null string as value for FileExtension
       
   945 //Input: FileExtension as Key and null string "NULL" as value for startrange
       
   946 //Expected: 0 errorcode and empty list
       
   947 [Test]
       
   948 title All_Img_FileExtensionKey_NullStringStartRange
       
   949 create tmediaprovidertesting foobar
       
   950 foobar GetFilesListL FileInfo All FileExtension "NULL" NULL NULL NULL 0 
       
   951 delete foobar
       
   952 [Endtest]
       
   953 
       
   954 //GetList with Null string as value for Drive
       
   955 //Input: Drive as Key and null string "NULL" as value for startrange
       
   956 //Expected: 0 errorcode and empty list
       
   957 [Test]
       
   958 title All_Img_DriveKey_NullStringStartRange
       
   959 create tmediaprovidertesting foobar
       
   960 foobar GetFilesListL FileInfo All Drive "NULL" NULL NULL NULL 0 
       
   961 delete foobar
       
   962 [Endtest]
       
   963 
       
   964 //GetList with Null string as value for MimeType
       
   965 //Input: MimeType as Key and null string "NULL" as value for startrange
       
   966 //Expected: 0 errorcode and empty list
       
   967 [Test]
       
   968 title All_Img_MimeTypeKey_NullStringStartRange
       
   969 create tmediaprovidertesting foobar
       
   970 foobar GetFilesListL FileInfo All MimeType "NULL" NULL NULL NULL 0 
       
   971 delete foobar
       
   972 [Endtest]
       
   973 
       
   974 //GetList with Null string for FileNameAndPath
       
   975 //Input: FileNameAndPath as Key and "Null" as value for StartRange
       
   976 //Expected: 0 errorcode and empty list
       
   977 [Test]
       
   978 title All_Img_FileNameAndPathKey_NullStringStartRange
       
   979 create tmediaprovidertesting foobar
       
   980 foobar GetFilesListL FileInfo All FileNameAndPath "NULL" NULL NULL NULL 0 
       
   981 delete foobar
       
   982 [Endtest]
       
   983 
       
   984 #########################Type==“FileInfo” + Passing Filter Map with FileType==Image + Key+Start Range + End Range#############################
       
   985 
       
   986 //GetList with FileSize end range less than start range
       
   987 //Input: FileSize as key, 40000 as StartRange and 20000 as EndRange 
       
   988 //Expected: 1002-BadArgumentType 
       
   989 [Test]
       
   990 title All_ImgNeg_StartRangeGTEndRange
       
   991 create tmediaprovidertesting foobar
       
   992 foobar GetFilesListL FileInfo All FileSize 40000 20000 NULL NULL 1002
       
   993 delete foobar
       
   994 [Endtest]
       
   995 
       
   996 //GetList with Negative end range for FileSize 
       
   997 //Input: FileSize as key, valid value of 200 for StartRange and a value -400 as value for EndRange
       
   998 //Expected: 1002-BadArgumentType as the value of endrange is invalid and not within the range
       
   999 [Test]
       
  1000 title All_ImgNeg_NegativeFileSizeEndRange
       
  1001 create tmediaprovidertesting foobar
       
  1002 foobar GetFilesListL FileInfo All FileSize 20000 -40000 NULL NULL 1002
       
  1003 delete foobar
       
  1004 [Endtest]
       
  1005 
       
  1006 //GetList with Negative end range for FileDate 
       
  1007 //Input: FileDate as key, valid startrange and a value -400 as value for EndRange
       
  1008 //Expected: 1002-BadArgumentType as the value of endrange is invalid and not within the range
       
  1009 [Test]
       
  1010 title All_ImgNeg_NegativeFileDateEndRange
       
  1011 create tmediaprovidertesting foobar
       
  1012 foobar GetFilesListL FileInfo All FileDate 20070920:053905 -400 NULL NULL 1002
       
  1013 delete foobar
       
  1014 [Endtest]
       
  1015 
       
  1016 //GetList of images filtered by FileName with EndRange being mentioned
       
  1017 //Input: FileName as Key, value a as StartRange and value z as EndRange
       
  1018 //Expected: returns list based on StartRange alone and ignores the EndRange
       
  1019 [Test]
       
  1020 title All_Img_FileNameKeyWithStartAndEndRange
       
  1021 create tmediaprovidertesting foobar
       
  1022 foobar GetFilesListL FileInfo All FileName a z NULL NULL 0 ExpectedStart StartMap FileName a EndMap ExpectedEnd
       
  1023 delete foobar
       
  1024 [Endtest]
       
  1025 
       
  1026 
       
  1027 //GetList with valid start and end range for FileSize 
       
  1028 //Input: FileSize as key, valid value of 30000 for StartRange and a value 40000 as value for EndRange
       
  1029 //Expected: file with size in the range 30000 to 40000 is expected. FileName and FileSize is verified in the result
       
  1030 [Test]
       
  1031 title All_Img_FileSizeKeyWithValidRange
       
  1032 create tmediaprovidertesting foobar
       
  1033 foobar GetFilesListL FileInfo All FileSize 30000 40000 NULL NULL 0 ExpectedStart StartMap FileName a FileSize 31097 EndMap ExpectedEnd 
       
  1034 delete foobar
       
  1035 [Endtest]
       
  1036 
       
  1037 //GetList with Negative end range for FileDate 
       
  1038 //Input: FileDate as key, valid startrange and a value -400 as value for EndRange
       
  1039 //Expected: 1002-BadArgumentType as the value of endrange is invalid and not within the range
       
  1040 [Test]
       
  1041 title All_Img_FileDateKeyWithValidRange
       
  1042 create tmediaprovidertesting foobar
       
  1043 foobar GetFilesListL FileInfo All FileDate 20070920:053905 20071020:060000 NULL NULL 0 ExpectedStart StartMap FileName a FileDate 20070920:053905 EndMap ExpectedEnd 
       
  1044 delete foobar
       
  1045 [Endtest]
       
  1046 
       
  1047 //GetList with valid start and end range for FileSize, but no such file is present in the expected list
       
  1048 //Input: FileSize as key, valid value of 95000 for StartRange and a value 98000 as value for EndRange
       
  1049 //Expected: file with size in the range 30000 to 40000 is expected.But no such file exists in the expected list
       
  1050 [Test]
       
  1051 title All_Img_FileSizeWithValidRange_WithNoExpectedOutput
       
  1052 create tmediaprovidertesting foobar
       
  1053 foobar GetFilesListL FileInfo All FileSize 95000 98000 NULL NULL 0 
       
  1054 delete foobar
       
  1055 [Endtest]
       
  1056 
       
  1057 ######################### Type==“FileInfo” + Passing Filter Map with FileType==Image + Sort Map#########################
       
  1058 
       
  1059 //GetList of image file sorted in Ascending order of Drive
       
  1060 //Input: Drive as SortKey and Ascending as SortOrder, FileSize as Key with startrange of 20000 and 40000 as end range 
       
  1061 //Expected: list of images in ascending order of drive
       
  1062 [Test]
       
  1063 title All_Img_SortAscendingOnDrive
       
  1064 create tmediaprovidertesting foobar
       
  1065 foobar GetFilesListL FileInfo All FileSize 20000 40000 Drive Ascending 0 ExpectedStart StartMap FileName a Drive c: EndMap StartMap FileName stars Drive e: EndMap ExpectedEnd
       
  1066 delete foobar
       
  1067 [Endtest]
       
  1068 
       
  1069 //GetList of image file sorted in Descending order of Drive
       
  1070 //Input: Drive as SortKey and Descending as SortOrder, FileSize as Key with startrange of 20000 and 40000 as end range 
       
  1071 //Expected: list of images in descending order of drive
       
  1072 [Test]
       
  1073 title All_Img_SortDescendingOnDrive
       
  1074 create tmediaprovidertesting foobar
       
  1075 foobar GetFilesListL FileInfo All FileSize 20000 40000 Drive Descending 0 ExpectedStart StartMap FileName stars Drive e: EndMap StartMap FileName a Drive c: EndMap ExpectedEnd
       
  1076 delete foobar
       
  1077 [Endtest]
       
  1078 
       
  1079 //GetList of image file sorted in Ascending order of FileExtension
       
  1080 //Input: FileExtension as SortKey and Ascending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively
       
  1081 //Expected: list of images in ascending order of FileExtension
       
  1082 [Test]
       
  1083 title All_Img_SortAscendingOnFileExtension
       
  1084 create tmediaprovidertesting foobar
       
  1085 foobar GetFilesListL FileInfo All FileSize 4000 9000 FileExtension Ascending 0 ExpectedStart StartMap FileName ant FileExtension .jpg EndMap StartMap FileName blue FileExtension .png EndMap ExpectedEnd
       
  1086 delete foobar
       
  1087 [Endtest]
       
  1088 
       
  1089 //GetList of image file sorted in Descending order of FileExtension
       
  1090 //Input: FileExtension as SortKey and Descending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively
       
  1091 //Expected: list of images in descending order of FileExtension
       
  1092 [Test]
       
  1093 title All_Img_DescendingOnFileExtension
       
  1094 create tmediaprovidertesting foobar
       
  1095 foobar GetFilesListL FileInfo All FileSize 4000 9000 FileExtension Descending 0 ExpectedStart StartMap FileName blue FileExtension .png EndMap StartMap FileName ant FileExtension .jpg EndMap ExpectedEnd
       
  1096 delete foobar
       
  1097 [Endtest]
       
  1098 
       
  1099 //GetList of image files in Ascending order of MimeType
       
  1100 //Input: MimeType as SortKey and Ascending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively
       
  1101 //Expected: list of images in ascending order of MimeType
       
  1102 [Test]
       
  1103 title All_Img_SortAscendingOnMimeType
       
  1104 create tmediaprovidertesting foobar
       
  1105 foobar GetFilesListL FileInfo All FileSize 4000 9000 MimeType Ascending 0  ExpectedStart StartMap FileName ant MimeType image/jpeg EndMap StartMap FileName blue MimeType image/png EndMap ExpectedEnd
       
  1106 delete foobar
       
  1107 [Endtest]
       
  1108 
       
  1109 //GetList of image files in Descending order of MimeType
       
  1110 //Input: MimeType as SortKey and Descending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively
       
  1111 //Expected: list of images in descending order of MimeType
       
  1112 [Test]
       
  1113 title All_Img_SortDescendingOnMimeType
       
  1114 create tmediaprovidertesting foobar
       
  1115 foobar GetFilesListL FileInfo All FileSize 4000 9000 MimeType Descending 0 ExpectedStart StartMap FileName blue MimeType image/png EndMap StartMap FileName ant MimeType image/jpeg EndMap ExpectedEnd
       
  1116 delete foobar
       
  1117 [Endtest]
       
  1118 
       
  1119 //GetList of image files in Ascending order of FileSize 
       
  1120 //Input: FileSize as SortKey and Ascending as SortOrder
       
  1121 //Expected: list of images in ascending order of FileSize
       
  1122 [Test]
       
  1123 title All_Img_SortAscendingOnFileSize
       
  1124 create tmediaprovidertesting foobar
       
  1125 foobar GetFilesListL FileInfo All Drive c: NULL FileSize Ascending 0 ExpectedStart StartMap FileName blue FileSize 4796 EndMap StartMap FileName ant FileSize 8474 EndMap StartMap FileName a FileSize 31097 EndMap StartMap FileName dreams FileSize 73105 EndMap ExpectedEnd
       
  1126 delete foobar
       
  1127 [Endtest]
       
  1128 
       
  1129 //GetList of image files in Descending order of FileSize 
       
  1130 //Input: FileSize as SortKey and Descending as SortOrder
       
  1131 //Expected: list of images in descending order of FileSize
       
  1132 [Test]
       
  1133 title All_Img_SortDescendingOnFileSize
       
  1134 create tmediaprovidertesting foobar
       
  1135 foobar GetFilesListL FileInfo All Drive c: NULL FileSize Descending 0 ExpectedStart StartMap FileName dreams FileSize 73105 EndMap StartMap FileName a FileSize 31097 EndMap StartMap FileName ant FileSize 8474 EndMap StartMap FileName blue FileSize 4796 EndMap ExpectedEnd
       
  1136 delete foobar
       
  1137 [Endtest]
       
  1138 
       
  1139 //GetList of image files sorted in Ascending order of FileDate
       
  1140 //Input: FileDate as SortKey and Ascending as SortOrder,MimeType as FilterKey and image/jpeg as startvalue
       
  1141 //Expected: list of images in ascending order of FileDate
       
  1142 [Test]
       
  1143 title All_Img_SortAscendingOnMimeType
       
  1144 create tmediaprovidertesting foobar
       
  1145 foobar GetFilesListL FileInfo All MimeType image/jpeg NULL FileDate Ascending 0 ExpectedStart StartMap FileName ant FileDate 20060819:102426 EndMap StartMap FileName a FileDate 20070920:053905 EndMap StartMap FileName stars FileDate 20081019:033638 EndMap ExpectedEnd
       
  1146 delete foobar
       
  1147 [Endtest]
       
  1148 
       
  1149 //GetList of images sorted in Descending order based on FileDate
       
  1150 //Input: FileDate as SortKey and Descending as SortOrder
       
  1151 //Expected: list of images in descending order of FileDate,MimeType as FilterKey and image/jpeg as startvalue
       
  1152 [Test]
       
  1153 title All_SortDescendingOnMimeType
       
  1154 create tmediaprovidertesting foobar
       
  1155 foobar GetFilesListL FileInfo All MimeType image/jpeg NULL FileDate Descending 0 ExpectedStart StartMap FileName stars FileDate 20081019:033638 EndMap StartMap FileName a FileDate 20070920:053905 EndMap StartMap FileName ant FileDate 20060819:102426 EndMap ExpectedEnd
       
  1156 delete foobar
       
  1157 [Endtest]
       
  1158 
       
  1159 
       
  1160 //GetList with no SortOrder
       
  1161 //Input: Pass NULL as SortOrder and any valid SortKey like FileName
       
  1162 //Expected list of images in ascending order(default) based on SortKey(FileName) mentioned. The list is sorted in ascending order as Ascending is the default order
       
  1163 [Test]
       
  1164 title All_NoSortOrder
       
  1165 create tmediaprovidertesting foobar
       
  1166 foobar GetFilesListL FileInfo All Drive c: NULL FileName NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap ExpectedEnd
       
  1167 delete foobar
       
  1168 [Endtest]
       
  1169 
       
  1170 
       
  1171 //GetList with Nokia as SortOrder
       
  1172 //Input: Nokia as value for SortOrder and any valid value eg.FileDate as value for SortKey
       
  1173 //Expected: 1002-BadArgumentType as Nokia is not a valid SortOrder
       
  1174 [Test]
       
  1175 title All_NokiaSortOrder
       
  1176 create tmediaprovidertesting foobar
       
  1177 foobar GetFilesListL FileInfo All NULL NULL NULL FileDate Nokia 1002
       
  1178 delete foobar
       
  1179 [Endtest]
       
  1180 
       
  1181 
       
  1182 //GetList ascending(case sensitive) as sort order
       
  1183 //Input: lowercase "ascending" as value for SortOrder and FIleSize as value for SortKey
       
  1184 //Expected: list of images in ascending order, sorted based on Filesize
       
  1185 [Test]
       
  1186 title All_ascendingSortOrder
       
  1187 create tmediaprovidertesting foobar
       
  1188 foobar GetFilesListL FileInfo All Drive c: NULL FileSize ascending 0 ExpectedStart StartMap FileName blue FileSize 4796 EndMap StartMap FileName ant FileSize 8474 EndMap StartMap FileName a FileSize 31097 EndMap StartMap FileName dreams FileSize 73105 EndMap ExpectedEnd
       
  1189 delete foobar
       
  1190 [Endtest]
       
  1191 
       
  1192 
       
  1193 //GetList with Ascending sort order for FileNameAndPath
       
  1194 //Input: FileNameAndPath as SortKey and Ascending as SortOrder
       
  1195 //Expected: list of image files in ascending order sorted based on FileNameAndPath
       
  1196 [Test]
       
  1197 title All_SortAscendingOnFileNameAndPath
       
  1198 create tmediaprovidertesting foobar
       
  1199 foobar GetFilesListL FileInfo All Drive c: NULL FileNameAndPath Ascending 0 ExpectedStart StartMap FileNameAndPath c:\data\Images\a.jpg EndMap StartMap FileNameAndPath c:\data\Images\ant.jpg EndMap StartMap FileNameAndPath c:\data\Images\blue.png EndMap StartMap FileNameAndPath c:\data\Images\pictures\dreams.bmp EndMap ExpectedEnd
       
  1200 delete foobar
       
  1201 [Endtest]
       
  1202 
       
  1203 
       
  1204 //GetList with Descending order of files sorted based on FileName
       
  1205 //Input: FileName as SortKey and Descending as SortOrder
       
  1206 //Expected: list of images sorted in descending order based on FileName
       
  1207 [Test]
       
  1208 title All_SortDescendingOnFileName
       
  1209 create tmediaprovidertesting foobar
       
  1210 foobar GetFilesListL FileInfo All Drive c: NULL FileName Descending 0 ExpectedStart StartMap FileName dreams EndMap StartMap FileName blue EndMap StartMap FileName ant EndMap StartMap FileName a EndMap ExpectedEnd
       
  1211 delete foobar
       
  1212 [Endtest]
       
  1213 
       
  1214 
       
  1215 //Case to check for All fields in output
       
  1216 //Input: Drive as FilterKey, e: as startrange
       
  1217 //Expected: list of All images files in e: drive
       
  1218 [Test]
       
  1219 title All_DriveKey_e:StartRange
       
  1220 create tmediaprovidertesting foobar
       
  1221 foobar GetFilesListL FileInfo All Drive e: NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName stars FileExtension .jpg Drive e: FileSize 24790 FileDate 20081019:033638 FileNameAndPath e:\data\Images\stars.jpg MimeType image/jpeg EndMap ExpectedEnd
       
  1222 delete foobar
       
  1223 [Endtest]
       
  1224 
       
  1225 
       
  1226 
       
  1227 ################################################################    Image Ends     ####################################################
       
  1228 //GetList of sound files with startrange for FileName
       
  1229 //Input: FileName as Key and value tempo as startrange, All other inputs are NULL(means no value is passed)
       
  1230 //Expected: list of sound files with filename tempo
       
  1231 [Test]
       
  1232 title All_Sound_FileNameKeyWithvalidStartRange
       
  1233 create tmediaprovidertesting foobar
       
  1234 foobar GetFilesListL FileInfo All FileName tempo NULL NULL NULL 0 ExpectedStart StartMap FileName tempo EndMap ExpectedEnd
       
  1235 delete foobar
       
  1236 [Endtest]
       
  1237 
       
  1238 //GetList of sound files  with startrange for FileExtension
       
  1239 //Input: FileExtension as Key and value .wav as startrange, All other inputs are NULL(means no value is passed)
       
  1240 //Expected: list of All sound files with .wav as FileExtension are expected
       
  1241 [Test]
       
  1242 title All_Sound_FileExtensionKeyWithvalidStartRange
       
  1243 create tmediaprovidertesting foobar
       
  1244 foobar GetFilesListL FileInfo All FileExtension .wav NULL NULL NULL 0 ExpectedStart StartMap FileName music FileExtension .wav EndMap StartMap FileName raaga FileExtension .wav EndMap StartMap FileName rock_on FileExtension .wav EndMap StartMap FileName tempo FileExtension .wav EndMap ExpectedEnd
       
  1245 delete foobar
       
  1246 [Endtest]
       
  1247 
       
  1248 //GetList of sound files with startrange for Drive
       
  1249 //Input: Drive as Key and value e: as startrange
       
  1250 //Expected: list of sound files filtered by Drive
       
  1251 [Test]
       
  1252 title All_Sound_DriveKey_e:StartRange
       
  1253 create tmediaprovidertesting foobar
       
  1254 foobar GetFilesListL FileInfo All Drive e: NULL NULL NULL 0 ExpectedStart StartMap FileName noise Drive e: EndMap StartMap FileName rock_on Drive e: EndMap ExpectedEnd
       
  1255 delete foobar
       
  1256 [Endtest]
       
  1257 
       
  1258 //GetList of sound files with startrange for FileSize
       
  1259 //Input: FileSize as Key and value 25301 as startrange
       
  1260 //Expected: list of sound files filtered by FileSize
       
  1261 [Test]
       
  1262 title All_Sound_FileSizeKeyWithvalidStartRange
       
  1263 create tmediaprovidertesting foobar
       
  1264 foobar GetFilesListL FileInfo All FileSize 25031 NULL NULL NULL 0 ExpectedStart StartMap FileName noise FileSize 25031 EndMap StartMap FileName sound FileSize 25031 EndMap ExpectedEnd
       
  1265 delete foobar
       
  1266 [Endtest]
       
  1267 
       
  1268 //GetList of sound files with startrange for FileDate
       
  1269 //Input: FileDate as Key and value 20081109:085028 as startrange
       
  1270 //Expected: list of sound files filtered by FileDate
       
  1271 [Test]
       
  1272 title All_Sound_FileDateKeyWithvalidStartRange
       
  1273 create tmediaprovidertesting foobar
       
  1274 foobar GetFilesListL FileInfo All FileDate 20081109:085028 NULL NULL NULL 0 ExpectedStart StartMap FileName noise FileDate 20081109:085028 EndMap StartMap FileName sound FileDate 20081109:085028 EndMap ExpectedEnd
       
  1275 delete foobar
       
  1276 [Endtest]
       
  1277 
       
  1278 //GetList of sound files with startrange for MimeType
       
  1279 //Input: MimeType as Key and value AUDIO/WAV as startrange
       
  1280 //Expected: list of sound files filtered by MimeType
       
  1281 [Test]
       
  1282 title All_Sound_MimeTypeKey_audio/wavStartRange
       
  1283 create tmediaprovidertesting foobar
       
  1284 foobar GetFilesListL FileInfo All MimeType AUDIO/WAV NULL NULL NULL 0 ExpectedStart StartMap FileName music MimeType AUDIO/WAV EndMap StartMap FileName raaga MimeType AUDIO/WAV EndMap StartMap FileName rock_on MimeType AUDIO/WAV EndMap StartMap FileName tempo MimeType AUDIO/WAV EndMap ExpectedEnd
       
  1285 delete foobar
       
  1286 [Endtest]
       
  1287 
       
  1288 //GetList of sound files with startrange for FileNameAndPath
       
  1289 //Input: FileNameAndPath as Key and value c:\data\sounds\digital\tempo.wav  as startrange
       
  1290 //Expected: list of sound files filtered by FileNameAndPath
       
  1291 [Test]
       
  1292 title All_Sound_FileNameAndPathKeyWithvalidStartRange
       
  1293 create tmediaprovidertesting foobar
       
  1294 foobar GetFilesListL FileInfo All FileNameAndPath c:\data\sounds\digital\tempo.wav NULL NULL NULL 0 ExpectedStart StartMap FileNameAndPath c:\data\sounds\digital\tempo.wav EndMap ExpectedEnd
       
  1295 delete foobar
       
  1296 [Endtest]
       
  1297 
       
  1298 
       
  1299 //GetList of sound files with negative startrange for FileSize
       
  1300 //Input: FileSize as key and -400 as value for startrange 
       
  1301 //Expected: errorcode 1002-BadArgumentType
       
  1302 [Test]
       
  1303 title All_SoundNeg_NegativeFileSize
       
  1304 create tmediaprovidertesting foobar
       
  1305 foobar GetFilesListL FileInfo All FileSize -400 NULL NULL NULL 1002
       
  1306 delete foobar
       
  1307 [Endtest]
       
  1308 
       
  1309 //GetList of sound files with negative startrange for FileDate
       
  1310 //Input: FileDate as key and -12 as value for startrange 
       
  1311 //Expected: errorcode 1002-BadArgumentType
       
  1312 [Test]
       
  1313 title All_SoundNeg_NegativeFileDate
       
  1314 create tmediaprovidertesting foobar
       
  1315 foobar GetFilesListL FileInfo All FileDate -12 NULL NULL NULL 1002
       
  1316 delete foobar
       
  1317 [Endtest]
       
  1318 
       
  1319 //GetList with FileSize with value more than the value of All files expected
       
  1320 //Input: FileSize as key and 40000 as value for startrange 
       
  1321 //Expected: errorcode 0 and empty list as output
       
  1322 [Test]
       
  1323 title All_Sound_ValidFileSize_NoExpectedo/p
       
  1324 create tmediaprovidertesting foobar
       
  1325 foobar GetFilesListL FileInfo All FileSize 40000 NULL NULL NULL 0
       
  1326 delete foobar
       
  1327 [Endtest]
       
  1328 
       
  1329 //GetList with FileDate with value more than the value of aAll files expected
       
  1330 //Input: FileDate as key and 20091010:040404 as value for startrange 
       
  1331 //Expected: errorcode 0 and empty list as output
       
  1332 [Test]
       
  1333 title All_Sound_ValidFileDate_NoExpectedo/p
       
  1334 create tmediaprovidertesting foobar
       
  1335 foobar GetFilesListL FileInfo All FileDate 20091010:040404 NULL NULL NULL 0
       
  1336 delete foobar
       
  1337 [Endtest]
       
  1338 
       
  1339 //GetList with FileDate having invalid value
       
  1340 //Input: FileDate as key and 20094545:909834 as value for startrange 
       
  1341 //Expected: errorcode 1002- BadArgumentType
       
  1342 [Test]
       
  1343 title All_SoundNeg_InvalidFileDate
       
  1344 create tmediaprovidertesting foobar
       
  1345 foobar GetFilesListL FileInfo All FileDate 20094545:909834 NULL NULL NULL 1002
       
  1346 delete foobar
       
  1347 [Endtest]
       
  1348 
       
  1349 //GetList with startrange and no key
       
  1350 //Input: NULL as Key and 20000 and 30000 as start and end range values respectively
       
  1351 //Expected: list of All sound files is expected
       
  1352 [Test]
       
  1353 title All_Sound_NoKeyWithRangeValues
       
  1354 create tmediaprovidertesting foobar
       
  1355 foobar GetFilesListL FileInfo All NULL 20000 30000 NULL NULL 0
       
  1356 delete foobar
       
  1357 [Endtest]
       
  1358 
       
  1359 
       
  1360 //GetList with empty string as startrange
       
  1361 //Input: FileName as Key and empty string as startrange
       
  1362 //Expected: errorcode 0 is returned and empty list is returned
       
  1363 [Test]
       
  1364 title All_Sound_FileNameKey_EmptyStringStartRange
       
  1365 create tmediaprovidertesting foobar
       
  1366 foobar GetFilesListL FileInfo All FileName "" NULL NULL NULL 0 
       
  1367 delete foobar
       
  1368 [Endtest]
       
  1369 
       
  1370 //GetList with integer as startrange
       
  1371 //Input: FileName as Key and integer value 12 as startrange
       
  1372 //Expected: errorcode 0 and empty list is returned
       
  1373 [Test]
       
  1374 title All_Sound_IntegerStartRangeForFileNameKey
       
  1375 create tmediaprovidertesting foobar
       
  1376 foobar GetFilesListL FileInfo All FileName 12 NULL NULL NULL 0
       
  1377 delete foobar
       
  1378 [Endtest]
       
  1379 
       
  1380 
       
  1381 //GetList of sound files with a Null string as staratrange for FileName
       
  1382 //Input: FileName as Key and null string "NULL" as startrange
       
  1383 //Expected: errorcode 0 and empty list is returned
       
  1384 [Test]
       
  1385 title All_Sound_NullStringStartRangeForFileNameKey
       
  1386 create tmediaprovidertesting foobar
       
  1387 foobar GetFilesListL FileInfo All FileName "NULL" NULL NULL NULL 0 
       
  1388 delete foobar
       
  1389 [Endtest]
       
  1390 
       
  1391 //GetList of sound files with a Null string as staratrange for FileExtension
       
  1392 //Input: FileExtension as Key and null string "NULL" as startrange
       
  1393 //Expected: errorcode 0 and empty list is returned
       
  1394 [Test]
       
  1395 title All_Sound_NullStringStartRangeForFileExtensionKey
       
  1396 create tmediaprovidertesting foobar
       
  1397 foobar GetFilesListL FileInfo All FileExtension "NULL" NULL NULL NULL 0 
       
  1398 delete foobar
       
  1399 [Endtest]
       
  1400 
       
  1401 //GetList of sound files with a Null string as staratrange for Drive
       
  1402 //Input: Drive as Key and null string "NULL" as startrange
       
  1403 //Expected: errorcode 0 and empty list is returned
       
  1404 [Test]
       
  1405 title All_Sound_NullStringKeyForDriveKey
       
  1406 create tmediaprovidertesting foobar
       
  1407 foobar GetFilesListL FileInfo All Drive "NULL" NULL NULL NULL 0 
       
  1408 delete foobar
       
  1409 [Endtest]
       
  1410 
       
  1411 
       
  1412 //GetList of sound files with a Null string as staratrange for MimeType
       
  1413 //Input: MimeType as Key and null string "NULL" as startrange
       
  1414 //Expected: errorcode 0 and empty list is returned
       
  1415 [Test]
       
  1416 title All_Sound_NullStringStartRangeForMimeType
       
  1417 create tmediaprovidertesting foobar
       
  1418 foobar GetFilesListL FileInfo All MimeType "NULL" NULL NULL NULL 0 
       
  1419 delete foobar
       
  1420 [Endtest]
       
  1421 
       
  1422 //GetList of sound files with a Null string as staratrange for FileNameAndPath
       
  1423 //Input: FileNameAndPath as Key and null string "NULL" as startrange
       
  1424 //Expected: errorcode 0 and empty list is returned
       
  1425 [Test]
       
  1426 title All_Sound_NullStringStartRangeForFileNameAndPath
       
  1427 create tmediaprovidertesting foobar
       
  1428 foobar GetFilesListL FileInfo All FileNameAndPath "NULL" NULL NULL NULL 0 
       
  1429 delete foobar
       
  1430 [Endtest]
       
  1431 
       
  1432 ################################# Type==“FileInfo” + Passing Filter Map with FileType==Sound + Key+Start Range + End Range ######################
       
  1433 
       
  1434 //GetList of sound files with endrange less than startrange for FileSize
       
  1435 //Input: FileSize as Key and 22400 as startrange and 2000 as endrange
       
  1436 //Expected: errorcode 1002-BadArgumentType
       
  1437 [Test]
       
  1438 title All_SoundNeg_StartRangeGTEndRange
       
  1439 create tmediaprovidertesting foobar
       
  1440 foobar GetFilesListL FileInfo All FileSize 22400 2000 NULL NULL 1002
       
  1441 delete foobar
       
  1442 [Endtest]
       
  1443 
       
  1444 //GetList of sound files with negative endrange for FileSize
       
  1445 //Input: FileSize as Key and -12 as value for endrange
       
  1446 //Expected: errorcode 1002-BadArgumentType
       
  1447 [Test]
       
  1448 title All_SoundNeg_NegativeFileSizeEndRange
       
  1449 create tmediaprovidertesting foobar
       
  1450 foobar GetFilesListL FileInfo All FileSize 22400 -12 NULL NULL 1002
       
  1451 delete foobar
       
  1452 [Endtest]
       
  1453 
       
  1454 //GetList of sound files with negative endrange for FileDate
       
  1455 //Input: FileDate as Key and -24 as end range
       
  1456 //Expected: errorcode 1002-BadArgumentType
       
  1457 [Test]
       
  1458 title All_SoundNeg_NegativeFileDateEndRange
       
  1459 create tmediaprovidertesting foobar
       
  1460 foobar GetFilesListL FileInfo All FileDate 20090103:075032 -24 NULL NULL 1002
       
  1461 delete foobar
       
  1462 [Endtest]
       
  1463 
       
  1464 //GetList of sound files with endrange where it is not applicable
       
  1465 //Input: FileName as Key and raaga as startrange and tempo as endrange
       
  1466 //Expected: the details of file named raaga is expected and the endrange is ignored
       
  1467 [Test]
       
  1468 title All_Sound_EndRangeForFileNameKey
       
  1469 create tmediaprovidertesting foobar
       
  1470 foobar GetFilesListL FileInfo All FileName raaga tempo NULL NULL 0 ExpectedStart StartMap FileName raaga EndMap ExpectedEnd
       
  1471 delete foobar
       
  1472 [Endtest]
       
  1473 
       
  1474 //GetList with valid startrange for FileSize Key
       
  1475 //Input: FileSize as Key and 20000 and 25000 as start and end range values respectively
       
  1476 //Expected: list of All sound files in the file size range 20000 to 25000 is expected
       
  1477 [Test]
       
  1478 title All_Sound_ValidRangeForFileSize
       
  1479 create tmediaprovidertesting foobar
       
  1480 foobar GetFilesListL FileInfo All FileSize 20000 25000 NULL NULL 0 ExpectedStart StartMap FileName music FileSize 22965 EndMap StartMap FileName raaga FileSize 22965 EndMap StartMap FileName rock_on FileSize 22965 EndMap StartMap FileName tempo FileSize 22965 EndMap ExpectedEnd
       
  1481 delete foobar
       
  1482 [Endtest]
       
  1483 
       
  1484 
       
  1485 //GetList with valid startrange for FileDate Key
       
  1486 //Input: FileDate as Key and 20081022:030000 and 20081110:090000 as start and end range values respectively
       
  1487 //Expected: list of All sound files in the file date range mentioned are expected
       
  1488 [Test]
       
  1489 title All_Sound_ValidRangeForFileDate
       
  1490 create tmediaprovidertesting foobar
       
  1491 foobar GetFilesListL FileInfo All FileDate 20081022:030000 20081110:090000 NULL NULL 0 ExpectedStart StartMap FileName noise FileDate 20081109:085028 EndMap StartMap FileName sound FileDate 20081109:085028 EndMap ExpectedEnd
       
  1492 delete foobar
       
  1493 [Endtest]
       
  1494 
       
  1495 //GetList with valid startrange for FileSize Key, but no files being present in that range
       
  1496 //Input: FileSize as Key and 40000 and 50000 as start and end range values respectively
       
  1497 //Expected: 0 errorcode and empty list is expected
       
  1498 [Test]
       
  1499 title All_Sound_ValidRangeForFileSize_NoExpectedo/p
       
  1500 create tmediaprovidertesting foobar
       
  1501 foobar GetFilesListL FileInfo All FileSize 40000 50000 NULL NULL 0 
       
  1502 delete foobar
       
  1503 [Endtest]
       
  1504 
       
  1505 ########################  Type==“FileInfo” + Passing Filter Map with FileType==Sound + Sort Map ########################
       
  1506 
       
  1507 
       
  1508 //GetList with Ascending order for a given drive
       
  1509 //Input: FileExtension as Key .amr as startrange, Drive as SortKey and Ascending as SortOrder
       
  1510 //Expected: list of sound files with file extension .amr,in ascending order of drive
       
  1511 [Test]
       
  1512 title All_Sound_SortAscendingOnDrive
       
  1513 create tmediaprovidertesting foobar
       
  1514 foobar GetFilesListL FileInfo All FileExtension .amr NULL Drive Ascending 0 ExpectedStart StartMap FileName sound Drive c: EndMap StartMap FileName noise Drive e: EndMap ExpectedEnd
       
  1515 delete foobar
       
  1516 [Endtest]
       
  1517 
       
  1518 //GetList with Descending order for a given drive
       
  1519 //Input: FileExtension as Key .amr as startrange, Drive as SortKey and Descending as SortOrder
       
  1520 //Expected: list of sound files with .amr file extension, in descending order of drive
       
  1521 [Test]
       
  1522 title All_Sound_SortDescendingOnDrive
       
  1523 create tmediaprovidertesting foobar
       
  1524 foobar GetFilesListL FileInfo All FileExtension .amr NULL Drive Descending 0 ExpectedStart StartMap FileName noise FileExtension .amr Drive e: EndMap StartMap FileName sound FileExtension .amr Drive c: EndMap ExpectedEnd
       
  1525 delete foobar
       
  1526 [Endtest]
       
  1527 
       
  1528 //GetList with Ascending order for a given FileExtension
       
  1529 ////Input: Drive as Key e: as startrange, FileExtension as SortKey and Ascending as SortOrder
       
  1530 //Expected: list of sound files, in e: drive, in ascending order of FileExtension
       
  1531 [Test]
       
  1532 title All_Sound_SortAscendingOnFileExtension
       
  1533 create tmediaprovidertesting foobar
       
  1534 foobar GetFilesListL FileInfo All Drive e: NULL FileExtension Ascending 0 ExpectedStart StartMap FileName noise FileExtension .amr EndMap StartMap FileName rock_on FileExtension .wav EndMap ExpectedEnd
       
  1535 delete foobar
       
  1536 [Endtest]
       
  1537 
       
  1538 //GetList with Descending order for a given FileExtension
       
  1539 //Input: Drive as Key e: as startrange, FileExtension as SortKey and Descending as SortOrder
       
  1540 //Expected: list of sound files, in e: drive, in descending order of FileExtension
       
  1541 [Test]
       
  1542 title All_Sound_SortDescendingOnFileExtension
       
  1543 create tmediaprovidertesting foobar
       
  1544 foobar GetFilesListL FileInfo All Drive e: NULL FileExtension Descending 0 ExpectedStart StartMap FileName rock_on FileExtension .wav EndMap StartMap FileName noise FileExtension .amr EndMap ExpectedEnd
       
  1545 delete foobar
       
  1546 [Endtest]
       
  1547 
       
  1548 //GetList with Ascending order for a given MimeType
       
  1549 //Input: Drive as Key, e: as value for startrange, MimeType as SortKey, Ascending as SortOrder
       
  1550 //Expected: list of sound files,in e: drive, in ascending order of MimeType
       
  1551 [Test]
       
  1552 title All_Sound_SortAscendingOnMimeType
       
  1553 create tmediaprovidertesting foobar
       
  1554 foobar GetFilesListL FileInfo All Drive e: NULL MimeType Ascending 0 ExpectedStart StartMap FileName noise MimeType AUDIO/AMR EndMap StartMap FileName rock_on MimeType AUDIO/WAV EndMap ExpectedEnd
       
  1555 delete foobar
       
  1556 [Endtest]
       
  1557 
       
  1558 //GetList with Descending order for a given MimeType
       
  1559 //Input: Drive as Key, e: as value for startrange, MimeType as SortKey, Descending as SortOrder
       
  1560 //Expected: list of sound files,in e: drive, in descending order of MimeType
       
  1561 [Test]
       
  1562 title All_Sound_SortDescendingOnMimeType
       
  1563 create tmediaprovidertesting foobar
       
  1564 foobar GetFilesListL FileInfo All Drive e: NULL MimeType Descending 0 ExpectedStart StartMap FileName rock_on MimeType AUDIO/WAV EndMap StartMap FileName noise MimeType AUDIO/AMR EndMap ExpectedEnd
       
  1565 delete foobar
       
  1566 [Endtest]
       
  1567 
       
  1568 //GetList with Ascending order for a given FileSize
       
  1569 //Input: Drive as Key, e: as value for startrange, FileSize as SortKey, Ascending as SortOrder
       
  1570 //Expected: list of sound files,in e: drive, in ascending order of FileSize
       
  1571 [Test]
       
  1572 title All_Sound_SortAscendingOnFileSize
       
  1573 create tmediaprovidertesting foobar
       
  1574 foobar GetFilesListL FileInfo All Drive e: NULL FileSize Ascending 0 ExpectedStart StartMap FileName rock_on FileSize 22965 EndMap StartMap FileName noise FileSize 25031 EndMap ExpectedEnd
       
  1575 delete foobar
       
  1576 [Endtest]
       
  1577 
       
  1578 //GetList with Descending order for a given FileSize
       
  1579 //Input: Drive as Key, e: as value for startrange, FileSize as SortKey, Descending as SortOrder
       
  1580 //Expected: list of sound files in descending order of FileSize
       
  1581 [Test]
       
  1582 title All_Sound_SortDescendingOnFileSize
       
  1583 create tmediaprovidertesting foobar
       
  1584 foobar GetFilesListL FileInfo All Drive e: NULL FileSize Descending 0 ExpectedStart StartMap FileName noise FileSize 25031 EndMap StartMap FileName rock_on FileSize 22965 EndMap ExpectedEnd
       
  1585 delete foobar
       
  1586 [Endtest]
       
  1587 
       
  1588 //GetList with Ascending order for a given FileDate
       
  1589 //Input: Drive as Key, e: as value for startrange, FileDate as SortKey, Ascending as SortOrder
       
  1590 //Expected: list of sound files,in e: drive, in ascending order of FileDate
       
  1591 [Test]
       
  1592 title All_Sound_SortAscendingOnFileDate
       
  1593 create tmediaprovidertesting foobar
       
  1594 foobar GetFilesListL FileInfo All Drive e: NULL FileDate Ascending 0 ExpectedStart StartMap FileName rock_on FileDate 20081019:033638 EndMap StartMap FileName noise FileDate 20081109:085028 EndMap ExpectedEnd
       
  1595 delete foobar
       
  1596 [Endtest]
       
  1597 
       
  1598 //GetList with Descending order for a given FileDate
       
  1599 //Input: Drive as Key, e: as value for startrange, FileDate as SortKey, Descending as SortOrder
       
  1600 //Expected: list of sound files,in e: drive, in descending order of FileDate
       
  1601 [Test]
       
  1602 title All_Sound_SortDescendingOnFileDate
       
  1603 create tmediaprovidertesting foobar
       
  1604 foobar GetFilesListL FileInfo All Drive e: NULL FileDate Descending 0 ExpectedStart StartMap FileName noise FileDate 20081109:085028 EndMap StartMap FileName rock_on FileDate 20081019:033638 EndMap ExpectedEnd
       
  1605 delete foobar
       
  1606 [Endtest]
       
  1607 
       
  1608 
       
  1609 //GetList with no sort order 
       
  1610 //Input: Drive as Key, e: as value for startrange, FileName as SortKey, no sortorder(NULL as sortorder)
       
  1611 //Expected: list of sound files,in e: drive, in ascending order(default order) of FileName
       
  1612 [Test]
       
  1613 title All_Sound_NoSortOrder
       
  1614 create tmediaprovidertesting foobar
       
  1615 foobar GetFilesListL FileInfo All Drive e: NULL FileName NULL 0 ExpectedStart StartMap FileName noise EndMap StartMap FileName rock_on EndMap ExpectedEnd
       
  1616 delete foobar
       
  1617 [Endtest]
       
  1618 
       
  1619 //GetList Nokia as SortOrder
       
  1620 //Input: FileDate as SortKey and Nokia as SortOrder
       
  1621 //Expected: errorcode 1002-BadArgumentType is expected output, as the value for SortOrder is invalid
       
  1622 [Test]
       
  1623 title All_Sound_NokiaSortOrder
       
  1624 create tmediaprovidertesting foobar
       
  1625 foobar GetFilesListL FileInfo All NULL NULL NULL FileDate Nokia 1002
       
  1626 delete foobar
       
  1627 [Endtest]
       
  1628 
       
  1629 
       
  1630 //GetList ascending(case sensitive) as sort order
       
  1631 //Input: Drive as Key, e: as value for startrange, FileDate as value for SortKey and ascending(lower case) as value for SortOrder
       
  1632 //filters as per the filter key and order mentioned
       
  1633 [Test]
       
  1634 title All_Sound_lowercase_ascendingSortOrder
       
  1635 create tmediaprovidertesting foobar
       
  1636 foobar GetFilesListL FileInfo All Drive e: NULL FileDate ascending 0 ExpectedStart StartMap FileName rock_on FileDate 20081019:033638 EndMap StartMap FileName noise FileDate 20081109:085028 EndMap ExpectedEnd
       
  1637 delete foobar
       
  1638 [Endtest]
       
  1639 
       
  1640 
       
  1641 //GetList Ascending sort order for FileNameAndPath
       
  1642 //Input: FileNameAndPath as SortKey and Ascending as SortOrder
       
  1643 //Expected: list of sound files in ascending order of FileNameAndPath
       
  1644 [Test]
       
  1645 title All_Sound_SortAscendingOnFileNameAndPath
       
  1646 create tmediaprovidertesting foobar
       
  1647 foobar GetFilesListL FileInfo All Drive c: NULL FileNameAndPath Ascending 0 ExpectedStart StartMap FileNameAndPath c:\data\others\music.wav EndMap StartMap FileNameAndPath c:\data\sounds\digital\raaga.wav EndMap StartMap FileNameAndPath c:\data\sounds\digital\sound.amr EndMap StartMap FileNameAndPath c:\data\sounds\digital\tempo.wav EndMap ExpectedEnd
       
  1648 delete foobar
       
  1649 [Endtest]
       
  1650 
       
  1651 
       
  1652 //GetList Descending order for FileName
       
  1653 //Input: FileName as SortKey and Descending as value for SortOrder
       
  1654 //Expected: list of sound files in descending order of FileName
       
  1655 [Test]
       
  1656 title All_Sound_SortDescendingOnFileName
       
  1657 create tmediaprovidertesting foobar
       
  1658 foobar GetFilesListL FileInfo All MimeType AUDIO/AMR NULL FileName Descending 0 ExpectedStart StartMap FileName sound MimeType AUDIO/AMR EndMap StartMap FileName noise MimeType AUDIO/AMR EndMap ExpectedEnd
       
  1659 delete foobar
       
  1660 [Endtest]
       
  1661 
       
  1662 //GetList to check for All fields
       
  1663 //Input: Drive as FilterKey and e: as startrange FileName as SortKey and Descending as value for SortOrder
       
  1664 //Expected: list of sound files in e: drive, in descending order of FileName
       
  1665 [Test]
       
  1666 title All_Sound_DriveKey_e:StartRange_CheckForAllKeysInExpectedO/p
       
  1667 create tmediaprovidertesting foobar
       
  1668 foobar GetFilesListL FileInfo All Drive e: NULL FileName Descending 0 ExpectedStart StartMap Type Media FileName rock_on FileExtension .wav Drive e: FileSize 22965 FileDate 20081019:033638 FileNameAndPath e:\data\sounds\digital\rock_on.wav MimeType AUDIO/WAV EndMap StarMap Type Media FileName noise FileExtension .amr Drive e: FileSize 25031 FileDate 20081109:085028 FileNameAndPath e:\data\sounds\digital\noise.amr MimeType AUDIO/AMR EndMap ExpectedEnd
       
  1669 delete foobar
       
  1670 [Endtest]
       
  1671 
       
  1672 ############################################ End Sound #################################################
       
  1673 
       
  1674 //GetList of video files with startrange for FileName
       
  1675 //Input: FileName as Key and video1 as startrange
       
  1676 //Expected: list of video files filtered by FileName. Thus details of All files named video1 is expected as o/p
       
  1677 [Test]
       
  1678 title All_video_WithValidFileNameStartRange
       
  1679 create tmediaprovidertesting foobar
       
  1680 foobar GetFilesListL FileInfo All FileName video1 NULL NULL NULL 0 ExpectedStart StartMap FileName video1 EndMap ExpectedEnd
       
  1681 delete foobar
       
  1682 [Endtest]
       
  1683 
       
  1684 //GetList of video files  with startrange for FileExtension
       
  1685 //Input: FileExtension as Key and .3gp as startrange
       
  1686 //Expected: list of video files filtered by FileExtension. All files with extension .3gp is expected
       
  1687 [Test]
       
  1688 title All_video_WithValidFileExtensionStartRange
       
  1689 create tmediaprovidertesting foobar
       
  1690 foobar GetFilesListL FileInfo All FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video2 FileExtension .3gp EndMap StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
  1691 delete foobar
       
  1692 [Endtest]
       
  1693 
       
  1694 //GetList of video files with startrange for Drive 
       
  1695 //Input: Drive as Key and e: as startrange
       
  1696 //Expected: list of video files filtered by Drive. Details of All files in e: drive is expected
       
  1697 [Test]
       
  1698 title All_video_DriveKey_e:StartRange
       
  1699 create tmediaprovidertesting foobar
       
  1700 foobar GetFilesListL FileInfo All Drive e: NULL NULL NULL 0 ExpectedStart StartMap FileName video2 Drive e: EndMap StartMap FileName video3 Drive e: EndMap ExpectedEnd
       
  1701 delete foobar
       
  1702 [Endtest]
       
  1703 
       
  1704 //GetList of video files with startrange for FileSize
       
  1705 //Input: FileSize as Key and 71599 as startrange
       
  1706 //Expected: list of video files filtered by FileSize. Details of All files with size 71599 is expected o/p
       
  1707 [Test]
       
  1708 title All_video_WithValidFileSizeStartRange
       
  1709 create tmediaprovidertesting foobar
       
  1710 foobar GetFilesListL FileInfo All FileSize 71559 NULL NULL NULL 0 ExpectedStart StartMap FileName video1 FileSize 71559 EndMap StartMap FileName video2 FileSize 71559 EndMap StartMap FileName video5 FileSize 71559 EndMap ExpectedEnd
       
  1711 delete foobar
       
  1712 [Endtest]
       
  1713 
       
  1714 //GetList of video files with startrange for FileDate
       
  1715 //Input: FileDate as Key and 20081019:033638 as startrange
       
  1716 ///Expected: list of video files filtered by FileDate. All files with date 20081019:033638 is expected as o/p
       
  1717 [Test]
       
  1718 title All_video_WithValidFileDateStartRange
       
  1719 create tmediaprovidertesting foobar
       
  1720 foobar GetFilesListL FileInfo All FileDate 20081019:033638 NULL NULL NULL 0 ExpectedStart StartMap FileName video1 FileDate 20081019:033638 EndMap ExpectedEnd
       
  1721 delete foobar
       
  1722 [Endtest]
       
  1723 
       
  1724 //GetList of video files with startrange for MimeType
       
  1725 //Input: MimeType as Key and video/3gpp as startrange
       
  1726 //Expected: list of video files filtered by MimeType. All files with MimeType as video/3gpp is expected 
       
  1727 [Test]
       
  1728 title All_video_WithValidMimeTypeStartRange
       
  1729 create tmediaprovidertesting foobar
       
  1730 foobar GetFilesListL FileInfo All MimeType Video/3gpp NULL NULL NULL 0 ExpectedStart StartMap FileName video2 MimeType VIDEO/3GPP EndMap StartMap FileName video5 MimeType VIDEO/3GPP EndMap ExpectedEnd
       
  1731 delete foobar
       
  1732 [Endtest]
       
  1733 
       
  1734 //GetList of video files with startrange for FileNameAndPath
       
  1735 //Input: FileNameAndPath as Key and c:\data\videos\video1.mp4 as startrange
       
  1736 //Expected: list of video files filtered by FileNameAndPath. All files with path c:\data\videos\video1.mp4 are the expected o/p
       
  1737 [Test]
       
  1738 title All_video_WithValidFileNameAndPathStartRange
       
  1739 create tmediaprovidertesting foobar
       
  1740 foobar GetFilesListL FileInfo All FileNameAndPath c:\data\videos\video1.mp4 NULL NULL NULL 0 ExpectedStart StartMap FileNameAndPath c:\data\Videos\video1.mp4 EndMap ExpectedEnd
       
  1741 delete foobar
       
  1742 [Endtest]
       
  1743 
       
  1744 
       
  1745 //GetList of video files with negative startrange for FileSize
       
  1746 //Input: FileSize as Key and a negative value -400 as startrange
       
  1747 //Expected: errorcode 1002-BadArgumentType
       
  1748 [Test]
       
  1749 title All_videoNeg_WithNegativeFileSizeStartRange
       
  1750 create tmediaprovidertesting foobar
       
  1751 foobar GetFilesListL FileInfo All FileSize -400 NULL NULL NULL 1002
       
  1752 delete foobar
       
  1753 [Endtest]
       
  1754 
       
  1755 //GetList of video files with negative startrange for FileDate
       
  1756 //Input: FileDate as Key and a negative value -12 as startrange
       
  1757 //Expected: errorcode 1002-BadArgumentType
       
  1758 [Test]
       
  1759 title All_videoNeg_WithNegativeFileDateStartRange
       
  1760 create tmediaprovidertesting foobar
       
  1761 foobar GetFilesListL FileInfo All FileDate -12 NULL NULL NULL 1002
       
  1762 delete foobar
       
  1763 [Endtest]
       
  1764 
       
  1765 //GetList of video files with startrange for FileSize such that no files with that value exists
       
  1766 //Input: FileSize as Key and a valid value 2000000 as startrange
       
  1767 //Expected: errorcode 0 and empty list is expected
       
  1768 [Test]
       
  1769 title All_video_WithValidFileSizeSartRange_NoExpectedO/p
       
  1770 create tmediaprovidertesting foobar
       
  1771 foobar GetFilesListL FileInfo All FileSize 2000000 NULL NULL NULL 0
       
  1772 delete foobar
       
  1773 [Endtest]
       
  1774 
       
  1775 //GetList of video files with startrange for FileDate such that no files with that value exists
       
  1776 //Input: FileDate as Key and a value 20090201:050000 as startrange
       
  1777 //Expected: errorcode 0 and empty list is expected
       
  1778 [Test]
       
  1779 title All_video_WithVsalidFileDate_NoExpectedO/p
       
  1780 create tmediaprovidertesting foobar
       
  1781 foobar GetFilesListL FileInfo All FileDate 20090201:050000 NULL NULL NULL 0
       
  1782 delete foobar
       
  1783 [Endtest]
       
  1784 
       
  1785 
       
  1786 //GetList of video files with invalid value for startrange for FileDate 
       
  1787 //Input: FileDate as Key and a value 20094545:909834 as startrange
       
  1788 //Expected: errorcode 1002-BadArgumentType
       
  1789 [Test]
       
  1790 title All_videoNeg_InvalidFileDate
       
  1791 create tmediaprovidertesting foobar
       
  1792 foobar GetFilesListL FileInfo All FileDate 20094545:909834 NULL NULL NULL 1002
       
  1793 delete foobar
       
  1794 [Endtest]
       
  1795 
       
  1796 //GetList with startrange and no key
       
  1797 //Input: NULL as Key and 20000 and 30000 as start and end range values respectively
       
  1798 //Expected: list of All video files is expected
       
  1799 [Test]
       
  1800 title All_video_NullKey
       
  1801 create tmediaprovidertesting foobar
       
  1802 foobar GetFilesListL FileInfo All NULL 20000 30000 NULL NULL 0
       
  1803 delete foobar
       
  1804 [Endtest]
       
  1805 
       
  1806 
       
  1807 //GetList with empty string as startrange
       
  1808 //Input: FileName as Key and empty string as startrange
       
  1809 //Expected: errorcode 0 is returned and empty list is returned
       
  1810 [Test]
       
  1811 title All_video_EmptyStringStartRange
       
  1812 create tmediaprovidertesting foobar
       
  1813 foobar GetFilesListL FileInfo All FileName "" NULL NULL NULL 0 
       
  1814 delete foobar
       
  1815 [Endtest]
       
  1816 
       
  1817 //GetList with integer as startrange
       
  1818 //Input: FileName as Key and integer value 12 as startrange
       
  1819 //Expected: errorcode 0 and empty list is returned
       
  1820 [Test]
       
  1821 title All_video_IntegerFileName
       
  1822 create tmediaprovidertesting foobar
       
  1823 foobar GetFilesListL FileInfo All FileName 12 NULL NULL NULL 0
       
  1824 delete foobar
       
  1825 [Endtest]
       
  1826 
       
  1827 
       
  1828 //GetList of video files with a Null string as startrange for FileName
       
  1829 //Input: FileName as Key and a null string "NULL" as startrange
       
  1830 //Expected: errorcode 0 and empty list, as the file named NULL may not be present in the list
       
  1831 [Test]
       
  1832 title All_video_FileNameKey_NullStringStartRange
       
  1833 create tmediaprovidertesting foobar
       
  1834 foobar GetFilesListL FileInfo All FileName "NULL" NULL NULL NULL 0 //1002
       
  1835 delete foobar
       
  1836 [Endtest]
       
  1837 
       
  1838 //GetList of video files with a Null string as startrange for FileExtension
       
  1839 //Input: FileExtension as Key and a null string "NULL" as startrange
       
  1840 //Expected: errorcode 0 and empty list
       
  1841 [Test]
       
  1842 title All_video_FileExtensionKey_NullStringStartRange
       
  1843 create tmediaprovidertesting foobar
       
  1844 foobar GetFilesListL FileInfo All FileExtension "NULL" NULL NULL NULL 0 //1002
       
  1845 delete foobar
       
  1846 [Endtest]
       
  1847 
       
  1848 //GetList of video files with a Null string as startrange for Drive
       
  1849 //Input: Drive as Key and a null string "NULL" as startrange
       
  1850 //Expected: errorcode 0 and empty list
       
  1851 [Test]
       
  1852 title All_video_DriveKey_NullStringStartRange
       
  1853 create tmediaprovidertesting foobar
       
  1854 foobar GetFilesListL FileInfo All Drive "NULL" NULL NULL NULL 0 //1002
       
  1855 delete foobar
       
  1856 [Endtest]
       
  1857 
       
  1858 
       
  1859 //GetList of video files with a Null string as startrange for MimeType
       
  1860 //Input: MimeType as Key and a null string "NULL" as startrange
       
  1861 //Expected: errorcode 0 and empty list
       
  1862 [Test]
       
  1863 title All_video_MimeTypeKey__NullStringStartRange
       
  1864 create tmediaprovidertesting foobar
       
  1865 foobar GetFilesListL FileInfo All MimeType "NULL" NULL NULL NULL 0 // 1002
       
  1866 delete foobar
       
  1867 [Endtest]
       
  1868 
       
  1869 //GetList of video files with a Null string as startrange for FileNameAndPath
       
  1870 //Input: FileNameAndPath as Key and a null string "NULL" as startrange
       
  1871 //Expected: errorcode 0 and empty list
       
  1872 [Test]
       
  1873 title All_video_FileNameAndPathKey_NullStringStartRange
       
  1874 create tmediaprovidertesting foobar
       
  1875 foobar GetFilesListL FileInfo All FileNameAndPath "NULL" NULL NULL NULL 0 //1002
       
  1876 delete foobar
       
  1877 [Endtest]
       
  1878 
       
  1879 ################################# Type==“FileInfo” + Passing Filter Map with FileType==video + Key+Start Range + End Range ######################
       
  1880 
       
  1881 //GetList of video files with endrange less than startrange for FileSize
       
  1882 //Input: FileSize as Key, 70000 as startrange and 20000 (<startrange) as endrange value
       
  1883 //Expected: errorcode 1002-BadArgumentType
       
  1884 [Test]
       
  1885 title All_video_StartRangeGTEndRange
       
  1886 create tmediaprovidertesting foobar
       
  1887 foobar GetFilesListL FileInfo All FileSize 70000 20000 NULL NULL 1002
       
  1888 delete foobar
       
  1889 [Endtest]
       
  1890 
       
  1891 //GetList of video files with negative endrange for FileSize
       
  1892 //Input: FileSize as Key and 70000 as startrange and a negative value -12 as endrange
       
  1893 //Expected: errorcode 1002-BadArgumentType
       
  1894 [Test]
       
  1895 title All_videoNeg_NegativeFileSize
       
  1896 create tmediaprovidertesting foobar
       
  1897 foobar GetFilesListL FileInfo All FileSize 70000 -12 NULL NULL 1002
       
  1898 delete foobar
       
  1899 [Endtest]
       
  1900 
       
  1901 //GetList of video files with negative endrange for FileDate
       
  1902 //Input: FileDate as Key and 20090103:094451 as startrange and a negative value -24 as endrange
       
  1903 //Expected: errorcode 1002-BadArgumentType
       
  1904 [Test]
       
  1905 title All_videoNeg_NegativeFileDate
       
  1906 create tmediaprovidertesting foobar
       
  1907 foobar GetFilesListL FileInfo All FileDate 20090103:094451 -24 NULL NULL 1002
       
  1908 delete foobar
       
  1909 [Endtest]
       
  1910 
       
  1911 //GetList of video files with endrange where it is not applicable
       
  1912 //Input: FileName as Key and video2 as startrange and video4 as endrange
       
  1913 //Expected: the details of file named video2 is expected and the endrange is ignored
       
  1914 [Test]
       
  1915 title All_video_EndRangeForFileNameKey
       
  1916 create tmediaprovidertesting foobar
       
  1917 foobar GetFilesListL FileInfo All FileName video2 video4 NULL NULL 0 ExpectedStart StartMap FileName video2 EndMap ExpectedEnd
       
  1918 delete foobar
       
  1919 [Endtest]
       
  1920 
       
  1921 //GetList with valid startrange for FileSize Key
       
  1922 //Input: FileSize as Key and 70000 and 80000 as start and end range values respectively
       
  1923 //Expected: list of All video files in the range of file size 70000 to 80000 is expected
       
  1924 [Test]
       
  1925 title All_video_ValidFileSizeRange
       
  1926 create tmediaprovidertesting foobar
       
  1927 foobar GetFilesListL FileInfo All FileSize 70000 80000 NULL NULL 0 ExpectedStart StartMap FileName video1 FileSize 71559 EndMap StartMap FileName video2 FileSize 71559 EndMap StartMap FileName video5 FileSize 71559 EndMap ExpectedEnd
       
  1928 delete foobar
       
  1929 [Endtest]
       
  1930 
       
  1931 
       
  1932 //GetList with valid startrange for FileDate Key
       
  1933 //Input: FileDate as Key and 20060000:030000 and 20061111:090000 as start and end range values respectively
       
  1934 //Expected: list of All video files in the filedate range mentioned are expected
       
  1935 [Test]
       
  1936 title All_video_ValidFileDateRange
       
  1937 create tmediaprovidertesting foobar
       
  1938 foobar GetFilesListL FileInfo All FileDate 20060000:030000 20061111:090000 NULL NULL 0 ExpectedStart StartMap FileName video3 FileDate 20060604:070320 EndMap StartMap FileName video4 FileDate 20060711:044818 EndMap ExpectedEnd
       
  1939 delete foobar
       
  1940 [Endtest]
       
  1941 
       
  1942 //GetList with valid startrange for FileSize Key, but no files being present in that range
       
  1943 //Input: FileSize as Key and 40000 and 50000 as start and end range values respectively
       
  1944 //Expected: errorcode 0 and empty output list is expected
       
  1945 [Test]
       
  1946 title All_video_ValidFileSizeRange_NoExpectedO/p
       
  1947 create tmediaprovidertesting foobar
       
  1948 foobar GetFilesListL FileInfo All FileSize 40000 50000 NULL NULL 0 
       
  1949 delete foobar
       
  1950 [Endtest]
       
  1951 
       
  1952 
       
  1953 
       
  1954 ########################  Type==“FileInfo” + Passing Filter Map with FileType==video + Sort Map ########################
       
  1955 
       
  1956 
       
  1957 //GetList with Ascending order for a given drive
       
  1958 //Input: FileExtension as Key, .3gp as startrange, Drive as SortKey and Ascending as SortOrder.
       
  1959 //Expected: list of video files with extension .3gp are sorted in ascending order of their drive.
       
  1960 [Test]
       
  1961 title All_video_SortAscendingOnDrive
       
  1962 create tmediaprovidertesting foobar
       
  1963 foobar GetFilesListL FileInfo All FileExtension .3gp NULL Drive Ascending 0 ExpectedStart StartMap FileName video5 Drive c: EndMap StartMap FileName video2 Drive e: EndMap ExpectedEnd
       
  1964 delete foobar
       
  1965 [Endtest]
       
  1966 
       
  1967 //GetList with Descending order for a given drive
       
  1968 //Input: FileExtension as Key, .3gp as startrange, Drive as SortKey and Descending as SortOrder.
       
  1969 //Expected: list of video files with extension .3gp are sorted in descending order of their drive.
       
  1970 [Test]
       
  1971 title All_video_SortDescendingOnDrive
       
  1972 create tmediaprovidertesting foobar
       
  1973 foobar GetFilesListL FileInfo All FileExtension .3gp NULL Drive Descending 0 ExpectedStart StartMap FileName video2 Drive e: EndMap StartMap FileName video5 Drive c: EndMap ExpectedEnd
       
  1974 delete foobar
       
  1975 [Endtest]
       
  1976 
       
  1977 //GetList with Ascending order for a given FileExtension
       
  1978 //Input: Drive as Key, e: as startrange, FileExtension as SortKey and Ascending as SortOrder.
       
  1979 //Expected: list of video files in e: drive are sorted in ascending order by their file extension
       
  1980 [Test]
       
  1981 title All_video_SortAscendingOnFileExtension
       
  1982 create tmediaprovidertesting foobar
       
  1983 foobar GetFilesListL FileInfo All Drive e: NULL FileExtension Ascending 0 ExpectedStart StartMap FileName video2 FileExtension .3gp Drive e: EndMap StartMap FileName video3 FileExtension .mp4 Drive e: EndMap ExpectedEnd
       
  1984 delete foobar
       
  1985 [Endtest]
       
  1986 
       
  1987 //GetList with Descending order for a given FileExtension
       
  1988 //Input: Drive as Key, e: as startrange, FileExtension as SortKey and Descending as SortOrder.
       
  1989 //Expected: list of video files in e: drive are sorted in descending order by their file extension
       
  1990 [Test]
       
  1991 title All_video_SortDescendingOnFileExtension
       
  1992 create tmediaprovidertesting foobar
       
  1993 foobar GetFilesListL FileInfo All Drive e: NULL FileExtension Descending 0 ExpectedStart StartMap FileName video3 FileExtension .mp4 EndMap StartMap FileName video2 FileExtension .3gp EndMap ExpectedEnd
       
  1994 delete foobar
       
  1995 [Endtest]
       
  1996 
       
  1997 //GetList with Ascending order for a given MimeType
       
  1998 //Input: Drive as Key, e: as startrange, MimeType as SortKey and Ascending as SortOrder.
       
  1999 //Expected: list of video files in e: drive are sorted in ascending order by their MimeType
       
  2000 [Test]
       
  2001 title All_video_SortAscendingOnMimeType
       
  2002 create tmediaprovidertesting foobar
       
  2003 foobar GetFilesListL FileInfo All Drive e: NULL MimeType Ascending 0 ExpectedStart StartMap FileName video2 MimeType VIDEO/3GPP EndMap StartMap FileName video3 MimeType VIDEO/MP4 EndMap ExpectedEnd
       
  2004 delete foobar
       
  2005 [Endtest]
       
  2006 
       
  2007 //GetList with Descending order for a given MimeType
       
  2008 //Input: Drive as Key, e: as startrange, MimeType as SortKey and Descending as SortOrder.
       
  2009 //Expected: list of video files in e: drive are sorted in descending order by their MimeType
       
  2010 [Test]
       
  2011 title All_video_SortDescendingOnMimeType
       
  2012 create tmediaprovidertesting foobar
       
  2013 foobar GetFilesListL FileInfo All Drive e: NULL MimeType Descending 0 ExpectedStart StartMap FileName video3 MimeType VIDEO/MP4 EndMap StartMap FileName video2 MimeType VIDEO/3GPP EndMap ExpectedEnd
       
  2014 delete foobar
       
  2015 [Endtest]
       
  2016 
       
  2017 //GetList with Ascending order for a given FileSize
       
  2018 //Input: Drive as Key, e: as startrange, FileSize as SortKey and Ascending as SortOrder.
       
  2019 //Expected: list of video files in e: drive sorted in ascending order of their FileSize
       
  2020 [Test]
       
  2021 title All_video_SortAscendingOnFileSize
       
  2022 create tmediaprovidertesting foobar
       
  2023 foobar GetFilesListL FileInfo All Drive e: NULL FileSize Ascending 0 ExpectedStart StartMap FileName video2 FileSize 71559 EndMap StartMap FileName video3 FileSize 1141811 EndMap ExpectedEnd
       
  2024 delete foobar
       
  2025 [Endtest]
       
  2026 
       
  2027 //GetList with Descending order for a given FileSize
       
  2028 //Input: Drive as Key, e: as startrange, FileSize as SortKey and Descending as SortOrder.
       
  2029 //Expected: list of video files in e: drive, sorted in descending order of their FileSize
       
  2030 [Test]
       
  2031 title All_video_SortDescendingOnFileSize
       
  2032 create tmediaprovidertesting foobar
       
  2033 foobar GetFilesListL FileInfo All Drive e: NULL FileSize Descending 0 ExpectedStart StartMap FileName video3 FileSize 1141811 EndMap StartMap FileName video2 FileSize 71559 EndMap ExpectedEnd
       
  2034 delete foobar
       
  2035 [Endtest]
       
  2036 
       
  2037 //GetList with Ascending order for a given FileDate
       
  2038 //Input: Drive as Key, e: as startrange, FileDate as SortKey and Ascending as SortOrder.
       
  2039 //Expected: list of video files sorted in ascending order by FileDate
       
  2040 [Test]
       
  2041 title All_video_SortAscendingOnFileDate
       
  2042 create tmediaprovidertesting foobar
       
  2043 foobar GetFilesListL FileInfo All Drive e: NULL FileDate Ascending 0 ExpectedStart StartMap FileName video3 FileDate 20060604:070320 EndMap StartMap FileName video2 FileDate 20081019:033638 EndMap ExpectedEnd
       
  2044 delete foobar
       
  2045 [Endtest]
       
  2046 
       
  2047 //GetList with Descending order for a given FileDate
       
  2048 //Input: FileSize as Key, 1100000 as startrange, 1200000 as endrange, FileDate as SortKey and Descending as SortOrder.
       
  2049 //Expected: list of video files with size between the range (1100000,1200000), sorted in descending order of their FileDate
       
  2050 [Test]
       
  2051 title All_video_SortDescendingOnFileDate
       
  2052 create tmediaprovidertesting foobar
       
  2053 foobar GetFilesListL FileInfo All FileSize 1100000 1200000 FileDate Descending 0 ExpectedStart StartMap FileName video4 FileDate 20060711:044818 EndMap StartMap FileName video3 FileDate 20060604:070320 EndMap ExpectedEnd
       
  2054 delete foobar
       
  2055 [Endtest]
       
  2056 
       
  2057 
       
  2058 //GetList with no sort order 
       
  2059 //Input: Drive as Key, e: as value for startrange, FileName as SortKey, no sortorder(NULL as sortorder)
       
  2060 //Expected: list of video files,in e: drive, in ascending order(default order) of FileName
       
  2061 [Test]
       
  2062 title All_video_NoSortOrder
       
  2063 create tmediaprovidertesting foobar
       
  2064 foobar GetFilesListL FileInfo All Drive e: NULL FileName NULL 0 ExpectedStart StartMap FileName video2 EndMap StartMap FileName video3 EndMap ExpectedEnd
       
  2065 delete foobar
       
  2066 [Endtest]
       
  2067 
       
  2068 
       
  2069 //GetList Nokia as SortOrder
       
  2070 //Input: FileDate as SortKey and Nokia as SortOrder
       
  2071 //Expected: errorcode 1002-BadArgumentType, as Nokia is invalid SortOrder
       
  2072 [Test]
       
  2073 title All_video_NokiaSortOrder
       
  2074 create tmediaprovidertesting foobar
       
  2075 foobar GetFilesListL FileInfo All NULL NULL NULL FileDate Nokia 1002
       
  2076 delete foobar
       
  2077 [Endtest]
       
  2078 
       
  2079 
       
  2080 //GetList ascending(case sensitive) as sort order
       
  2081 //Input: FileSize as Key, 1100000 as startrange, 1200000 as endrange, FileDate as SortKey and ascending(lowercase) as SortOrder.
       
  2082 //Expected: list of video files with size between the range (1100000,1200000), sorted in descending order of their FileDate
       
  2083 [Test]
       
  2084 title All_video_SortascendingOnFileName
       
  2085 create tmediaprovidertesting foobar
       
  2086 foobar GetFilesListL FileInfo All FileSize 1100000 1200000 FileName ascending 0 ExpectedStart StartMap FileName video3 EndMap StartMap FileName video4 EndMap ExpectedEnd
       
  2087 delete foobar
       
  2088 [Endtest]
       
  2089 
       
  2090 
       
  2091 //GetList Ascending sort order for FileNameAndPath
       
  2092 //Input: FileNameAndPath as SortKey and Ascending as SortOrder
       
  2093 //Expected: list of video files sorted in ascending order of their FileNameAndPath
       
  2094 [Test]
       
  2095 title All_video_SortAscendingOnFileNameAndPath
       
  2096 create tmediaprovidertesting foobar
       
  2097 foobar GetFilesListL FileInfo All Drive c: NULL FileNameAndPath Ascending 0 ExpectedStart StartMap FileNameAndPath c:\data\Others\video4.mp4 EndMap StartMap FileNameAndPath c:\data\Videos\video1.mp4 EndMap StartMap FileNameAndPath c:\data\Videos\video5.3gp EndMap ExpectedEnd
       
  2098 delete foobar
       
  2099 [Endtest]
       
  2100 
       
  2101 
       
  2102 //GetList Descending order for FileName
       
  2103 //Input: FileName as SortKey and Descending as SortOrder
       
  2104 //Expected: list of video files sorted in descending order of their FileName
       
  2105 [Test]
       
  2106 title All_video_SortDescendingOnFileName
       
  2107 create tmediaprovidertesting foobar
       
  2108 foobar GetFilesListL FileInfo All Drive c: NULL FileName Descending 0 ExpectedStart StartMap FileName video5 EndMap StartMap FileName video4 EndMap StartMap FileName video1 EndMap ExpectedEnd
       
  2109 delete foobar
       
  2110 [Endtest]
       
  2111 
       
  2112 
       
  2113 
       
  2114 //GetList case to check for All fields
       
  2115 //Input: Drive as FilterKey e: as startrange, All other values are not passed
       
  2116 //Expected: list of All All files in e: drive, sorted in ascending order of their FileName is expected
       
  2117 [Test]
       
  2118 title All_video_DriveKey_e:StartRange_CheckAllKeys
       
  2119 create tmediaprovidertesting foobar
       
  2120 foobar GetFilesListL FileInfo All Drive e: NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName video2 FileExtension .3gp Drive e: FileSize 71559 FileDate 20081019:033638 FileNameAndPath e:\data\Videos\video2.3gp MimeType VIDEO/3GPP EndMap StartMap Type Media FileName video3 FileExtension .mp4 Drive e: FileSize 1141811 FileDate 20060604:070320 FileNameAndPath e:\data\Videos\video3.mp4 MimeType VIDEO/MP4 EndMap ExpectedEnd
       
  2121 delete foobar
       
  2122 [Endtest]
       
  2123 
       
  2124 ############################################################################################################################################################################