os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_tt.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_tt.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,298 @@
     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-devsound-validation-automated-comb_tt
    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_devsound
    1.35 +
    1.36 +
    1.37 +
    1.38 +
    1.39 +
    1.40 +START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
    1.41 +
    1.42 +//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
    1.43 +//!@SYMAPI
    1.44 +//! TEST_BLOCK 001
    1.45 +//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
    1.46 +//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
    1.47 +//!                CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
    1.48 +//!                CMMFDevSound::PlayInitL()
    1.49 +//! TEST_BLOCK 002
    1.50 +//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
    1.51 +//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
    1.52 +//!                CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
    1.53 +//!                CMMFDevSound::PlayInitL()
    1.54 +//!@SYMAuthor			jpacho
    1.55 +//!@SYMCreationDate		7/28/2008 
    1.56 +//!@SYMTestCaseDesc		DTMF tones during DTMF tones
    1.57 +//!@SYMTestActions
    1.58 +//! TEST_BLOCK 001
    1.59 +//!                1. Create DevSound instance
    1.60 +//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
    1.61 +//!                3. Set priority settings ( Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState=EMMFStateTonePlaying)
    1.62 +//!                4. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
    1.63 +//!                5. Start DTMF Play (DTMFString = 12345678901234567890)
    1.64 +//!                6. Destroy DevSound instance
    1.65 +//! TEST_BLOCK 002
    1.66 +//!                1. Create DevSound instance
    1.67 +//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
    1.68 +//!                3. Set priority settings ( Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState=EMMFStateTonePlaying)
    1.69 +//!                4. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
    1.70 +//!                5. Start DTMF Play (DTMFString = 09876543210987654321)
    1.71 +//!                6. Destroy DevSound instance
    1.72 +//!                
    1.73 +//!@SYMTestStatus		Delivered
    1.74 +//!@SYMTestPriority		High
    1.75 +//!@SYMTestExpectedResults
    1.76 +//!                DTMF tones during DTMF tones
    1.77 +//! TEST_BLOCK 001
    1.78 +//!                DTMF play
    1.79 +//! TEST_BLOCK 002
    1.80 +//!                DTMF play
    1.81 +//!@SYMTestType			CIT
    1.82 +
    1.83 +
    1.84 +	CONCURRENT
    1.85 +
    1.86 +
    1.87 +
    1.88 +	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
    1.89 +		CREATE_OBJECT	CMMFDevSound		devsound1
    1.90 +		COMMAND		devsound1		NewL
    1.91 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-InitializeL_command02
    1.92 +		OUTSTANDING
    1.93 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-SetPrioritySettings_command03
    1.94 +		COMMAND		devsound1		SetDTMFLengths			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-SetDTMFLengths_command04
    1.95 +		DELAY  2000000
    1.96 +        COMMAND		!AsyncError=-21    devsound1		PlayDTMFStringL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-PlayDTMFStringL_command05
    1.97 +		ASYNC_DELAY  3000000 
    1.98 +		COMMAND		devsound1		~
    1.99 +	END_TEST_BLOCK
   1.100 +
   1.101 +
   1.102 +
   1.103 +	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
   1.104 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.105 +		COMMAND		devsound1		NewL
   1.106 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-InitializeL_command02
   1.107 +		OUTSTANDING
   1.108 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-SetPrioritySettings_command03
   1.109 +		COMMAND		devsound1		SetDTMFLengths			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-SetDTMFLengths_command04
   1.110 +		COMMAND		devsound1		PlayDTMFStringL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-PlayDTMFStringL_command06
   1.111 +		ASYNC_DELAY  4000000 
   1.112 +		COMMAND		devsound1		~
   1.113 +	END_TEST_BLOCK
   1.114 +END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
   1.115 +
   1.116 +
   1.117 +
   1.118 +
   1.119 +START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
   1.120 +
   1.121 +//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
   1.122 +//!@SYMAPI
   1.123 +//! TEST_BLOCK 001
   1.124 +//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
   1.125 +//!                CMMFDevSound::SetPrioritySettings(const 
   1.126 +//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
   1.127 +//!                CMMFDevSound::Stop()
   1.128 +//! TEST_BLOCK 002
   1.129 +//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
   1.130 +//!                CMMFDevSound::SetPrioritySettings(const 
   1.131 +//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
   1.132 +//!                CMMFDevSound::Stop()
   1.133 +//! TEST_BLOCK 003
   1.134 +//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
   1.135 +//!                CMMFDevSound::SetPrioritySettings(const 
   1.136 +//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
   1.137 +//!                CMMFDevSound::Stop()
   1.138 +//!@SYMAuthor			jpacho
   1.139 +//!@SYMCreationDate		8/25/2008 
   1.140 +//!@SYMTestCaseDesc		Incoming call during two NRT tone playbacks
   1.141 +//!@SYMTestActions
   1.142 +//! TEST_BLOCK 001
   1.143 +//!                1. Create DevSound instance
   1.144 +//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
   1.145 +//!                3. Set priority settings ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState=EMMFStateTonePlaying)
   1.146 +//!                4. Set expected error (ExpectedToneError = -13)
   1.147 +//!                5. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko.nrt)
   1.148 +//!                6. Stop sequence
   1.149 +//!                7. Delete DevSound instance.
   1.150 +//! TEST_BLOCK 002
   1.151 +//!                1. Create DevSound instance
   1.152 +//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
   1.153 +//!                3. Set priority settings delay 1s ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone}; PriorityState=EMMFStateTonePlaying)
   1.154 +//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko2.nrt)
   1.155 +//!                5. Stop sequence
   1.156 +//!                6. Delete DevSound instance.
   1.157 +//! TEST_BLOCK 003
   1.158 +//!                1. Create DevSound instance
   1.159 +//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
   1.160 +//!                3. Set priority settings delay 5s ( Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
   1.161 +//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Nokia_ringing_tone.nrt)
   1.162 +//!                5. Stop sequence
   1.163 +//!                6. Delete DevSound instance.
   1.164 +//!@SYMTestStatus		Delivered
   1.165 +//!@SYMTestPriority		High
   1.166 +//!@SYMTestExpectedResults
   1.167 +//!                Incoming call during two NRT tone playbacks
   1.168 +//! TEST_BLOCK 001
   1.169 +//!                Play tone sequence with expected error -13
   1.170 +//! TEST_BLOCK 002
   1.171 +//!                Play tone sequence with expected error -21
   1.172 +//! TEST_BLOCK 003
   1.173 +//!                Play tone sequence
   1.174 +//!@SYMTestType			CIT
   1.175 +
   1.176 +
   1.177 +	CONCURRENT
   1.178 +
   1.179 +
   1.180 +
   1.181 +	START_TEST_BLOCK	900	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
   1.182 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.183 +		COMMAND		devsound1		NewL
   1.184 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-InitializeL_command02
   1.185 +		OUTSTANDING
   1.186 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-SetPrioritySettings_command03
   1.187 +		COMMAND		!AsyncError=-13     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-PlayToneSequenceL_command05
   1.188 +		ASYNC_DELAY  10000000 
   1.189 +		COMMAND		devsound1		Stop
   1.190 +		COMMAND		devsound1		~
   1.191 +	END_TEST_BLOCK
   1.192 +
   1.193 +
   1.194 +
   1.195 +	START_TEST_BLOCK	900	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
   1.196 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.197 +		COMMAND		devsound1		NewL
   1.198 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-InitializeL_command02
   1.199 +		OUTSTANDING
   1.200 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-SetPrioritySettings_command03
   1.201 +		DELAY  1000000 
   1.202 +		COMMAND		!AsyncError=-21     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-PlayToneSequenceL_command05
   1.203 +		ASYNC_DELAY  10000000 
   1.204 +		COMMAND		devsound1		Stop
   1.205 +		COMMAND		devsound1		~
   1.206 +	END_TEST_BLOCK
   1.207 +
   1.208 +
   1.209 +
   1.210 +	START_TEST_BLOCK	900	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
   1.211 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.212 +		COMMAND		devsound1		NewL
   1.213 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-InitializeL_command02
   1.214 +		OUTSTANDING
   1.215 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-SetPrioritySettings_command03
   1.216 +		DELAY  5000000 
   1.217 +		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-PlayToneSequenceL_command04
   1.218 +		ASYNC_DELAY  10000000 
   1.219 +		COMMAND		devsound1		Stop
   1.220 +		COMMAND		devsound1		~
   1.221 +	END_TEST_BLOCK
   1.222 +END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
   1.223 +
   1.224 +
   1.225 +
   1.226 +
   1.227 +START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003
   1.228 +
   1.229 +//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003
   1.230 +//!@SYMAPI
   1.231 +//! TEST_BLOCK 001
   1.232 +//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
   1.233 +//!                CMMFDevSound::SetPrioritySettings(const 
   1.234 +//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
   1.235 +//!                CMMFDevSound::Stop()
   1.236 +//! TEST_BLOCK 002
   1.237 +//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
   1.238 +//!                CMMFDevSound::SetPrioritySettings(const 
   1.239 +//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
   1.240 +//!                CMMFDevSound::Stop()
   1.241 +//!@SYMAuthor			jpacho
   1.242 +//!@SYMCreationDate		7/28/2008 
   1.243 +//!@SYMTestCaseDesc		NRT tone playback during NRT tone playback
   1.244 +//!@SYMTestActions
   1.245 +//! TEST_BLOCK 001
   1.246 +//!                1. Create DevSound instance
   1.247 +//!                2. Initialize devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
   1.248 +//!                3. Set priority settings ( Priority={Priority,PriorityMax}; Preference={PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
   1.249 +//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko.nrt)
   1.250 +//!                5. Stop sequence
   1.251 +//!                6. Delete DevSound instance.
   1.252 +//! TEST_BLOCK 002
   1.253 +//!                1. Create DevSound instance
   1.254 +//!                2. Initialize devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
   1.255 +//!                3. Set priority settings delaying 10s ( Priority={Priority,PriorityMax}; Preference={PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying) 
   1.256 +//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko2.nrt)
   1.257 +//!                5. Stop sequence
   1.258 +//!                6. Delete DevSound instance.
   1.259 +//!                
   1.260 +//!@SYMTestStatus		Verified
   1.261 +//!@SYMTestPriority		High
   1.262 +//!@SYMTestExpectedResults
   1.263 +//!                NRT tone playback during NRT tone playback
   1.264 +//! TEST_BLOCK 001
   1.265 +//!                Play tone sequence
   1.266 +//! TEST_BLOCK 002
   1.267 +//!                Play tone sequence with expected error -21
   1.268 +//!@SYMTestType			CIT
   1.269 +
   1.270 +
   1.271 +	CONCURRENT
   1.272 +
   1.273 +
   1.274 +
   1.275 +	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
   1.276 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.277 +		COMMAND		devsound1		NewL
   1.278 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-InitializeL_command02
   1.279 +		OUTSTANDING
   1.280 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-SetPrioritySettings_command03
   1.281 +		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-PlayToneSequenceL_command04
   1.282 +		ASYNC_DELAY  10000000 
   1.283 +		COMMAND		devsound1		Stop
   1.284 +		COMMAND		devsound1		~
   1.285 +	END_TEST_BLOCK
   1.286 +
   1.287 +
   1.288 +
   1.289 +	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
   1.290 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.291 +		COMMAND		devsound1		NewL
   1.292 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-InitializeL_command02
   1.293 +		OUTSTANDING
   1.294 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-SetPrioritySettings_command03
   1.295 +		DELAY  5000000 
   1.296 +		COMMAND		!AsyncError=-21     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-PlayToneSequenceL_command05
   1.297 +		ASYNC_DELAY  10000000 
   1.298 +		COMMAND		devsound1		Stop
   1.299 +		COMMAND		devsound1		~
   1.300 +	END_TEST_BLOCK
   1.301 +END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003