os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_tt.script
First public contribution.
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_tt
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_TT-0001
39 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
42 //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
43 //! CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
44 //! CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
45 //! CMMFDevSound::PlayInitL()
47 //! CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
48 //! CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
49 //! CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
50 //! CMMFDevSound::PlayInitL()
52 //!@SYMCreationDate 7/28/2008
53 //!@SYMTestCaseDesc DTMF tones during DTMF tones
56 //! 1. Create DevSound instance
57 //! 2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
58 //! 3. Set priority settings ( Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState=EMMFStateTonePlaying)
59 //! 4. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
60 //! 5. Start DTMF Play (DTMFString = 12345678901234567890)
61 //! 6. Destroy DevSound instance
63 //! 1. Create DevSound instance
64 //! 2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
65 //! 3. Set priority settings ( Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState=EMMFStateTonePlaying)
66 //! 4. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
67 //! 5. Start DTMF Play (DTMFString = 09876543210987654321)
68 //! 6. Destroy DevSound instance
70 //!@SYMTestStatus Delivered
71 //!@SYMTestPriority High
72 //!@SYMTestExpectedResults
73 //! DTMF tones during DTMF tones
85 START_TEST_BLOCK 90 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
86 CREATE_OBJECT CMMFDevSound devsound1
87 COMMAND devsound1 NewL
88 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-InitializeL_command02
90 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-SetPrioritySettings_command03
91 COMMAND devsound1 SetDTMFLengths MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-SetDTMFLengths_command04
93 COMMAND !AsyncError=-21 devsound1 PlayDTMFStringL MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-PlayDTMFStringL_command05
100 START_TEST_BLOCK 90 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
101 CREATE_OBJECT CMMFDevSound devsound1
102 COMMAND devsound1 NewL
103 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-InitializeL_command02
105 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-SetPrioritySettings_command03
106 COMMAND devsound1 SetDTMFLengths MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-SetDTMFLengths_command04
107 COMMAND devsound1 PlayDTMFStringL MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-PlayDTMFStringL_command06
111 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
116 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
118 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
121 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
122 //! CMMFDevSound::SetPrioritySettings(const
123 //! CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
124 //! CMMFDevSound::Stop()
126 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
127 //! CMMFDevSound::SetPrioritySettings(const
128 //! CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
129 //! CMMFDevSound::Stop()
131 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
132 //! CMMFDevSound::SetPrioritySettings(const
133 //! CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
134 //! CMMFDevSound::Stop()
136 //!@SYMCreationDate 8/25/2008
137 //!@SYMTestCaseDesc Incoming call during two NRT tone playbacks
140 //! 1. Create DevSound instance
141 //! 2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
142 //! 3. Set priority settings ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState=EMMFStateTonePlaying)
143 //! 4. Set expected error (ExpectedToneError = -13)
144 //! 5. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko.nrt)
146 //! 7. Delete DevSound instance.
148 //! 1. Create DevSound instance
149 //! 2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
150 //! 3. Set priority settings delay 1s ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone}; PriorityState=EMMFStateTonePlaying)
151 //! 4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko2.nrt)
153 //! 6. Delete DevSound instance.
155 //! 1. Create DevSound instance
156 //! 2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
157 //! 3. Set priority settings delay 5s ( Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
158 //! 4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Nokia_ringing_tone.nrt)
160 //! 6. Delete DevSound instance.
161 //!@SYMTestStatus Delivered
162 //!@SYMTestPriority High
163 //!@SYMTestExpectedResults
164 //! Incoming call during two NRT tone playbacks
166 //! Play tone sequence with expected error -13
168 //! Play tone sequence with expected error -21
170 //! Play tone sequence
178 START_TEST_BLOCK 900 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
179 CREATE_OBJECT CMMFDevSound devsound1
180 COMMAND devsound1 NewL
181 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-InitializeL_command02
183 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-SetPrioritySettings_command03
184 COMMAND !AsyncError=-13 devsound1 PlayToneSequenceL MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-PlayToneSequenceL_command05
186 COMMAND devsound1 Stop
192 START_TEST_BLOCK 900 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
193 CREATE_OBJECT CMMFDevSound devsound1
194 COMMAND devsound1 NewL
195 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-InitializeL_command02
197 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-SetPrioritySettings_command03
199 COMMAND !AsyncError=-21 devsound1 PlayToneSequenceL MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-PlayToneSequenceL_command05
201 COMMAND devsound1 Stop
207 START_TEST_BLOCK 900 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
208 CREATE_OBJECT CMMFDevSound devsound1
209 COMMAND devsound1 NewL
210 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-InitializeL_command02
212 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-SetPrioritySettings_command03
214 COMMAND devsound1 PlayToneSequenceL MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-PlayToneSequenceL_command04
216 COMMAND devsound1 Stop
219 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
224 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003
226 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003
229 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
230 //! CMMFDevSound::SetPrioritySettings(const
231 //! CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
232 //! CMMFDevSound::Stop()
234 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
235 //! CMMFDevSound::SetPrioritySettings(const
236 //! CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
237 //! CMMFDevSound::Stop()
239 //!@SYMCreationDate 7/28/2008
240 //!@SYMTestCaseDesc NRT tone playback during NRT tone playback
243 //! 1. Create DevSound instance
244 //! 2. Initialize devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
245 //! 3. Set priority settings ( Priority={Priority,PriorityMax}; Preference={PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
246 //! 4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko.nrt)
248 //! 6. Delete DevSound instance.
250 //! 1. Create DevSound instance
251 //! 2. Initialize devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
252 //! 3. Set priority settings delaying 10s ( Priority={Priority,PriorityMax}; Preference={PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
253 //! 4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko2.nrt)
255 //! 6. Delete DevSound instance.
257 //!@SYMTestStatus Verified
258 //!@SYMTestPriority High
259 //!@SYMTestExpectedResults
260 //! NRT tone playback during NRT tone playback
262 //! Play tone sequence
264 //! Play tone sequence with expected error -21
272 START_TEST_BLOCK 90 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
273 CREATE_OBJECT CMMFDevSound devsound1
274 COMMAND devsound1 NewL
275 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-InitializeL_command02
277 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-SetPrioritySettings_command03
278 COMMAND devsound1 PlayToneSequenceL MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-PlayToneSequenceL_command04
280 COMMAND devsound1 Stop
286 START_TEST_BLOCK 90 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
287 CREATE_OBJECT CMMFDevSound devsound1
288 COMMAND devsound1 NewL
289 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-InitializeL_command02
291 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-SetPrioritySettings_command03
293 COMMAND !AsyncError=-21 devsound1 PlayToneSequenceL MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-PlayToneSequenceL_command05
295 COMMAND devsound1 Stop
298 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003