mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_tt.script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 16:02:18 +0300
changeset 34 31d6e1ae5283
parent 33 0267baa9dea9
permissions -rw-r--r--
Revision: 201027 Kit: 2010127

//
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
//
//
//! @file
//! @SYMTestSuiteName multimedia-mmf-devsound-validation-automated-comb_tt
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
//
// Tests all public elements of the CMMFDevSound
// classes as a means of confidence that the APIs work as expected.
// 
// The purpose is to provide a regression test suite of PublishedAll
// APIs for: CMMFDevSound
// The tests are fully automated.
//



LOAD_SUITE t_devsound





START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001

//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001
//!@SYMAPI
//! TEST_BLOCK 001
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
//!                CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
//!                CMMFDevSound::PlayInitL()
//! TEST_BLOCK 002
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TFourCC, TMMFState)
//!                CMMFDevSound::SetPrioritySettings(TMMFPrioritySettings {ref})
//!                CMMFDevSound::SetDTMFLengths(TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref}, TTimeIntervalMicroSeconds32 {ref})
//!                CMMFDevSound::PlayInitL()
//!@SYMAuthor			jpacho
//!@SYMCreationDate		7/28/2008 
//!@SYMTestCaseDesc		DTMF tones during DTMF tones
//!@SYMTestActions
//! TEST_BLOCK 001
//!                1. Create DevSound instance
//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
//!                3. Set priority settings ( Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState=EMMFStateTonePlaying)
//!                4. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
//!                5. Start DTMF Play (DTMFString = 12345678901234567890)
//!                6. Destroy DevSound instance
//! TEST_BLOCK 002
//!                1. Create DevSound instance
//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
//!                3. Set priority settings ( Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality}; PriorityState=EMMFStateTonePlaying)
//!                4. Set DTMF Lengths (ToneOnLength = 300000; ToneOffLength = 100000; PauseLength = 100000)
//!                5. Start DTMF Play (DTMFString = 09876543210987654321)
//!                6. Destroy DevSound instance
//!                
//!@SYMTestStatus		Delivered
//!@SYMTestPriority		High
//!@SYMTestExpectedResults
//!                DTMF tones during DTMF tones
//! TEST_BLOCK 001
//!                DTMF play
//! TEST_BLOCK 002
//!                DTMF play
//!@SYMTestType			CIT


	CONCURRENT



	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
		CREATE_OBJECT	CMMFDevSound		devsound1
		COMMAND		devsound1		NewL
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-InitializeL_command02
		OUTSTANDING
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-SetPrioritySettings_command03
		COMMAND		devsound1		SetDTMFLengths			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-SetDTMFLengths_command04
		DELAY  2000000
        COMMAND		!AsyncError=-21    devsound1		PlayDTMFStringL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0001-PlayDTMFStringL_command05
		ASYNC_DELAY  3000000 
		COMMAND		devsound1		~
	END_TEST_BLOCK



	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
		CREATE_OBJECT	CMMFDevSound		devsound1
		COMMAND		devsound1		NewL
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-InitializeL_command02
		OUTSTANDING
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-SetPrioritySettings_command03
		COMMAND		devsound1		SetDTMFLengths			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-SetDTMFLengths_command04
		COMMAND		devsound1		PlayDTMFStringL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0001-0002-PlayDTMFStringL_command06
		ASYNC_DELAY  4000000 
		COMMAND		devsound1		~
	END_TEST_BLOCK
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0001




START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002

//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002
//!@SYMAPI
//! TEST_BLOCK 001
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
//!                CMMFDevSound::SetPrioritySettings(const 
//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
//!                CMMFDevSound::Stop()
//! TEST_BLOCK 002
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
//!                CMMFDevSound::SetPrioritySettings(const 
//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
//!                CMMFDevSound::Stop()
//! TEST_BLOCK 003
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
//!                CMMFDevSound::SetPrioritySettings(const 
//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
//!                CMMFDevSound::Stop()
//!@SYMAuthor			jpacho
//!@SYMCreationDate		8/25/2008 
//!@SYMTestCaseDesc		Incoming call during two NRT tone playbacks
//!@SYMTestActions
//! TEST_BLOCK 001
//!                1. Create DevSound instance
//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
//!                3. Set priority settings ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState=EMMFStateTonePlaying)
//!                4. Set expected error (ExpectedToneError = -13)
//!                5. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko.nrt)
//!                6. Stop sequence
//!                7. Delete DevSound instance.
//! TEST_BLOCK 002
//!                1. Create DevSound instance
//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
//!                3. Set priority settings delay 1s ( Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceNone}; PriorityState=EMMFStateTonePlaying)
//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko2.nrt)
//!                5. Stop sequence
//!                6. Delete DevSound instance.
//! TEST_BLOCK 003
//!                1. Create DevSound instance
//!                2. Initialize Devsound ( Mode = EMMFStateTonePlaying; FourCC= MP3)
//!                3. Set priority settings delay 5s ( Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Nokia_ringing_tone.nrt)
//!                5. Stop sequence
//!                6. Delete DevSound instance.
//!@SYMTestStatus		Delivered
//!@SYMTestPriority		High
//!@SYMTestExpectedResults
//!                Incoming call during two NRT tone playbacks
//! TEST_BLOCK 001
//!                Play tone sequence with expected error -13
//! TEST_BLOCK 002
//!                Play tone sequence with expected error -21
//! TEST_BLOCK 003
//!                Play tone sequence
//!@SYMTestType			CIT


	CONCURRENT



	START_TEST_BLOCK	900	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
		CREATE_OBJECT	CMMFDevSound		devsound1
		COMMAND		devsound1		NewL
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-InitializeL_command02
		OUTSTANDING
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-SetPrioritySettings_command03
		COMMAND		!AsyncError=-13     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0001-PlayToneSequenceL_command05
		ASYNC_DELAY  10000000 
		COMMAND		devsound1		Stop
		COMMAND		devsound1		~
	END_TEST_BLOCK



	START_TEST_BLOCK	900	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
		CREATE_OBJECT	CMMFDevSound		devsound1
		COMMAND		devsound1		NewL
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-InitializeL_command02
		OUTSTANDING
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-SetPrioritySettings_command03
		DELAY  1000000 
		COMMAND		!AsyncError=-21     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0002-PlayToneSequenceL_command05
		ASYNC_DELAY  10000000 
		COMMAND		devsound1		Stop
		COMMAND		devsound1		~
	END_TEST_BLOCK



	START_TEST_BLOCK	900	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
		CREATE_OBJECT	CMMFDevSound		devsound1
		COMMAND		devsound1		NewL
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-InitializeL_command02
		OUTSTANDING
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-SetPrioritySettings_command03
		DELAY  5000000 
		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0002-0003-PlayToneSequenceL_command04
		ASYNC_DELAY  10000000 
		COMMAND		devsound1		Stop
		COMMAND		devsound1		~
	END_TEST_BLOCK
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0002




START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003

//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003
//!@SYMAPI
//! TEST_BLOCK 001
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
//!                CMMFDevSound::SetPrioritySettings(const 
//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
//!                CMMFDevSound::Stop()
//! TEST_BLOCK 002
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
//!                CMMFDevSound::SetPrioritySettings(const 
//!                CMMFDevSound::PlayToneSequenceL(TDesC8 {ref})
//!                CMMFDevSound::Stop()
//!@SYMAuthor			jpacho
//!@SYMCreationDate		7/28/2008 
//!@SYMTestCaseDesc		NRT tone playback during NRT tone playback
//!@SYMTestActions
//! TEST_BLOCK 001
//!                1. Create DevSound instance
//!                2. Initialize devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
//!                3. Set priority settings ( Priority={Priority,PriorityMax}; Preference={PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying)
//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko.nrt)
//!                5. Stop sequence
//!                6. Delete DevSound instance.
//! TEST_BLOCK 002
//!                1. Create DevSound instance
//!                2. Initialize devsound ( Mode = EMMFStateTonePlaying; FourCC= ILBC)
//!                3. Set priority settings delaying 10s ( Priority={Priority,PriorityMax}; Preference={PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStateTonePlaying) 
//!                4. Play tone sequence 10s (Filename = {drive,mmc}\multimedia\mmf\devsound\nrt\Kurko2.nrt)
//!                5. Stop sequence
//!                6. Delete DevSound instance.
//!                
//!@SYMTestStatus		Verified
//!@SYMTestPriority		High
//!@SYMTestExpectedResults
//!                NRT tone playback during NRT tone playback
//! TEST_BLOCK 001
//!                Play tone sequence
//! TEST_BLOCK 002
//!                Play tone sequence with expected error -21
//!@SYMTestType			CIT


	CONCURRENT



	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
		CREATE_OBJECT	CMMFDevSound		devsound1
		COMMAND		devsound1		NewL
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-InitializeL_command02
		OUTSTANDING
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-SetPrioritySettings_command03
		COMMAND		devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0001-PlayToneSequenceL_command04
		ASYNC_DELAY  10000000 
		COMMAND		devsound1		Stop
		COMMAND		devsound1		~
	END_TEST_BLOCK



	START_TEST_BLOCK	90	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_tt.ini
		CREATE_OBJECT	CMMFDevSound		devsound1
		COMMAND		devsound1		NewL
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-InitializeL_command02
		OUTSTANDING
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-SetPrioritySettings_command03
		DELAY  5000000 
		COMMAND		!AsyncError=-21     devsound1		PlayToneSequenceL			MULTIMEDIA-MMF-DevSound-Comb_Tt-0003-0002-PlayToneSequenceL_command05
		ASYNC_DELAY  10000000 
		COMMAND		devsound1		Stop
		COMMAND		devsound1		~
	END_TEST_BLOCK
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_TT-0003