os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_rr.script
Update contrib.
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".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
18 //! @SYMTestSuiteName multimedia-mmf-devsound-validation-automated-comb_rr
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
21 // Tests all public elements of the CMMFDevSound
22 // classes as a means of confidence that the APIs work as expected.
24 // The purpose is to provide a regression test suite of PublishedAll
25 // APIs for: CMMFDevSound
26 // The tests are fully automated.
37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001
39 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001
42 //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
43 //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
44 //! CMMFDevSound::Capabilities()
45 //! CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
46 //! CMMFDevSound::PlayInitL()
47 //! CMMFDevSound::RecordInitL()
48 //! CMMFDevSound::Stop()
51 //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
52 //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
53 //! CMMFDevSound::Capabilities()
54 //! CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
55 //! CMMFDevSound::RecordInitL()
56 //! CMMFDevSound::Stop()
59 //!@SYMCreationDate 7/28/2008
60 //!@SYMTestCaseDesc SIZE Mixing rule - Stop and perform
63 //! 1. Create Devsound instance
64 //! 2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
65 //! 3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
67 //! 5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
68 //! 6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
72 //! 10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
73 //! 11. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState = EMMFStatePlaying)
75 //! 13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
76 //! 14. OpenFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
79 //! 17. Delete devsound instance
81 //! 1. Create Devsound instance
82 //! 2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
83 //! 3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
85 //! 5. Set Configuration 10s(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
86 //! 6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.pcm )
90 //! 10. Delete devsound instance
91 //!@SYMTestStatus Verified
92 //!@SYMTestPriority High
93 //!@SYMTestExpectedResults
94 //! SIZE Mixing rule - Stop and perform
96 //! AMR record for 20s and playback until EOF
98 //! AMR recording with expected error -21
106 START_TEST_BLOCK 50 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
107 CREATE_OBJECT CMMFDevSound devsound1
108 COMMAND devsound1 NewL
109 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command02
111 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command03
112 COMMAND devsound1 Capabilities
113 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command05
114 COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-ReplaceFile_command06
115 COMMAND devsound1 RecordInitL
117 COMMAND devsound1 Stop
119 COMMAND devsound1 CloseFile
120 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command10
122 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command11
123 COMMAND devsound1 Capabilities
124 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command13
125 COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-OpenFile_command14
126 COMMAND devsound1 PlayInitL
128 COMMAND devsound1 CloseFile
134 START_TEST_BLOCK 80 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
135 CREATE_OBJECT CMMFDevSound devsound1
136 COMMAND devsound1 NewL
137 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-InitializeL_command02
139 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetPrioritySettings_command03
140 COMMAND devsound1 Capabilities
141 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetConfigL_command05
143 COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-ReplaceFile_command06
144 COMMAND !AsyncError=-21 devsound1 RecordInitL
146 COMMAND devsound1 Stop
148 COMMAND devsound1 CloseFile
151 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001