os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-validation-automated-comb_rr.script
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
//
sl@0
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
// All rights reserved.
sl@0
     4
// This component and the accompanying materials are made available
sl@0
     5
// under the terms of "Eclipse Public License v1.0"
sl@0
     6
// which accompanies this distribution, and is available
sl@0
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
//
sl@0
     9
// Initial Contributors:
sl@0
    10
// Nokia Corporation - initial contribution.
sl@0
    11
//
sl@0
    12
// Contributors:
sl@0
    13
//
sl@0
    14
// Description: 
sl@0
    15
//
sl@0
    16
//
sl@0
    17
//! @file
sl@0
    18
//! @SYMTestSuiteName multimedia-mmf-devsound-validation-automated-comb_rr
sl@0
    19
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
sl@0
    20
//
sl@0
    21
// Tests all public elements of the CMMFDevSound
sl@0
    22
// classes as a means of confidence that the APIs work as expected.
sl@0
    23
// 
sl@0
    24
// The purpose is to provide a regression test suite of PublishedAll
sl@0
    25
// APIs for: CMMFDevSound
sl@0
    26
// The tests are fully automated.
sl@0
    27
//
sl@0
    28
sl@0
    29
sl@0
    30
sl@0
    31
LOAD_SUITE t_devsound
sl@0
    32
sl@0
    33
sl@0
    34
sl@0
    35
sl@0
    36
sl@0
    37
START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001
sl@0
    38
sl@0
    39
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001
sl@0
    40
//!@SYMAPI
sl@0
    41
//! TEST_BLOCK 001
sl@0
    42
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
    43
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
    44
//!                CMMFDevSound::Capabilities()
sl@0
    45
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
    46
//!                CMMFDevSound::PlayInitL()
sl@0
    47
//!                CMMFDevSound::RecordInitL()
sl@0
    48
//!                CMMFDevSound::Stop()
sl@0
    49
//!                
sl@0
    50
//! TEST_BLOCK 002
sl@0
    51
//!                CMMFDevSound::InitializeL(MDevSoundObserver {ref}, TMMFState )
sl@0
    52
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings {ref} )
sl@0
    53
//!                CMMFDevSound::Capabilities()
sl@0
    54
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities {ref} )
sl@0
    55
//!                CMMFDevSound::RecordInitL()
sl@0
    56
//!                CMMFDevSound::Stop()
sl@0
    57
//!                
sl@0
    58
//!@SYMAuthor			etorres
sl@0
    59
//!@SYMCreationDate		7/28/2008 
sl@0
    60
//!@SYMTestCaseDesc		SIZE Mixing rule - Stop and perform
sl@0
    61
//!@SYMTestActions
sl@0
    62
//! TEST_BLOCK 001
sl@0
    63
//!                1. Create Devsound instance 
sl@0
    64
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
sl@0
    65
//!                3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
sl@0
    66
//!                4. Capabilities
sl@0
    67
//!                5. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
    68
//!                6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
sl@0
    69
//!                7. Record 20 s
sl@0
    70
//!                8. Stop 5s
sl@0
    71
//!                9. CloseFile
sl@0
    72
//!                10. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = AMR)
sl@0
    73
//!                11. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback}; PriorityState = EMMFStatePlaying)
sl@0
    74
//!                12. Capabilities
sl@0
    75
//!                13. Set Configuration (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
    76
//!                14. OpenFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.amr)
sl@0
    77
//!                15. Play EOF
sl@0
    78
//!                16. CloseFile
sl@0
    79
//!                17. Delete devsound instance
sl@0
    80
//! TEST_BLOCK 002
sl@0
    81
//!                1. Create Devsound instance 
sl@0
    82
//!                2. Initialize Devsound (Mode = EMMFStateRecording; FourCC = AMR)
sl@0
    83
//!                3. Set Priority (Priority = {Priority,PriorityVoiceRecording}; Preference = {PriorityPreference,PriorityPreferenceVoiceRecording} ; PriorityState = EMMFStateRecording)
sl@0
    84
//!                4. Capabilities
sl@0
    85
//!                5. Set Configuration 10s(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
sl@0
    86
//!                6. ReplaceFile (Filename={drive,mmc}\multimedia\mmf\devsound\Recording\SizeMixingRuleSR.pcm )
sl@0
    87
//!                7. Record 60 s
sl@0
    88
//!                8. Stop
sl@0
    89
//!                9. CloseFile
sl@0
    90
//!                10. Delete devsound instance
sl@0
    91
//!@SYMTestStatus		Verified
sl@0
    92
//!@SYMTestPriority		High
sl@0
    93
//!@SYMTestExpectedResults
sl@0
    94
//!                SIZE Mixing rule - Stop and perform
sl@0
    95
//! TEST_BLOCK 001
sl@0
    96
//!                AMR record for 20s and playback until EOF
sl@0
    97
//! TEST_BLOCK 002
sl@0
    98
//!                AMR recording with expected error -21
sl@0
    99
//!@SYMTestType			CIT
sl@0
   100
sl@0
   101
sl@0
   102
	CONCURRENT
sl@0
   103
sl@0
   104
sl@0
   105
sl@0
   106
	START_TEST_BLOCK	50	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
sl@0
   107
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   108
		COMMAND		devsound1		NewL
sl@0
   109
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command02
sl@0
   110
		OUTSTANDING
sl@0
   111
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command03
sl@0
   112
		COMMAND		devsound1		Capabilities
sl@0
   113
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command05
sl@0
   114
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-ReplaceFile_command06
sl@0
   115
		COMMAND		devsound1		RecordInitL
sl@0
   116
		ASYNC_DELAY  20000000 
sl@0
   117
		COMMAND		devsound1		Stop
sl@0
   118
		DELAY  5000000 
sl@0
   119
		COMMAND		devsound1		CloseFile
sl@0
   120
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-InitializeL_command10
sl@0
   121
		OUTSTANDING
sl@0
   122
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetPrioritySettings_command11
sl@0
   123
		COMMAND		devsound1		Capabilities
sl@0
   124
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-SetConfigL_command13
sl@0
   125
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0001-OpenFile_command14
sl@0
   126
		COMMAND		   devsound1		PlayInitL
sl@0
   127
		OUTSTANDING
sl@0
   128
		COMMAND		devsound1		CloseFile
sl@0
   129
		COMMAND		devsound1		~
sl@0
   130
	END_TEST_BLOCK
sl@0
   131
sl@0
   132
sl@0
   133
sl@0
   134
	START_TEST_BLOCK	80	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-validation-automated-comb_rr.ini
sl@0
   135
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
   136
		COMMAND		devsound1		NewL
sl@0
   137
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-InitializeL_command02
sl@0
   138
		OUTSTANDING
sl@0
   139
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetPrioritySettings_command03
sl@0
   140
		COMMAND		devsound1		Capabilities
sl@0
   141
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-SetConfigL_command05
sl@0
   142
		DELAY  10000000 
sl@0
   143
		COMMAND		devsound1		ReplaceFile			MULTIMEDIA-MMF-DevSound-Comb_Rr-0001-0002-ReplaceFile_command06
sl@0
   144
    COMMAND              !AsyncError=-21    devsound1 RecordInitL      
sl@0
   145
		ASYNC_DELAY  60000000 
sl@0
   146
		COMMAND		devsound1		Stop
sl@0
   147
		DELAY  2000000 
sl@0
   148
		COMMAND		devsound1		CloseFile
sl@0
   149
		COMMAND		devsound1		~
sl@0
   150
	END_TEST_BLOCK
sl@0
   151
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-VALIDATION-AUTOMATED-COMB_RR-0001