os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_rr.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_rr.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,151 @@
     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_rr
    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_RR-0001
    1.41 +
    1.42 +//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001
    1.43 +//!@SYMAPI
    1.44 +//! TEST_BLOCK 001
    1.45 +//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
    1.46 +//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
    1.47 +//!                CMMFDevSound::Capabilities()
    1.48 +//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
    1.49 +//!                CMMFDevSound::PlayInitL()
    1.50 +//!                CMMFDevSound::RecordInitL()
    1.51 +//!                CMMFDevSound::Stop()
    1.52 +//!                
    1.53 +//! TEST_BLOCK 002
    1.54 +//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
    1.55 +//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
    1.56 +//!                CMMFDevSound::Capabilities()
    1.57 +//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
    1.58 +//!                CMMFDevSound::RecordInitL()
    1.59 +//!                CMMFDevSound::Stop()
    1.60 +//!                
    1.61 +//!@SYMAuthor			etorres
    1.62 +//!@SYMCreationDate		7/28/2008 
    1.63 +//!@SYMTestCaseDesc		SIZE Mixing rule - Stop and perform
    1.64 +//!@SYMTestActions
    1.65 +//! TEST_BLOCK 001
    1.66 +//!                1. Create Devsound instance 
    1.67 +//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
    1.68 +//!                3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
    1.69 +//!                4. Capabilities
    1.70 +//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
    1.71 +//!                6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
    1.72 +//!                7. Record 20 s
    1.73 +//!                8. Stop 5s
    1.74 +//!                9. CloseFile
    1.75 +//!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
    1.76 +//!                11. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState = EMMFStatePlaying)
    1.77 +//!                12. Capabilities
    1.78 +//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
    1.79 +//!                14. OpenFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
    1.80 +//!                15. Play EOF
    1.81 +//!                16. CloseFile
    1.82 +//!                17. Delete devsound instance
    1.83 +//! TEST_BLOCK 002
    1.84 +//!                1. Create Devsound instance 
    1.85 +//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
    1.86 +//!                3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
    1.87 +//!                4. Capabilities
    1.88 +//!                5. Set Configuration 10s(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
    1.89 +//!                6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.pcm )
    1.90 +//!                7. Record 60 s
    1.91 +//!                8. Stop
    1.92 +//!                9. CloseFile
    1.93 +//!                10. Delete devsound instance
    1.94 +//!@SYMTestStatus		Verified
    1.95 +//!@SYMTestPriority		High
    1.96 +//!@SYMTestExpectedResults
    1.97 +//!                SIZE Mixing rule - Stop and perform
    1.98 +//! TEST_BLOCK 001
    1.99 +//!                AMR record for 20s and playback until EOF
   1.100 +//! TEST_BLOCK 002
   1.101 +//!                AMR recording with expected error -21
   1.102 +//!@SYMTestType			CIT
   1.103 +
   1.104 +
   1.105 +	CONCURRENT
   1.106 +
   1.107 +
   1.108 +
   1.109 +	START_TEST_BLOCK	50	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
   1.110 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.111 +		COMMAND		devsound1		NewL
   1.112 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command02
   1.113 +		OUTSTANDING
   1.114 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command03
   1.115 +		COMMAND		devsound1		Capabilities
   1.116 +		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command05
   1.117 +		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-ReplaceFile_command06
   1.118 +		COMMAND		devsound1		RecordInitL
   1.119 +		ASYNC_DELAY  20000000 
   1.120 +		COMMAND		devsound1		Stop
   1.121 +		DELAY  5000000 
   1.122 +		COMMAND		devsound1		CloseFile
   1.123 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command10
   1.124 +		OUTSTANDING
   1.125 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command11
   1.126 +		COMMAND		devsound1		Capabilities
   1.127 +		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command13
   1.128 +		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-OpenFile_command14
   1.129 +		COMMAND		   devsound1		PlayInitL
   1.130 +		OUTSTANDING
   1.131 +		COMMAND		devsound1		CloseFile
   1.132 +		COMMAND		devsound1		~
   1.133 +	END_TEST_BLOCK
   1.134 +
   1.135 +
   1.136 +
   1.137 +	START_TEST_BLOCK	80	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
   1.138 +		CREATE_OBJECT	CMMFDevSound		devsound1
   1.139 +		COMMAND		devsound1		NewL
   1.140 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-InitializeL_command02
   1.141 +		OUTSTANDING
   1.142 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetPrioritySettings_command03
   1.143 +		COMMAND		devsound1		Capabilities
   1.144 +		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetConfigL_command05
   1.145 +		DELAY  10000000 
   1.146 +		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-ReplaceFile_command06
   1.147 +    COMMAND              !AsyncError=-21    devsound1 RecordInitL      
   1.148 +		ASYNC_DELAY  60000000 
   1.149 +		COMMAND		devsound1		Stop
   1.150 +		DELAY  2000000 
   1.151 +		COMMAND		devsound1		CloseFile
   1.152 +		COMMAND		devsound1		~
   1.153 +	END_TEST_BLOCK
   1.154 +END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001