mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_tt.script
branchRCL_3
changeset 23 545d349d14da
equal deleted inserted replaced
20:67584cc761d1 23:545d349d14da
       
     1 //
       
     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".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //
       
    17 //! @file
       
    18 //! @SYMTestSuiteName multimedia-mmf-devsound-validation-automated-comb_tt
       
    19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    20 //
       
    21 // Tests all public elements of the CMMFDevSound
       
    22 // classes as a means of confidence that the APIs work as expected.
       
    23 // 
       
    24 // The purpose is to provide a regression test suite of PublishedAll
       
    25 // APIs for: CMMFDevSound
       
    26 // The tests are fully automated.
       
    27 //
       
    28 
       
    29 
       
    30 
       
    31 LOAD_SUITE t_devsound
       
    32 
       
    33 
       
    34 
       
    35 
       
    36 
       
    37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
       
    38 
       
    39 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
       
    40 //!@SYMAPI
       
    41 //! TEST_BLOCK 001
       
    42 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
       
    43 //!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
       
    44 //!                CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
       
    45 //!                CMMFDevSound::PlayInitL()
       
    46 //! TEST_BLOCK 002
       
    47 //!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
       
    48 //!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
       
    49 //!                CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
       
    50 //!                CMMFDevSound::PlayInitL()
       
    51 //!@SYMAuthor			jpacho
       
    52 //!@SYMCreationDate		7/28/2008 
       
    53 //!@SYMTestCaseDesc		DTMF tones during DTMF tones
       
    54 //!@SYMTestActions
       
    55 //! TEST_BLOCK 001
       
    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
       
    62 //! TEST_BLOCK 002
       
    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
       
    69 //!                
       
    70 //!@SYMTestStatus		Delivered
       
    71 //!@SYMTestPriority		High
       
    72 //!@SYMTestExpectedResults
       
    73 //!                DTMF tones during DTMF tones
       
    74 //! TEST_BLOCK 001
       
    75 //!                DTMF play
       
    76 //! TEST_BLOCK 002
       
    77 //!                DTMF play
       
    78 //!@SYMTestType			CIT
       
    79 
       
    80 
       
    81 	CONCURRENT
       
    82 
       
    83 
       
    84 
       
    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
       
    89 		OUTSTANDING
       
    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
       
    92 		DELAY  2000000
       
    93         COMMAND		!AsyncError=-21    devsound1		PlayDTMFStringL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-PlayDTMFStringL_command05
       
    94 		ASYNC_DELAY  3000000 
       
    95 		COMMAND		devsound1		~
       
    96 	END_TEST_BLOCK
       
    97 
       
    98 
       
    99 
       
   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
       
   104 		OUTSTANDING
       
   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
       
   108 		ASYNC_DELAY  4000000 
       
   109 		COMMAND		devsound1		~
       
   110 	END_TEST_BLOCK
       
   111 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
       
   112 
       
   113 
       
   114 
       
   115 
       
   116 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
       
   117 
       
   118 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
       
   119 //!@SYMAPI
       
   120 //! TEST_BLOCK 001
       
   121 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   122 //!                CMMFDevSound::SetPrioritySettings(const 
       
   123 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
   124 //!                CMMFDevSound::Stop()
       
   125 //! TEST_BLOCK 002
       
   126 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   127 //!                CMMFDevSound::SetPrioritySettings(const 
       
   128 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
   129 //!                CMMFDevSound::Stop()
       
   130 //! TEST_BLOCK 003
       
   131 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   132 //!                CMMFDevSound::SetPrioritySettings(const 
       
   133 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
   134 //!                CMMFDevSound::Stop()
       
   135 //!@SYMAuthor			jpacho
       
   136 //!@SYMCreationDate		8/25/2008 
       
   137 //!@SYMTestCaseDesc		Incoming call during two NRT tone playbacks
       
   138 //!@SYMTestActions
       
   139 //! TEST_BLOCK 001
       
   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)
       
   145 //!                6. Stop sequence
       
   146 //!                7. Delete DevSound instance.
       
   147 //! TEST_BLOCK 002
       
   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)
       
   152 //!                5. Stop sequence
       
   153 //!                6. Delete DevSound instance.
       
   154 //! TEST_BLOCK 003
       
   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)
       
   159 //!                5. Stop sequence
       
   160 //!                6. Delete DevSound instance.
       
   161 //!@SYMTestStatus		Delivered
       
   162 //!@SYMTestPriority		High
       
   163 //!@SYMTestExpectedResults
       
   164 //!                Incoming call during two NRT tone playbacks
       
   165 //! TEST_BLOCK 001
       
   166 //!                Play tone sequence with expected error -13
       
   167 //! TEST_BLOCK 002
       
   168 //!                Play tone sequence with expected error -21
       
   169 //! TEST_BLOCK 003
       
   170 //!                Play tone sequence
       
   171 //!@SYMTestType			CIT
       
   172 
       
   173 
       
   174 	CONCURRENT
       
   175 
       
   176 
       
   177 
       
   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
       
   182 		OUTSTANDING
       
   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
       
   185 		ASYNC_DELAY  10000000 
       
   186 		COMMAND		devsound1		Stop
       
   187 		COMMAND		devsound1		~
       
   188 	END_TEST_BLOCK
       
   189 
       
   190 
       
   191 
       
   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
       
   196 		OUTSTANDING
       
   197 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-SetPrioritySettings_command03
       
   198 		DELAY  1000000 
       
   199 		COMMAND		!AsyncError=-21     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-PlayToneSequenceL_command05
       
   200 		ASYNC_DELAY  10000000 
       
   201 		COMMAND		devsound1		Stop
       
   202 		COMMAND		devsound1		~
       
   203 	END_TEST_BLOCK
       
   204 
       
   205 
       
   206 
       
   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
       
   211 		OUTSTANDING
       
   212 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-SetPrioritySettings_command03
       
   213 		DELAY  5000000 
       
   214 		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-PlayToneSequenceL_command04
       
   215 		ASYNC_DELAY  10000000 
       
   216 		COMMAND		devsound1		Stop
       
   217 		COMMAND		devsound1		~
       
   218 	END_TEST_BLOCK
       
   219 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
       
   220 
       
   221 
       
   222 
       
   223 
       
   224 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003
       
   225 
       
   226 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003
       
   227 //!@SYMAPI
       
   228 //! TEST_BLOCK 001
       
   229 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   230 //!                CMMFDevSound::SetPrioritySettings(const 
       
   231 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
   232 //!                CMMFDevSound::Stop()
       
   233 //! TEST_BLOCK 002
       
   234 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
   235 //!                CMMFDevSound::SetPrioritySettings(const 
       
   236 //!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
       
   237 //!                CMMFDevSound::Stop()
       
   238 //!@SYMAuthor			jpacho
       
   239 //!@SYMCreationDate		7/28/2008 
       
   240 //!@SYMTestCaseDesc		NRT tone playback during NRT tone playback
       
   241 //!@SYMTestActions
       
   242 //! TEST_BLOCK 001
       
   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)
       
   247 //!                5. Stop sequence
       
   248 //!                6. Delete DevSound instance.
       
   249 //! TEST_BLOCK 002
       
   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)
       
   254 //!                5. Stop sequence
       
   255 //!                6. Delete DevSound instance.
       
   256 //!                
       
   257 //!@SYMTestStatus		Verified
       
   258 //!@SYMTestPriority		High
       
   259 //!@SYMTestExpectedResults
       
   260 //!                NRT tone playback during NRT tone playback
       
   261 //! TEST_BLOCK 001
       
   262 //!                Play tone sequence
       
   263 //! TEST_BLOCK 002
       
   264 //!                Play tone sequence with expected error -21
       
   265 //!@SYMTestType			CIT
       
   266 
       
   267 
       
   268 	CONCURRENT
       
   269 
       
   270 
       
   271 
       
   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
       
   276 		OUTSTANDING
       
   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
       
   279 		ASYNC_DELAY  10000000 
       
   280 		COMMAND		devsound1		Stop
       
   281 		COMMAND		devsound1		~
       
   282 	END_TEST_BLOCK
       
   283 
       
   284 
       
   285 
       
   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
       
   290 		OUTSTANDING
       
   291 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-SetPrioritySettings_command03
       
   292 		DELAY  5000000 
       
   293 		COMMAND		!AsyncError=-21     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-PlayToneSequenceL_command05
       
   294 		ASYNC_DELAY  10000000 
       
   295 		COMMAND		devsound1		Stop
       
   296 		COMMAND		devsound1		~
       
   297 	END_TEST_BLOCK
       
   298 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003