os/mm/mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-validation-automated-comb_rr.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-validation-automated-comb_rr.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,163 @@
1.4 +//
1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +//
1.20 +//! @file
1.21 +//! @SYMTestSuiteName multimedia-mmf-devsoundext-validation-automated-comb_rr
1.22 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
1.23 +//
1.24 +// Tests all public elements of the CMMFDevSound
1.25 +// classes as a means of confidence that the APIs work as expected.
1.26 +//
1.27 +// The purpose is to provide a regression test suite of PublishedAll
1.28 +// APIs for: CMMFDevSound
1.29 +// The tests are fully automated.
1.30 +//
1.31 +
1.32 +
1.33 +
1.34 +LOAD_SUITE t_devsoundext
1.35 +
1.36 +
1.37 +
1.38 +
1.39 +
1.40 +START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_RR-0002
1.41 +
1.42 +//!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_RR-0002
1.43 +//!@SYMAPI
1.44 +//! TEST_BLOCK 001
1.45 +//! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
1.46 +//! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
1.47 +//! CMMFDevSound::Capabilities()
1.48 +//! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
1.49 +//! CMMFAudioInput::SetAudioInputL(TAudioInputArray)
1.50 +//! CMMFDevSound::RecordInitL()
1.51 +//! CMMFDevSound::Stop()
1.52 +//! CMMFDevSound::PlayInitL()
1.53 +//! TEST_BLOCK 002
1.54 +//! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
1.55 +//! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
1.56 +//! CMMFDevSound::Capabilities()
1.57 +//! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
1.58 +//! CMMFDevSound::Pause()
1.59 +//! CMMFAudioInput::SetAudioInputL(TAudioInputArray)
1.60 +//! CMMFDevSound::RecordInitL()
1.61 +//!
1.62 +//!@SYMAuthor myanez
1.63 +//!@SYMCreationDate 8/25/2008
1.64 +//!@SYMTestCaseDesc HW limitation - Radio recording during voice recording from mic**
1.65 +//!@SYMTestActions
1.66 +//! TEST_BLOCK 001
1.67 +//! 1. Create DevSound Instance
1.68 +//! 2. Create AudioInput Instance (DevSoundInstanceName = devsound1)
1.69 +//! 3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\HwLimitRadioRecDuringMicRec1.amr)
1.70 +//! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)
1.71 +//! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording)
1.72 +//! 6. Capabilities
1.73 +//! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
1.74 +//! 8. Set Audio Input (AudioInput = Input_DefaultMic)
1.75 +//! 9.Start Record for 20 seconds
1.76 +//! 10. Stop for 5 seconds.
1.77 +//! 11. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = AMR)
1.78 +//! 12. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying)
1.79 +//! 13. Capabilities
1.80 +//! 14. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
1.81 +//! 15. Start File Positions
1.82 +//! 16. Start Play
1.83 +//! 17. Close File
1.84 +//! 18. Destroy AudioInput Instance
1.85 +//! 19. Destroy DevSound Instance
1.86 +//! TEST_BLOCK 002
1.87 +//! 1. Create DevSound Instance
1.88 +//! 2. Create AudioInput Instance (DevSoundInstanceName = devsound1)
1.89 +//! 3. Replace File (Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\HwLimitRadioRecDuringMicRec2.pcm)
1.90 +//! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = P16)
1.91 +//! 5. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording};PriorityState=EMMFStateRecording)
1.92 +//! 6. Capabilities
1.93 +//! 7. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
1.94 +//! 8. Stop for 10 seconds
1.95 +//! 9. Set Audio Input (AudioInput = Input_FMRadio)
1.96 +//! 10. Start Record (expected async error=-21)
1.97 +//! 11. Close File
1.98 +//! 12. Destroy AudioInput Instance
1.99 +//! 13. Destroy DevSound Instance
1.100 +//!@SYMTestStatus Verified
1.101 +//!@SYMTestPriority High
1.102 +//!@SYMTestExpectedResults
1.103 +//! Radio recording during voice recording from mic
1.104 +//! TEST_BLOCK 001
1.105 +//! Record with Voice Recording Priority and Voice Recording Preference; Play with Audio PLayback Priority and Audio PLayback Preference
1.106 +//! TEST_BLOCK 002
1.107 +//! Record File with Voice Recording Priority and Voice Recording Preference, Expecting Error -21
1.108 +//!@SYMTestType CIT
1.109 +
1.110 +
1.111 + CONCURRENT
1.112 +
1.113 +
1.114 +
1.115 + START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_rr.ini
1.116 + CREATE_OBJECT CMMFDevSound devsound1
1.117 + CREATE_OBJECT CAudioInput audioinput1
1.118 + COMMAND devsound1 NewL
1.119 + COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-NewL_command02
1.120 + COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-ReplaceFile_command03
1.121 + COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-InitializeL_command04
1.122 + OUTSTANDING
1.123 + COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetPrioritySettings_command05
1.124 + COMMAND devsound1 Capabilities
1.125 + COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetConfigL_command07
1.126 + COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetAudioInput_command08
1.127 + COMMAND devsound1 RecordInitL
1.128 + ASYNC_DELAY 20000000
1.129 + COMMAND devsound1 Stop
1.130 + DELAY 5000000
1.131 + COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-InitializeL_command11
1.132 + OUTSTANDING
1.133 + COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetPrioritySettings_command12
1.134 + COMMAND devsound1 Capabilities
1.135 + COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0001-SetConfigL_command14
1.136 + COMMAND devsound1 FileStartPosition
1.137 + COMMAND devsound1 PlayInitL
1.138 + OUTSTANDING
1.139 + COMMAND devsound1 CloseFile
1.140 + COMMAND audioinput1 ~
1.141 + COMMAND devsound1 ~
1.142 + END_TEST_BLOCK
1.143 +
1.144 +
1.145 +
1.146 + START_TEST_BLOCK 80 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-comb_rr.ini
1.147 + CREATE_OBJECT CMMFDevSound devsound1
1.148 + CREATE_OBJECT CAudioInput audioinput1
1.149 + COMMAND devsound1 NewL
1.150 + COMMAND audioinput1 NewL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-NewL_command02
1.151 + COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-ReplaceFile_command03
1.152 + COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-InitializeL_command04
1.153 + OUTSTANDING
1.154 + COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-SetPrioritySettings_command05
1.155 + COMMAND devsound1 Capabilities
1.156 + COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-SetConfigL_command07
1.157 + COMMAND devsound1 Stop
1.158 + DELAY 10000000
1.159 + COMMAND audioinput1 SetAudioInput MULTIMEDIA-MMF-DevSoundExt-Com_Rr-0002-0002-SetAudioInput_command09
1.160 + COMMAND !AsyncError=-21 devsound1 RecordInitL
1.161 + ASYNC_DELAY 60000000
1.162 + COMMAND devsound1 CloseFile
1.163 + COMMAND audioinput1 ~
1.164 + COMMAND devsound1 ~
1.165 + END_TEST_BLOCK
1.166 +END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-COMB_RR-0002