mmapitest/devsoundexthaitest/scripts/multimedia-mmf-devsoundext-stress-automated-recording.script
author hgs
Fri, 17 Sep 2010 17:01:39 +0100
changeset 59 89a17f5534e9
parent 26 c36d67f77f75
permissions -rw-r--r--
2010wk36_03
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     1
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     3
// All rights reserved.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     4
// This component and the accompanying materials are made available
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     5
// under the terms of "Eclipse Public License v1.0"
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     6
// which accompanies this distribution, and is available
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     8
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     9
// Initial Contributors:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    10
// Nokia Corporation - initial contribution.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    11
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    12
// Contributors:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    13
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    14
// Description: 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    15
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    16
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    17
//! @file
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    18
//! @SYMTestSuiteName multimedia-mmf-devsoundext-stress-automated-recording
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    19
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    20
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    21
// Tests all public elements of the CMMFDevSound
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    22
// classes as a means of confidence that the APIs work as expected.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    23
// 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    24
// The purpose is to provide a regression test suite of PublishedAll
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    25
// APIs for: CMMFDevSound
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    26
// The tests are fully automated.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    27
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    28
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    29
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    30
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    31
LOAD_SUITE t_devsoundext
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    32
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    33
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    34
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    35
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    36
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    37
START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    38
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    39
//!@SYMTestCaseID		MULTIMEDIA-MMF-devsoundext-STRESS-AUTOMATED-RECORDING-0001
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    40
//!@SYMAPI
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    41
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    42
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    43
//!                CMMFDevSound::Capabilities()
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    44
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    45
//!                CMMFDevSound::RecordInitL()
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    46
//!                CMMFDevSound::PlayInitL()
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    47
//!                CMMFDevSound::Stop()
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    48
//!@SYMAuthor			myanez
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    49
//!@SYMCreationDate		8/25/2008 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    50
//!@SYMTestCaseDesc		PoC call stress test
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    51
//!@SYMTestActions
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    52
//!                1. Create Devsound Instance1
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    53
//!                2. Create Devsound Instance2 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    54
//!                3.Replace File1 ( Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\PoCCallStressTest.amr)   
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    55
//!                4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR)      
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    56
//!                5. Set Priority (Priority = {Priority,PriorityPocCallUp} ; Preference = {PriorityPreference,PriorityPreferencePocCallUp} ; PriorityState=EMMFStateRecording) 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    57
//!                6. Capabilities1      
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    58
//!                7. Set Configuration1 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)          
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    59
//!                8. Open File2 (Filename = {drive,mmc}\multimedia\mmf\devsound\amr-nb\AMRNB_8k_12.2kbps_mono_speech.amr)      
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    60
//!                9. Initialize Devsound2 (InitializeMode = EInitializeFourCCMode; Mode = EMMFStatePlaying; FourCC = AMR)          
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    61
//!                10. Set Priority2 (Priority = {Priority,PriorityPocCallDown} ; Preference = {PriorityPreference,PriorityPreferencePocCallDown} ;; PriorityState=EMMFStatePlaying)   
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    62
//!                11. Capabilities2     
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    63
//!                12. Set Configuration2 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)   
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    64
//!                13. Start Record for 5 seconds         
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    65
//!                14. Stop Record for 2 seconds       
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    66
//!                15. Start Record for 3 seconds     
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    67
//!                16. Stop Record for 4 seconds       
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    68
//!                17. Start Play for 2 seconds         
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    69
//!                18. Stop Play for 1 second      
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    70
//!                19. Start Play for 5 seconds     
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    71
//!                20. Stop Play           
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    72
//!                21. Close File2       
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    73
//!                22. Destroy Devsound Instance2       
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    74
//!                23. Close File1           
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    75
//!                24.Destroy Devsound Instance1
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    76
//!@SYMTestStatus		Verified
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    77
//!@SYMTestPriority		High
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    78
//!@SYMTestExpectedResults
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    79
//!                Record one File with PocCallUp Priority and PocCallUp Preference.Play another File with PocCallDown Priority  and PocCallDown Preference. Stop , Record and Play both Files
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    80
//!@SYMTestType			
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    81
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    82
	START_TEST_BLOCK	60	t_devsoundext	\multimedia\mmf\devsound\multimedia-mmf-devsoundext-stress-automated-recording.ini
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    83
		CREATE_OBJECT	CMMFDevSound		devsound1
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    84
		CREATE_OBJECT	CMMFDevSound		devsound2
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    85
		COMMAND		devsound1		NewL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    86
		COMMAND		devsound2		NewL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    87
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-ReplaceFile_command03
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    88
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command04
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    89
		OUTSTANDING
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    90
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command05
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    91
		COMMAND		devsound1		Capabilities
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    92
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command07
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    93
		COMMAND		devsound2		OpenFile			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-OpenFile_command08
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    94
		COMMAND		devsound2		InitializeL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command09
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    95
        OUTSTANDING
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    96
		COMMAND		devsound2		SetPrioritySettings			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command10
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    97
		COMMAND		devsound2		Capabilities
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    98
		COMMAND		devsound2		SetConfigL			MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command12
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    99
		COMMAND		devsound1		RecordInitL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   100
		ASYNC_DELAY  5000000 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   101
		COMMAND		devsound1		Stop
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   102
		DELAY  2000000 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   103
		COMMAND		devsound1		RecordInitL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   104
		ASYNC_DELAY  3000000 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   105
		COMMAND		devsound1		Stop
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   106
		DELAY  4000000 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   107
		COMMAND		devsound2		PlayInitL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   108
		ASYNC_DELAY  2000000 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   109
		COMMAND		devsound2		Stop
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   110
		DELAY  1000000 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   111
		COMMAND		devsound2		PlayInitL
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   112
		ASYNC_DELAY  5000000 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   113
		COMMAND		devsound2		Stop
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   114
		COMMAND		devsound2		CloseFile
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   115
		COMMAND		devsound2		~
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   116
		COMMAND		devsound1		CloseFile
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   117
		COMMAND		devsound1		~
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   118
	END_TEST_BLOCK
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   119
END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001