serviceproviders/sapi_mediamanagement/tsrc/testing/tmediaprovidertesting/conf/tmediamgmttest_audio.cfg
changeset 22 fc9cf246af83
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
       
     1 ########################################################################## Music file #####################################################################
       
     2 /*NOTE:
       
     3 1. NULL input means not passing any value for the placeholder
       
     4 2. NullValue means a NULL is passed as value to the placeholder
       
     5 3. "NULL" as input to a parameter means a Null string or a string of value "NULL" is passed as input
       
     6 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 
       
     7 	value "NULLVALUE" needs to be passed.
       
     8 5. The key-value pair in Expected output can be in any order and all are optional.
       
     9 
       
    10 Assumptions/requisites: 
       
    11 The following music files are expected to be present at the mentioned locations. All the cases below are written based on these files being present.
       
    12 The expected output is as per this list.
       
    13 
       
    14 FileNameAndPath:											Expected o/p format for each file:
       
    15 c:\data\sounds\digital\music1.mp3			StartMap Type Media FileName music1 FileExtension .mp3 Drive c: FileSize 29056 FileDate 20090116:091802 FileNameAndPath c:\data\sounds\digital\music1.mp3 MimeType Audio/MPEG SongName music1.mp3 Artist Lata Album Album2 TrackNumber 1 Genre Rock Composer Anu EndMap 
       
    16 c:\data\sounds\digital\music2.mp3			StartMap Type Media FileName music2 FileExtension .mp3 Drive c: FileSize 17536 FileDate 20090117:091804 FileNameAndPath c:\data\sounds\digital\music2.mp3 MimeType Audio/MPEG SongName music2.mp3 Artist Rafi Album Shaheed TrackNumber 2 Genre Classical Composer Dhawan EndMap 
       
    17 c:\data\others\music3.mp3							StartMap Type Media FileName music3 FileExtension .mp3 Drive c: FileSize 434288 FileDate 20090117:090854 FileNameAndPath c:\data\others\music3.mp3 MimeType Audio/MPEG SongName music3.mp3 Artist Sonu Album Album1 TrackNumber 3 Genre Classical Composer Rahman EndMap 
       
    18 e:\data\sounds\digital\music4.mp3			StartMap Type Media FileName music4 FileExtension .mp3 Drive e: FileSize 434288 FileDate 20090117:111341 FileNameAndPath e:\data\sounds\digital\music4.mp3 MimeType Audio/MPEG SongName music4.mp3 Artist Kk Album Album2 TrackNumber 4 Genre Rock Composer Malik EndMap 
       
    19 e:\data\sounds\digital\music5.rm      StartMap Type Media FileName music5 FileExtension .rm Drive e: FileSize 1381291 FileDate 20090103:033223 FileNameAndPath e:\data\sounds\digital\music5.rm MimeType Audio/x-pn-realAudio SongName music5.rm Artist Shreya Album Album3 TrackNumber 5 Genre Classical Composer Rahman EndMap 
       
    20 
       
    21 
       
    22 //Testcase format:
       
    23 //Description of the testcase
       
    24 //Input: Input values
       
    25 //Expected:(+ve/-ve case) Expected output or behaviour 
       
    26 [Test]
       
    27 title Sample
       
    28 create tmediaprovidertesting foobar
       
    29 //foobar GetFilesListL <Type> <FileType> <FilterKey> <StartRange> <EndRange> <SortKey> <SortOrder> <expected error code> ExpectedStart StartMap <Type> <FileName> <FileExtension> <Drive> <FileSize> <FileDate> <FileNameAndPath> <MimeType> <SongName> <Artist> <Album> <TrackNumber> <Genre> <Composer> Next/End
       
    30 foobar GetFilesListL FileInfo Music FileName music1 NULL NULL NULL 0 Expected Media music1 .mp3 c: 271890 20090006:031914 c:\data\sounds\digital\music1.mp3 Audio/MPEG music1.mp3 Lata Album2 1 Rock Anu EndMap ExpectedEnd 
       
    31 delete foobar
       
    32 [Endtest]
       
    33 
       
    34 */
       
    35 
       
    36 
       
    37 ###################################################################### Test cases starts ########################################################################
       
    38 
       
    39 
       
    40 //GetList of Audio files by FileName, no startrange
       
    41 //Input: FileName as Key and Null startrange
       
    42 //Expected: errorcode 1003-MissingArgumentType is expected o/p as the startrange is mandatory when Key is mentioned
       
    43 [Test]
       
    44 title Audio_FileName
       
    45 create tmediaprovidertesting foobar
       
    46 foobar GetFilesListL FileInfo Audio FileName  music1 NULL NULL NULL 0  Expected Media music1 .mp3 c: 271890 20090006:031914 c:\data\sounds\digital\music1.mp3 Audio/MPEG music1.mp3 Lata Album2 1 Rock Anu EndMap ExpectedEnd 
       
    47 delete foobar
       
    48 [Endtest]
       
    49 
       
    50 
       
    51 
       
    52 //GetList of Audio files by key SongName, no startrange
       
    53 //Input: SongName as key and Null startrange
       
    54 //Expected: errorcode 1003-MissingArgumentType
       
    55 [Test]
       
    56 title AudioNeg_SongNameKeyWithNoStartRange
       
    57 create tmediaprovidertesting foobar
       
    58 foobar GetFilesListL FileInfo Audio SongName NULL NULL NULL NULL 1003
       
    59 delete foobar
       
    60 [Endtest]
       
    61 
       
    62 //GetList of Audio files by key Artist, no startrange
       
    63 //Input: Artist as Key and Null startrange
       
    64 //Expected: errorcode 1003-MissingArgumentType
       
    65 [Test]
       
    66 title AudioNeg_ArtistKeyWithNoStartRange
       
    67 create tmediaprovidertesting foobar
       
    68 foobar GetFilesListL FileInfo Audio Artist NULL NULL NULL NULL 1003
       
    69 delete foobar
       
    70 [Endtest]
       
    71 
       
    72 
       
    73 //GetList of Audio files by key Album, no startrange
       
    74 //Input: Album as Key and Null startrange
       
    75 //Expected: errorcode 1003-MissingArgumentType
       
    76 [Test]
       
    77 title AudioNeg_AlbumKeyWithNoStartRange
       
    78 create tmediaprovidertesting foobar
       
    79 foobar GetFilesListL FileInfo Audio Album NULL NULL NULL NULL 1003
       
    80 delete foobar
       
    81 [Endtest]
       
    82 
       
    83 //GetList of Audio files by key TrackNumber, no startrange
       
    84 //Input: TrackNumber as Key and Null startrange
       
    85 //Expected: errorcode 1002-BadArgumentType
       
    86 [Test]
       
    87 title AudioNeg_TrackNumberKeyWithNoStartRange
       
    88 create tmediaprovidertesting foobar
       
    89 foobar GetFilesListL FileInfo Audio TrackNumber NULL NULL NULL NULL 1002
       
    90 delete foobar
       
    91 [Endtest]
       
    92 
       
    93 //GetList of Audio files by key Genre, no startrange
       
    94 //Input: Genre as Key and Null startrange
       
    95 //Expected: errorcode 1003-MissingArgumentType
       
    96 [Test]
       
    97 title AudioNeg_GenreKey_WithNoStartRange
       
    98 create tmediaprovidertesting foobar
       
    99 foobar GetFilesListL FileInfo Audio Genre NULL NULL NULL NULL 1003
       
   100 delete foobar
       
   101 [Endtest]
       
   102 
       
   103 //GetList of Audio files by key Composer, no startrange
       
   104 //Input: Composer as Key and Null startrange
       
   105 //Expected: errorcode 1003-MissingArgumentType
       
   106 [Test]
       
   107 title AudioNeg_ComposerKey_WithNoStartRange
       
   108 create tmediaprovidertesting foobar
       
   109 foobar GetFilesListL FileInfo Audio Composer NULL NULL NULL NULL 1003
       
   110 delete foobar
       
   111 [Endtest]
       
   112 
       
   113 
       
   114 ################################### Type==“FileInfo” + Passing Filter Map with FileType==Audio + Key+Start Range ########################
       
   115 
       
   116 
       
   117 //GetList with startrange for FileName
       
   118 //Input: FileName as Key, music1 as startrange
       
   119 //Expected: list of music files with FileName music1, sorted in ascending order based on FileName, which is the default sort key and order
       
   120 [Test]
       
   121 title Audio_FileNameKeyWithValidStartRange
       
   122 create tmediaprovidertesting foobar
       
   123 
       
   124 foobar GetFilesListL FileInfo Audio FileName music1 NULL NULL NULL 0  Expected Media music1 .mp3 c: 271890 20090006:031914 c:\data\sounds\digital\music1.mp3 Audio/MPEG music1.mp3 Lata Album2 1 Rock Anu EndMap ExpectedEnd 
       
   125 delete foobar
       
   126 [Endtest]
       
   127 
       
   128 //GetList with startrange for FileName
       
   129 //Input: FileName as Key, music1 as startrange
       
   130 //Expected: list of music files with FileName music1, sorted in ascending order based on FileName, which is the default sort key and order
       
   131 [Test]
       
   132 title Audio_FileNameKeyforMusicAndSoundWithValidStartRange
       
   133 create tmediaprovidertesting foobar
       
   134 foobar GetFilesListL FileInfo Audio FileName music2 NULL NULL NULL 0  Expected StartMap FileName music2 .mp3 MimeType Audio/MPEG EndMap StartMap FileName music2 .wav MimeType Audio/AMR EndMap ExpectedEnd
       
   135 delete foobar
       
   136 [Endtest]
       
   137 
       
   138 //GetList of Audio files by MimeType
       
   139 //Input: MimeType as Key, Audio/MPEG as startrange 
       
   140 //Expected: list of Audio files with MimeType Audio/MPEG are expected
       
   141 [Test]
       
   142 title Audio_MimeTypeKey_Audio/mpegStartRange
       
   143 create tmediaprovidertesting foobar
       
   144 foobar GetFilesListL FileInfo Audio 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
       
   145 delete foobar
       
   146 [Endtest]
       
   147 
       
   148 //GetList of Audio files by FileNameAndPath
       
   149 //Input: FileNameAndPath as Key and c:\data\sounds\digital\music2.mp3 as startrange
       
   150 //Expected: list of Audio files with file path c:\data\sounds\digital\music2.mp3 is expected
       
   151 [Test]
       
   152 title Audio_FileNameAndPathKey_WithValidStartRange
       
   153 create tmediaprovidertesting foobar
       
   154 foobar GetFilesListL FileInfo Audio FileNameAndPath c:\data\sounds\digital\music2.mp3 NULL NULL NULL 0 ExpectedStart StartMap FileNameAndPath c:\data\sounds\digital\music2.mp3 EndMap ExpectedEnd   
       
   155 delete foobar
       
   156 [Endtest]
       
   157 
       
   158  //This case is removed as we are not able to get SongName field from the underlying
       
   159 //A bug with ID: RCHA-7N2938 has been raised for the same
       
   160 //GetList of music files by key SongName
       
   161 //Input: SongName as Key and music1 as startrange
       
   162 //Expected: list of music files with SongName as music1 is expected
       
   163 [Test]
       
   164 title Audio_SongNameKey_music1.mp3StartRange
       
   165 create tmediaprovidertesting foobar
       
   166 foobar GetFilesListL FileInfo Audio SongName music1.mp3 NULL NULL NULL 0 ExpectedStart StartMap FileName music1 SongName music1.mp3 EndMap ExpectedEnd
       
   167 delete foobar
       
   168 [Endtest]
       
   169 
       
   170 
       
   171 //GetList of Audio files by key Artist
       
   172 //Input: Artist as Key Rafi as startrange
       
   173 //Expected: list of music files with Artist Rafi is expected
       
   174 [Test]
       
   175 title Audio_ArtistKey_WithValidStartRange
       
   176 create tmediaprovidertesting foobar
       
   177 foobar GetFilesListL FileInfo Audio Artist Rafi NULL NULL NULL 0 ExpectedStart StartMap FileName music2 Artist Rafi EndMap ExpectedEnd
       
   178 delete foobar
       
   179 [Endtest]
       
   180 
       
   181 
       
   182 //GetList of Audio files by key Album
       
   183 //Input: Album as Key and Shaheed as startrange 
       
   184 //Expected: list of music files with Album value as Shaheed is expected
       
   185 [Test]
       
   186 title Audio_AlbumKey_WithValidStartRange
       
   187 create tmediaprovidertesting foobar
       
   188 foobar GetFilesListL FileInfo Audio Album Shaheed NULL NULL NULL 0 ExpectedStart StartMap FileName music2 Album Shaheed EndMap ExpectedEnd
       
   189 delete foobar
       
   190 [Endtest]
       
   191 
       
   192 /*
       
   193  //This case is removed as we are not able to get TrackNumber field from the underlying framework
       
   194 //A bug with ID: RCHA-7N2938 has been raised for the same
       
   195 //GetList of music files by key TrackNumber
       
   196 //Input: TrackNumber as Key and 3 as value for startrange
       
   197 //Expected: list of music files with 3 as TrackNumber
       
   198 [Test]
       
   199 title Audio_TrackNumberKeyWithValidStartRange
       
   200 create tmediaprovidertesting foobar
       
   201 foobar GetFilesListL FileInfo Audio TrackNumber 3 NULL NULL NULL 0 ExpectedStart StartMap FileName music3 TrackNumber 3 EndMap ExpectedEnd
       
   202 delete foobar
       
   203 [Endtest]
       
   204 */
       
   205 
       
   206 
       
   207 //GetList of Audio files by key Genre
       
   208 //Input: Genre as Key and Rock as startrange
       
   209 //Expected: list of music files with Genre as Rock is expected
       
   210 [Test]
       
   211 title Audio_GenreKeyWithValidStartRange
       
   212 create tmediaprovidertesting foobar
       
   213 foobar GetFilesListL FileInfo Audio 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 music files by key Composer
       
   218 //Input: Composer as Key and malik as startrange
       
   219 //Expected: list of music with Composer as Malik
       
   220 [Test]
       
   221 title Audio_ComposerKeyWithValidStartRange
       
   222 create tmediaprovidertesting foobar
       
   223 foobar GetFilesListL FileInfo Audio 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 Audio_FileNameAndPathKey_NullStringStartRange
       
   233 create tmediaprovidertesting foobar
       
   234 foobar GetFilesListL FileInfo Audio 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 music files with this name
       
   241 [Test]
       
   242 title Audio_IntegerStartRange
       
   243 create tmediaprovidertesting foobar
       
   244 foobar GetFilesListL FileInfo Audio FileName 12 NULL NULL NULL 0 
       
   245 delete foobar
       
   246 [Endtest]
       
   247 
       
   248 
       
   249 #####################################  Type==“FileInfo” + Passing Filter Map with FileType==Audio + Sort Map #################################
       
   250 
       
   251 //GetList with Ascending order for a given drive
       
   252 //Input: Drive as SortKey and Ascending as SortOrder
       
   253 //Expected: list of Audio files sorted in ascending order based on drive
       
   254 [Test]
       
   255 title Audio_SortAscendingOnDrive
       
   256 create tmediaprovidertesting foobar
       
   257 foobar GetFilesListL FileInfo Audio Genre Rock NULL Drive Ascending 0 ExpectedStart StartMap FileName music1 Genre Rock EndMap StartMap FileName music4 Genre Rock EndMap ExpectedEnd
       
   258 delete foobar
       
   259 [Endtest]
       
   260 
       
   261 //GetList with Descending order for a given drive
       
   262 //Input: Drive as SortKey and Descending as SortOrder
       
   263 //Expected: list of Audio files sorted in descending order based on drive
       
   264 [Test]
       
   265 title Audio_SortDescendingOnDrive
       
   266 create tmediaprovidertesting foobar
       
   267 foobar GetFilesListL FileInfo Audio Genre Rock NULL Drive Descending 0 ExpectedStart StartMap FileName music4 Genre Rock EndMap StartMap FileName music1 Genre Rock EndMap ExpectedEnd
       
   268 delete foobar
       
   269 [Endtest]
       
   270 
       
   271 //GetList with Ascending order for a given FileExtension
       
   272 //Input: FileExtension as SortKey and Ascending as SortOrder
       
   273 //Expected: list of Audio files sorted in ascending order based on FileExtension
       
   274 [Test]
       
   275 title Audio_SortAscendingOnFileExtension
       
   276 create tmediaprovidertesting foobar
       
   277 foobar GetFilesListL FileInfo Audio Drive e: NULL FileExtension Ascending 0 ExpectedStart StartMap FileName music4 FileExtension .mp3 EndMap StartMap FileName music5 FileExtension .rm EndMap ExpectedEnd
       
   278 delete foobar
       
   279 [Endtest]
       
   280 
       
   281 //GetList with Descending order for a given FileExtension
       
   282 //Input: FileExtension as SortKey and Descending as SortOrder
       
   283 //Expected: list of Audio files sorted in descending order based on FileExtensions
       
   284 [Test]
       
   285 title Audio_SortDescendingOnFileExtension
       
   286 create tmediaprovidertesting foobar
       
   287 foobar GetFilesListL FileInfo Audio Drive e: NULL FileExtension Descending 0 ExpectedStart StartMap FileName music5 FileExtension .rm EndMap StartMap FileName music4 FileExtension .mp3 EndMap ExpectedEnd
       
   288 delete foobar
       
   289 [Endtest]
       
   290 
       
   291 //GetList with Ascending order for a given MimeType
       
   292 //Input: MimeType as SortKey and Ascending as SortOrder
       
   293 //Expected: list of Audio files sorted in ascending order based on MimeType
       
   294 [Test]
       
   295 title Audio_SortAscendingOnMimeType
       
   296 create tmediaprovidertesting foobar
       
   297 foobar GetFilesListL FileInfo Audio Drive e: NULL MimeType Ascending 0 ExpectedStart StartMap FileName music4 MimeType Audio/MPEG EndMap StartMap FileName music5 MimeType Audio/x-pn-realAudio EndMap ExpectedEnd
       
   298 delete foobar
       
   299 [Endtest]
       
   300 
       
   301 //GetList with Descending order for a given MimeType
       
   302 //Input: MimeType as sortKey and Descending as SortOrder
       
   303 //Expected: list of Audio files sorted in descending order based on MimeType
       
   304 [Test]
       
   305 title Audio_SortDescendingOnMimeType
       
   306 create tmediaprovidertesting foobar
       
   307 foobar GetFilesListL FileInfo Audio Drive e: NULL MimeType Descending 0 ExpectedStart StartMap FileName music5 MimeType Audio/x-pn-realAudio EndMap StartMap FileName music4 MimeType Audio/MPEG EndMap ExpectedEnd
       
   308 delete foobar
       
   309 [Endtest]
       
   310 
       
   311 //GetList with Ascending order for a given FileSize
       
   312 //Input: FileSize as sortKey and Ascending as SortOrder
       
   313 //Expected: list of Audio files sorted in ascending order based on FileSize
       
   314 [Test]
       
   315 title Audio_SortAscendingOnFileSize
       
   316 create tmediaprovidertesting foobar
       
   317 foobar GetFilesListL FileInfo Audio Drive e: NULL FileSize Ascending 0 ExpectedStart StartMap FileName music4 FileSize 434288 EndMap StartMap FileName music5 FileSize 1381291 EndMap ExpectedEnd
       
   318 delete foobar
       
   319 [Endtest]
       
   320 
       
   321 //GetList with Descending order for a given FileSize
       
   322 //Input: FileSize as sortKey and Descending as SortOrder
       
   323 //Expected: list of Audio files sorted in descending order based on FileSize
       
   324 [Test]
       
   325 title Audio_SortDescendingOnFileSize
       
   326 create tmediaprovidertesting foobar
       
   327 foobar GetFilesListL FileInfo Audio Drive e: NULL FileSize Descending 0 ExpectedStart StartMap FileName music5 FileSize 1381291 EndMap StartMap FileName music4 FileSize 434288 EndMap ExpectedEnd
       
   328 delete foobar
       
   329 [Endtest]
       
   330 
       
   331 //GetList with Ascending order for a given FileDate
       
   332 //Input: FileDate as SortKey and Ascending as SortOrder
       
   333 //Expected: list of Audio files sorted in ascending order based on FileDate
       
   334 [Test]
       
   335 title Audio_SortAscendingOnFileDate
       
   336 create tmediaprovidertesting foobar
       
   337 //foobar GetFilesListL FileInfo Audio Genre Classical NULL FileDate Ascending 0 ExpectedStart StartMap FileName music2 FileDate 20090006:052103 EndMap StartMap FileName music3 FileDate 20090028:010527 EndMap StartMap FileName music5 FileDate 20090103:100223 EndMap ExpectedEnd //org
       
   338 foobar GetFilesListL FileInfo Audio Genre Rock NULL FileDate Ascending 0 ExpectedStart StartMap FileName music1 FileDate 20090116:091802 EndMap StartMap FileName music4 FileDate 20090117:111341 EndMap ExpectedEnd 
       
   339 delete foobar
       
   340 [Endtest]
       
   341 
       
   342 //GetList with Descending order for a given FileDate
       
   343 //Input: FileDate as SortKey and Descending as SortOrder
       
   344 //Expected: list of Audio files sorted in descending order based on FileDate
       
   345 [Test]
       
   346 title Audio_SortDescendingOnFileDate
       
   347 create tmediaprovidertesting foobar
       
   348 //foobar GetFilesListL FileInfo Audio Genre Classical NULL FileDate Descending 0 ExpectedStart StartMap FileName music5 FileDate 20090103:100223 EndMap StartMap FileName music3 FileDate 20090028:010527 EndMap StartMap FileName music2 FileDate 20090006:052103 EndMap ExpectedEnd //org
       
   349 foobar GetFilesListL FileInfo Audio Genre Rock NULL FileDate Descending 0 ExpectedStart StartMap FileName music4 FileDate 20090117:111341 EndMap StartMap FileName music1 FileDate 20090116:091802 EndMap ExpectedEnd 
       
   350 delete foobar
       
   351 [Endtest]
       
   352 
       
   353 //GetList with Ascending order for a given Artist
       
   354 //Input: Artist as SortKey and Ascending as SortOrder
       
   355 //Expected: list of Audio files sorted in ascending order based on Artist
       
   356 [Test]
       
   357 title Audio_SortAscendingOnArtist
       
   358 create tmediaprovidertesting foobar
       
   359 //foobar GetFilesListL FileInfo Audio Drive e: NULL Artist Ascending 0 ExpectedStart StartMap FileName music4 Artist Kk EndMap StartMap FileName music5 Artist Shreya EndMap ExpectedEnd //org
       
   360 foobar GetFilesListL FileInfo Audio 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
       
   361 delete foobar
       
   362 [Endtest]
       
   363 
       
   364 //GetList with Descending order for a given Artist
       
   365 //Input: Artist as SortKey and Descending as SortOrder
       
   366 //Expected: list of Audio files sorted in descending order based on Artist
       
   367 [Test]
       
   368 title Audio_SortDescendingOnArtist
       
   369 create tmediaprovidertesting foobar
       
   370 //foobar GetFilesListL FileInfo Audio Drive e: NULL Artist Descending 0 ExpectedStart StartMap FileName music5 Artist Shreya EndMap StartMap FileName music4 Artist Kk EndMap ExpectedEnd //org
       
   371 foobar GetFilesListL FileInfo Audio 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
       
   372 delete foobar
       
   373 [Endtest]
       
   374 
       
   375 
       
   376 //GetList with Ascending order for a given Genre
       
   377 //Input: Genre as SortKey and Ascending as SortOrder
       
   378 //Expected: list of Audio files sorted in ascending order based on Genre
       
   379 [Test]
       
   380 title Audio_SortAscendingOnGenre
       
   381 create tmediaprovidertesting foobar
       
   382 foobar GetFilesListL FileInfo Audio FileSize 400000 500000 Genre Ascending 0 ExpectedStart StartMap FileName music3 Genre Classical EndMap StartMap FileName music4 Genre Rock EndMap ExpectedEnd
       
   383 delete foobar
       
   384 [Endtest]
       
   385 
       
   386 //GetList with Descending order for a given Genre
       
   387 //Input: Genre as SortKey and Descending as SortOrder
       
   388 //Expected: list of Audio files sorted in descending order based on Genre
       
   389 [Test]
       
   390 title Audio_SortDescendingOnGenre
       
   391 create tmediaprovidertesting foobar
       
   392 foobar GetFilesListL FileInfo Audio FileSize 400000 500000 Genre Descending 0 ExpectedStart StartMap FileName music4 Genre Rock EndMap StartMap FileName music3 Genre Classical EndMap ExpectedEnd
       
   393 delete foobar
       
   394 [Endtest]
       
   395 
       
   396 //GetList with Ascending order for a given Composer
       
   397 //Input: Composer as SortKey and Ascending as SortOrder
       
   398 //Expected: list of Audio files sorted in ascending order based on Composer
       
   399 [Test]
       
   400 title Audio_SortAscendingOnComposer
       
   401 create tmediaprovidertesting foobar
       
   402 //foobar GetFilesListL FileInfo Audio Drive e: NULL Composer Ascending 0 ExpectedStart StartMap FileName music4 Composer Malik EndMap StartMap FileName music5 Composer Rahman EndMap ExpectedEnd //org
       
   403 foobar GetFilesListL FileInfo Audio 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
       
   404 delete foobar
       
   405 [Endtest]
       
   406 
       
   407 //GetList with Descending order for a given Composer
       
   408 //Input: Composer as SortKey and Descending as SortOrder
       
   409 //Expected: list of Audio files sorted in descending order based on Composer
       
   410 [Test]
       
   411 title Audio_SortDescendingOnComposer
       
   412 create tmediaprovidertesting foobar
       
   413 //foobar GetFilesListL FileInfo Audio Drive e: NULL Composer Descending 0 ExpectedStart StartMap FileName music5 Composer Rahman EndMap StartMap FileName music4 Composer Malik EndMap ExpectedEnd //org
       
   414 foobar GetFilesListL FileInfo Audio 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
       
   415 delete foobar
       
   416 [Endtest]
       
   417 
       
   418 
       
   419 //GetList with Ascending order for a given Album
       
   420 //Input: Album as SortKey and Ascending as SortOrder
       
   421 //Expected: list of Audio files sorted in ascending order based on Album
       
   422 [Test]
       
   423 title Audio_SortAscendingOnAlbum
       
   424 create tmediaprovidertesting foobar
       
   425 foobar GetFilesListL FileInfo Audio 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
       
   426 delete foobar
       
   427 [Endtest]
       
   428 
       
   429 /*
       
   430  //This case is removed as we are not able to get TrackNumber field from the underlying framework
       
   431 //A bug with ID: RCHA-7N2938 has been raised for the same
       
   432 //GetList with Descending order for a given TrackNumber
       
   433 //Input: TrackNumber as SortKey and Descending as SortOrder
       
   434 //Expected: list of Audio files sorted in descending order based on TrackNumber
       
   435 [Test]
       
   436 title Audio_SortDescendingOnTrackNumber
       
   437 create tmediaprovidertesting foobar
       
   438 foobar GetFilesListL FileInfo Audio Drive c: NULL TrackNumber Descending 0 ExpectedStart StartMap FileName music3 TrackNumber 3 EndMap StartMap FileName music2 TrackNumber 2 EndMap StartMap FileName music1 TrackNumber 1 EndMap ExpectedEnd
       
   439 delete foobar
       
   440 [Endtest]*/
       
   441 
       
   442 
       
   443 //GetList Nokia as SortOrder
       
   444 //Input: FileDate as SortKey and Nokia as SortOrder
       
   445 //Expected: errorcode 1002-BadArgumentType
       
   446 [Test]
       
   447 title AudioNeg_NokiaSortOrder
       
   448 create tmediaprovidertesting foobar
       
   449 foobar GetFilesListL FileInfo Audio NULL NULL NULL FileDate Nokia 1002
       
   450 delete foobar
       
   451 [Endtest]
       
   452 
       
   453 
       
   454 //GetList ascending(case sensitive) as sort order
       
   455 //Input: FileName as SortKey and ascending as SortOrder
       
   456 //Expected: list of Audio files sorted in ascending order based on FileName
       
   457 [Test]
       
   458 title Audio_WithLowercaseascendingAsSortOrder
       
   459 create tmediaprovidertesting foobar
       
   460 //foobar GetFilesListL FileInfo Audio Genre Classical NULL FileDate ascending 0 ExpectedStart StartMap FileName music2 FileDate 20090006:052103 EndMap StartMap FileName music3 FileDate 20090028:010527 EndMap StartMap FileName music5 FileDate 20090103:100223 EndMap ExpectedEnd //org
       
   461 foobar GetFilesListL FileInfo Audio Drive c: NULL FileName ascending 0 ExpectedStart StartMap FileName music1 EndMap StartMap FileName music2 EndMap StartMap FileName music3 EndMap ExpectedEnd 
       
   462 delete foobar
       
   463 [Endtest]
       
   464 
       
   465 
       
   466 //GetList Ascending sort order for FileNameAndPath
       
   467 //Input: FileNameAndPath as SortKey and Ascending as SortOrder
       
   468 //Expected: list of Audio files sorted in ascending order based on FileNameAndPath
       
   469 [Test]
       
   470 title Audio_SortAscendingOnFileNameAndPath
       
   471 create tmediaprovidertesting foobar
       
   472 foobar GetFilesListL FileInfo Audio 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
       
   473 delete foobar
       
   474 [Endtest]
       
   475 
       
   476 
       
   477 //GetList Descending order for FileName
       
   478 //Input: FileName as SortKey and Descending as SortOrder
       
   479 //Expected: list of Audio files sorted in descending order based on FileName
       
   480 [Test]
       
   481 title Audio_SortDescendingOnFileName
       
   482 create tmediaprovidertesting foobar
       
   483 foobar GetFilesListL FileInfo Audio Drive c: NULL FileName Descending 0 ExpectedStart StartMap FileName music3 EndMap StartMap FileName music2 EndMap StartMap FileName music1 EndMap ExpectedEnd
       
   484 delete foobar
       
   485 [Endtest]
       
   486 
       
   487 
       
   488 //GetList with Ascending order for a given drive
       
   489 //Input: FileExtension as Key .amr as startrange, Drive as SortKey and Ascending as SortOrder
       
   490 //Expected: list of sound files with file extension .amr,in ascending order of drive
       
   491 [Test]
       
   492 title Audio_Sound_SortAscendingOnDrive
       
   493 create tmediaprovidertesting foobar
       
   494 foobar GetFilesListL FileInfo Audio FileExtension .amr NULL Drive Ascending 0 ExpectedStart StartMap FileName sound Drive c: EndMap StartMap FileName noise Drive e: EndMap ExpectedEnd
       
   495 delete foobar
       
   496 [Endtest]
       
   497 
       
   498 //GetList with Descending order for a given drive
       
   499 //Input: FileExtension as Key .amr as startrange, Drive as SortKey and Descending as SortOrder
       
   500 //Expected: list of sound files with .amr file extension, in descending order of drive
       
   501 [Test]
       
   502 title Audio_Sound_SortDescendingOnDrive
       
   503 create tmediaprovidertesting foobar
       
   504 foobar GetFilesListL FileInfo Audio FileExtension .amr NULL Drive Descending 0 ExpectedStart StartMap FileName noise FileExtension .amr Drive e: EndMap StartMap FileName sound FileExtension .amr Drive c: EndMap ExpectedEnd
       
   505 delete foobar
       
   506 [Endtest]
       
   507 
       
   508 //GetList with Ascending order for a given FileExtension
       
   509 ////Input: Drive as Key e: as startrange, FileExtension as SortKey and Ascending as SortOrder
       
   510 //Expected: list of sound files, in e: drive, in ascending order of FileExtension
       
   511 [Test]
       
   512 title Audio_Sound_SortAscendingOnFileExtension
       
   513 create tmediaprovidertesting foobar
       
   514 foobar GetFilesListL FileInfo Audio Drive e: NULL FileExtension Ascending 0 ExpectedStart StartMap FileName noise FileExtension .amr EndMap StartMap FileName rock_on FileExtension .wav EndMap ExpectedEnd
       
   515 delete foobar
       
   516 [Endtest]
       
   517 
       
   518 //GetList with Descending order for a given FileExtension
       
   519 //Input: Drive as Key e: as startrange, FileExtension as SortKey and Descending as SortOrder
       
   520 //Expected: list of sound files, in e: drive, in descending order of FileExtension
       
   521 [Test]
       
   522 title Audio_Sound_SortDescendingOnFileExtension
       
   523 create tmediaprovidertesting foobar
       
   524 foobar GetFilesListL FileInfo Audio Drive e: NULL FileExtension Descending 0 ExpectedStart StartMap FileName rock_on FileExtension .wav EndMap StartMap FileName noise FileExtension .amr EndMap ExpectedEnd
       
   525 delete foobar
       
   526 [Endtest]
       
   527 
       
   528 //GetList with Ascending order for a given MimeType
       
   529 //Input: Drive as Key, e: as value for startrange, MimeType as SortKey, Ascending as SortOrder
       
   530 //Expected: list of sound files,in e: drive, in ascending order of MimeType
       
   531 [Test]
       
   532 title Audio_Sound_SortAscendingOnMimeType
       
   533 create tmediaprovidertesting foobar
       
   534 foobar GetFilesListL FileInfo Audio Drive e: NULL MimeType Ascending 0 ExpectedStart StartMap FileName noise MimeType Audio/AMR EndMap StartMap FileName rock_on MimeType Audio/WAV EndMap ExpectedEnd
       
   535 delete foobar
       
   536 [Endtest]
       
   537 
       
   538 //GetList with Descending order for a given MimeType
       
   539 //Input: Drive as Key, e: as value for startrange, MimeType as SortKey, Descending as SortOrder
       
   540 //Expected: list of sound files,in e: drive, in descending order of MimeType
       
   541 [Test]
       
   542 title Audio_Sound_SortDescendingOnMimeType
       
   543 create tmediaprovidertesting foobar
       
   544 foobar GetFilesListL FileInfo Audio Drive e: NULL MimeType Descending 0 ExpectedStart StartMap FileName rock_on MimeType Audio/WAV EndMap StartMap FileName noise MimeType Audio/AMR EndMap ExpectedEnd
       
   545 delete foobar
       
   546 [Endtest]
       
   547 
       
   548 //GetList with Ascending order for a given FileSize
       
   549 //Input: Drive as Key, e: as value for startrange, FileSize as SortKey, Ascending as SortOrder
       
   550 //Expected: list of sound files,in e: drive, in ascending order of FileSize
       
   551 [Test]
       
   552 title Audio_Sound_SortAscendingOnFileSize
       
   553 create tmediaprovidertesting foobar
       
   554 foobar GetFilesListL FileInfo Audio Drive e: NULL FileSize Ascending 0 ExpectedStart StartMap FileName rock_on FileSize 22965 EndMap StartMap FileName noise FileSize 25031 EndMap ExpectedEnd
       
   555 delete foobar
       
   556 [Endtest]
       
   557 
       
   558 //GetList with Descending order for a given FileSize
       
   559 //Input: Drive as Key, e: as value for startrange, FileSize as SortKey, Descending as SortOrder
       
   560 //Expected: list of sound files in descending order of FileSize
       
   561 [Test]
       
   562 title Audio_Sound_SortDescendingOnFileSize
       
   563 create tmediaprovidertesting foobar
       
   564 foobar GetFilesListL FileInfo Audio Drive e: NULL FileSize Descending 0 ExpectedStart StartMap FileName noise FileSize 25031 EndMap StartMap FileName rock_on FileSize 22965 EndMap ExpectedEnd
       
   565 delete foobar
       
   566 [Endtest]
       
   567 
       
   568 //GetList with Ascending order for a given FileDate
       
   569 //Input: Drive as Key, e: as value for startrange, FileDate as SortKey, Ascending as SortOrder
       
   570 //Expected: list of sound files,in e: drive, in ascending order of FileDate
       
   571 [Test]
       
   572 title Audio_Sound_SortAscendingOnFileDate
       
   573 create tmediaprovidertesting foobar
       
   574 foobar GetFilesListL FileInfo Audio Drive e: NULL FileDate Ascending 0 ExpectedStart StartMap FileName rock_on FileDate 20081019:033638 EndMap StartMap FileName noise FileDate 20081109:085028 EndMap ExpectedEnd
       
   575 delete foobar
       
   576 [Endtest]
       
   577 
       
   578 //GetList with Descending order for a given FileDate
       
   579 //Input: Drive as Key, e: as value for startrange, FileDate as SortKey, Descending as SortOrder
       
   580 //Expected: list of sound files,in e: drive, in descending order of FileDate
       
   581 [Test]
       
   582 title Audio_Sound_SortDescendingOnFileDate
       
   583 create tmediaprovidertesting foobar
       
   584 foobar GetFilesListL FileInfo Audio Drive e: NULL FileDate Descending 0 ExpectedStart StartMap FileName noise FileDate 20081109:085028 EndMap StartMap FileName rock_on FileDate 20081019:033638 EndMap ExpectedEnd
       
   585 delete foobar
       
   586 [Endtest]
       
   587 
       
   588 
       
   589 //GetList with no sort order 
       
   590 //Input: Drive as Key, e: as value for startrange, FileName as SortKey, no sortorder(NULL as sortorder)
       
   591 //Expected: list of sound files,in e: drive, in ascending order(default order) of FileName
       
   592 [Test]
       
   593 title Audio_Sound_NoSortOrder
       
   594 create tmediaprovidertesting foobar
       
   595 foobar GetFilesListL FileInfo Audio Drive e: NULL FileName NULL 0 ExpectedStart StartMap FileName noise EndMap StartMap FileName rock_on EndMap ExpectedEnd
       
   596 delete foobar
       
   597 [Endtest]
       
   598 
       
   599 //GetList Nokia as SortOrder
       
   600 //Input: FileDate as SortKey and Nokia as SortOrder
       
   601 //Expected: errorcode 1002-BadArgumentType is expected output, as the value for SortOrder is invalid
       
   602 [Test]
       
   603 title Audio_Sound_NokiaSortOrder
       
   604 create tmediaprovidertesting foobar
       
   605 foobar GetFilesListL FileInfo Audio NULL NULL NULL FileDate Nokia 1002
       
   606 delete foobar
       
   607 [Endtest]
       
   608 
       
   609 
       
   610 //GetList ascending(case sensitive) as sort order
       
   611 //Input: Drive as Key, e: as value for startrange, FileDate as value for SortKey and ascending(lower case) as value for SortOrder
       
   612 //filters as per the filter key and order mentioned
       
   613 [Test]
       
   614 title Audio_Sound_lowercase_ascendingSortOrder
       
   615 create tmediaprovidertesting foobar
       
   616 foobar GetFilesListL FileInfo Audio Drive e: NULL FileDate ascending 0 ExpectedStart StartMap FileName rock_on FileDate 20081019:033638 EndMap StartMap FileName noise FileDate 20081109:085028 EndMap ExpectedEnd
       
   617 delete foobar
       
   618 [Endtest]
       
   619 
       
   620 
       
   621 //GetList Ascending sort order for FileNameAndPath
       
   622 //Input: FileNameAndPath as SortKey and Ascending as SortOrder
       
   623 //Expected: list of sound files in ascending order of FileNameAndPath
       
   624 [Test]
       
   625 title Audio_Sound_SortAscendingOnFileNameAndPath
       
   626 create tmediaprovidertesting foobar
       
   627 foobar GetFilesListL FileInfo Audio 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
       
   628 delete foobar
       
   629 [Endtest]
       
   630 
       
   631 
       
   632 //GetList Descending order for FileName
       
   633 //Input: FileName as SortKey and Descending as value for SortOrder
       
   634 //Expected: list of sound files in descending order of FileName
       
   635 [Test]
       
   636 title Audio_Sound_SortDescendingOnFileName
       
   637 create tmediaprovidertesting foobar
       
   638 foobar GetFilesListL FileInfo Audio MimeType Audio/AMR NULL FileName Descending 0 ExpectedStart StartMap FileName sound MimeType Audio/AMR EndMap StartMap FileName noise MimeType Audio/AMR EndMap ExpectedEnd
       
   639 delete foobar
       
   640 [Endtest]
       
   641 
       
   642 //GetList to check for all fields
       
   643 //Input: Drive as FilterKey and e: as startrange FileName as SortKey and Descending as value for SortOrder
       
   644 //Expected: list of sound files in e: drive, in descending order of FileName
       
   645 [Test]
       
   646 title Audio_Sound_DriveKey_e:StartRange_CheckForAllKeysInExpectedO/p
       
   647 create tmediaprovidertesting foobar
       
   648 foobar GetFilesListL FileInfo Audio 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
       
   649 delete foobar
       
   650 [Endtest]
       
   651 
       
   652 ############################################ Audio Ends #################################################
       
   653