serviceproviders/sapi_mediamanagement/tsrc/testing/tmediaprovidertesting/conf/tmediamgmttest_BackToBackCall.cfg
changeset 22 fc9cf246af83
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
       
     1 ################################################################   Sound    ####################################################
       
     2 /*
       
     3 NOTE:
       
     4 1. NULL input means not passing any value for the placeholder
       
     5 2. NullValue means a NULL is passed as value to the placeholder
       
     6 3. "NULL" as input to a parameter means a Null string or a string of value "NULL" is passed as input
       
     7 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 
       
     8 	value "NULLVALUE" needs to be passed.
       
     9 5. The key-value pair in Expected output can be in any order and all are optional.
       
    10 
       
    11 
       
    12 Requirements:
       
    13 The following sound files are expected to be present at the mentioned locations. All the cases below are written based on this assumption. 
       
    14 The expected output is as per this list.
       
    15 
       
    16 The Expected output is of the form where all fields of each map is written in between two keys StartMap and EndMap 
       
    17 All the maps are written between two key words ExpectedStart and ExpectedEnd, as shown below
       
    18 
       
    19 FileNameAndPath:											Expected o/p format for each file:
       
    20 c:\data\others\music.wav							StartMap Type Media FileName music FileExtension .wav Drive c: FileSize 22965 FileDate 20081019:033638 FileNameAndPath c:\data\others\music.wav MimeType AUDIO/WAV EndMap
       
    21 e:\data\sound\digital\noise.amr				StartMap Type Media FileName noise FileExtension .amr Drive e: FileSize 25031 FileDate 20081109:085028 FileNameAndPath e:\data\sounds\digital\noise.amr MimeType AUDIO/AMR EndMap
       
    22 c:\data\sound\digital\raaga.wav				startMap Type Media FileName raaga FileExtension .wav Drive c: FileSize 22965 FileDate 20081019:033638 FileNameAndPath c:\data\sounds\digital\raaga.wav MimeType AUDIO/WAV EndMap
       
    23 e:\data\sound\digital\rock_on.wav			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
       
    24 c:\data\sound\digital\sound.amr				StartMap Type Media FileName sound FileExtension .amr Drive c: FileSize 25031 FileDate 20081109:085028 FileNameAndPath c:\data\sounds\digital\sound.amr MimeType AUDIO/AMR EndMap
       
    25 c:\data\sound\digital\tempo.wav				StartMap Type Media FileName tempo FileExtension .wav Drive c: FileSize 22965 FileDate 20081019:033638 FileNameAndPath c:\data\sounds\digital\tempo.wav MimeType AUDIO/WAV EndMap
       
    26 
       
    27 
       
    28 
       
    29 //Testcase format:
       
    30 //Description of the testcase
       
    31 //Input: Input values
       
    32 //Expected:(+ve/-ve case) Expected output or behaviour 
       
    33 [Test]
       
    34 title Sample
       
    35 create tmediaprovidertesting foobar
       
    36 //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
       
    37 foobar GetFilesListL FileInfo Sound FileName tempo NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName tempo FileExtension .wav Drive c: FileSize 22965 FileDate 20081019:033638 FileNameAndPath c:\data\sounds\digital\tempo.wav MimeType AUDIO/WAV EndMap ExpectedEnd
       
    38 delete foobar
       
    39 [Endtest]
       
    40 
       
    41 */
       
    42 
       
    43 ############################################### Test cases starts ###############################################
       
    44 
       
    45 #########################################Type==“FileInfo” + Passing Filter Map with FileType==Sound + Key+Start Range############################
       
    46 
       
    47 
       
    48 //First back to back call for getlist
       
    49 //Input: Image files with Ascending sort order and Music type with Filter FileName Music1
       
    50 //Expected: list of Image and music files , Image files in ascending order and Music file with FileName music1.mp3
       
    51 //FileInfo Image NULL NULL NULL FileName Ascending 0 ExpectedStart StartMap FileName a EndMap  StartMap FileName ant EndMap StartMap FileName blue EndMap ExpectedEnd FileInfo Music SongName music1.mp3 NULL NULL NULL 0 ExpectedStart StartMap FileName music1 SongName music1.mp3 EndMap ExpectedEnd
       
    52 [Test]
       
    53 title BToB_ImageAndMusic
       
    54 create tmediaprovidertesting foobar
       
    55 foobar GetListBackToBackCall FileInfo Image NULL NULL NULL FileName Ascending 0 ExpectedStart StartMap FileName a EndMap  StartMap FileName ant EndMap StartMap FileName blue EndMap ExpectedEnd FileInfo Music SongName music1.mp3 NULL NULL NULL 0 ExpectedStart StartMap FileName music1 SongName music1.mp3 EndMap ExpectedEnd
       
    56 delete foobar
       
    57 [Endtest]
       
    58 
       
    59 //Second back to back call for getlist
       
    60 //Input: Image type with Ascending Order , sound files with FileName tempo
       
    61 //Expected: list of Image and Sound type filter FileName tempo 
       
    62 //FileInfo Image NULL NULL NULL FileName Ascending 0 ExpectedStart StartMap FileName a EndMap  StartMap FileName ant EndMap StartMap FileName blue EndMap ExpectedEnd FileInfo Sound FileName tempo NULL NULL NULL 0 ExpectedStart StartMap FileName tempo EndMap ExpectedEnd
       
    63 [Test]
       
    64 title BToB_ImageAndSound
       
    65 create tmediaprovidertesting foobar
       
    66 foobar GetListBackToBackCall FileInfo Image NULL NULL NULL FileName Ascending 0 ExpectedStart StartMap FileName a EndMap  StartMap FileName ant EndMap StartMap FileName blue EndMap ExpectedEnd FileInfo Sound FileName tempo NULL NULL NULL 0 ExpectedStart StartMap FileName tempo EndMap ExpectedEnd
       
    67 delete foobar
       
    68 [Endtest]
       
    69 
       
    70 //Third back to back call for getlist
       
    71 //Input: Image type with Ascending Order , Video file with .3gp FileExtension
       
    72 //Expected: list of Image in Ascending order and Video type filter FileExtension .3gp
       
    73 //FileInfo Image NULL NULL NULL FileName Ascending 0 ExpectedStart StartMap FileName a EndMap  StartMap FileName ant EndMap StartMap FileName blue EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video2 FileExtension .3gp EndMap StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
    74 [Test]
       
    75 title BToB_ImageAndVideo
       
    76 create tmediaprovidertesting foobar
       
    77 foobar GetListBackToBackCall FileInfo Image NULL NULL NULL FileName Ascending 0 ExpectedStart StartMap FileName a EndMap  StartMap FileName ant EndMap StartMap FileName blue EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video5 FileExtension .3gp EndMap StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
    78 delete foobar
       
    79 [Endtest]
       
    80 
       
    81 //Fourth back to back call for getlist
       
    82 //Input: Image type with Descending Order , Video file with .3gp FileExtension
       
    83 //Expected: list of Image in Descending order and Video type filter FileExtension .3gp
       
    84 //FileInfo Image NULL NULL NULL FileName Descending 0 ExpectedStart StartMap FileName blue EndMap  StartMap FileName ant EndMap StartMap FileName a EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video2 FileExtension .3gp EndMap StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
    85 [Test]
       
    86 title BToB_ImageDesAndVideo
       
    87 create tmediaprovidertesting foobar
       
    88 foobar GetListBackToBackCall FileInfo Image NULL NULL NULL FileName Descending 0 ExpectedStart StartMap FileName blue EndMap  StartMap FileName ant EndMap StartMap FileName a EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
    89 delete foobar
       
    90 [Endtest]
       
    91 
       
    92 //Fifth back to back call for getlist
       
    93 //Input: Image type FileName blue , Video file with .3gp FileExtension
       
    94 //Expected: list of Image in Descending order and Video type filter FileExtension .3gp
       
    95 //FileInfo Image FileName blue NULL NULL NULL 0 ExpectedStart StartMap FileName blue EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video2 FileExtension .3gp EndMap StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
    96 [Test]
       
    97 title BToB_ImageBlueAndVideo
       
    98 create tmediaprovidertesting foobar
       
    99 foobar GetListBackToBackCall FileInfo Image FileName blue NULL NULL NULL 0 ExpectedStart StartMap FileName blue EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
   100 delete foobar
       
   101 [Endtest]
       
   102 
       
   103 //Sixth back to back call for getlist
       
   104 //Input: Type Sound FileSize 25031 , Music files present in C: Drive and sorted by Artist in Ascending order
       
   105 //Expected: list of Image in Descending order and Music 
       
   106 //FileInfo Image FileName blue NULL NULL NULL 0 ExpectedStart StartMap FileName blue EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video2 FileExtension .3gp EndMap StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
   107 [Test]
       
   108 title BToB_SoundFileSizeAndVideo
       
   109 create tmediaprovidertesting foobar
       
   110 foobar GetListBackToBackCall FileInfo Sound FileSize 25031 NULL NULL NULL 0 ExpectedStart  StartMap FileName sound FileSize 25031 EndMap ExpectedEnd FileInfo music 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
       
   111 delete foobar
       
   112 [Endtest]
       
   113 
       
   114 //Seven back to back call for getlist
       
   115 //Input: Type is Null , Sound file with FileNameAndPath c:\data\sounds\digital\tempo.wav
       
   116 //Expected: list of Image in Descending order and Music 
       
   117 //FileInfo Image FileName blue NULL NULL NULL 0 ExpectedStart StartMap FileName blue EndMap ExpectedEnd FileInfo Video FileExtension .3gp NULL NULL NULL 0 ExpectedStart StartMap FileName video2 FileExtension .3gp EndMap StartMap FileName video5 FileExtension .3gp EndMap ExpectedEnd
       
   118 [Test]
       
   119 title BToB_EmptyTypeAndSoundFlnPath
       
   120 create tmediaprovidertesting foobar
       
   121 //foobar GetListBackToBackCall FileInfo "" NULL NULL NULL NULL NULL 1002 FileInfo Sound FileNameAndPath c:\data\sounds\digital\tempo.wav NULL NULL NULL 0 ExpectedStart StartMap FileNameAndPath c:\data\sounds\digital\tempo.wav EndMap ExpectedEnd
       
   122 foobar GetListBackToBackCall FileInfo "" NULL NULL NULL NULL NULL 1002 
       
   123 delete foobar
       
   124 [Endtest]
       
   125 
       
   126 
       
   127 ############################################ End Sound #################################################