mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-stress-automated-tones.script
branchRCL_3
changeset 23 545d349d14da
equal deleted inserted replaced
20:67584cc761d1 23:545d349d14da
       
     1 //
       
     2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //
       
    17 //! @file
       
    18 //! @SYMTestSuiteName multimedia-mmf-devsound-stress-automated-tones
       
    19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    20 //
       
    21 // Tests all public elements of the CMMFDevSound
       
    22 // classes as a means of confidence that the APIs work as expected.
       
    23 // 
       
    24 // The purpose is to provide a regression test suite of PublishedAll
       
    25 // APIs for: CMMFDevSound
       
    26 // The tests are fully automated.
       
    27 //
       
    28 
       
    29 
       
    30 
       
    31 LOAD_SUITE t_devsound
       
    32 
       
    33 
       
    34 
       
    35 
       
    36 
       
    37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001
       
    38 
       
    39 //!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001
       
    40 //!@SYMAPI
       
    41 //!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
       
    42 //!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
       
    43 //!                CMMFDevSound::Capabilities()
       
    44 //!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
       
    45 //!                CMMFDevSound::PlayInitL()
       
    46 //!@SYMAuthor			myanez
       
    47 //!@SYMCreationDate		8/25/2008 
       
    48 //!@SYMTestCaseDesc		Play long ringing tone file
       
    49 //!@SYMTestActions
       
    50 //!                1. Create Devsound Instance 
       
    51 //!                2. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_long.mp3)
       
    52 //!                3. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = MP3)
       
    53 //!                4. Set Priority (Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStatePlaying)
       
    54 //!                5. Capabilities 
       
    55 //!                6. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz)
       
    56 //!                7. Start Play
       
    57 //!                8.Close File
       
    58 //!                9. Destroy Devsound Instance
       
    59 //!@SYMTestStatus		Verified
       
    60 //!@SYMTestPriority		High
       
    61 //!@SYMTestExpectedResults
       
    62 //!                Play long ringing tone file
       
    63 //!@SYMTestType			CIT
       
    64 
       
    65 	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-tones.ini
       
    66 		CREATE_OBJECT	CMMFDevSound		devsound1
       
    67 		COMMAND		devsound1		NewL
       
    68 		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-OpenFile_command02
       
    69 		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-InitializeL_command03
       
    70 		OUTSTANDING
       
    71 		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-SetPrioritySettings_command04
       
    72 		COMMAND		devsound1		Capabilities
       
    73 		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-SetConfigL_command06
       
    74 		COMMAND		devsound1		PlayInitL
       
    75 		OUTSTANDING
       
    76 		COMMAND		devsound1		CloseFile
       
    77 		COMMAND		devsound1		~
       
    78 	END_TEST_BLOCK
       
    79 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001