os/boardsupport/haitest/bspsvs/suite/bsp/digitiser/scripts/base-bsp-digitiser-driver-automated.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
//! @file
sl@0
    17
//! @SYMTestSuiteName		base-bsp-digitiser-driver-automated
sl@0
    18
//! @SYMScriptTestEnvironment	This test script requires a base port ROM
sl@0
    19
sl@0
    20
/////////////////////////////////////////////////////////////////////
sl@0
    21
// base-bsp-digitiser-driver-automated.script
sl@0
    22
//
sl@0
    23
// Tests the Digitiser through the HAL::Set(TAttribute, TInt) and HAL:Get() methods with the attributes in 
sl@0
    24
// EHalGroupDigitiser, EHalGroupSound and EHalGroupPower  HAL groups. 
sl@0
    25
//
sl@0
    26
// The tests are automated. 
sl@0
    27
/////////////////////////////////////////////////////////////////////
sl@0
    28
sl@0
    29
LOAD_SUITE	T_Digitiser
sl@0
    30
sl@0
    31
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0001
sl@0
    32
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0001
sl@0
    33
//! @SYMAPI			HAL::Get(EPenState, TInt{ref});  
sl@0
    34
//!                             TDigitiserHalFunction::EDigitiserHalXYState
sl@0
    35
//! @SYMAuthor			Rehana Anwar
sl@0
    36
//! @SYMCreationDate		03/04/2008
sl@0
    37
//! @SYMTestCaseDesc		Pen State Test 
sl@0
    38
//!                             Confirm that the Pen State for the digitiser is enabled. 
sl@0
    39
//!				Uses API elements: HAL::Get, EDigitiserHalXYState
sl@0
    40
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
    41
//!                             2. Get the current EPenState and validate that it is enabled (value is 1), 
sl@0
    42
//!                                using HAL::Get
sl@0
    43
//!				3. Destroy the HAL Handle object.
sl@0
    44
//! @SYMTestStatus		Implemented
sl@0
    45
//! @SYMTestPriority		High
sl@0
    46
//! @SYMTestExpectedResults  	Digitiser State (touch Screen state) is enabled 
sl@0
    47
//! @SYMTestType		CIT
sl@0
    48
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
    49
		CREATE_OBJECT	HalData         digitiser1
sl@0
    50
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0001-GetCurrentPenState
sl@0
    51
        END_TEST_BLOCK
sl@0
    52
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0001
sl@0
    53
sl@0
    54
sl@0
    55
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0002
sl@0
    56
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0002
sl@0
    57
//! @SYMAPI			Hal::Set(EPenState, TInt);    
sl@0
    58
//!                             TDigitiserHalFunction::EDigitiserHalXYState
sl@0
    59
//! @SYMAuthor			Rehana Anwar
sl@0
    60
//! @SYMCreationDate		03/04/2008
sl@0
    61
//! @SYMTestCaseDesc		Pen State Test 
sl@0
    62
//!                             Disable the the Pen State for the digitiser. 
sl@0
    63
//!				Uses API elements: HAL::Set, EDigitiserHalXYState
sl@0
    64
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
    65
//!                             2. Disable the EPenState (value is 0) using HAL:Set.
sl@0
    66
//!				3. Get EPenState using HAL::Get, and validate that it is disabled (value is 0).
sl@0
    67
//!				4. Destroy the HAL Handle object.
sl@0
    68
//! @SYMTestStatus		Implemented
sl@0
    69
//! @SYMTestPriority		High
sl@0
    70
//! @SYMTestExpectedResults  	Digitiser State (touch Screen state) is disabled.
sl@0
    71
//! @SYMTestType		CIT
sl@0
    72
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
    73
		CREATE_OBJECT	HalData         digitiser1
sl@0
    74
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0002-PenState
sl@0
    75
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0002-PenState
sl@0
    76
        END_TEST_BLOCK
sl@0
    77
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0002	
sl@0
    78
sl@0
    79
sl@0
    80
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0003
sl@0
    81
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0003
sl@0
    82
//! @SYMAPI			HAL::Set(EPenState, TInt);    
sl@0
    83
//!                             HAL::Get(EPenState, TInt{ref});
sl@0
    84
//!                             TDigitiserHalFunction::EDigitiserHalXYState
sl@0
    85
//! @SYMAuthor			Rehana Anwar
sl@0
    86
//! @SYMCreationDate		03/04/2008
sl@0
    87
//! @SYMTestCaseDesc		Pen State Test 
sl@0
    88
//!                             Disable the the Pen State for the digitiser. 
sl@0
    89
//!				Uses API elements: HAL::Set, EDigitiserHalXYState
sl@0
    90
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
    91
//!                             2. Enable the EPenState (value is 1) using HAL:Set.
sl@0
    92
//!				3. Get EPenState using HAL::Get, and validate that it is enabled (value is 1).
sl@0
    93
//!				4. Destroy the HAL Handle object.
sl@0
    94
//! @SYMTestStatus		Implemented
sl@0
    95
//! @SYMTestPriority		High
sl@0
    96
//! @SYMTestExpectedResults  	Digitiser State (touch Screen state) is enabled 
sl@0
    97
//! @SYMTestType		CIT
sl@0
    98
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
    99
		CREATE_OBJECT	HalData         digitiser1
sl@0
   100
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0003-PenState
sl@0
   101
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0003-PenState
sl@0
   102
        END_TEST_BLOCK
sl@0
   103
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0003	
sl@0
   104
sl@0
   105
sl@0
   106
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004
sl@0
   107
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004
sl@0
   108
//! @SYMAPI			HAL::Set(EPenState, TInt);
sl@0
   109
//!                             HAL::Get(EPenState, TInt{ref}); 
sl@0
   110
//!                             TDigitiserHalFunction::EDigitiserHalXYState
sl@0
   111
//! @SYMAuthor			Rehana Anwar
sl@0
   112
//! @SYMCreationDate		03/04/2008
sl@0
   113
//! @SYMTestCaseDesc		Pen State Test 
sl@0
   114
//!                             Confirm that the Pen State for the digitiser is enabled. 
sl@0
   115
//!                             Disable the the Pen State for the digitiser.
sl@0
   116
//!                             Validate the Pen State of digitiser is disabled 
sl@0
   117
//!                             Restore the Pen State to original state (enabled)
sl@0
   118
//!                             Validate that the Pen State is the original state. 
sl@0
   119
//!				Uses API elements: HAL::Set,HAL::Get, EDigitiserHalXYState
sl@0
   120
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   121
//!                             2. Get the current EPenState and validate that it is enabled (value is 1), 
sl@0
   122
//!                                using HAL::Get
sl@0
   123
//!				3. Disable the EPenState (value is 0) using HAL:Set.
sl@0
   124
//!				4. Get EPenState using HAL::Get, and validate that it is disabled (value is 0).
sl@0
   125
//!				5. Restore EPenState to enabled (value is 1) using HAL:Set.
sl@0
   126
//!				6. Get EPenState using HAL::Get, and validate that it is enabled (value is 1).
sl@0
   127
//!				7. Destroy the HAL Handle object.
sl@0
   128
//! @SYMTestStatus		Implemented
sl@0
   129
//! @SYMTestPriority		High
sl@0
   130
//! @SYMTestExpectedResults  	Digitiser State (touch Screen state) is enabled  
sl@0
   131
//! @SYMTestType		CIT
sl@0
   132
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   133
		CREATE_OBJECT	HalData         digitiser1
sl@0
   134
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004-GetCurrentPenState
sl@0
   135
                COMMAND		digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004-SetPenState
sl@0
   136
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004-GetPenState
sl@0
   137
                COMMAND		digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004-SetRestoredPenState
sl@0
   138
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004-GetRestoredPenState
sl@0
   139
        END_TEST_BLOCK
sl@0
   140
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0004	
sl@0
   141
sl@0
   142
sl@0
   143
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0005
sl@0
   144
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0005
sl@0
   145
//! @SYMAPI			HAL::Get(EPen, TInt{ref}); 
sl@0
   146
//!                             TDigitiserHalFunction::EDigitiserHalXYInfo
sl@0
   147
//! @SYMAuthor			Rehana Anwar
sl@0
   148
//! @SYMCreationDate		03/04/2008
sl@0
   149
//! @SYMTestCaseDesc		Pen Test
sl@0
   150
//!                             Retreive the digitiser for input state. 
sl@0
   151
//!				Uses API elements:HAL::Get, EDigitiserHalXYInfo
sl@0
   152
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   153
//!                             2. Get the current Pen and validate that it is enabled (value is 1), 
sl@0
   154
//!                                using HAL::Get
sl@0
   155
//!				3. Destroy the HAL Handle object.
sl@0
   156
//! @SYMTestStatus		Implemented
sl@0
   157
//! @SYMTestPriority		High
sl@0
   158
//! @SYMTestExpectedResults  	Digitiser (touch Screen) is enabled  for input
sl@0
   159
//! @SYMTestType		CIT
sl@0
   160
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   161
		CREATE_OBJECT	HalData         digitiser1
sl@0
   162
                COMMAND	        digitiser1      Get			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0005-GetPen                
sl@0
   163
	END_TEST_BLOCK
sl@0
   164
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0005	
sl@0
   165
sl@0
   166
sl@0
   167
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0006
sl@0
   168
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0006
sl@0
   169
//! @SYMAPI			HAL::Get(EPenX, TInt{ref}); 
sl@0
   170
//!                             TDigitiserHalFunction::EDigitiserHalXYInfo
sl@0
   171
//! @SYMAuthor			Rehana Anwar
sl@0
   172
//! @SYMCreationDate		03/04/2008
sl@0
   173
//! @SYMTestCaseDesc		PenX Test
sl@0
   174
//!                             Retrieve the pen/digitizer horizontal resolution, in pixels
sl@0
   175
//!                             and Validate that it  is as expected.
sl@0
   176
//!				Uses API elements:HAL::Get, EDigitiserHalXYInfo
sl@0
   177
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   178
//!                             2. Retrieve the pen/digitizer horizontal resolution, in pixels
sl@0
   179
//!                                using HAL::Get
sl@0
   180
//!				3. Destroy the HAL Handle object.
sl@0
   181
//! @SYMTestStatus		Implemented
sl@0
   182
//! @SYMTestPriority		High
sl@0
   183
//! @SYMTestExpectedResults  	Digitiser (touch Screen) horizontal screen resolution in pixels is as expected
sl@0
   184
//! @SYMTestType		CIT
sl@0
   185
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   186
		CREATE_OBJECT	HalData         digitiser1
sl@0
   187
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0006-GetPenX                
sl@0
   188
	END_TEST_BLOCK
sl@0
   189
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0006	
sl@0
   190
sl@0
   191
sl@0
   192
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0007
sl@0
   193
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0007
sl@0
   194
//! @SYMAPI			HAL::Get(EPenY, TInt{ref}); 
sl@0
   195
//!                             TDigitiserHalFunction::EDigitiserHalXYInfo
sl@0
   196
//! @SYMAuthor			Rehana Anwar
sl@0
   197
//! @SYMCreationDate		03/04/2008
sl@0
   198
//! @SYMTestCaseDesc		PenY Test
sl@0
   199
//!                             Retrieve the pen/digitizer vertical resolution, in pixels
sl@0
   200
//!                             and Validate that it is as expected.
sl@0
   201
//!				Uses API elements:HAL::Get, EDigitiserHalXYInfo
sl@0
   202
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   203
//!                             2. Retrieve the pen/digitizer vertical resolution, in pixels
sl@0
   204
//!                                using HAL::Get
sl@0
   205
//!				3. Destroy the HAL Handle object.
sl@0
   206
//! @SYMTestStatus		Implemented
sl@0
   207
//! @SYMTestPriority		High
sl@0
   208
//! @SYMTestExpectedResults  	Digitiser (touch Screen) vertical screen resolution in pixels is as expected
sl@0
   209
//! @SYMTestType		CIT
sl@0
   210
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   211
		CREATE_OBJECT	HalData         digitiser1
sl@0
   212
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0007-GetPenY                
sl@0
   213
	END_TEST_BLOCK
sl@0
   214
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0007	
sl@0
   215
sl@0
   216
sl@0
   217
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0008
sl@0
   218
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0008
sl@0
   219
//! @SYMAPI			HAL::Get(EPenClick, TInt{ref}); 
sl@0
   220
//!                             TSoundHalFunction::ESoundHalPointerClickEnabled
sl@0
   221
//! @SYMAuthor			Rehana Anwar
sl@0
   222
//! @SYMCreationDate		03/04/2008
sl@0
   223
//! @SYMTestCaseDesc		EPenClick Test
sl@0
   224
//!                             Confirm whether digitiser supports production of click sound via
sl@0
   225
//!                             retrieval of EPenClick.                          
sl@0
   226
//!				Uses API elements:HAL::Get, ESoundHalPointerClickEnabled
sl@0
   227
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   228
//!                             2. Retrieve the click sound for pen tap's in digitiser and validate that it is as expected.
sl@0
   229
//!                                using HAL::Get
sl@0
   230
//!				3. Destroy the HAL Handle object.
sl@0
   231
//! @SYMTestStatus		Implemented
sl@0
   232
//! @SYMTestPriority		High
sl@0
   233
//! @SYMTestExpectedResults  	Digitiser (touch Screen) click sound for pen is as expected (disabled).
sl@0
   234
//!                             The device cannot produce a click sound.
sl@0
   235
//! @SYMTestType		CIT
sl@0
   236
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   237
		CREATE_OBJECT	HalData         digitiser1
sl@0
   238
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0008-PenClick               
sl@0
   239
	END_TEST_BLOCK
sl@0
   240
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0008
sl@0
   241
sl@0
   242
sl@0
   243
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0011
sl@0
   244
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0011
sl@0
   245
//! @SYMAPI			HAL::Get(EPenClickState, TInt{ref}); 
sl@0
   246
//!                             TSoundHalFunction::ESoundHalSetPointerClickEnabled;
sl@0
   247
//!                             TSoundHalFunction::ESoundHalPointerClickEnabled
sl@0
   248
//! @SYMAuthor			Rehana Anwar
sl@0
   249
//! @SYMCreationDate		03/04/2008
sl@0
   250
//! @SYMTestCaseDesc		EPenClickState Test
sl@0
   251
//!                             Retrieve click sound for pen tap's in digitiser and validate that it is disabled.                          
sl@0
   252
//!				Uses API elements:HAL::Get, ESoundHalPointerClickEnabled
sl@0
   253
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   254
//!                             2. Retrieve the click sound for pen tap's in digitiser and validate that it is as expected.
sl@0
   255
//!                                using HAL::Get
sl@0
   256
//!				3. Destroy the HAL Handle object.
sl@0
   257
//! @SYMTestStatus		Implemented
sl@0
   258
//! @SYMTestPriority		High
sl@0
   259
//! @SYMTestExpectedResults  	Digitiser (touch Screen) click sound for pen is as expected (disabled).
sl@0
   260
//! @SYMTestType		CIT
sl@0
   261
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   262
		CREATE_OBJECT	HalData         digitiser1
sl@0
   263
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0011-PenClickState               
sl@0
   264
	END_TEST_BLOCK
sl@0
   265
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0011
sl@0
   266
sl@0
   267
sl@0
   268
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0012
sl@0
   269
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0012
sl@0
   270
//! @SYMAPI			HAL::Set(EPenClickState, TInt);
sl@0
   271
//!                             HAL::Get(EPenClickState, TInt{ref}); 
sl@0
   272
//!                             TSoundHalFunction::ESoundHalSetPointerClickEnabled;
sl@0
   273
//!                             TSoundHalFunction::ESoundHalPointerClickEnabled
sl@0
   274
//! @SYMAuthor			Rehana Anwar
sl@0
   275
//! @SYMCreationDate		03/04/2008
sl@0
   276
//! @SYMTestCaseDesc		EPenClickState Test
sl@0
   277
//!                             Set the click state for pen tap's in digitiser to enabled.
sl@0
   278
//!                             Retrieve click state for pen tap's in digitiser and validate that it is enabled.                          
sl@0
   279
//!				Uses API elements:HAL::Get, ESoundHalPointerClickEnabled
sl@0
   280
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   281
//!                             2. Set the click sound for the pen taps digitiser to enabled using HAL::Set
sl@0
   282
//!                             3. Retrieve the click sound for pen tap's in digitiser and validate that it is as expected.
sl@0
   283
//!                                using HAL::Get
sl@0
   284
//!				4. Destroy the HAL Handle object.
sl@0
   285
//! @SYMTestStatus		Implemented
sl@0
   286
//! @SYMTestPriority		High
sl@0
   287
//! @SYMTestExpectedResults  	Digitiser (touch Screen) click sound for pen is as expected (enabled).
sl@0
   288
//! @SYMTestType		CIT
sl@0
   289
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   290
		CREATE_OBJECT	HalData         digitiser1
sl@0
   291
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0012-PenClickState 
sl@0
   292
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0012-PenClickState               
sl@0
   293
	END_TEST_BLOCK
sl@0
   294
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0012
sl@0
   295
sl@0
   296
sl@0
   297
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0013
sl@0
   298
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0013
sl@0
   299
//! @SYMAPI			HAL::Set(EPenClickState, TInt);
sl@0
   300
//!                             HAL::Get(EPenClickState, TInt{ref}); 
sl@0
   301
//!                             TSoundHalFunction::ESoundHalSetPointerClickEnabled;
sl@0
   302
//!                             TSoundHalFunction::ESoundHalPointerClickEnabled
sl@0
   303
//! @SYMAuthor			Rehana Anwar
sl@0
   304
//! @SYMCreationDate		03/04/2008
sl@0
   305
//! @SYMTestCaseDesc		EPenClickState Test
sl@0
   306
//!                             Retrieve click sound for pen tap's in digitiser and validate that it is disabled.                          
sl@0
   307
//!				Uses API elements:HAL::Get, ESoundHalPointerClickEnabled
sl@0
   308
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   309
//!                             2. Set the click sound for the pen taps digitiser to disabled using HAL::Set
sl@0
   310
//!                             3. Retrieve the click sound for pen tap's in digitiser and validate that it is as expected.
sl@0
   311
//!                                using HAL::Get
sl@0
   312
//!				4. Destroy the HAL Handle object.
sl@0
   313
//! @SYMTestStatus		Implemented
sl@0
   314
//! @SYMTestPriority		High
sl@0
   315
//! @SYMTestExpectedResults  	Digitiser (touch Screen) click sound for pen is as expected (disabled).
sl@0
   316
//! @SYMTestType		CIT
sl@0
   317
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   318
		CREATE_OBJECT	HalData          digitiser1
sl@0
   319
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0013-PenClickState 
sl@0
   320
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0013-PenClickState               
sl@0
   321
	END_TEST_BLOCK
sl@0
   322
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0013
sl@0
   323
sl@0
   324
sl@0
   325
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0014
sl@0
   326
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0014
sl@0
   327
//! @SYMAPI			HAL::Get(EPenClickVolumeMax, TInt{ref}); 
sl@0
   328
//!                             TSoundHalFunction::ESoundHalPointerClickVolumeMax
sl@0
   329
//! @SYMAuthor			Rehana Anwar
sl@0
   330
//! @SYMCreationDate		03/04/2008
sl@0
   331
//! @SYMTestCaseDesc		EPenClickVolumeMax Test
sl@0
   332
//!                             Retrieve the maximum value for the pen click volume level (EPenClickVolume).                          
sl@0
   333
//!				Uses API elements:HAL::Get, ESoundHalPointerClickVolumeMax
sl@0
   334
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   335
//!                             2. Retrieve maximum value for the pen click volume level and validate that it is as expected.
sl@0
   336
//!                                using HAL::Get
sl@0
   337
//!				3. Destroy the HAL Handle object.
sl@0
   338
//! @SYMTestStatus		Implemented
sl@0
   339
//! @SYMTestPriority		High
sl@0
   340
//! @SYMTestExpectedResults  	The maximum value for the pen click volume level is as expected in the Digitiser (touch Screen).
sl@0
   341
//! @SYMTestType		CIT
sl@0
   342
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   343
		CREATE_OBJECT	HalData         digitiser1
sl@0
   344
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0014-EPenClickVolumeMax              
sl@0
   345
	END_TEST_BLOCK
sl@0
   346
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0014
sl@0
   347
sl@0
   348
sl@0
   349
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0015
sl@0
   350
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0015
sl@0
   351
//! @SYMAPI			HAL::Get(EPenClickVolume, TInt{ref}); 
sl@0
   352
//!                             TSoundHalFunction::ESoundHalPointerClickVolumeMax;
sl@0
   353
//!                             TSoundHalFunction::ESoundHalSetPointerClickLoud;
sl@0
   354
//!                             TSoundHalFunction::ESoundHalPointerClickLoud
sl@0
   355
//! @SYMAuthor			Rehana Anwar
sl@0
   356
//! @SYMCreationDate		03/04/2008
sl@0
   357
//! @SYMTestCaseDesc		EPenClickVolume Test
sl@0
   358
//!                             Retrieve the pen click volume and validate that it is as expected.
sl@0
   359
//!				Uses API elements:HAL::Get, ESoundHalPointerClickVolumeMax,ESoundHalSetPointerClickLoud
sl@0
   360
//!                             ESoundHalPointerClickLoud
sl@0
   361
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   362
//!                             2. Retrieve the value for the pen click volume level and validate that it is as expected.
sl@0
   363
//!                                using HAL::Get
sl@0
   364
//!				3. Destroy the HAL Handle object.
sl@0
   365
//! @SYMTestStatus		Implemented
sl@0
   366
//! @SYMTestPriority		High
sl@0
   367
//! @SYMTestExpectedResults  	The value for the pen click volume level is as expected in the Digitiser (touch Screen).
sl@0
   368
//! @SYMTestType		CIT
sl@0
   369
	START_TEST_BLOCK	100	        T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   370
		CREATE_OBJECT	HalData         digitiser1        
sl@0
   371
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0015-EPenClickVolume              
sl@0
   372
	END_TEST_BLOCK
sl@0
   373
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0015
sl@0
   374
sl@0
   375
sl@0
   376
START_TESTCASE 	        BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0016
sl@0
   377
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0016
sl@0
   378
//! @SYMAPI			HAL::Get(EPenClickVolume, TInt{ref}); 
sl@0
   379
//!                             TSoundHalFunction::ESoundHalPointerClickVolumeMax;
sl@0
   380
//!                             TSoundHalFunction::ESoundHalSetPointerClickLoud;
sl@0
   381
//!                             TSoundHalFunction::ESoundHalPointerClickLoud
sl@0
   382
//! @SYMAuthor			Rehana Anwar
sl@0
   383
//! @SYMCreationDate		03/04/2008
sl@0
   384
//! @SYMTestCaseDesc		EPenClickVolume Test
sl@0
   385
//!                             Set and Retrieve the pen click volume and validate that its is as expected.           
sl@0
   386
//!				Uses API elements:HAL::Set,HAL::Get ESoundHalPointerClickVolumeMax,ESoundHalSetPointerClickLoud
sl@0
   387
//!                             ESoundHalPointerClickLoud
sl@0
   388
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   389
//!                             2. Set the value for the pen click volume level. 
sl@0
   390
//!                             3. Retrieve maximum value for the pen click volume level and validate that it is as expected.
sl@0
   391
//!                                using HAL::Get
sl@0
   392
//!				4. Destroy the HAL Handle object.
sl@0
   393
//! @SYMTestStatus		Implemented
sl@0
   394
//! @SYMTestPriority		High
sl@0
   395
//! @SYMTestExpectedResults  	The value for the pen click volume level is as expected in the Digitiser (touch Screen).
sl@0
   396
//! @SYMTestType		CIT
sl@0
   397
	START_TEST_BLOCK	100	        T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   398
		CREATE_OBJECT	HalData         digitiser1 
sl@0
   399
               COMMAND	        digitiser1	Set			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0016-EPenClickVolume 
sl@0
   400
               COMMAND	        digitiser1	Get			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0016-EPenClickVolume              
sl@0
   401
	END_TEST_BLOCK
sl@0
   402
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0016
sl@0
   403
sl@0
   404
sl@0
   405
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0017
sl@0
   406
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0017
sl@0
   407
//! @SYMAPI			HAL::Get(EPenClickVolume, TInt{ref}); 
sl@0
   408
//!                             HAL::Set(EPenClickVolume, TInt);
sl@0
   409
//!                             TSoundHalFunction::ESoundHalPointerClickVolumeMax;
sl@0
   410
//!                             TSoundHalFunction::ESoundHalSetPointerClickLoud;
sl@0
   411
//!                             TSoundHalFunction::ESoundHalPointerClickLoud
sl@0
   412
//! @SYMAuthor			Rehana Anwar
sl@0
   413
//! @SYMCreationDate		03/04/2008
sl@0
   414
//! @SYMTestCaseDesc		EPenClickVolume Negative Test case
sl@0
   415
//!                             Set and Retrieve the pen click volume ( here the value is lower than the maximum volume). 
sl@0
   416
//!                             Set the pen click volume Higher than the maximum volume.
sl@0
   417
//!                             Retrieve the pen click volume and validate that it is in the original state.
sl@0
   418
//!				Uses API elements:HAL::Get,HAL::Set(TAttribute, TInt),ESoundHalPointerClickVolumeMax,ESoundHalSetPointerClickLoud
sl@0
   419
//!                             ESoundHalPointerClickLoud
sl@0
   420
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   421
//!                             2. Set the value for the pen click volume level, using HAL::Set
sl@0
   422
//!                             3. Retrieve  value for the pen click volume level and validate that it is as expected.
sl@0
   423
//!                                using HAL::Get
sl@0
   424
//!                             4. Set the value for the pen click volume level,Higher than the maximum volume using HAL::Set.
sl@0
   425
//!                             5. Retrieve  value for the pen click volume level and validate that it is as expected.
sl@0
   426
//!                                using HAL::Get
sl@0
   427
//!				6. Destroy the HAL Handle object.
sl@0
   428
//! @SYMTestStatus		Implemented
sl@0
   429
//! @SYMTestPriority		High
sl@0
   430
//! @SYMTestExpectedResults  	The value for the pen click volume level is as expected in the Digitiser (touch Screen).
sl@0
   431
//!                             and setting the pen click volume Higher than the maximum volume returns an error
sl@0
   432
//! @SYMTestType		CIT
sl@0
   433
	START_TEST_BLOCK	100	        T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   434
		CREATE_OBJECT	HalData         digitiser1        
sl@0
   435
                COMMAND	        digitiser1	Set			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0017-EPenClickVolume              
sl@0
   436
                COMMAND	        digitiser1	Get			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0017-EPenClickVolume 
sl@0
   437
                COMMAND	        digitiser1	Set			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0017-EPenClickVolumeNegative              
sl@0
   438
                COMMAND	        digitiser1	Get			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0017-EPenClickVolume 
sl@0
   439
        END_TEST_BLOCK
sl@0
   440
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0017
sl@0
   441
sl@0
   442
sl@0
   443
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0018
sl@0
   444
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0018
sl@0
   445
//! @SYMAPI			HAL::Get(EPenDisplayOn, TInt{ref}); 
sl@0
   446
//!                             TPowerHalFunction::EPowerHalPointerSwitchesOn;
sl@0
   447
//!                             TPowerHalFunction::EPowerHalSetPointerSwitchesOn
sl@0
   448
//! @SYMAuthor			Rehana Anwar
sl@0
   449
//! @SYMCreationDate		03/04/2008
sl@0
   450
//! @SYMTestCaseDesc		EPenDisplayOn Test
sl@0
   451
//!                             Retrieve the pen tap state and validate that it is as expected.
sl@0
   452
//!				Uses API elements:HAL::Get,EPowerHalSetPointerSwitchesOn,EPowerHalPointerSwitchesOn
sl@0
   453
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   454
//!                             2. Set EPenDisplayOn state to disabled
sl@0
   455
//!                                using HAL::Set
sl@0
   456
//!                             3. Retrieve  EPenDisplayOn state and validate that it is as expected.
sl@0
   457
//!                                using HAL::Get
sl@0
   458
//!				4. Destroy the HAL Handle object.
sl@0
   459
//! @SYMTestStatus		Implemented
sl@0
   460
//! @SYMTestPriority		High
sl@0
   461
//! @SYMTestExpectedResults  	A pen tap has no effect, on the display state
sl@0
   462
//! @SYMTestType		CIT
sl@0
   463
	START_TEST_BLOCK	100	        T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   464
		CREATE_OBJECT	HalData         digitiser1        
sl@0
   465
                COMMAND	        digitiser1	Set			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0018-EPenDisplayOn
sl@0
   466
                COMMAND	        digitiser1	Get			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0018-EPenDisplayOn                 
sl@0
   467
        END_TEST_BLOCK
sl@0
   468
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0018
sl@0
   469
sl@0
   470
sl@0
   471
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0019
sl@0
   472
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0019
sl@0
   473
//! @SYMAPI			HAL::Get(EPenDisplayOn, TInt{ref});
sl@0
   474
//!                             HAL::Set(EPenDisplayOn, TInt);
sl@0
   475
//!                             TPowerHalFunction::EPowerHalPointerSwitchesOn;
sl@0
   476
//!                             TPowerHalFunction::EPowerHalSetPointerSwitchesOn
sl@0
   477
//! @SYMAuthor			Rehana Anwar
sl@0
   478
//! @SYMCreationDate		03/04/2008
sl@0
   479
//! @SYMTestCaseDesc		EPenDisplayOn Test
sl@0
   480
//!                             Retrieve the pen tap state and validate that it is as expected.
sl@0
   481
//!				Uses API elements:HAL::Get,EPowerHalSetPointerSwitchesOn,EPowerHalPointerSwitchesOn
sl@0
   482
//! @SYMTestActions    		1. Create Hal Handle object. 
sl@0
   483
//!                             2. Set the pen tap state using Hal::Set
sl@0
   484
//!                             3. Retrieve pen tap state and validate that it is as expected.
sl@0
   485
//!                                using HAL::Get
sl@0
   486
//!                             4. Set the pen tap state to original using Hal::Set
sl@0
   487
//!                             5. Confirm thatthe pen tap state is in original state using Hal::Get
sl@0
   488
//!				6. Destroy the HAL Handle object.
sl@0
   489
//! @SYMTestStatus		Implemented
sl@0
   490
//! @SYMTestPriority		High
sl@0
   491
//! @SYMTestExpectedResults  	A Pen tap or press enables the display.
sl@0
   492
//! @SYMTestType		CIT
sl@0
   493
	START_TEST_BLOCK	100	        T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-automated.ini
sl@0
   494
		CREATE_OBJECT	HalData         digitiser1        
sl@0
   495
                COMMAND	        digitiser1	Set			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0019-EPenDisplayOn 
sl@0
   496
                COMMAND	        digitiser1	Get			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0019-EPenDisplayOn
sl@0
   497
                COMMAND	        digitiser1	Set			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0019-EPenDisplayOnRestore
sl@0
   498
                COMMAND	        digitiser1	Get			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0019-EPenDisplayOnRestore                                 
sl@0
   499
        END_TEST_BLOCK
sl@0
   500
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-AUTOMATED-0019
sl@0
   501
sl@0
   502