os/mm/mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-stress-automated-recording.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-stress-automated-recording.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,119 @@
     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-devsoundext-stress-automated-recording
    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_devsoundext
    1.35 +
    1.36 +
    1.37 +
    1.38 +
    1.39 +
    1.40 +START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001
    1.41 +
    1.42 +//!@SYMTestCaseID		MULTIMEDIA-MMF-devsoundext-STRESS-AUTOMATED-RECORDING-0001
    1.43 +//!@SYMAPI
    1.44 +//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
    1.45 +//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
    1.46 +//!                CMMFDevSound::Capabilities()
    1.47 +//!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
    1.48 +//!                CMMFDevSound::RecordInitL()
    1.49 +//!                CMMFDevSound::PlayInitL()
    1.50 +//!                CMMFDevSound::Stop()
    1.51 +//!@SYMAuthor			myanez
    1.52 +//!@SYMCreationDate		8/25/2008 
    1.53 +//!@SYMTestCaseDesc		PoC call stress test
    1.54 +//!@SYMTestActions
    1.55 +//!                1. Create Devsound Instance1
    1.56 +//!                2. Create Devsound Instance2 
    1.57 +//!                3.Replace File1 ( Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\PoCCallStressTest.amr)   
    1.58 +//!                4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)      
    1.59 +//!                5. Set Priority (Priority = {Priority,PriorityPocCallUp} ; Preference = {PriorityPreference,PriorityPreferencePocCallUp} ; PriorityState=EMMFStateRecording) 
    1.60 +//!                6. Capabilities1      
    1.61 +//!                7. Set Configuration1 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)          
    1.62 +//!                8. Open File2 (Filename = {drive,mmc}\multimedia\mmf\devsound\amr-nb\AMRNB_8k_12.2kbps_mono_speech.amr)      
    1.63 +//!                9. Initialize Devsound2 (InitializeMode = EInitializeFourCCMode; Mode = EMMFStatePlaying; FourCC = AMR)          
    1.64 +//!                10. Set Priority2 (Priority = {Priority,PriorityPocCallDown} ; Preference = {PriorityPreference,PriorityPreferencePocCallDown} ;; PriorityState=EMMFStatePlaying)   
    1.65 +//!                11. Capabilities2     
    1.66 +//!                12. Set Configuration2 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)   
    1.67 +//!                13. Start Record for 5 seconds         
    1.68 +//!                14. Stop Record for 2 seconds       
    1.69 +//!                15. Start Record for 3 seconds     
    1.70 +//!                16. Stop Record for 4 seconds       
    1.71 +//!                17. Start Play for 2 seconds         
    1.72 +//!                18. Stop Play for 1 second      
    1.73 +//!                19. Start Play for 5 seconds     
    1.74 +//!                20. Stop Play           
    1.75 +//!                21. Close File2       
    1.76 +//!                22. Destroy Devsound Instance2       
    1.77 +//!                23. Close File1           
    1.78 +//!                24.Destroy Devsound Instance1
    1.79 +//!@SYMTestStatus		Verified
    1.80 +//!@SYMTestPriority		High
    1.81 +//!@SYMTestExpectedResults
    1.82 +//!                Record one File with PocCallUp Priority and PocCallUp Preference.Play another File with PocCallDown Priority  and PocCallDown Preference. Stop , Record and Play both Files
    1.83 +//!@SYMTestType			
    1.84 +
    1.85 +	START_TEST_BLOCK	60	t_devsoundext	\multimedia\mmf\devsound\multimedia-mmf-devsoundext-stress-automated-recording.ini
    1.86 +		CREATE_OBJECT	CMMFDevSound		devsound1
    1.87 +		CREATE_OBJECT	CMMFDevSound		devsound2
    1.88 +		COMMAND		devsound1		NewL
    1.89 +		COMMAND		devsound2		NewL
    1.90 +		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-ReplaceFile_command03
    1.91 +		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command04
    1.92 +		OUTSTANDING
    1.93 +		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command05
    1.94 +		COMMAND		devsound1		Capabilities
    1.95 +		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command07
    1.96 +		COMMAND		devsound2		OpenFile			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-OpenFile_command08
    1.97 +		COMMAND		devsound2		InitializeL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command09
    1.98 +        OUTSTANDING
    1.99 +		COMMAND		devsound2		SetPrioritySettings			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command10
   1.100 +		COMMAND		devsound2		Capabilities
   1.101 +		COMMAND		devsound2		SetConfigL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command12
   1.102 +		COMMAND		devsound1		RecordInitL
   1.103 +		ASYNC_DELAY  5000000 
   1.104 +		COMMAND		devsound1		Stop
   1.105 +		DELAY  2000000 
   1.106 +		COMMAND		devsound1		RecordInitL
   1.107 +		ASYNC_DELAY  3000000 
   1.108 +		COMMAND		devsound1		Stop
   1.109 +		DELAY  4000000 
   1.110 +		COMMAND		devsound2		PlayInitL
   1.111 +		ASYNC_DELAY  2000000 
   1.112 +		COMMAND		devsound2		Stop
   1.113 +		DELAY  1000000 
   1.114 +		COMMAND		devsound2		PlayInitL
   1.115 +		ASYNC_DELAY  5000000 
   1.116 +		COMMAND		devsound2		Stop
   1.117 +		COMMAND		devsound2		CloseFile
   1.118 +		COMMAND		devsound2		~
   1.119 +		COMMAND		devsound1		CloseFile
   1.120 +		COMMAND		devsound1		~
   1.121 +	END_TEST_BLOCK
   1.122 +END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001