|
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-devsoundext-stress-automated-recording |
|
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_devsoundext |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001 |
|
38 |
|
39 //!@SYMTestCaseID MULTIMEDIA-MMF-devsoundext-STRESS-AUTOMATED-RECORDING-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::RecordInitL() |
|
46 //! CMMFDevSound::PlayInitL() |
|
47 //! CMMFDevSound::Stop() |
|
48 //!@SYMAuthor myanez |
|
49 //!@SYMCreationDate 8/25/2008 |
|
50 //!@SYMTestCaseDesc PoC call stress test |
|
51 //!@SYMTestActions |
|
52 //! 1. Create Devsound Instance1 |
|
53 //! 2. Create Devsound Instance2 |
|
54 //! 3.Replace File1 ( Filename = {drive,mmc}\multimedia\mmf\devsound\Recording\PoCCallStressTest.amr) |
|
55 //! 4. Initialize DevSound (Mode = EMMFStateRecording; FourCC = AMR) |
|
56 //! 5. Set Priority (Priority = {Priority,PriorityPocCallUp} ; Preference = {PriorityPreference,PriorityPreferencePocCallUp} ; PriorityState=EMMFStateRecording) |
|
57 //! 6. Capabilities1 |
|
58 //! 7. Set Configuration1 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) |
|
59 //! 8. Open File2 (Filename = {drive,mmc}\multimedia\mmf\devsound\amr-nb\AMRNB_8k_12.2kbps_mono_speech.amr) |
|
60 //! 9. Initialize Devsound2 (InitializeMode = EInitializeFourCCMode; Mode = EMMFStatePlaying; FourCC = AMR) |
|
61 //! 10. Set Priority2 (Priority = {Priority,PriorityPocCallDown} ; Preference = {PriorityPreference,PriorityPreferencePocCallDown} ;; PriorityState=EMMFStatePlaying) |
|
62 //! 11. Capabilities2 |
|
63 //! 12. Set Configuration2 (Channels = EMMFMono; Rate = EMMFSampleRate8000Hz) |
|
64 //! 13. Start Record for 5 seconds |
|
65 //! 14. Stop Record for 2 seconds |
|
66 //! 15. Start Record for 3 seconds |
|
67 //! 16. Stop Record for 4 seconds |
|
68 //! 17. Start Play for 2 seconds |
|
69 //! 18. Stop Play for 1 second |
|
70 //! 19. Start Play for 5 seconds |
|
71 //! 20. Stop Play |
|
72 //! 21. Close File2 |
|
73 //! 22. Destroy Devsound Instance2 |
|
74 //! 23. Close File1 |
|
75 //! 24.Destroy Devsound Instance1 |
|
76 //!@SYMTestStatus Verified |
|
77 //!@SYMTestPriority High |
|
78 //!@SYMTestExpectedResults |
|
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 |
|
80 //!@SYMTestType |
|
81 |
|
82 START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-stress-automated-recording.ini |
|
83 CREATE_OBJECT CMMFDevSound devsound1 |
|
84 CREATE_OBJECT CMMFDevSound devsound2 |
|
85 COMMAND devsound1 NewL |
|
86 COMMAND devsound2 NewL |
|
87 COMMAND devsound1 ReplaceFile MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-ReplaceFile_command03 |
|
88 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command04 |
|
89 OUTSTANDING |
|
90 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command05 |
|
91 COMMAND devsound1 Capabilities |
|
92 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command07 |
|
93 COMMAND devsound2 OpenFile MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-OpenFile_command08 |
|
94 COMMAND devsound2 InitializeL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-InitializeL_command09 |
|
95 OUTSTANDING |
|
96 COMMAND devsound2 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetPrioritySettings_command10 |
|
97 COMMAND devsound2 Capabilities |
|
98 COMMAND devsound2 SetConfigL MULTIMEDIA-MMF-DevSoundExt-Stress-Recording-0001-0001-SetConfigL_command12 |
|
99 COMMAND devsound1 RecordInitL |
|
100 ASYNC_DELAY 5000000 |
|
101 COMMAND devsound1 Stop |
|
102 DELAY 2000000 |
|
103 COMMAND devsound1 RecordInitL |
|
104 ASYNC_DELAY 3000000 |
|
105 COMMAND devsound1 Stop |
|
106 DELAY 4000000 |
|
107 COMMAND devsound2 PlayInitL |
|
108 ASYNC_DELAY 2000000 |
|
109 COMMAND devsound2 Stop |
|
110 DELAY 1000000 |
|
111 COMMAND devsound2 PlayInitL |
|
112 ASYNC_DELAY 5000000 |
|
113 COMMAND devsound2 Stop |
|
114 COMMAND devsound2 CloseFile |
|
115 COMMAND devsound2 ~ |
|
116 COMMAND devsound1 CloseFile |
|
117 COMMAND devsound1 ~ |
|
118 END_TEST_BLOCK |
|
119 END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-STRESS-AUTOMATED-RECORDING-0001 |