os/boardsupport/haitest/bspsvs/suite/bsp/keypad/scripts/BASE-BSP-KEYPAD-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-KEYPAD-DRIVER-AUTOMATED
sl@0
    18
//! @SYMScriptDescription	Tests all published elements of the TKeyboardHalFunction class as a means of confidence that the APIs
sl@0
    19
//!				work as expected.
sl@0
    20
//! @SYMScriptAutomation	The tests are fully automated with Test Driver and TEF.
sl@0
    21
//! @SYMScriptTestEnvironment	This test script requires a basic ROM and Text Shell Window Server.
sl@0
    22
///////////////////////////////////////////////////////////////////////////////
sl@0
    23
sl@0
    24
sl@0
    25
sl@0
    26
LOAD_SUITE	T_Keypad
sl@0
    27
DELAY		2000
sl@0
    28
sl@0
    29
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0001
sl@0
    30
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0001
sl@0
    31
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
    32
//!				HAL::Get(TAttribute, TInt&);
sl@0
    33
//!				TAttribute::EKeyboardState;
sl@0
    34
//!				TKeyboardHalFunction::EKeyboardHalKeyboardState;
sl@0
    35
//!				TKeyboardHalFunction::EKeyboardHalSetKeyboardState;
sl@0
    36
//! @SYMAuthor			Runno Sgirka
sl@0
    37
//! @SYMCreationDate		16/07/2008
sl@0
    38
//! @SYMTestCaseDesc		Disable the keypad
sl@0
    39
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
    40
//!				2. Get the default EKeyboardState value and check that it is as expected
sl@0
    41
//!				3. Set EKeyboardState 0 (disabled) using HAL:Set.
sl@0
    42
//!				4. Get EKeyboardState using HAL::Get, and check that it is 0 (disabled).
sl@0
    43
//!				5. Restore EKeyboardState to the default value using HAL:Set.
sl@0
    44
//!				6. Destroy all objects.
sl@0
    45
//! @SYMTestStatus		Implemented
sl@0
    46
//! @SYMTestPriority		High
sl@0
    47
//! @SYMTestExpectedResults	Keypad state attribute value is changed to 0 as expected.
sl@0
    48
//! @SYMTestType		CIT
sl@0
    49
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
    50
		CREATE_OBJECT	Keypad		keypad1
sl@0
    51
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0001-GetCurrentKeypadState
sl@0
    52
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0001-SetKeypadState
sl@0
    53
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0001-GetKeypadState
sl@0
    54
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0001-RestoreKeypadState
sl@0
    55
	END_TEST_BLOCK
sl@0
    56
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0001
sl@0
    57
sl@0
    58
sl@0
    59
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0002
sl@0
    60
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0002
sl@0
    61
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
    62
//!				HAL::Get(TAttribute, TInt&);
sl@0
    63
//!				TAttribute::EKeyboardState;
sl@0
    64
//!				TKeyboardHalFunction::EKeyboardHalKeyboardState;
sl@0
    65
//!				TKeyboardHalFunction::EKeyboardHalSetKeyboardState;
sl@0
    66
//! @SYMAuthor			Runno Sgirka
sl@0
    67
//! @SYMCreationDate		16/07/2008
sl@0
    68
//! @SYMTestCaseDesc		Enable the keypad
sl@0
    69
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
    70
//!				2. Get the default EKeyboardState value and check that it is as expected
sl@0
    71
//!				3. Set EKeyboardState 1 (enabled) using HAL:Set.
sl@0
    72
//!				4. Get EKeyboardState using HAL::Get, and check that it is 1 (enabled).
sl@0
    73
//!				5. Restore EKeyboardState to the default value using HAL:Set.
sl@0
    74
//!				6. Destroy all objects.
sl@0
    75
//! @SYMTestStatus		Implemented
sl@0
    76
//! @SYMTestPriority		High
sl@0
    77
//! @SYMTestExpectedResults	Keypad state attribute value is changed to 1 as expected.
sl@0
    78
//! @SYMTestType		CIT
sl@0
    79
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
    80
		CREATE_OBJECT	Keypad		keypad1
sl@0
    81
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0002-GetCurrentKeypadState
sl@0
    82
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0002-SetKeypadState
sl@0
    83
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0002-GetKeypadState
sl@0
    84
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0002-RestoreKeypadState
sl@0
    85
	END_TEST_BLOCK
sl@0
    86
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0002
sl@0
    87
sl@0
    88
sl@0
    89
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0003
sl@0
    90
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0003
sl@0
    91
//! @SYMAPI			HAL::Get(TAttribute, TInt&);
sl@0
    92
//!				TAttribute::EKeyboard;
sl@0
    93
//!				TAttribute::EKeyboardDeviceKeys;
sl@0
    94
//!				TAttribute::EKeyboardAppKeys;
sl@0
    95
//!				TKeyboardHalFunction::EKeyboardHalKeyboardInfo;
sl@0
    96
//! @SYMAuthor			Runno Sgirka
sl@0
    97
//! @SYMCreationDate		16/07/2008
sl@0
    98
//! @SYMTestCaseDesc		Keypad Info Test - Get information about the keypad (can be different on different hardware;
sl@0
    99
//!				specified in t_keypad.ini).
sl@0
   100
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   101
//!				2. Get the keypad type using HAL::Get, and check it against expected value.
sl@0
   102
//!				3. Get the number of device keys using HAL::Get, and check it against expected value.
sl@0
   103
//!				4. Get the number of application keys using HAL::Get, and check it against expected value.
sl@0
   104
//!				5. Destroy all objects.
sl@0
   105
//! @SYMTestStatus		Implemented
sl@0
   106
//! @SYMTestPriority		High
sl@0
   107
//! @SYMTestExpectedResults	Keypad information is returned successfully.
sl@0
   108
//! @SYMTestType		CIT
sl@0
   109
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   110
		CREATE_OBJECT	Keypad		keypad1
sl@0
   111
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0003-GetKeypadType
sl@0
   112
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0003-GetKeypadDeviceKeys
sl@0
   113
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0003-GetKeypadAppKeys
sl@0
   114
	END_TEST_BLOCK
sl@0
   115
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0003
sl@0
   116
sl@0
   117
sl@0
   118
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0004
sl@0
   119
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0004
sl@0
   120
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
   121
//!				HAL::Get(TAttribute, TInt&);
sl@0
   122
//!				TAttribute::EKeyboardClickState;
sl@0
   123
//!				TSoundHalFunction::ESoundHalSetKeyClickEnabled;
sl@0
   124
//!				TSoundHalFunction::ESoundHalKeyClickEnabled;
sl@0
   125
//! @SYMAuthor			Runno Sgirka
sl@0
   126
//! @SYMCreationDate		16/07/2008
sl@0
   127
//! @SYMTestCaseDesc		Disable Keypad Click State - Change the value of the Keypad click state attribute (EKeyboardClickState)
sl@0
   128
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   129
//!				2. Get the current EKeyboardClickState value and check that it is the default value
sl@0
   130
//!				3. Set EKeyboardClickState 0 (disabled) using HAL:Set.
sl@0
   131
//!				4. Get EKeyboardClickState using HAL::Get, and check that it is 0 (disabled).
sl@0
   132
//!				5. Restore EKeyboardClickState to the default value using HAL:Set.
sl@0
   133
//!				6. Destroy all objects.
sl@0
   134
//! @SYMTestStatus		Implemented
sl@0
   135
//! @SYMTestPriority		High
sl@0
   136
//! @SYMTestExpectedResults	Keypad click state attribute value is changed to 0 as expected.
sl@0
   137
//! @SYMTestType		CIT
sl@0
   138
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   139
		CREATE_OBJECT	Keypad		keypad1
sl@0
   140
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0004-GetCurrentKeypadClickState
sl@0
   141
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0004-SetKeypadClickState
sl@0
   142
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0004-GetKeypadClickState
sl@0
   143
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0004-RestoreKeypadClickState
sl@0
   144
	END_TEST_BLOCK
sl@0
   145
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0004
sl@0
   146
sl@0
   147
sl@0
   148
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0005
sl@0
   149
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0005
sl@0
   150
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
   151
//!				HAL::Get(TAttribute, TInt&);
sl@0
   152
//!				TAttribute::EKeyboardClickState;
sl@0
   153
//!				TSoundHalFunction::ESoundHalSetKeyClickEnabled;
sl@0
   154
//!				TSoundHalFunction::ESoundHalKeyClickEnabled;
sl@0
   155
//! @SYMAuthor			Runno Sgirka
sl@0
   156
//! @SYMCreationDate		16/07/2008
sl@0
   157
//! @SYMTestCaseDesc		Enable Keypad Click State - Change the value of the Keypad click state attribute (EKeyboardClickState)
sl@0
   158
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   159
//!				2. Get the current EKeyboardClickState value and check that it is the default value
sl@0
   160
//!				3. Set EKeyboardClickState 1 (enabled) using HAL:Set.
sl@0
   161
//!				4. Get EKeyboardClickState using HAL::Get, and check that it is 1 (enabled).
sl@0
   162
//!				5. Restore EKeyboardClickState to the default value using HAL:Set.
sl@0
   163
//!				6. Destroy all objects.
sl@0
   164
//! @SYMTestStatus		Implemented
sl@0
   165
//! @SYMTestPriority		High
sl@0
   166
//! @SYMTestExpectedResults	Keypad click state attribute value is changed to 1 as expected.
sl@0
   167
//! @SYMTestType		CIT
sl@0
   168
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   169
		CREATE_OBJECT	Keypad		keypad1
sl@0
   170
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0005-GetCurrentKeypadClickState
sl@0
   171
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0005-SetKeypadClickState
sl@0
   172
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0005-GetKeypadClickState
sl@0
   173
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0005-RestoreKeypadClickState
sl@0
   174
	END_TEST_BLOCK
sl@0
   175
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0005
sl@0
   176
sl@0
   177
sl@0
   178
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0006
sl@0
   179
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0006
sl@0
   180
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
   181
//!				HAL::Get(TAttribute, TInt&);
sl@0
   182
//!				TAttribute::EKeyboardClick;
sl@0
   183
//!				TSoundHalFunction::ESoundHalSetKeyClickEnabled;
sl@0
   184
//!				TSoundHalFunction::ESoundHalKeyClickEnabled;
sl@0
   185
//! @SYMAuthor			Runno Sgirka
sl@0
   186
//! @SYMCreationDate		16/07/2008
sl@0
   187
//! @SYMTestCaseDesc		Check that the value of the Keypad click indicator attribute (EKeyboardClick) is disabled.
sl@0
   188
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   189
//!				2. Get the current EKeyboardClickState value and check that it is the default value
sl@0
   190
//!				3. Set EKeyboardClickState 0 (disabled) using HAL:Set.
sl@0
   191
//!				4. Get EKeyboardClick using HAL::Get, and check that it is 0
sl@0
   192
//!				5. Restore EKeyboardClickState to the default value using HAL:Set.
sl@0
   193
//!				6. Destroy all objects.
sl@0
   194
//! @SYMTestStatus		Implemented
sl@0
   195
//! @SYMTestPriority		High
sl@0
   196
//! @SYMTestExpectedResults	Keypad click indicator value is 0 as expected.
sl@0
   197
//! @SYMTestType		CIT
sl@0
   198
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   199
		CREATE_OBJECT	Keypad		keypad1
sl@0
   200
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0006-GetCurrentKeypadClickState
sl@0
   201
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0006-SetKeypadClickState
sl@0
   202
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0006-GetKeypadClick
sl@0
   203
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0006-RestoreKeypadClickState
sl@0
   204
	END_TEST_BLOCK
sl@0
   205
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0006
sl@0
   206
sl@0
   207
sl@0
   208
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0007
sl@0
   209
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0007
sl@0
   210
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
   211
//!				HAL::Get(TAttribute, TInt&);
sl@0
   212
//!				TAttribute::EKeyboardClick;
sl@0
   213
//!				TSoundHalFunction::ESoundHalSetKeyClickEnabled;
sl@0
   214
//!				TSoundHalFunction::ESoundHalKeyClickEnabled;
sl@0
   215
//! @SYMAuthor			Runno Sgirka
sl@0
   216
//! @SYMCreationDate		16/07/2008
sl@0
   217
//! @SYMTestCaseDesc		Check the value of the Keypad click indicator attribute (EKeyboardClick) is enabled.
sl@0
   218
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   219
//!				2. Get the current EKeyboardClickState value and check that it is the default value
sl@0
   220
//!				3. Set EKeyboardClickState 1 (enabled) using HAL:Set.
sl@0
   221
//!				4. Get EKeyboardClick using HAL::Get, and check that it is 1
sl@0
   222
//!				5. Restore EKeyboardClickState to the default value using HAL:Set.
sl@0
   223
//!				6. Destroy all objects.
sl@0
   224
//! @SYMTestStatus		Implemented
sl@0
   225
//! @SYMTestPriority		High
sl@0
   226
//! @SYMTestExpectedResults	Keypad click indicator value is 1 as expected.
sl@0
   227
//! @SYMTestType		CIT
sl@0
   228
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   229
		CREATE_OBJECT	Keypad		keypad1
sl@0
   230
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0007-GetCurrentKeypadClickState
sl@0
   231
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0007-SetKeypadClickState
sl@0
   232
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0007-GetKeypadClick
sl@0
   233
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0007-RestoreKeypadClickState
sl@0
   234
	END_TEST_BLOCK
sl@0
   235
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0007
sl@0
   236
sl@0
   237
sl@0
   238
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0008
sl@0
   239
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0008
sl@0
   240
//! @SYMAPI			HAL::Get(TAttribute, TInt&);
sl@0
   241
//!				TAttribute::EKeyboardClickVolumeMax;
sl@0
   242
//!				TSoundHalFunction::ESoundHalKeyClickVolumeMax;
sl@0
   243
//! @SYMAuthor			Runno Sgirka
sl@0
   244
//! @SYMCreationDate		16/07/2008
sl@0
   245
//! @SYMTestCaseDesc		Keypad Click Max Volume Test - Gets the keypad click max volume level (EKeyboardClickVolumeMax
sl@0
   246
//!				attribute) value (can be different on different hardware; specified in t_keypad.ini).
sl@0
   247
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   248
//!				2. Get EKeyboardClickVolumeMax value using using HAL::Get, and check it against expected value.
sl@0
   249
//!				3. Destroy all objects.
sl@0
   250
//! @SYMTestStatus		Implemented
sl@0
   251
//! @SYMTestPriority		High
sl@0
   252
//! @SYMTestExpectedResults	Keypad click max volume level value is returned successfully.
sl@0
   253
//! @SYMTestType		CIT
sl@0
   254
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   255
		CREATE_OBJECT	Keypad		keypad1
sl@0
   256
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0008-GetKeypadClickVolumeMax
sl@0
   257
	END_TEST_BLOCK
sl@0
   258
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0008
sl@0
   259
sl@0
   260
sl@0
   261
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009
sl@0
   262
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009
sl@0
   263
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
   264
//!				HAL::Get(TAttribute, TInt&);
sl@0
   265
//!				TAttribute::EKeyboardClickVolume;
sl@0
   266
//! @SYMAuthor			Runno Sgirka
sl@0
   267
//! @SYMCreationDate		16/07/2008
sl@0
   268
//! @SYMTestCaseDesc		Keypad Click Volume Test - Sets different volume levels for keypad click (EKeyboardClickVolume
sl@0
   269
//!				attribute) and validates them (max volume level can be different on different hardware;
sl@0
   270
//!				specified in t_keypad.ini).
sl@0
   271
//! @SYMTestActions		1.  Create Hal Handle object.
sl@0
   272
//!				2.  Get the current EKeyboardClickState value and check that it is the default value
sl@0
   273
//!				3.  Set EKeyboardClickState 1 (enabled) using HAL:Set.
sl@0
   274
//!				4.  Get EKeyboardClickState using HAL::Get, and check that it is 1 (enabled).
sl@0
   275
//!				5.  Get the current EKeyboardClickVolume value using HAL::Get.
sl@0
   276
//!				6.  Get EKeyboardClickVolumeMax value using using HAL::Get, and check it against expected value.
sl@0
   277
//!				7.  Set EKeyboardClickVolume to 0 using HAL::Set.
sl@0
   278
//!				8.  Get EKeyboardClickVolume using HAL::Get and verify it against expected value
sl@0
   279
//!				9.  Set EKeyboardClickVolume between 0 and max volume level using HAL::Set.
sl@0
   280
//!				10. Get EKeyboardClickVolume using HAL::Get and verify it against expected value
sl@0
   281
//!				11. Set EKeyboardClickVolume to max volume level using HAL::Set.
sl@0
   282
//!				12. Get EKeyboardClickVolume using HAL::Get and verify it against expected value
sl@0
   283
//!				13. Restore the initial EKeyboardClickVolume value using HAL::Set.
sl@0
   284
//!				14. Restore EKeyboardClickState to the default value using HAL:Set.
sl@0
   285
//!				15. Destroy all objects.
sl@0
   286
//! @SYMTestStatus		Implemented
sl@0
   287
//! @SYMTestPriority		High
sl@0
   288
//! @SYMTestExpectedResults	Keypad click volume level is set and verified successfully.
sl@0
   289
//! @SYMTestType		CIT
sl@0
   290
	START_TEST_BLOCK	100		T_Keypad		\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   291
		CREATE_OBJECT	Keypad		keypad1
sl@0
   292
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-GetCurrentKeypadClickState
sl@0
   293
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-SetKeypadClickState
sl@0
   294
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-GetKeypadClickState
sl@0
   295
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-GetCurrentKeypadClickVolume
sl@0
   296
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-GetKeypadClickVolumeMax
sl@0
   297
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-SetKeypadClickVolume0
sl@0
   298
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-GetKeypadClickVolume0
sl@0
   299
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-SetKeypadClickVolumeAvg
sl@0
   300
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-GetKeypadClickVolumeAvg
sl@0
   301
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-SetKeypadClickVolumeMaxValue
sl@0
   302
		COMMAND		keypad1		Get			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-GetKeypadClickVolumeMaxValue
sl@0
   303
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-RestoreKeypadClickVolume
sl@0
   304
		COMMAND		keypad1		Set			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009-RestoreKeypadClickState
sl@0
   305
	END_TEST_BLOCK
sl@0
   306
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0009
sl@0
   307
sl@0
   308
sl@0
   309
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010
sl@0
   310
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010
sl@0
   311
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
   312
//!				HAL::Get(TAttribute, TInt&);
sl@0
   313
//!				TAttribute::EKeyboardClickVolume;
sl@0
   314
//! @SYMAuthor			Runno Sgirka
sl@0
   315
//! @SYMCreationDate		16/07/2008
sl@0
   316
//! @SYMTestCaseDesc		Keypad Click Volume Negative Test - Sets -1 as volume level for keypad click (EKeyboardClickVolume
sl@0
   317
//!				attribute)
sl@0
   318
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   319
//!				2. Get the current EKeyboardClickState value and check that it is the default value
sl@0
   320
//!				3. Set EKeyboardClickState 1 (enabled) using HAL:Set.
sl@0
   321
//!				4. Get EKeyboardClickState using HAL::Get, and check that it is 1 (enabled).
sl@0
   322
//!				5. Set EKeyboardClickVolume to -1 using HAL::Set.
sl@0
   323
//!				6. Restore EKeyboardClickState to the default value using HAL:Set.
sl@0
   324
//!				7. Get EKeyboardClickState using HAL::Get, and check that it is the default value as expected.
sl@0
   325
//!				8. Destroy all objects.
sl@0
   326
//! @SYMTestStatus		Not implemented
sl@0
   327
//! @SYMTestPriority		High
sl@0
   328
//! @SYMTestExpectedResults	HAL::Set() returns KErrArgument.
sl@0
   329
//! @SYMTestType		CIT
sl@0
   330
	START_TEST_BLOCK		100		T_Keypad	\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   331
		CREATE_OBJECT		Keypad		keypad1
sl@0
   332
		COMMAND			keypad1		Get		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010-GetCurrentKeypadClickState
sl@0
   333
		COMMAND			keypad1		Set		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010-SetKeypadClickState
sl@0
   334
		COMMAND			keypad1		Get		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010-GetKeypadClickState
sl@0
   335
		COMMAND	!Error=-6	keypad1		Set		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010-SetKeypadClickVolumeMinus1
sl@0
   336
		COMMAND			keypad1		Set		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010-RestoreKeypadClickState
sl@0
   337
		COMMAND			keypad1		Get		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010-GetRestoredKeypadClickState
sl@0
   338
	END_TEST_BLOCK
sl@0
   339
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0010
sl@0
   340
sl@0
   341
sl@0
   342
START_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011
sl@0
   343
//! @SYMTestCaseID		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011
sl@0
   344
//! @SYMAPI			HAL::Set(TAttribute, TInt);
sl@0
   345
//!				HAL::Get(TAttribute, TInt&);
sl@0
   346
//!				TAttribute::EKeyboardClickVolume;
sl@0
   347
//! @SYMAuthor			Runno Sgirka
sl@0
   348
//! @SYMCreationDate		16/07/2008
sl@0
   349
//! @SYMTestCaseDesc		Keypad Click Volume Negative Test - Sets volume level for keypad click (EKeyboardClickVolume
sl@0
   350
//!				attribute) more than the max volume (EKeyboardClickVolumeMax attribute).
sl@0
   351
//! @SYMTestActions		1. Create Hal Handle object.
sl@0
   352
//!				2. Get the current EKeyboardClickState value and check that it is the default value
sl@0
   353
//!				3. Set EKeyboardClickState 1 (enabled) using HAL:Set.
sl@0
   354
//!				4. Get EKeyboardClickState using HAL::Get, and check that it is 1 (enabled).
sl@0
   355
//!				5. Get EKeyboardClickVolumeMax value using using HAL::Get, and check it against expected value.
sl@0
   356
//!				6. Set EKeyboardClickVolume to more than max volume using HAL::Set.
sl@0
   357
//!				7. Restore EKeyboardClickState to the default value using HAL:Set.
sl@0
   358
//!				8. Get EKeyboardClickState using HAL::Get, and check that it is the default value as expected.
sl@0
   359
//!				9. Destroy all objects.
sl@0
   360
//! @SYMTestStatus		Not implemented
sl@0
   361
//! @SYMTestPriority		High
sl@0
   362
//! @SYMTestExpectedResults	HAL::Set() returns KErrArgument.
sl@0
   363
//! @SYMTestType		CIT
sl@0
   364
	START_TEST_BLOCK		100		T_Keypad	\base\keypad\BASE-BSP-KEYPAD-DRIVER.ini
sl@0
   365
		CREATE_OBJECT		Keypad		keypad1
sl@0
   366
		COMMAND			keypad1		Get		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011-GetCurrentKeypadClickState
sl@0
   367
		COMMAND			keypad1		Set		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011-SetKeypadClickState
sl@0
   368
		COMMAND			keypad1		Get		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011-GetKeypadClickState
sl@0
   369
		COMMAND			keypad1		Get		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011-GetKeypadClickVolumeMax
sl@0
   370
		COMMAND	!Error=-6	keypad1		Set		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011-SetKeypadClickVolumeMoreThanMax
sl@0
   371
		COMMAND			keypad1		Set		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011-RestoreKeypadClickState
sl@0
   372
		COMMAND			keypad1		Get		BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011-GetRestoredKeypadClickState
sl@0
   373
	END_TEST_BLOCK
sl@0
   374
END_TESTCASE			BASE-BSP-KEYPAD-DRIVER-AUTOMATED-0011