os/mm/devsound/a3fcharacterisationtest/scripts/mm_a3f_devsound_init.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// MM_A3F_DEVSOUND_CHRTZ_INIT.script
sl@0
    15
// Syntax:
sl@0
    16
// RUN_TEST_STEP <timeout>, <test suite>,  <test step>, <configuration file.ini>
sl@0
    17
//
sl@0
    18
sl@0
    19
LOAD_SUITE char_a3f_devsound.dll
sl@0
    20
delay 1000
sl@0
    21
sl@0
    22
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0001
sl@0
    23
//!@SYMREQ: 7951
sl@0
    24
//!@SYMPREQ: 1540
sl@0
    25
//!@SYMTestCaseDec: Play tone initialisation - Call InitializeL() to initialise for playing tones
sl@0
    26
//!@SYMTestPriority: Normal
sl@0
    27
//!@SYMTestType: Normal Usecase
sl@0
    28
//!@SYMTestActions: 
sl@0
    29
//1. Create and initialise DevSound instance to play tones.
sl@0
    30
//1.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
    31
//!@SYMTestExpectedResults: 
sl@0
    32
//DevSound instance was created and initialised to play tones.
sl@0
    33
//InitializeComplete(KErrNone) callback was received.
sl@0
    34
PRINT Play tone initialisation - Call InitializeL() to initialise for playing tones
sl@0
    35
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0001, c:\mm_a3f_devsound_init.ini
sl@0
    36
TEST_COMPLETE
sl@0
    37
sl@0
    38
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0002
sl@0
    39
//!@SYMREQ: 7951
sl@0
    40
//!@SYMPREQ: 1540
sl@0
    41
//!@SYMTestCaseDesc: Play tone initialisation - Call CancelInitialize() to abort initialisation for tones
sl@0
    42
//!@SYMTestPriority: Normal
sl@0
    43
//!@SYMTestType: Alternative Usecase
sl@0
    44
//!@SYMTestActions: 
sl@0
    45
//1. Create a Devsound instance.
sl@0
    46
//2. Create a CPeriodic instance.
sl@0
    47
//3. Initialise a DevSound instance to play tones.
sl@0
    48
//4. Start CPeriodic to trigger timer events.
sl@0
    49
//5. Call CancelInitialize() before receiving InitializeComplete() callback.
sl@0
    50
//6. Wait 2 seconds to verify that InitializeComplete() callback is not received.
sl@0
    51
//!@SYMTestExpectedResults: 
sl@0
    52
//CancelInitialize() returns KErrNone. InitializeComplete() callback shall be not received.
sl@0
    53
PRINT Play tone initialisation - Call CancelInitialize() to abort initialisation for tones
sl@0
    54
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0002, c:\mm_a3f_devsound_init.ini
sl@0
    55
TEST_COMPLETE
sl@0
    56
sl@0
    57
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0003
sl@0
    58
//!@SYMREQ: 7951
sl@0
    59
//!@SYMPREQ: 1540
sl@0
    60
//!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to play tones
sl@0
    61
//!@SYMTestPriority: Normal
sl@0
    62
//!@SYMTestType: Alternative Usecase
sl@0
    63
//!@SYMTestActions: 
sl@0
    64
//1. Create and initialise DevSound instance to play tones.
sl@0
    65
//2. After InitializeComplete() callback is received, initialise DevSound to play tones.
sl@0
    66
//!@SYMTestExpectedResults: 
sl@0
    67
//DevSound instance was created and initialised to play tones.
sl@0
    68
//InitializeComplete(KErrNone) callback was received.
sl@0
    69
PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to play tones
sl@0
    70
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0003, c:\mm_a3f_devsound_init.ini
sl@0
    71
TEST_COMPLETE
sl@0
    72
sl@0
    73
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0004
sl@0
    74
//!@SYMREQ: 7951
sl@0
    75
//!@SYMPREQ: 1540
sl@0
    76
//!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to play audio
sl@0
    77
//!@SYMTestPriority: Normal
sl@0
    78
//!@SYMTestType: Alternative Usecase
sl@0
    79
//!@SYMTestActions: 
sl@0
    80
//1. Create and initialise DevSound instance to play tones.
sl@0
    81
//2. After InitializeComplete() callback is received, initialise DevSound to play audio.
sl@0
    82
//!@SYMTestExpectedResults: 
sl@0
    83
//DevSound instance was created and initialised to play audio.
sl@0
    84
//InitializeComplete(KErrNone) callback was received.
sl@0
    85
PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to play audio
sl@0
    86
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0004, c:\mm_a3f_devsound_init.ini
sl@0
    87
TEST_COMPLETE
sl@0
    88
sl@0
    89
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0005
sl@0
    90
//!@SYMREQ: 7951
sl@0
    91
//!@SYMPREQ: 1540
sl@0
    92
//!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to record audio
sl@0
    93
//!@SYMTestPriority: Normal
sl@0
    94
//!@SYMTestType: Alternative Usecase
sl@0
    95
//!@SYMTestActions: 
sl@0
    96
//1. Create and initialize DevSound instance to play tones.
sl@0
    97
//2. After InitializeComplete() callback is received, initialise DevSound to record audio.
sl@0
    98
//!@SYMTestExpectedResults: 
sl@0
    99
//DevSound instance was created and initialised to record audio.
sl@0
   100
//InitializeComplete(KErrNone) callback was received.
sl@0
   101
PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to record audio
sl@0
   102
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0005, c:\mm_a3f_devsound_init.ini
sl@0
   103
TEST_COMPLETE
sl@0
   104
sl@0
   105
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0006
sl@0
   106
//!@SYMREQ: 7951
sl@0
   107
//!@SYMPREQ: 1540
sl@0
   108
//!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones using aTFourCC parameter
sl@0
   109
//!@SYMTestPriority: Normal
sl@0
   110
//!@SYMTestType: Exception Usecase
sl@0
   111
//!@SYMTestActions: 
sl@0
   112
//1. Create a DevSound instance.
sl@0
   113
//2. Initialise DevSound to play tones using InitializeL() with aTFourCC parameter.
sl@0
   114
//!@SYMTestExpectedResults: 
sl@0
   115
//DevSound instance was created.
sl@0
   116
//InitializeL() leaves with a KErrNotSupported.
sl@0
   117
PRINT Play tone initialisation - Call InitializeL() to play tones using aTFourCC parameter
sl@0
   118
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0006, c:\mm_a3f_devsound_init.ini
sl@0
   119
TEST_COMPLETE
sl@0
   120
sl@0
   121
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0007
sl@0
   122
//!@SYMREQ: 7951
sl@0
   123
//!@SYMPREQ: 1540
sl@0
   124
//!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() using a TMMFState parameter different 
sl@0
   125
//to EMMFStateTonePlaying, EMMFStatePlaying or EMMFStateRecording.
sl@0
   126
//!@SYMTestPriority: Normal
sl@0
   127
//!@SYMTestType: Exception Usecase
sl@0
   128
//!@SYMTestActions: 
sl@0
   129
//1. Create a DevSound instance.
sl@0
   130
//2. Initialise DevSound using a mode parameter different to EMMFStateTonePlaying, EMMFStatePlaying or 
sl@0
   131
//EMMFStateRecording. Use ""EMMFStateConverting"" mode in initialisation.
sl@0
   132
//!@SYMTestExpectedResults: 
sl@0
   133
//DevSound instance was created.
sl@0
   134
//InitializeL() leaves with a KErrNotSupported.
sl@0
   135
PRINT Play tone initialisation - Call InitializeL() using a TMMFState parameter different to EMMFStateTonePlaying, EMMFStatePlaying or EMMFStateRecording.
sl@0
   136
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0007, c:\mm_a3f_devsound_init.ini
sl@0
   137
TEST_COMPLETE
sl@0
   138
sl@0
   139
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0008
sl@0
   140
//!@SYMREQ: 7951
sl@0
   141
//!@SYMPREQ: 1540
sl@0
   142
//!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio
sl@0
   143
//!@SYMTestPriority: Normal
sl@0
   144
//!@SYMTestType: Normal Usecase
sl@0
   145
//!@SYMTestActions: 
sl@0
   146
//1. Create and initialise DevSound instance to play audio.
sl@0
   147
//1.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   148
//!@SYMTestExpectedResults: 
sl@0
   149
//DevSound instance was created and initialised to play audio.
sl@0
   150
//InitializeComplete(KErrNone) callback was received.
sl@0
   151
PRINT Play audio initialisation - Call InitializeL() to play audio
sl@0
   152
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0008, c:\mm_a3f_devsound_init.ini
sl@0
   153
TEST_COMPLETE
sl@0
   154
sl@0
   155
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0009
sl@0
   156
//!@SYMREQ: 7951
sl@0
   157
//!@SYMPREQ: 1540
sl@0
   158
//!@SYMTestCaseDesc: Play audio initialisation - Call CancelInitialize() to abort initialisation 
sl@0
   159
//for playing audio
sl@0
   160
//!@SYMTestPriority: Normal
sl@0
   161
//!@SYMTestType: Alternative Usecase
sl@0
   162
//!@SYMTestActions: 
sl@0
   163
//1. Create a Devsound instance.
sl@0
   164
//2. Create a CPeriodic instance.
sl@0
   165
//3. Initialise a DevSound instance to play audio.
sl@0
   166
//4. Start CPeriodic to trigger timer events every 2 seconds.
sl@0
   167
//5. Call CancelInitialize() before receiving InitializeComplete() callback .
sl@0
   168
//6. On timer event, verify that InitializeComplete() callback was not received.
sl@0
   169
//!@SYMTestExpectedResults: 
sl@0
   170
//CancelInitialize() returns KErrNone.
sl@0
   171
//InitializeComplete(KErrNone) callback shall be not received.
sl@0
   172
PRINT Play audio initialisation - Call CancelInitialize() to abort initialisation for playing audio
sl@0
   173
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0009, c:\mm_a3f_devsound_init.ini
sl@0
   174
TEST_COMPLETE
sl@0
   175
sl@0
   176
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0010
sl@0
   177
//!@SYMREQ: 7951
sl@0
   178
//!@SYMPREQ: 1540
sl@0
   179
//!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to play tones
sl@0
   180
//!@SYMTestPriority: Normal
sl@0
   181
//!@SYMTestType: Alternative Usecase
sl@0
   182
//!@SYMTestActions: 
sl@0
   183
//1. Create and Initialise a DevSound instance to play audio.
sl@0
   184
//1.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   185
//2. After InitializeComplete() callback is received initialise DevSound to play tones.
sl@0
   186
//!@SYMTestExpectedResults: 
sl@0
   187
//DevSound instance was created and initialised to play tones.
sl@0
   188
//InitializeComplete(KErrNone) callback was received.
sl@0
   189
PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to play tones
sl@0
   190
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0010, c:\mm_a3f_devsound_init.ini
sl@0
   191
TEST_COMPLETE
sl@0
   192
sl@0
   193
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0011
sl@0
   194
//!@SYMREQ: 7951
sl@0
   195
//!@SYMPREQ: 1540
sl@0
   196
//!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to play audio
sl@0
   197
//!@SYMTestPriority: Normal
sl@0
   198
//!@SYMTestType: Alternative Usecase
sl@0
   199
//!@SYMTestActions: 
sl@0
   200
//1. Create and Initialise a DevSound instance to play audio.
sl@0
   201
//1.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   202
//2. After InitializeComplete() callback is received initialise DevSound to play audio.
sl@0
   203
//!@SYMTestExpectedResults: 
sl@0
   204
//DevSound instance was created and initialised to play audio.
sl@0
   205
//InitializeComplete(KErrNone) callback was received.
sl@0
   206
PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to play audio
sl@0
   207
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0011, c:\mm_a3f_devsound_init.ini
sl@0
   208
TEST_COMPLETE
sl@0
   209
sl@0
   210
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0012
sl@0
   211
//!@SYMREQ: 7951
sl@0
   212
//!@SYMPREQ: 1540
sl@0
   213
//!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to record audio
sl@0
   214
//!@SYMTestPriority: Normal
sl@0
   215
//!@SYMTestType: Alternative Usecase
sl@0
   216
//!@SYMTestActions: 
sl@0
   217
//1. Create and Initialize a DevSound instance to play audio.
sl@0
   218
//1.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   219
//2. After InitializeComplete() callback is received, initialise DevSound to record audio.
sl@0
   220
//!@SYMTestExpectedResults: 
sl@0
   221
//DevSound instance was created and initialised to record audio.
sl@0
   222
//InitializeComplete(KErrNone) callback was received.
sl@0
   223
PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to record audio
sl@0
   224
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0012, c:\mm_a3f_devsound_init.ini
sl@0
   225
TEST_COMPLETE
sl@0
   226
sl@0
   227
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0013
sl@0
   228
//!@SYMREQ: 7951
sl@0
   229
//!@SYMPREQ: 1540
sl@0
   230
//!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio using an unsupported TFourCC codec parameter
sl@0
   231
//!@SYMTestPriority: Normal
sl@0
   232
//!@SYMTestType: Exception Usecase
sl@0
   233
//!@SYMTestActions: 
sl@0
   234
//1. Create a DevSound instance.
sl@0
   235
//2. Call InitializeL() to initialise DevSound to play audio, using an unsupported codec.
sl@0
   236
//!@SYMTestExpectedResults: 
sl@0
   237
//DevSound instance was created and initialised to play audio
sl@0
   238
//InitializeComplete(KErrNone) callback was received.
sl@0
   239
PRINT Play audio initialisation - Call InitializeL() to play audio using an unsupported TFourCC codec parameter
sl@0
   240
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0013, c:\mm_a3f_devsound_init.ini
sl@0
   241
TEST_COMPLETE
sl@0
   242
sl@0
   243
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0014
sl@0
   244
//!@SYMREQ: 7951
sl@0
   245
//!@SYMPREQ: 1540
sl@0
   246
//!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio
sl@0
   247
//!@SYMTestPriority: Normal
sl@0
   248
//!@SYMTestType: Normal Usecase
sl@0
   249
//!@SYMTestActions: 
sl@0
   250
//1. Create and initialise DevSound instance to record audio.
sl@0
   251
//1.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   252
//!@SYMTestExpectedResults: 
sl@0
   253
//InitializeComplete(KErrNone) callback was received.
sl@0
   254
PRINT Record audio initialisation - Call InitializeL() to record audio
sl@0
   255
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0014, c:\mm_a3f_devsound_init.ini
sl@0
   256
TEST_COMPLETE
sl@0
   257
sl@0
   258
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0015
sl@0
   259
//!@SYMREQ: 7951
sl@0
   260
//!@SYMPREQ: 1540
sl@0
   261
//!@SYMTestCaseDesc: Record audio initialisation - Call CancelInitialize() to abort initialisation for recording audio
sl@0
   262
//!@SYMTestPriority: Normal
sl@0
   263
//!@SYMTestType: Alternative Usecase
sl@0
   264
//!@SYMTestActions: 
sl@0
   265
//1. Create a DevSound instance.
sl@0
   266
//2. Initialise DevSound to record audio.
sl@0
   267
//3. Call CancelInitialize() before InitializeComplete() callback is received.
sl@0
   268
//4. Wait 5 second to verify that InitializeComplete() callback is not received.
sl@0
   269
//!@SYMTestExpectedResults: 
sl@0
   270
//CancelInitialize() returns KErrNone.
sl@0
   271
//InitializeComplete(KErrNone) callback shall be not received.
sl@0
   272
PRINT Record audio initialisation - Call CancelInitialize() to abort initialisation for recording audio
sl@0
   273
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0015, c:\mm_a3f_devsound_init.ini
sl@0
   274
TEST_COMPLETE
sl@0
   275
sl@0
   276
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0016
sl@0
   277
//!@SYMREQ: 7951
sl@0
   278
//!@SYMPREQ: 1540
sl@0
   279
//!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to play tones
sl@0
   280
//!@SYMTestPriority: Normal
sl@0
   281
//!@SYMTestType: Alternative Usecase
sl@0
   282
//!@SYMTestActions: 
sl@0
   283
//1. Create and initialise DevSound instance to record audio.
sl@0
   284
//2. After InitializeComplete() callback is received, initialise DevSound to play tones.
sl@0
   285
//!@SYMTestExpectedResults: 
sl@0
   286
//DevSound instance was created and initialised to play tones.
sl@0
   287
//InitializeComplete(KErrNone) callback was received.
sl@0
   288
PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to play tones
sl@0
   289
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0016, c:\mm_a3f_devsound_init.ini
sl@0
   290
TEST_COMPLETE
sl@0
   291
sl@0
   292
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0017
sl@0
   293
//!@SYMREQ: 7951
sl@0
   294
//!@SYMPREQ: 1540
sl@0
   295
//!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to play audio
sl@0
   296
//!@SYMTestPriority: Normal
sl@0
   297
//!@SYMTestType: Alternative Usecase
sl@0
   298
//!@SYMTestActions: 
sl@0
   299
//1. Create and initialize DevSound instance to record audio.
sl@0
   300
//2. After InitializeComplete() callback is received, initialise DevSound to play audio.
sl@0
   301
//!@SYMTestExpectedResults: 
sl@0
   302
//DevSound instance was created and initialised to play audio.
sl@0
   303
//InitializeComplete(KErrNone) callback was received.
sl@0
   304
PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to play audio
sl@0
   305
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0017, c:\mm_a3f_devsound_init.ini
sl@0
   306
TEST_COMPLETE
sl@0
   307
sl@0
   308
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0018
sl@0
   309
//!@SYMREQ: 7951
sl@0
   310
//!@SYMPREQ: 1540
sl@0
   311
//!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to record audio
sl@0
   312
//!@SYMTestPriority: Normal
sl@0
   313
//!@SYMTestType: Alternative Usecase
sl@0
   314
//!@SYMTestActions: 
sl@0
   315
//1. Create and initialize DevSound instance to record audio.
sl@0
   316
//2. After InitializeComplete() callback is received, initialise DevSound to record audio.
sl@0
   317
//!@SYMTestExpectedResults: 
sl@0
   318
//DevSound instance was created and initialised to record audio.
sl@0
   319
//InitializeComplete(KErrNone) callback was received.
sl@0
   320
PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to record audio
sl@0
   321
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0018, c:\mm_a3f_devsound_init.ini
sl@0
   322
TEST_COMPLETE
sl@0
   323
sl@0
   324
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0019
sl@0
   325
//!@SYMREQ: 7951
sl@0
   326
//!@SYMPREQ: 1540
sl@0
   327
//!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio (no format specification is presented)
sl@0
   328
//!@SYMTestPriority: Normal
sl@0
   329
//!@SYMTestType: Normal Usecase
sl@0
   330
//!@SYMTestActions: 
sl@0
   331
//1. Create and initialise DevSound instance to to record audio (default PCM16 codec used).
sl@0
   332
//1.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   333
//!@SYMTestExpectedResults: 
sl@0
   334
//InitializeComplete(KErrNone) callback was received.
sl@0
   335
PRINT Record audio initialisation - Call InitializeL() to record audio (no format specification is presented)
sl@0
   336
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0019, c:\mm_a3f_devsound_init.ini
sl@0
   337
TEST_COMPLETE
sl@0
   338
sl@0
   339
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0020
sl@0
   340
//!@SYMREQ: 7951
sl@0
   341
//!@SYMPREQ: 1540
sl@0
   342
//!@SYMTestCaseDesc: InitializeL() not called - PlayData() when InitializeL() was not called
sl@0
   343
//!@SYMTestPriority: Normal
sl@0
   344
//!@SYMTestType: Normal Usecase
sl@0
   345
//!@SYMTestActions: 
sl@0
   346
//1. Create a DevSound instance.
sl@0
   347
//2. Call PlayData() method
sl@0
   348
//!@SYMTestExpectedResults: 
sl@0
   349
//DevSound client may panic.
sl@0
   350
PRINT InitializeL() not called - PlayData() when InitializeL() was not called
sl@0
   351
RUN_PANIC_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0020, MmfDevSoundProxy 0, c:\mm_a3f_devsound_init.ini
sl@0
   352
TEST_COMPLETE
sl@0
   353
sl@0
   354
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0021
sl@0
   355
//!@SYMREQ: 7951
sl@0
   356
//!@SYMPREQ: 1540
sl@0
   357
//!@SYMTestCaseDesc: InitializeL() not called - Call PlayDTMFStringL() when InitializeL() was not called
sl@0
   358
//!@SYMTestPriority: Normal
sl@0
   359
//!@SYMTestType: Normal Usecase
sl@0
   360
//!@SYMTestActions: 
sl@0
   361
//1. Create a DevSound instance.
sl@0
   362
//2. Call PlayDTMFStringL().
sl@0
   363
//!@SYMTestExpectedResults: 
sl@0
   364
//PlayDTMFStringL() leaves with a KErrNotReady error
sl@0
   365
PRINT InitializeL() not called - Call PlayDTMFStringL() when InitializeL() was not called
sl@0
   366
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0021, c:\mm_a3f_devsound_init.ini
sl@0
   367
TEST_COMPLETE
sl@0
   368
sl@0
   369
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0022
sl@0
   370
//!@SYMREQ: 7951
sl@0
   371
//!@SYMPREQ: 1540
sl@0
   372
//!@SYMTestCaseDesc: InitializeL() not called - Call PlayDualToneL() when InitializeL() was not called
sl@0
   373
//!@SYMTestPriority: Normal
sl@0
   374
//!@SYMTestType: Normal Usecase
sl@0
   375
//!@SYMTestActions: 
sl@0
   376
//1. Create a DevSound instance.
sl@0
   377
//2. Call PlayDualToneL().
sl@0
   378
//!@SYMTestExpectedResults: 
sl@0
   379
//PlayDualToneL() leaves with a KErrNotReady error
sl@0
   380
PRINT InitializeL() not called - Call PlayDualToneL() when InitializeL() was not called
sl@0
   381
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0022, c:\mm_a3f_devsound_init.ini
sl@0
   382
TEST_COMPLETE
sl@0
   383
sl@0
   384
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0023
sl@0
   385
//!@SYMREQ: 7951
sl@0
   386
//!@SYMPREQ: 1540
sl@0
   387
//!@SYMTestCaseDesc: InitializeL() not called - Call PlayFixedSequenceL() when InitializeL() was not called
sl@0
   388
//!@SYMTestPriority: Normal
sl@0
   389
//!@SYMTestType: Normal Usecase
sl@0
   390
//!@SYMTestActions: 
sl@0
   391
//1. Create a DevSound instance.
sl@0
   392
//2. Call PlayFixedSequenceL().
sl@0
   393
//!@SYMTestExpectedResults: 
sl@0
   394
//PlayFixedSequenceL() leaves with a KErrNotReady error
sl@0
   395
PRINT InitializeL() not called - Call PlayFixedSequenceL() when InitializeL() was not called
sl@0
   396
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0023, c:\mm_a3f_devsound_init.ini
sl@0
   397
TEST_COMPLETE
sl@0
   398
sl@0
   399
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0024
sl@0
   400
//!@SYMREQ: 7951
sl@0
   401
//!@SYMPREQ: 1540
sl@0
   402
//!@SYMTestCaseDesc: InitializeL() not called - Call PlayInitL() when InitializeL() was not called
sl@0
   403
//!@SYMTestPriority: Normal
sl@0
   404
//!@SYMTestType: Normal Usecase
sl@0
   405
//!@SYMTestActions: 
sl@0
   406
//1. Create a DevSound instance.
sl@0
   407
//2. Call PlayInitL().
sl@0
   408
//!@SYMTestExpectedResults: 
sl@0
   409
//PlayInitL() leaves with a KErrNotReady error
sl@0
   410
PRINT InitializeL() not called - Call PlayInitL() when InitializeL() was not called
sl@0
   411
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0024, c:\mm_a3f_devsound_init.ini
sl@0
   412
TEST_COMPLETE
sl@0
   413
sl@0
   414
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0025
sl@0
   415
//!@SYMREQ: 7951
sl@0
   416
//!@SYMPREQ: 1540
sl@0
   417
//!@SYMTestCaseDesc: InitializeL() not called - Call PlayToneL() when InitializeL() was not called
sl@0
   418
//!@SYMTestPriority: Normal
sl@0
   419
//!@SYMTestType: Normal Usecase
sl@0
   420
//!@SYMTestActions: 
sl@0
   421
//1. Create a DevSound instance.
sl@0
   422
//2. Call PlayToneL().
sl@0
   423
//!@SYMTestExpectedResults: 
sl@0
   424
//PlayToneL() leaves with a KErrNotReady error
sl@0
   425
PRINT InitializeL() not called - Call PlayToneL() when InitializeL() was not called
sl@0
   426
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0025, c:\mm_a3f_devsound_init.ini
sl@0
   427
TEST_COMPLETE
sl@0
   428
sl@0
   429
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0026
sl@0
   430
//!@SYMREQ: 7951
sl@0
   431
//!@SYMPREQ: 1540
sl@0
   432
//!@SYMTestCaseDesc: InitializeL() not called - Call PlayToneL() when InitializeL() was not called
sl@0
   433
//!@SYMTestPriority: Normal
sl@0
   434
//!@SYMTestType: Normal Usecase
sl@0
   435
//!@SYMTestActions: 
sl@0
   436
//1. Create a DevSound instance.
sl@0
   437
//2. Call PlayToneSequenceL().
sl@0
   438
//!@SYMTestExpectedResults: 
sl@0
   439
//PlayToneSequenceL() leaves with a KErrNotReady error
sl@0
   440
PRINT InitializeL() not called - Call PlayToneL() when InitializeL() was not called
sl@0
   441
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0026, c:\mm_a3f_devsound_init.ini
sl@0
   442
TEST_COMPLETE
sl@0
   443
sl@0
   444
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0027
sl@0
   445
//!@SYMREQ: 7951
sl@0
   446
//!@SYMPREQ: 1540
sl@0
   447
//!@SYMTestCaseDesc: InitializeL() not called - Call RecordData() when InitializeL() was not called
sl@0
   448
//!@SYMTestPriority: Normal
sl@0
   449
//!@SYMTestType: Normal Usecase
sl@0
   450
//!@SYMTestActions: 
sl@0
   451
//1. Create a DevSound instance.
sl@0
   452
//2. Call RecordData().
sl@0
   453
//!@SYMTestExpectedResults: 
sl@0
   454
//DevSound client may panic.
sl@0
   455
PRINT InitializeL() not called - Call RecordData() when InitializeL() was not called
sl@0
   456
RUN_PANIC_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0027, MmfDevSoundProxy 1, c:\mm_a3f_devsound_init.ini
sl@0
   457
TEST_COMPLETE
sl@0
   458
sl@0
   459
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0028
sl@0
   460
//!@SYMREQ: 7951
sl@0
   461
//!@SYMPREQ: 1540
sl@0
   462
//!@SYMTestCaseDesc: InitializeL() not called - Call RecordInitL when InitializeL() was not called
sl@0
   463
//!@SYMTestPriority: Normal
sl@0
   464
//!@SYMTestType: Normal Usecase
sl@0
   465
//!@SYMTestActions: 
sl@0
   466
//1. Create a DevSound instance.
sl@0
   467
//2. Call RecordInitL().
sl@0
   468
//!@SYMTestExpectedResults: 
sl@0
   469
//RecordInitL() leaves with a KErrNotReady error
sl@0
   470
PRINT InitializeL() not called - Call RecordInitL when InitializeL() was not called
sl@0
   471
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0028, c:\mm_a3f_devsound_init.ini
sl@0
   472
TEST_COMPLETE
sl@0
   473
sl@0
   474
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0029
sl@0
   475
//!@SYMREQ: 7951
sl@0
   476
//!@SYMPREQ: 1540
sl@0
   477
//!@SYMTestCaseDesc: InitializeL() to play tones called more than once
sl@0
   478
//!@SYMTestPriority: Normal
sl@0
   479
//!@SYMTestType: Normal Usecase
sl@0
   480
//!@SYMTestActions: 
sl@0
   481
//1. Create and initialise a DevSound instance to play tones.
sl@0
   482
//2. Call again InitializeL() to initialise DevSound to play tones before the first InitializeComplete() callback is received.
sl@0
   483
//!@SYMTestExpectedResults: 
sl@0
   484
//DevSound instance was created and initialised to play tones
sl@0
   485
//InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady.
sl@0
   486
PRINT InitializeL() to play tones called more than once
sl@0
   487
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0029, c:\mm_a3f_devsound_init.ini
sl@0
   488
TEST_COMPLETE
sl@0
   489
sl@0
   490
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0030
sl@0
   491
//!@SYMREQ: 7951
sl@0
   492
//!@SYMPREQ: 1540
sl@0
   493
//!@SYMTestCaseDesc: InitializeL() to play audio called more than once
sl@0
   494
//!@SYMTestPriority: Normal
sl@0
   495
//!@SYMTestType: Normal Usecase
sl@0
   496
//!@SYMTestActions: 
sl@0
   497
//1. Create and initialise a DevSound instance to play audio.
sl@0
   498
//2. Call again InitializeL() to initialise DevSound to play audio before the first InitializeComplete() callback is received.
sl@0
   499
//!@SYMTestExpectedResults: 
sl@0
   500
//DevSound instance was created and initialised to play audio
sl@0
   501
//InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady.
sl@0
   502
PRINT InitializeL() to play audio called more than once
sl@0
   503
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0030, c:\mm_a3f_devsound_init.ini
sl@0
   504
TEST_COMPLETE
sl@0
   505
sl@0
   506
sl@0
   507
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0031
sl@0
   508
//!@SYMREQ: 7951
sl@0
   509
//!@SYMPREQ: 1540
sl@0
   510
//!@SYMTestCaseDesc: InitializeL() to record audio called more than once
sl@0
   511
//!@SYMTestPriority: Normal
sl@0
   512
//!@SYMTestType: Normal Usecase
sl@0
   513
//!@SYMTestActions: 
sl@0
   514
//1. Create and initialise a DevSound instance to record audio.
sl@0
   515
//2. Call again InitializeL() to initialise DevSound to record audio before receiving the first InitializeComplete() callback.
sl@0
   516
//!@SYMTestExpectedResults: 
sl@0
   517
//DevSound instance was created and initialised to record audio
sl@0
   518
//InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady.
sl@0
   519
PRINT InitializeL() to record audio called more than once
sl@0
   520
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0031, c:\mm_a3f_devsound_init.ini
sl@0
   521
TEST_COMPLETE
sl@0
   522
sl@0
   523
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0032
sl@0
   524
//!@SYMREQ: 7951
sl@0
   525
//!@SYMPREQ: 1540
sl@0
   526
//!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Tone-The first InitializeL() leaves, then the second InitializeL() is handled normally.
sl@0
   527
//!@SYMTestPriority: 
sl@0
   528
//!@SYMTestType: Alternative Usecase
sl@0
   529
//!@SYMTestActions: 
sl@0
   530
//1. Create a DevSound instance.
sl@0
   531
//2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code).
sl@0
   532
//3. Create and Initialise DevSound instance to play tones.
sl@0
   533
//3.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   534
//!@SYMTestExpectedResults: 
sl@0
   535
//InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone.
sl@0
   536
//DevSound instance was created and initialised to record audio.
sl@0
   537
PRINT InitializeL() to record audio called more than once- Tone-The first InitializeL() leaves, then the second InitializeL() is handled normally.
sl@0
   538
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0032, c:\mm_a3f_devsound_init.ini
sl@0
   539
TEST_COMPLETE
sl@0
   540
sl@0
   541
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0033
sl@0
   542
//!@SYMREQ: 7951
sl@0
   543
//!@SYMPREQ: 1540
sl@0
   544
//!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Play-The first InitializeL() leaves, then the second InitializeL() is handled normally.
sl@0
   545
//!@SYMTestPriority: 
sl@0
   546
//!@SYMTestType: Alternative Usecase
sl@0
   547
//!@SYMTestActions: 
sl@0
   548
//1. Create a DevSound instance.
sl@0
   549
//2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code).
sl@0
   550
//3. Create and Initialise DevSound instance to play audio.
sl@0
   551
//3.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   552
//!@SYMTestExpectedResults: 
sl@0
   553
InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone.
sl@0
   554
DevSound instance was created and initialised to record audio.
sl@0
   555
PRINT InitializeL() to record audio called more than once- Play-The first InitializeL() leaves, then the second InitializeL() is handled normally.
sl@0
   556
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0033, c:\mm_a3f_devsound_init.ini
sl@0
   557
TEST_COMPLETE
sl@0
   558
sl@0
   559
//!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0034
sl@0
   560
//!@SYMREQ: 7951
sl@0
   561
//!@SYMPREQ: 1540
sl@0
   562
//!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Record-The first InitializeL() leaves, then the second InitializeL() is handled normally.
sl@0
   563
//!@SYMTestPriority: 
sl@0
   564
//!@SYMTestType: Alternative Usecase
sl@0
   565
//!@SYMTestActions: 
sl@0
   566
//1. Create a DevSound instance.
sl@0
   567
//2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code).
sl@0
   568
//3. Create and Initialise DevSound instance to record audio.
sl@0
   569
//3.1 Wait for InitializeComplete(KErrNone) callback response.
sl@0
   570
//!@SYMTestExpectedResults: 
sl@0
   571
//InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone.
sl@0
   572
//DevSound instance was created and initialised to record audio.
sl@0
   573
PRINT InitializeL() to record audio called more than once- Record-The first InitializeL() leaves, then the second InitializeL() is handled normally.
sl@0
   574
RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0034, c:\mm_a3f_devsound_init.ini
sl@0
   575
TEST_COMPLETE
sl@0
   576
sl@0
   577
sl@0
   578
sl@0
   579
sl@0
   580
sl@0
   581
sl@0
   582
sl@0
   583
sl@0
   584
sl@0
   585
sl@0
   586
sl@0
   587
sl@0
   588
sl@0
   589
sl@0
   590
sl@0
   591
sl@0
   592
sl@0
   593