os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-stress-automated-tones.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-stress-automated-tones
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-STRESS-AUTOMATED-TONES-0001
sl@0
    38
sl@0
    39
//!@SYMTestCaseID		MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001
sl@0
    40
//!@SYMAPI
sl@0
    41
//!                CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
sl@0
    42
//!                CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
sl@0
    43
//!                CMMFDevSound::Capabilities()
sl@0
    44
//!                CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
sl@0
    45
//!                CMMFDevSound::PlayInitL()
sl@0
    46
//!@SYMAuthor			myanez
sl@0
    47
//!@SYMCreationDate		8/25/2008 
sl@0
    48
//!@SYMTestCaseDesc		Play long ringing tone file
sl@0
    49
//!@SYMTestActions
sl@0
    50
//!                1. Create Devsound Instance 
sl@0
    51
//!                2. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_long.mp3)
sl@0
    52
//!                3. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = MP3)
sl@0
    53
//!                4. Set Priority (Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStatePlaying)
sl@0
    54
//!                5. Capabilities 
sl@0
    55
//!                6. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz)
sl@0
    56
//!                7. Start Play
sl@0
    57
//!                8.Close File
sl@0
    58
//!                9. Destroy Devsound Instance
sl@0
    59
//!@SYMTestStatus		Verified
sl@0
    60
//!@SYMTestPriority		High
sl@0
    61
//!@SYMTestExpectedResults
sl@0
    62
//!                Play long ringing tone file
sl@0
    63
//!@SYMTestType			CIT
sl@0
    64
sl@0
    65
	START_TEST_BLOCK	2000	t_devsound	\multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-tones.ini
sl@0
    66
		CREATE_OBJECT	CMMFDevSound		devsound1
sl@0
    67
		COMMAND		devsound1		NewL
sl@0
    68
		COMMAND		devsound1		OpenFile			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-OpenFile_command02
sl@0
    69
		COMMAND		devsound1		InitializeL			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-InitializeL_command03
sl@0
    70
		OUTSTANDING
sl@0
    71
		COMMAND		devsound1		SetPrioritySettings			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-SetPrioritySettings_command04
sl@0
    72
		COMMAND		devsound1		Capabilities
sl@0
    73
		COMMAND		devsound1		SetConfigL			MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-SetConfigL_command06
sl@0
    74
		COMMAND		devsound1		PlayInitL
sl@0
    75
		OUTSTANDING
sl@0
    76
		COMMAND		devsound1		CloseFile
sl@0
    77
		COMMAND		devsound1		~
sl@0
    78
	END_TEST_BLOCK
sl@0
    79
END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001