1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/a3fintegrationtest/scripts/tsi_a3f_devsound_pcm_play3.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,188 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +LOAD_SUITE tsi_a3f_devsound.dll
1.20 +
1.21 +
1.22 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0016
1.23 +//! @SYMTestCaseDesc Positive: PCM 48k stereo playback of sine audio data (+ve)
1.24 +//! @SYMTestPriority High
1.25 +//! @SYMTestType CIT
1.26 +//! @SYMREQ 7918
1.27 +//! @SYMPREQ 1540
1.28 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw sine audio data in stereo mode with sampling rate of 48 KHz.
1.29 +//! 2. Start playing and read recorded data from file.
1.30 +//! 3. Stop playback once EOF is reached.
1.31 +//! @SYMTestExpectedResults Devsound to successfully play PCM16 raw sine audio data in stereo mode with sampling rate of 48 KHz with all the DevSound callback functions
1.32 +//! being executed as required throughout the test.
1.33 +
1.34 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0016 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.35 +TEST_COMPLETE
1.36 +
1.37 +
1.38 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0018
1.39 +//! @SYMTestCaseDesc Negative: PCM mono playback with invalid sample rate (-ve)
1.40 +//! @SYMTestPriority High
1.41 +//! @SYMTestType CIT
1.42 +//! @SYMREQ 7927
1.43 +//! @SYMPREQ 1540
1.44 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw audio data in mono mode with an invalid sample rate.
1.45 +//! 2. Verify the valid error code is received
1.46 +//! @SYMTestExpectedResults CMMFDevSound::SetConfigL should return with KErrArgument
1.47 +
1.48 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0018 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.49 +TEST_COMPLETE
1.50 +
1.51 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0019
1.52 +//! @SYMTestCaseDesc Negative: PCM 8k playback with invalid channel mode (-ve)
1.53 +//! @SYMTestPriority High
1.54 +//! @SYMTestType CIT
1.55 +//! @SYMREQ 7927
1.56 +//! @SYMPREQ 1540
1.57 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw audio data in an invalid mode with sampling rate of 8 kHz.
1.58 +//! 2. Verify the valid error code is received
1.59 +//! @SYMTestExpectedResults CMMFDevSound::SetConfigL should return with KErrArgument
1.60 +
1.61 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0019 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.62 +TEST_COMPLETE
1.63 +
1.64 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0020
1.65 +//! @SYMTestCaseDesc Negative: PCM 8k mono playback with invalid FourCC (-ve)
1.66 +//! @SYMTestPriority High
1.67 +//! @SYMTestType CIT
1.68 +//! @SYMREQ 7927
1.69 +//! @SYMPREQ 1540
1.70 +//! @SYMTestActions 1. Initialise DevSound with an invalid FourCC code
1.71 +//! 2. Verify the valid error code is received
1.72 +//! @SYMTestExpectedResults CMMFDevSound::InitializeL should return with KErrNotSupported
1.73 +
1.74 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0020 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.75 +TEST_COMPLETE
1.76 +
1.77 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0021
1.78 +//! @SYMTestCaseDesc Negative: PCM 8k mono playback of corrupt file (-ve)
1.79 +//! @SYMTestPriority High
1.80 +//! @SYMTestType CIT
1.81 +//! @SYMREQ 7927
1.82 +//! @SYMPREQ 1540
1.83 +//! @SYMTestStatus
1.84 +//! @SYMTestActions 1. Configure DevSound to play PCM8 raw audio data in mono mode with sampling rate of 8 kHz.
1.85 +//! 2. Start playing and read recorded data from file.
1.86 +//! 3. Stop playback once EOF is reached.
1.87 +//! @SYMTestExpectedResults Devsound to successfully play PCM8 audio data in mono mode with sampling rate of 8 KHz with all the DevSound callback functions
1.88 +//! being executed as required throughout the test.
1.89 +
1.90 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0021 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.91 +TEST_COMPLETE
1.92 +
1.93 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0022
1.94 +//! @SYMTestCaseDesc Positive: Play to the EOF a specified number of times (+ve)
1.95 +//! @SYMTestPriority High
1.96 +//! @SYMTestType CIT
1.97 +//! @SYMREQ 7918
1.98 +//! @SYMPREQ 1540
1.99 +//! @SYMTestStatus
1.100 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
1.101 +//! 2. Start playing and read recorded data from file.
1.102 +//! 3. Stop playback once EOF is reached.
1.103 +//! 4. Restart playback again
1.104 +//! 5. Stop test when EOF is reached again
1.105 +//! @SYMTestExpectedResults Devsound to successfully play PCM16 audio data in mono mode with sampling rate of 8 KHz twice with all the DevSound callback
1.106 +//! functions being executed as required throughout the test.
1.107 +
1.108 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0022 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.109 +TEST_COMPLETE
1.110 +
1.111 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0023
1.112 +//! @SYMTestCaseDesc Positive: PCM playback with default parameters. Default FourCC input datatype and default config values (+ve)
1.113 +//! @SYMTestPriority High
1.114 +//! @SYMTestType CIT
1.115 +//! @SYMREQ 7925
1.116 +//! @SYMPREQ 1540
1.117 +//! @SYMTestStatus
1.118 +//! @SYMTestActions 1. Initialise DevSound for playback without specifying format nor configuration parameters
1.119 +//! 2. Start playing and read recorded data from a PCM16/8 kHz file.
1.120 +//! 3. Stop playback once EOF is reached.
1.121 +//! @SYMTestExpectedResults Devsound to successfully play PCM16 audio data in mono mode with sampling rate of 8 KHz with all the DevSound callback functions
1.122 +//! being executed as required throughout the test.
1.123 +
1.124 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0023 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.125 +TEST_COMPLETE
1.126 +
1.127 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0024
1.128 +//! @SYMTestCaseDesc Positive: Play->Stop->Play->Stop->Play EOF. Stop is called a specified number of times through ini file.
1.129 +//! Last playback continues until the EOF (+ve)
1.130 +//! @SYMTestPriority High
1.131 +//! @SYMTestType CIT
1.132 +//! @SYMREQ 7919
1.133 +//! @SYMPREQ 1540
1.134 +//! @SYMTestStatus
1.135 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
1.136 +//! 2. Start playing and read recorded data from file.
1.137 +//! 3. Stop playback after 10 seconds.
1.138 +//! 4. Restart playback
1.139 +//! 5. Stop playback after 10 seconds.
1.140 +//! 6. Restart playback
1.141 +//! 7. Stop playback once EOF is reached.
1.142 +//! @SYMTestExpectedResults Devsound to successfully play-stop-play-stop-play PCM16 audio data in mono mode with sampling rate of 8 KHz with all the DevSound callback
1.143 +//! functions being executed as required throughout the test.
1.144 +
1.145 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0024 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.146 +TEST_COMPLETE
1.147 +
1.148 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0025
1.149 +//! @SYMTestCaseDesc Positive: Read the current device configuration during playback (+ve)
1.150 +//! @SYMTestPriority High
1.151 +//! @SYMTestType CIT
1.152 +//! @SYMREQ
1.153 +//! @SYMPREQ 1540
1.154 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
1.155 +//! 2. Start playing and read recorded data from file.
1.156 +//! 3. In the BuffertoBeFilled callback check the current device configuration matches the one set at the beginning of the test.
1.157 +//! 4. Stop the test
1.158 +//! @SYMTestExpectedResults Values queried during playback should match the ones set before the playback started
1.159 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0025 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.160 +TEST_COMPLETE
1.161 +
1.162 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0026
1.163 +//! @SYMTestCaseDesc Positive: Set volume before play, start play, stop play and get volume (+ve)
1.164 +//! @SYMTestPriority High
1.165 +//! @SYMTestType CIT
1.166 +//! @SYMREQ
1.167 +//! @SYMPREQ 1540
1.168 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
1.169 +//! 2. Set volume to a value specified in the ini file
1.170 +//! 3. Start playing and read recorded data from file.
1.171 +//! 4. Stop playback after 10 seconds and get the volume from DevSound
1.172 +//! 5. Check the values match
1.173 +//! @SYMTestExpectedResults The Volume after the playback has stopped should match the volume set before playback
1.174 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0026 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.175 +TEST_COMPLETE
1.176 +
1.177 +//! @SYMTestCaseID MM-A3F-DEVSOUND-PLAY-PCM-I-0027
1.178 +//! @SYMTestCaseDesc Positive: Empty buffers when playback paused (+ve)
1.179 +//! @SYMTestPriority High
1.180 +//! @SYMTestType CIT
1.181 +//! @SYMREQ 7926
1.182 +//! @SYMPREQ 1540
1.183 +//! @SYMTestActions 1. Configure DevSound to play PCM16 raw audio data in mono mode with sampling rate of 8 kHz.
1.184 +//! 2. Start playing and read recorded data from file.
1.185 +//! 3. Pause playback after 10 seconds
1.186 +//! 4. Call EmptyBuffers while in paused state
1.187 +//! @SYMTestExpectedResults EmptyBuffers in paused state should return with KErrNone
1.188 +
1.189 +RUN_TEST_STEP 600000 TSI_A3F_DEVSOUND MM-A3F-DEVSOUND-PLAY-PCM-I-0027 \tsi_a3f_devsound\tsi_a3f_devsound_play.ini
1.190 +TEST_COMPLETE
1.191 +