mmlibs/mmfw/tsrc/mmvalidationsuite/mvsintegrationtest/scripts/tsi_mvs_audioagent.script
changeset 0 b8ed18f6c07b
child 5 b220a9341636
equal deleted inserted replaced
-1:000000000000 0:b8ed18f6c07b
       
     1 @file tsi_mvs_audioagent.script
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 // Creation Date 10/08/2005
       
    16 // 
       
    17 //
       
    18 
       
    19 PRINT Run the Multimedia Validation Audio Client Agent tests
       
    20 PRINT 
       
    21 
       
    22 //
       
    23 LOAD_SUITE tsi_mvs_agents.dll
       
    24 
       
    25 //////////////////////////////////////////////////////////////////////////////////////////
       
    26 ///////////////////////// AUDIO CLIENT AGENTS :: Positive Testing ////////////////////////
       
    27 //////////////////////////////////////////////////////////////////////////////////////////
       
    28 
       
    29 // 
       
    30 RUN_UTILS CopyFile c:\mvs\oggtest01.ogg c:\mvs\oggtest02.ogg
       
    31 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0001-HP
       
    32 //!@SYMTestCaseDesc           OGG Vorbis Play, Pause and Change Position. Record.
       
    33 //!@SYMREQ                    REQ5477
       
    34 //!@SYMPREQ                   PREQ452
       
    35 //!@SYMTestPriority           2
       
    36 //!@SYMTestActions            1. Open an Ogg-Vorbis file passing in the Ogg-Controller UID. 2. Set position 3. Play 4. Pause after 2 seconds 5. Get Position
       
    37 //! 6. Set position to some other position (before the current position) 7. Play till end. 8. Set maximum length of the bytes to record. 9. Record (appends
       
    38 //! data to the file). 10. Once recording completes, check the length of the clip.
       
    39 //!@SYMTestExpectedResults    Play should complete with KErrNone.
       
    40 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0001-HP \mvs\tsi_mvs_agents.ini
       
    41 TEST_COMPLETE
       
    42 
       
    43 // 
       
    44 RUN_UTILS CopyFile c:\mvs\wavtest01.wav c:\mvs\wavtest02.wav
       
    45 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0002-HP
       
    46 //!@SYMTestCaseDesc           WAV Repeat Play and Check Record Duration
       
    47 //!@SYMREQ                    REQ5477
       
    48 //!@SYMPREQ                   PREQ452
       
    49 //!@SYMTestPriority           2
       
    50 //!@SYMTestActions            1. Open a WAV file (Passing in the Ref. Audio controller UID) 2. Set Repeat Count to 3 3. Set Repeat delay to 1 second 4.
       
    51 //! Play 5. Set Volume to Maximum. 6. Set Balance. 7. Check for Play complete callback. 8. Get Clip duration. 9. Record (appends data to the file) 10. Stop
       
    52 //! recording after 5 seconds 11. Get clip duration and check.
       
    53 //!@SYMTestExpectedResults    Play should complete with KErrNone.
       
    54 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0002-HP \mvs\tsi_mvs_agents.ini
       
    55 TEST_COMPLETE
       
    56 
       
    57 // 
       
    58 RUN_UTILS CopyFile c:\mvs\oggtest01.ogg c:\mvs\oggtest02.ogg
       
    59 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0003-HP
       
    60 //!@SYMTestCaseDesc           OGG play window & Other Play & Record settings.
       
    61 //!@SYMREQ                    REQ5477
       
    62 //!@SYMPREQ                   PREQ452
       
    63 //!@SYMTestPriority           2
       
    64 //!@SYMTestActions            1. Open a OGG Vorbis file. 2. Define a play window 3. Play 4. Modify Volume to 75% of maximum 5. Set balance 6. Wait for
       
    65 //! play complete event. 7. Get the bit-rate 8. Open the file for Recording 9. Set Gain to 50% 10. Record 11. Stop after 5 seconds 12. Check the bit-rate
       
    66 //! and verify.
       
    67 //!@SYMTestExpectedResults    Play should complete with KErrNone.
       
    68 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0003-HP \mvs\tsi_mvs_agents.ini
       
    69 TEST_COMPLETE
       
    70 
       
    71 // 
       
    72 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0004-HP
       
    73 //!@SYMTestCaseDesc           Create a new OGG vorbis file. Record with Max Gain and adjust volume during play.
       
    74 //!@SYMREQ                    REQ5477
       
    75 //!@SYMPREQ                   PREQ452
       
    76 //!@SYMTestPriority           2
       
    77 //!@SYMTestActions            1. Create a New OGG Vorbis file. 2. Set Gain to Maximum. 3. Set Record balance. 4. Record. 5. Stop after 5 seconds and check
       
    78 //! the duration of the recorded clip. 6. Play. 7. While Playing, adjust the volume. 8. Wait till play completes.
       
    79 //!@SYMTestExpectedResults    Recording and play should function normally, and the various callbacks received with KErrNone
       
    80 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0004-HP \mvs\tsi_mvs_agents.ini
       
    81 TEST_COMPLETE
       
    82 
       
    83 // 
       
    84 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0005-HP
       
    85 //!@SYMTestCaseDesc           Create a new WAV file. Record at 50% of maximum gain and with maximum bytes as 1000.
       
    86 //!@SYMREQ                    REQ5477
       
    87 //!@SYMPREQ                   PREQ452
       
    88 //!@SYMTestPriority           2
       
    89 //!@SYMTestActions            1. Create a New WAV file. 2. Set Gain to 50% Maximum. 3. Set Record balance. 4. Record. 5. Stop after 5 seconds and check
       
    90 //! the duration of the recorded clip. 6. Play. 7. While Playing, adjust the volume. 8. Wait till play completes.
       
    91 //!@SYMTestExpectedResults    Recording and play should function normally, and the various callbacks received with KErrNone
       
    92 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0005-HP \mvs\tsi_mvs_agents.ini
       
    93 TEST_COMPLETE
       
    94 
       
    95 // 
       
    96 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0006-HP
       
    97 //!@SYMTestCaseDesc           Audio Play agent settings verification test
       
    98 //!@SYMREQ                    REQ5477
       
    99 //!@SYMPREQ                   PREQ452
       
   100 //!@SYMTestPriority           2
       
   101 //!@SYMTestActions            1. Open an Ogg-Vorbis file. 2. Get the meta data entries and verify (with known values) 3. Get the bit-rate of the Audio
       
   102 //! file and verify 4. Get the name of the currently active controller plug-in.
       
   103 //!@SYMTestExpectedResults    The various playback settings are verified and displayed with KErrNone
       
   104 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0006-HP \mvs\tsi_mvs_agents.ini
       
   105 TEST_COMPLETE
       
   106 
       
   107 // 
       
   108 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0007-HP
       
   109 //!@SYMTestCaseDesc           Audio Record agent format configuration test
       
   110 //!@SYMREQ                    REQ5477
       
   111 //!@SYMPREQ                   PREQ452
       
   112 //!@SYMTestPriority           2
       
   113 //!@SYMTestActions            1. Open an Ogg-Vorbis file for recording. 2. Get the supported Destination Bit Rates. 3. Set the Destination Bit Rate. 4.
       
   114 //! Get the supported Destination Sample Rates. 5. Set the Destination Sample Rate 6. Get the supported Destination Number Of Channels 7. Set the Destination
       
   115 //! Number Of Channels 8. Get the supported Destination Data Types 9. Set the Destination Data Type.
       
   116 //!@SYMTestExpectedResults    The various settings are set and displayed with KErrNone
       
   117 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0007-HP \mvs\tsi_mvs_agents.ini
       
   118 TEST_COMPLETE
       
   119 
       
   120 // 
       
   121 RUN_UTILS CopyFile c:\mvs\oggtest01.ogg c:\mvs\oggtest02.ogg
       
   122 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0008-HP
       
   123 //!@SYMTestCaseDesc           Audio cropping (before & after position).
       
   124 //!@SYMREQ                    REQ5477
       
   125 //!@SYMPREQ                   PREQ452
       
   126 //!@SYMTestPriority           2
       
   127 //!@SYMTestActions            1. Open a Ogg-Vorbis File. 2. Crop the clip from a start position to an end position. 3. Verify the length of the cropped
       
   128 //! clip.
       
   129 //!@SYMTestExpectedResults    Doesn't leave.                                                 First the trailing part is cropped and then the leading part
       
   130 //! is cropped. (clip duration adjusted accordingly)
       
   131 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0008-HP \mvs\tsi_mvs_agents.ini
       
   132 TEST_COMPLETE
       
   133 
       
   134 // 
       
   135 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0009-HP
       
   136 //!@SYMTestCaseDesc           Meta-information test
       
   137 //!@SYMREQ                    REQ5477
       
   138 //!@SYMPREQ                   PREQ452
       
   139 //!@SYMTestPriority           2
       
   140 //!@SYMTestActions            1. Open an existing Ogg-Vorbis File. 2. Add two meta-Information to be written to the clip header. 3. After recording open
       
   141 //! file and check meta information. 4. Replace a meta entry 5. Get the meta entries and check 7. Play 8. Delete a meta-data entry 9. Wait till play completes
       
   142 //! 10. Get the the meta entries and check the count.
       
   143 //!@SYMTestExpectedResults    Meta Information is set correctly and is retrieved with identical strings.
       
   144 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0009-HP \mvs\tsi_mvs_agents.ini
       
   145 TEST_COMPLETE
       
   146 
       
   147 // 
       
   148 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0012-HP
       
   149 //!@SYMTestCaseDesc           Log Verification test for Create a new OGG Vorbis File and Record functionality.
       
   150 //!@SYMREQ                    REQ5477
       
   151 //!@SYMPREQ                   PREQ452
       
   152 //!@SYMTestPriority           2
       
   153 //!@SYMTestActions            1. Empty the contents of the log file 2. Create a new Ogg-Vorbis File 3. Record for 2 seconds 4. Compare the log file with
       
   154 //! the reference log file.
       
   155 //!@SYMTestExpectedResults    The Log file is checked for modification dates, and the existance of a sample string.
       
   156 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0012-HP \mvs\tsi_mvs_agents.ini
       
   157 TEST_COMPLETE
       
   158 
       
   159 // 
       
   160 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0013-HP
       
   161 //!@SYMTestCaseDesc           Log Verification test for  Play the recorded OGG Vorbis file functionality.
       
   162 //!@SYMREQ                    REQ5477
       
   163 //!@SYMPREQ                   PREQ452
       
   164 //!@SYMTestPriority           2
       
   165 //!@SYMTestActions            1. Empty the contents of the log file 2. Open the recorded Ogg-Vorbis File 3. Play using the Audio Play Agent 4. Compare
       
   166 //! the log file with the reference log file.
       
   167 //!@SYMTestExpectedResults    The Log file is checked for modification dates, and the existance of a sample string.
       
   168 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0013-HP \mvs\tsi_mvs_agents.ini
       
   169 TEST_COMPLETE
       
   170 
       
   171 //////////////////////////////////////////////////////////////////////////////////////////
       
   172 ///////////////////////// AUDIO CLIENT AGENTS :: Negative Testing ////////////////////////
       
   173 //////////////////////////////////////////////////////////////////////////////////////////
       
   174 
       
   175 
       
   176 // 
       
   177 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0014-HP
       
   178 //!@SYMTestCaseDesc           Try to open another audio file when one file is already opened.
       
   179 //!@SYMREQ                    REQ5477
       
   180 //!@SYMPREQ                   PREQ452
       
   181 //!@SYMTestPriority           2
       
   182 //!@SYMTestActions            1. Open an audio File. 2. Open another file.
       
   183 //!@SYMTestExpectedResults    The Audio Agent should reply with KErrNotReady ?
       
   184 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0014-HP \mvs\tsi_mvs_agents.ini
       
   185 TEST_COMPLETE
       
   186 
       
   187 // 
       
   188 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0015-HP
       
   189 //!@SYMTestCaseDesc           Open Unsupported file (MP3 file) and try to play.
       
   190 //!@SYMREQ                    REQ5477
       
   191 //!@SYMPREQ                   PREQ452
       
   192 //!@SYMTestPriority           2
       
   193 //!@SYMTestActions            1. Open a file with extension '.ogg' containing MP3 Audio data. 2. Try to Play.
       
   194 //!@SYMTestExpectedResults    Invalid File.
       
   195 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0015-HP \mvs\tsi_mvs_agents.ini
       
   196 TEST_COMPLETE
       
   197 
       
   198 // 
       
   199 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0016-HP
       
   200 //!@SYMTestCaseDesc           Open the same file using record agent while audio play agent is playing the file.
       
   201 //!@SYMREQ                    REQ5477
       
   202 //!@SYMPREQ                   PREQ452
       
   203 //!@SYMTestPriority           2
       
   204 //!@SYMTestActions            1. Initialise and open an audio file. 2. Begin Play 3. As it is playing attempt to open a new audio file, using Audio Record
       
   205 //! agent.
       
   206 //!@SYMTestExpectedResults    KErrInUse
       
   207 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0016-HP \mvs\tsi_mvs_agents.ini
       
   208 TEST_COMPLETE
       
   209 
       
   210 // 
       
   211 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0017-HP
       
   212 //!@SYMTestCaseDesc           Record audio to unsupported file (MP3 File).
       
   213 //!@SYMREQ                    REQ5477
       
   214 //!@SYMPREQ                   PREQ452
       
   215 //!@SYMTestPriority           2
       
   216 //!@SYMTestActions            1. Open a file with extension '.ogg' containing MP3 Audio data. 2. Attempt to record audio to that file.
       
   217 //!@SYMTestExpectedResults    KErrNotSupported.
       
   218 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0017-HP \mvs\tsi_mvs_agents.ini
       
   219 TEST_COMPLETE
       
   220 
       
   221 // 
       
   222 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0018-HP
       
   223 //!@SYMTestCaseDesc           Record audio to unsupported file (Text File).
       
   224 //!@SYMREQ                    REQ5477
       
   225 //!@SYMPREQ                   PREQ452
       
   226 //!@SYMTestPriority           2
       
   227 //!@SYMTestActions            1. Open a text file (*.txt) without giving the controller UID. 2. Start recording 3. Stop recording after two seconds.
       
   228 //!@SYMTestExpectedResults    Invalid File.
       
   229 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0018-HP \mvs\tsi_mvs_agents.ini
       
   230 TEST_COMPLETE
       
   231 
       
   232 // 
       
   233 RUN_UTILS CopyFile c:\mvs\wavtest01.wav c:\mvs\wavtest02.wav
       
   234 //!@SYMTestCaseID             MM-MVS-AUDIOAGENT-I-0019-HP
       
   235 //!@SYMTestCaseDesc           Play-Pause-Play audio
       
   236 //!@SYMREQ                    
       
   237 //!@SYMPREQ                   
       
   238 //!@SYMTestPriority           2
       
   239 //!@SYMTestActions             1. Open a WAV file (Passing in the Ref. Audio controller UID)
       
   240 //!                            2. Start playback
       
   241 //!                            3. After 2 seconds pause the audio
       
   242 //!                            4. Verify position is maintained while paused
       
   243 //!                            5. Resume playback until EOF
       
   244 //!@SYMTestExpectedResults    Audio should be paused, position should be maintained while paused.
       
   245 RUN_TEST_STEP 600000 TSI_MVS_AGENTS MM-MVS-AUDIOAGENT-I-0019-HP \mvs\tsi_mvs_agents.ini
       
   246 TEST_COMPLETE