os/boardsupport/haitest/bspsvs/suite/bsp/digitiser/scripts/base-bsp-digitiser-driver-manual.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-manual
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-manual.script
sl@0
    22
// Tests the Digitiser via validation TRawEvents and mouse positions retrieved
sl@0
    23
// for pen touches on the digitiser screen.
sl@0
    24
// The tests are manual.
sl@0
    25
/////////////////////////////////////////////////////////////////////
sl@0
    26
sl@0
    27
LOAD_SUITE	T_Digitiser
sl@0
    28
START_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0001
sl@0
    29
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0001
sl@0
    30
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
    31
//!				TRawEvent::EButton1Down;
sl@0
    32
//!                             TRawEvent::EPointerMove;
sl@0
    33
//!				TRawEvent::EButton1Up
sl@0
    34
//! @SYMAuthor			Rehana Anwar
sl@0
    35
//! @SYMCreationDate		03/04/2008
sl@0
    36
//! @SYMTestCaseDesc		Set the display mode to default mode. 
sl@0
    37
//!                             Wait for user to touch an unlimited number of random pixels on the screen with a stylus.
sl@0
    38
//!				Highlight each pixel touch in black. 
sl@0
    39
//!				Wait for user to exit the screen by touching the exit box with stylus.
sl@0
    40
//!				Allow user to manually confirm if test has passed or failed, via a key press.
sl@0
    41
//! @SYMTestActions		1. Set the displaymode to the default mode.
sl@0
    42
//!                             2. Initialise and create the RConsole handle object.     
sl@0
    43
//!				3. Wait for user to touch a random pixel on the screen with a stylus.
sl@0
    44
//!				4. Highlight that pixel touch in black immediately.
sl@0
    45
//!                             5. repeat steps 3 & 4, until step 5 is processed.
sl@0
    46
//!				6. Wait for user to touch the black exit box, then exit the test scenario
sl@0
    47
//!				7. Wait for user to validate if testcase has passed or failed, via a keypress
sl@0
    48
//!				   (pass is dependant on the pass keypress see configuration file)
sl@0
    49
//!                             8. Clean up and Destroy the RConsole Handle object.
sl@0
    50
//! @SYMTestStatus		Implemented
sl@0
    51
//! @SYMTestPriority		High
sl@0
    52
//! @SYMTestExpectedResults	The user will manually verify that the test has passed, via a configurable keypress.
sl@0
    53
//! @SYMTestType		CIT
sl@0
    54
	START_TEST_BLOCK	100		T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
    55
		CREATE_OBJECT	HalData		digitiser1
sl@0
    56
		COMMAND		digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
    57
		CREATE_OBJECT	RConsole	console1
sl@0
    58
		COMMAND		console1	new
sl@0
    59
		COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init
sl@0
    60
		COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn
sl@0
    61
		COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0001-Instructions
sl@0
    62
		COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0001-Read
sl@0
    63
		OUTSTANDING
sl@0
    64
		DELAY           5000
sl@0
    65
		COMMAND		console1	ClearScreen
sl@0
    66
		COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0001-WriteFeedback
sl@0
    67
		COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey
sl@0
    68
		OUTSTANDING
sl@0
    69
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
    70
		COMMAND		console1	Destroy
sl@0
    71
		COMMAND		console1	Close
sl@0
    72
		COMMAND		console1	~
sl@0
    73
	END_TEST_BLOCK
sl@0
    74
END_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0001
sl@0
    75
sl@0
    76
START_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0002
sl@0
    77
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0002
sl@0
    78
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
    79
//!				TRawEvent::EButton1Down;
sl@0
    80
//!                             TRawEvent::EPointerMove;
sl@0
    81
//!				TRawEvent::EButton1Up
sl@0
    82
//! @SYMAuthor			Rehana Anwar
sl@0
    83
//! @SYMCreationDate		03/04/2008
sl@0
    84
//! @SYMTestCaseDesc		Set the display mode to default mode. 
sl@0
    85
//!                             Wait for user to draw a straight line on the screen with a stylus.
sl@0
    86
//!				Highlight each pixel touch in black.
sl@0
    87
//!				Wait for user to exit the screen by touching the exit box with stylus.
sl@0
    88
//!				Allow user to manually confirm if test has passed or failed, via a key press.
sl@0
    89
//! @SYMTestActions		1. Set the displaymode to the default mode.
sl@0
    90
//!                             2. Initialise and create the RConsole handle object.    
sl@0
    91
//!				3. Wait for user to touch and draw a line on the screen with a stylus.
sl@0
    92
//!				4. Highlight that pixel touch in black immediately.
sl@0
    93
//!				5. Wait for user to touch the black exit box, then exit the test scenario
sl@0
    94
//!				6. Wait for user to validate if testcase has passed or failed, via a keypress
sl@0
    95
//!				   (pass is dependant on the pass keypress see configuration file)
sl@0
    96
//!                             7. Clean up and Destroy the RConsole Handle object.
sl@0
    97
//! @SYMTestStatus		Implemented
sl@0
    98
//! @SYMTestPriority		High
sl@0
    99
//! @SYMTestExpectedResults	The user will manually verify that the test has passed, via a configurable keypress.
sl@0
   100
//! @SYMTestType		CIT
sl@0
   101
	START_TEST_BLOCK	100		T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   102
		CREATE_OBJECT	HalData		digitiser1
sl@0
   103
		COMMAND		digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   104
		CREATE_OBJECT	RConsole	console1
sl@0
   105
		COMMAND		console1	new
sl@0
   106
		COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init
sl@0
   107
		COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn
sl@0
   108
		COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0002-Instructions
sl@0
   109
		COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0002-Read
sl@0
   110
		OUTSTANDING
sl@0
   111
		DELAY           5000
sl@0
   112
		COMMAND		console1	ClearScreen
sl@0
   113
		COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0002-WriteFeedback
sl@0
   114
		COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey
sl@0
   115
		OUTSTANDING
sl@0
   116
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   117
		COMMAND		console1	Destroy
sl@0
   118
		COMMAND		console1	Close
sl@0
   119
		COMMAND		console1	~
sl@0
   120
	END_TEST_BLOCK
sl@0
   121
END_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0002
sl@0
   122
sl@0
   123
START_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0003
sl@0
   124
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0003
sl@0
   125
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   126
//!				TRawEvent::EButton1Down;
sl@0
   127
//!                             TRawEvent::EPointerMove;
sl@0
   128
//!				TRawEvent::EButton1Up
sl@0
   129
//! @SYMAuthor			Rehana Anwar
sl@0
   130
//! @SYMCreationDate		03/04/2008
sl@0
   131
//! @SYMTestCaseDesc		Set the display mode to default mode. 
sl@0
   132
//!                             Wait for user to touch an predefined pixels on the screen with a stylus.
sl@0
   133
//!                             (these predefined pixels are configurable).
sl@0
   134
//!				Highlight each pixel touch in black. 
sl@0
   135
//!                             Validate each pixel position and event recieved.
sl@0
   136
//!                             Position validation comparison is dependant on the
sl@0
   137
//!				margin of error in pixels defined by the user. For example
sl@0
   138
//!				a zero margin of error defines that the user has to match the exact pixel when
sl@0
   139
//!				touching the screen). This testcase uses a margin of error of 10 pixels,
sl@0
   140
//!				in both horizontal and vertical directions. This margin is configurable.
sl@0
   141
//!                             Validations are also made on the expected TRawEvent. This is the respective
sl@0
   142
//!				down event and the respective up event when touching a pixel
sl@0
   143
//!				on the digitiser screen. This test case expects the following TRawEvents 
sl@0
   144
//!				TRawEvent::EButton1Down (a pen down event) and TRawEvent::EButton1Up (a pen move event).
sl@0
   145
//!                             This testcase may also recieve a move event, this occurs if the digitser is sensitive, move events map to the TRawEvent
sl@0
   146
//!                             TRawEvent::EPointerMove(a pen move event),if this occurs move events are ignored.
sl@0
   147
//!				Wait for user to exit the screen by touching the exit box with stylus.
sl@0
   148
//! @SYMTestActions		1. Set the displaymode to the default mode
sl@0
   149
//!                             2. Initialise and create the RConsole handle object.   
sl@0
   150
//!				3. Read in a predefined pixel.
sl@0
   151
//!				4. Draw first pixel on onto the screen
sl@0
   152
//!				5. Wait for the user to touch the pixel on the screen
sl@0
   153
//!				6. Store TRawEvent triggered and mouse positions.
sl@0
   154
//!				7. Draw the next predefined pixel on to the screen.
sl@0
   155
//!				8. Repeat steps 3-5 until predefined pixels have all been drawn
sl@0
   156
//!				or until user presses the black exit box.
sl@0
   157
//!				9. Compare users pixel co-ordinates and TRawEvents triggered.
sl@0
   158
//!                             10. Clean up and Destroy the RConsole Handle object.
sl@0
   159
//!				with expected.
sl@0
   160
//! @SYMTestStatus		Implemented
sl@0
   161
//! @SYMTestPriority		High
sl@0
   162
//! @SYMTestExpectedResults	The TRawEvent:EButton1Down and TRawEvent::EButton1Up are recieved
sl@0
   163
//!				in that order for each pixel touch on the digitiser. If the digitser is sensitive  move event(s) 
sl@0
   164
//!                             TRawEvent::EPointerMove, may be recieved in between each pen down and pen up event, this is ignored. 
sl@0
   165
//!                             Pixel co-ordinates match with expected pixels respective to the margin of error used.
sl@0
   166
//! @SYMTestType		CIT
sl@0
   167
	START_TEST_BLOCK	5000		T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   168
		CREATE_OBJECT	HalData		digitiser1
sl@0
   169
		COMMAND		digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   170
		CREATE_OBJECT	RConsole	console1
sl@0
   171
		COMMAND		console1	new
sl@0
   172
		COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init
sl@0
   173
		COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn
sl@0
   174
		COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0003-Instructions
sl@0
   175
		COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0003-Read
sl@0
   176
		OUTSTANDING
sl@0
   177
		DELAY           5000
sl@0
   178
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   179
		COMMAND		console1	Destroy
sl@0
   180
		COMMAND		console1	Close
sl@0
   181
		COMMAND		console1	~
sl@0
   182
	END_TEST_BLOCK
sl@0
   183
END_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0003
sl@0
   184
sl@0
   185
START_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0004
sl@0
   186
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0004
sl@0
   187
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   188
//!				TRawEvent::EButton1Down;
sl@0
   189
//!                             TRawEvent::EPointerMove;
sl@0
   190
//!				TRawEvent::EButton1Up
sl@0
   191
//! @SYMAuthor			Rehana Anwar
sl@0
   192
//! @SYMCreationDate		03/04/2008
sl@0
   193
//! @SYMTestCaseDesc		Set the display mode to default mode. 
sl@0
   194
//!                             Draw a predefined (configurable) bounding rectangle on the screen and wait for 
sl@0
   195
//!                             user to draw a line within this rectangle. Highlight this line drawn in black.
sl@0
   196
//!				Validate that all mouse positions retrieved are within this bounding  rectangle.
sl@0
   197
//!				( Please note that this comparison is dependant on the
sl@0
   198
//!				bounding rectangle).
sl@0
   199
//!				Validate each event recieved when drawing this line. This is the respective
sl@0
   200
//!				down event, move event and up event. We should recieve events in this order
sl@0
   201
//!                             TRawEvent::EButton1Down, TRawEvent::EPointerMove and TRawEvent::EButton1Up,
sl@0
   202
//!                             with the number of move events as unknown quantity, but a minumum of one.
sl@0
   203
//! @SYMTestActions		1. Set the displaymode to the default mode
sl@0
   204
//!                             2. Initialise and create the RConsole handle object.  
sl@0
   205
//!				3. Read in a predefined configurable bounding rectangle.
sl@0
   206
//!				4. Draw this rectangle on onto the screen.
sl@0
   207
//!				5. Wait for the user to draw a line within this bounding rectangle. 
sl@0
   208
//!			        6. Compare users pixel co-ordinates and TRawEvents triggered with expected.
sl@0
   209
//!				7. Wait for the user to touch the ethe black exit box.
sl@0
   210
//!                             8. Clean up and Destroy the RConsole Handle object.
sl@0
   211
//! @SYMTestStatus		Implemented
sl@0
   212
//! @SYMTestPriority		High
sl@0
   213
//! @SYMTestExpectedResults	The TRawEvent::EButton1Down, TRawEvent::EPointerMove, TRawEvent::EButton1Up are recieved
sl@0
   214
//!				in that order on the line, the number of TRawEvent::EPointerMove recieved, after a TRawEvent::EButton1Down event
sl@0
   215
//!				is random.
sl@0
   216
//!				Pixel co-ordinates are withing the bounding rectangle.
sl@0
   217
//! @SYMTestType		CIT
sl@0
   218
	START_TEST_BLOCK	400		T_Digitiser	\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   219
		CREATE_OBJECT	HalData		digitiser1
sl@0
   220
		COMMAND		digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   221
		CREATE_OBJECT	RConsole	console1
sl@0
   222
		COMMAND		console1	new
sl@0
   223
		COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init
sl@0
   224
		COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn
sl@0
   225
		COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0004-Instructions
sl@0
   226
		COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0004-Read
sl@0
   227
		OUTSTANDING
sl@0
   228
		DELAY           5000
sl@0
   229
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   230
		COMMAND		console1	Destroy
sl@0
   231
		COMMAND		console1	Close
sl@0
   232
		COMMAND		console1	~
sl@0
   233
	END_TEST_BLOCK
sl@0
   234
END_TESTCASE			BASE-BSP-DIGITISER-DRIVER-MANUAL-0004
sl@0
   235
sl@0
   236
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0005
sl@0
   237
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0005
sl@0
   238
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   239
//!                             Hal::Set(EPenState, TInt);   
sl@0
   240
//!                             TDigitiserHalFunction::EDigitiserHalXYState;
sl@0
   241
//! @SYMAuthor			Rehana Anwar
sl@0
   242
//! @SYMCreationDate		03/04/2008
sl@0
   243
//! @SYMTestCaseDesc		Pen State Manual Test 
sl@0
   244
//!                             Set the display mode to default mode. 
sl@0
   245
//!                             Disable the the Pen State for the digitiser. 
sl@0
   246
//!                             Wait for a pen event to be recieved.
sl@0
   247
//!                             Validate with user if pen event was recieved,and to fail the test if it was.
sl@0
   248
//!				Uses API elements: HAL::Set, EDigitiserHalXYState
sl@0
   249
//! @SYMTestActions    		1. Set the displaymode to the default mode
sl@0
   250
//!                             2. Initialise and create the RConsole handle object. 
sl@0
   251
//!                             3. Disable the EPenState (value is 0) using HAL:Set.
sl@0
   252
//!				4. Get EPenState using HAL::Get,and validate that it is disabled in step 3.
sl@0
   253
//!                             5. Wait for user to touch the digitiser. No TRawEvent should be triggered
sl@0
   254
//!                                Read should timeout.  
sl@0
   255
//!                             6. If in step 5 a TRawevent is triggered highlight the pixel touched.
sl@0
   256
//!				7. Wait for user to validate if testcase has passed or failed, via a keypress
sl@0
   257
//!				   (pass is dependant on the pass keypress see configuration file)
sl@0
   258
//!                             8. Clean up and Destroy the RConsole Handle object.
sl@0
   259
//! @SYMTestStatus		Implemented
sl@0
   260
//! @SYMTestPriority		High
sl@0
   261
//! @SYMTestExpectedResults  	Digitiser State (touch Screen state) is disabled. Read should timeout and cancel with 
sl@0
   262
//!                             a -3 AsyncError code. No TRawEvent should be triggered. 
sl@0
   263
//! @SYMTestType		CIT
sl@0
   264
	START_TEST_BLOCK	300	T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   265
	        CREATE_OBJECT	HalData digitiser1
sl@0
   266
                COMMAND	                digitiser1	Set             BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   267
                COMMAND	                digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-0005-PenState
sl@0
   268
                COMMAND	                digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-0005-PenState
sl@0
   269
                CREATE_OBJECT	        RConsole	console1
sl@0
   270
                COMMAND		        console1	new
sl@0
   271
                COMMAND		        console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init
sl@0
   272
                COMMAND		        console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn                
sl@0
   273
                COMMAND		        console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0005-PenState 
sl@0
   274
                COMMAND	 !AsyncError=-3 console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0005-PenState
sl@0
   275
                OUTSTANDING
sl@0
   276
                COMMAND		        console1	ClearScreen
sl@0
   277
                COMMAND                 console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0005-WriteFeedback
sl@0
   278
                COMMAND		        console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-WriteFeedback
sl@0
   279
	        COMMAND		        console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey       
sl@0
   280
                OUTSTANDING
sl@0
   281
                COMMAND		        console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   282
		COMMAND		        console1	Destroy
sl@0
   283
		COMMAND		        console1	Close
sl@0
   284
		COMMAND		        console1	~
sl@0
   285
        END_TEST_BLOCK
sl@0
   286
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0005
sl@0
   287
sl@0
   288
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0006
sl@0
   289
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0006
sl@0
   290
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   291
//!                             HAL::Set(EPenState, TInt);    
sl@0
   292
//!                             HAL::Get(EPenState, TInt{ref}) ;
sl@0
   293
//!                             TDigitiserHalFunction::EDigitiserHalXYState;
sl@0
   294
//!                             TRawEvent::EButton1Down;	
sl@0
   295
//!                             TRawEvent::EButton1Up
sl@0
   296
//! @SYMAuthor			Rehana Anwar
sl@0
   297
//! @SYMCreationDate		03/04/2008
sl@0
   298
//! @SYMTestCaseDesc		Pen State Test 
sl@0
   299
//!                             Set the display mode to default mode. 
sl@0
   300
//!                             Enable the the Pen State for the digitiser.  
sl@0
   301
//!                             Wait for a pen event to be recieved.
sl@0
   302
//!                             Validate with user if pen event was recieved and to pass the test, if it was.                      
sl@0
   303
//!				Uses API elements: HAL::Set, EDigitiserHalXYState
sl@0
   304
//! @SYMTestActions    		1. Set the displaymode to the default mode
sl@0
   305
//!                             2. Initialise and create the RConsole handle object. 
sl@0
   306
//!                             3. Enable the EPenState (value is 1) using HAL:Set.
sl@0
   307
//!				4. Get EPenState using HAL::Get, and validate that it is enabled (value is 1) in step 4.
sl@0
   308
//!                             5. Wait for user to touch the digitiser (A TRawEvent should be triggered).
sl@0
   309
//!                                and the Read should NOT timeout.  
sl@0
   310
//!                             6. If in step 5 a TRawevent is triggered highlight the pixel touched.
sl@0
   311
//!				7. Wait for user to validate if testcase has passed or failed, via a keypress
sl@0
   312
//!				   (pass is dependant on the pass keypress see configuration file)
sl@0
   313
//!                             8. Clean up and Destroy the RConsole Handle object.
sl@0
   314
//! @SYMTestStatus		Implemented
sl@0
   315
//! @SYMTestPriority		High
sl@0
   316
//! @SYMTestExpectedResults  	Digitiser State (touch Screen state) is enabled.  A TRawEvent should be triggered, 
sl@0
   317
//!                             highlighting the pixel touched.
sl@0
   318
//!                             Read should NOT timeout
sl@0
   319
//! @SYMTestType		CIT
sl@0
   320
	START_TEST_BLOCK	300	T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   321
	        CREATE_OBJECT	HalData         digitiser1
sl@0
   322
                COMMAND	        digitiser1	Set             BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   323
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-0006-PenState
sl@0
   324
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-0006-PenState
sl@0
   325
                CREATE_OBJECT	RConsole	console1
sl@0
   326
                COMMAND		console1	new
sl@0
   327
                COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init            
sl@0
   328
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn 
sl@0
   329
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0006-PenState                
sl@0
   330
                COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0006-PenState
sl@0
   331
                OUTSTANDING
sl@0
   332
                COMMAND		console1	ClearScreen
sl@0
   333
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0006-WriteFeedback
sl@0
   334
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-WriteFeedback
sl@0
   335
	        COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey     
sl@0
   336
                OUTSTANDING
sl@0
   337
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   338
                COMMAND		console1	Destroy
sl@0
   339
		COMMAND		console1	Close
sl@0
   340
		COMMAND		console1	~
sl@0
   341
        END_TEST_BLOCK
sl@0
   342
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0006
sl@0
   343
sl@0
   344
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0007
sl@0
   345
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0007
sl@0
   346
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   347
//!                             HAL::Set(EPenState, TInt);    
sl@0
   348
//!                             HAL::Get(EPenState, TInt{ref});
sl@0
   349
//!                             HAL::Get(EPenClick, TInt{ref}); 
sl@0
   350
//!                             TSoundHalFunction::ESoundHalPointerClickEnabled
sl@0
   351
//! @SYMAuthor			Rehana Anwar
sl@0
   352
//! @SYMCreationDate		03/04/2008
sl@0
   353
//! @SYMTestCaseDesc		EPenClick Test
sl@0
   354
//!                             Set the display mode to default mode.
sl@0
   355
//!                             Digitiser should support production of click sound,
sl@0
   356
//!                             if retrieval of EPenClickState is value 1.
sl@0
   357
//!                             Confirm whether digitiser supports
sl@0
   358
//!                             production of click sound via the setting and retrieval of EPenClick value 0.   
sl@0
   359
//!				Uses API elements:HAL::Get, ESoundHalPointerClickEnabled
sl@0
   360
//! @SYMTestActions    		1. Set the displaymode to the default mode
sl@0
   361
//!                             2. Initialise and create the RConsole handle object. 
sl@0
   362
//!                             3. Enable the EPenClickState (value is 1) using HAL:Set
sl@0
   363
//!                             4. Confirm the EPenClickState (value is 1) using HAL:Set
sl@0
   364
//!                             5. Enable the EPenState (value is 1) using HAL:Set.
sl@0
   365
//!                             6. Confirm the EPenState (value is 1) using HAL:Get.
sl@0
   366
//!                             7. Set the click sound to on for pen tap's in digitiser and validate that it is as expected.
sl@0
   367
//!                                in step 8 & 9, using EPenClick value as 1, using HAL:Set
sl@0
   368
//!                             8. Wait for user to touch the digitiser. (A TRawEvent should be triggered)
sl@0
   369
//!				9. If A TRawevent is triggered ask the user to validate if a click sound was not heard as
sl@0
   370
//!                                as EPenClick is value 0. Validation is via a keypress
sl@0
   371
//!				   (pass is dependant on the pass keypress see configuration file)
sl@0
   372
//!                                If no TrawEvent is triggered timeout the read in step 8 and fail the testcase.
sl@0
   373
//!				10. Clean up and Destroy the RConsole Handle object.
sl@0
   374
//! @SYMTestStatus		Implemented
sl@0
   375
//! @SYMTestPriority		High
sl@0
   376
//! @SYMTestExpectedResults  	Click sound is heard if EPenClick is enabled.
sl@0
   377
//!                             The device can produce a click sound.
sl@0
   378
//! @SYMTestType		CIT
sl@0
   379
              START_TEST_BLOCK	300	T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   380
		CREATE_OBJECT	HalData          digitiser1
sl@0
   381
                COMMAND	        digitiser1	Set             BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   382
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-PenClickState 
sl@0
   383
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-0007-PenClick 
sl@0
   384
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-0007-PenClick 
sl@0
   385
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EPenState_Setup
sl@0
   386
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EPenState_Setup
sl@0
   387
                CREATE_OBJECT	RConsole	console1
sl@0
   388
                COMMAND		console1	new
sl@0
   389
                COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init            
sl@0
   390
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn 
sl@0
   391
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0007-PenClick                 
sl@0
   392
                COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0007-PenClick 
sl@0
   393
                OUTSTANDING
sl@0
   394
                COMMAND		console1	ClearScreen
sl@0
   395
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0007-WriteFeedback
sl@0
   396
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-WriteFeedback
sl@0
   397
	        COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey              
sl@0
   398
                OUTSTANDING
sl@0
   399
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   400
                COMMAND		console1	Destroy
sl@0
   401
		COMMAND		console1	Close
sl@0
   402
                COMMAND		console1	~
sl@0
   403
        END_TEST_BLOCK
sl@0
   404
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0007
sl@0
   405
sl@0
   406
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0008
sl@0
   407
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008
sl@0
   408
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   409
//!                             HAL::Set(EPenState, TInt);    
sl@0
   410
//!                             HAL::Get(EPenState, TInt{ref});
sl@0
   411
//!                             HAL::Get(EPenClick, TInt{ref}); 
sl@0
   412
//!                             TSoundHalFunction::ESoundHalPointerClickEnabled
sl@0
   413
//! @SYMAuthor			Rehana Anwar
sl@0
   414
//! @SYMCreationDate		03/04/2008
sl@0
   415
//! @SYMTestCaseDesc		EPenClick Test
sl@0
   416
//!                             Set the display mode to default mode.
sl@0
   417
//!                             Digitiser should support  production of click sound,
sl@0
   418
//!                             if retrieval of EPenClickState is value 1.
sl@0
   419
//!                             Confirm whether digitiser supports
sl@0
   420
//!                             production of click sound via the setting and retrieval of EPenClick value 0.   
sl@0
   421
//!				Uses API elements:HAL::Get, ESoundHalPointerClickEnabled
sl@0
   422
//! @SYMTestActions    		1. Set the displaymode to the default mode
sl@0
   423
//!                             2. Initialise and create the RConsole handle object. 
sl@0
   424
//!                             3. Enable the EPenClickState (value is 1) using HAL:Set
sl@0
   425
//!                             4. Confirm the EPenClickState (value is 1) using HAL:Set
sl@0
   426
//!                             5. Enable the EPenState (value is 1) using HAL:Set.
sl@0
   427
//!                             6. Confirm the EPenState (value is 1) using HAL:Get.
sl@0
   428
//!                             7. Set the click sound to off for pen tap's in digitiser and validate that it is as expected.
sl@0
   429
//!                                in step 8 & 9, using EPenClick value as 0, using HAL:Set
sl@0
   430
//!                             8. Wait for user to touch the digitiser. (A TRawEvent should be triggered)
sl@0
   431
//!				9. If A TRawevent is triggered ask the user to validate if a click sound was not heard as
sl@0
   432
//!                                as EPenClick is value 0. Validation is via a keypress
sl@0
   433
//!				   (pass is dependant on the pass keypress see configuration file)
sl@0
   434
//!                                If no TrawEvent is triggered timeout the read in step 8 and fail the testcase.
sl@0
   435
//!				10. Clean up and Destroy the RConsole Handle object.
sl@0
   436
//! @SYMTestStatus		Implemented
sl@0
   437
//! @SYMTestPriority		High
sl@0
   438
//! @SYMTestExpectedResults  	Click sound is heard if EPenClick is enabled.
sl@0
   439
//!                             The device can produce a click sound.
sl@0
   440
//! @SYMTestStatus		Implemented
sl@0
   441
//! @SYMTestPriority		High
sl@0
   442
//! @SYMTestExpectedResults  	Click sound is heard if EPenClick is enabled, click sound is not heard if EPenClick is disabled.
sl@0
   443
//!                             The device cannot produce a click sound.
sl@0
   444
//! @SYMTestType		CIT
sl@0
   445
              START_TEST_BLOCK	300	T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   446
		CREATE_OBJECT	HalData          digitiser1
sl@0
   447
                COMMAND	        digitiser1	Set             BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   448
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EPenState_Setup
sl@0
   449
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EPenState_Setup
sl@0
   450
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-PenClickState
sl@0
   451
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008-PenClick 
sl@0
   452
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008-PenClick 
sl@0
   453
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008-Setup 
sl@0
   454
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008-Setup 
sl@0
   455
                CREATE_OBJECT	RConsole	console1
sl@0
   456
                COMMAND		console1	new
sl@0
   457
                COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init            
sl@0
   458
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn 
sl@0
   459
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008-PenClick                 
sl@0
   460
                COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008-PenClick 
sl@0
   461
                OUTSTANDING
sl@0
   462
                COMMAND		console1	ClearScreen
sl@0
   463
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0008-WriteFeedback
sl@0
   464
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-WriteFeedback
sl@0
   465
                COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey              
sl@0
   466
                OUTSTANDING
sl@0
   467
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   468
                COMMAND		console1	Destroy
sl@0
   469
		COMMAND		console1	Close
sl@0
   470
                COMMAND		console1        ~
sl@0
   471
        END_TEST_BLOCK
sl@0
   472
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0008
sl@0
   473
sl@0
   474
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0011
sl@0
   475
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0011
sl@0
   476
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   477
//!                             HAL::Get(EPenDisplayOn, TInt{ref}); 
sl@0
   478
//!                             HAL::Set(EPenDisplayOn, TInt);
sl@0
   479
//!                             HAL::Set(EDisplayState,TInt);
sl@0
   480
//!                             HAL::Get(EDisplayState, TInt{ref});
sl@0
   481
//!                             TPowerHalFunction::EPowerHalPointerSwitchesOn;
sl@0
   482
//!                             TPowerHalFunction::EPowerHalSetPointerSwitchesOn
sl@0
   483
//! @SYMAuthor			Rehana Anwar
sl@0
   484
//! @SYMCreationDate		03/04/2008
sl@0
   485
//! @SYMTestCaseDesc		EPenDisplayOn Test
sl@0
   486
//!                             Set the display mode to default mode.
sl@0
   487
//!                             Set the pen tap state to enabled. 
sl@0
   488
//!                             Retrieve the pen tap state. Delay the testcase by 9 seconds to cause the screen to switch off.
sl@0
   489
//!                             validate that a pen tap switches the display on, via a pen tap and user input.
sl@0
   490
//!				Uses API elements:HAL::Get,EPowerHalSetPointerSwitchesOn,EPowerHalPointerSwitchesOn
sl@0
   491
//! @SYMTestActions    		1. Set the displaymode to the default mode
sl@0
   492
//!                             3. Set the DisplayState using Hal::Set to on
sl@0
   493
//!                             4. Get the DisplayState using Hal::Set and confirm if on.
sl@0
   494
//!                             5. Set EPenDisplayOn (pen tap state) to on  using Hal::Set.
sl@0
   495
//!                             6. Get EPenDisplayOn (pen tap state) using Hal::Get and validate that it is as expected.
sl@0
   496
//!                             7. Wait for the maximum timeout speciifed to allow the display to switch off.
sl@0
   497
//!                             8. Wait for user to touch the digitiser. (A TRawEvent should be triggered).
sl@0
   498
//!                             9. If A TRawevent is triggered, validate the display state,
sl@0
   499
//!                                by asking the user to validate if a pen tap switched the display on.
sl@0
   500
//!                                User validation is via a keypress (pass is dependant on the pass keypress see configuration file).    
sl@0
   501
//!                                If no TrawEvent is triggered timeout the read in step 8 and fail the test.             
sl@0
   502
//!                             10. Set the DisplayState using Hal::Set to on
sl@0
   503
//!                             11. Get the DisplayState using Hal::Get and confirm if on.
sl@0
   504
//!				12. Destroy the HAL Handle object.
sl@0
   505
//! @SYMTestStatus		Implemented
sl@0
   506
//! @SYMTestPriority		High
sl@0
   507
//! @SYMTestExpectedResults  	A Pen tap or press enables the display.
sl@0
   508
//! @SYMTestType		CIT
sl@0
   509
	START_TEST_BLOCK	500	T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   510
                CREATE_OBJECT	HalData         digitiser1
sl@0
   511
                COMMAND	        digitiser1	Set             BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   512
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   513
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   514
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-0011-EPenDisplayOn 
sl@0
   515
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-0011-EPenDisplayOn 
sl@0
   516
                CREATE_OBJECT	RConsole	console1
sl@0
   517
                COMMAND		console1	new
sl@0
   518
                COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init            
sl@0
   519
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn 
sl@0
   520
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0011-EPenDisplayOn
sl@0
   521
                DELAY           6000000
sl@0
   522
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOff
sl@0
   523
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOff
sl@0
   524
                COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0011-EPenDisplayOn
sl@0
   525
                OUTSTANDING
sl@0
   526
                DELAY           1000000
sl@0
   527
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   528
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   529
                COMMAND		console1	ClearScreen                
sl@0
   530
                COMMAND		console1	ClearScreen
sl@0
   531
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0011-WriteFeedback
sl@0
   532
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-WriteFeedback
sl@0
   533
	        COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey   
sl@0
   534
                OUTSTANDING
sl@0
   535
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   536
                COMMAND		console1	Destroy
sl@0
   537
		COMMAND		console1	Close
sl@0
   538
                COMMAND		console1        ~         
sl@0
   539
        END_TEST_BLOCK
sl@0
   540
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0011
sl@0
   541
sl@0
   542
START_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0012
sl@0
   543
//! @SYMTestCaseID		BASE-BSP-DIGITISER-DRIVER-MANUAL-0012
sl@0
   544
//! @SYMAPI			HAL::Set(EDisplayMode, TInt);
sl@0
   545
//!                             HAL::Get(EPenDisplayOn, TInt{ref});
sl@0
   546
//!                             HAL::Set(EPenDisplayOn, TInt);
sl@0
   547
//!                             HAL::Set(EDisplayState,TInt);
sl@0
   548
//!                             HAL::Get(EDisplayState, TInt{ref});
sl@0
   549
//!                             TPowerHalFunction::EPowerHalPointerSwitchesOn;
sl@0
   550
//!                             TPowerHalFunction::EPowerHalSetPointerSwitchesOn
sl@0
   551
//! @SYMAuthor			Rehana Anwar
sl@0
   552
//! @SYMCreationDate		03/04/2008
sl@0
   553
//! @SYMTestCaseDesc		EPenDisplayOn Test
sl@0
   554
//!                             Set the display mode to default mode.
sl@0
   555
//!                             Set the pen tap state to disabled. 
sl@0
   556
//!                             Retrieve the pen tap state. Delay the testcase by 9 seconds to cause the screen to switch off.
sl@0
   557
//!                             Validate that a pen tap  does not switch the display on, via a pen tap and user input.
sl@0
   558
//!				Uses API elements:HAL::Get,EPowerHalSetPointerSwitchesOn,EPowerHalPointerSwitchesOn
sl@0
   559
//! @SYMTestActions    		1. Set the displaymode to the default mode
sl@0
   560
//!                             3. Set the DisplayState using Hal::Set to on
sl@0
   561
//!                             4. Get the DisplayState using Hal::Get and confirm if on.
sl@0
   562
//!                             5. Set EPenDisplayOn (pen tap state) to off using Hal::Set.
sl@0
   563
//!                             6. Get EPenDisplayOn (pen tap state) using Hal::Get and validate that it is as expected.
sl@0
   564
//!                             7. Wait for the maximum timeout speciifed to allow the display to switch off.
sl@0
   565
//!                             8. Wait for user to touch the digitiser. (A TRawEvent should be not be triggered).
sl@0
   566
//!                             9. If A TRawevent is triggered, fail the testcase,
sl@0
   567
//!                                by asking the user to validate if a pen tap switched the display on.
sl@0
   568
//!                                User validation is via a keypress (pass is dependant on the pass keypress see configuration file).    
sl@0
   569
//!                                If no TrawEvent is triggered timeout and cancel the read in step 8 and pass the test.             
sl@0
   570
//!                             10. Set the DisplayState using Hal::Set to on
sl@0
   571
//!                             11. Get the DisplayState using Hal::Get and confirm if on.
sl@0
   572
//!				12. Destroy the HAL Handle object.
sl@0
   573
//! @SYMTestStatus		Implemented
sl@0
   574
//! @SYMTestPriority		High
sl@0
   575
//! @SYMTestExpectedResults  	A pen tap has no effect, on the display state
sl@0
   576
//!                             Read should timeout and cancel with 
sl@0
   577
//!                             a -3 AsyncError code. No TRawEvent should be triggered. 
sl@0
   578
//! @SYMTestType		CIT
sl@0
   579
	START_TEST_BLOCK	500	T_Digitiser		\base\digitiser\base-bsp-digitiser-driver-manual.ini
sl@0
   580
                CREATE_OBJECT	        HalData         digitiser1
sl@0
   581
                COMMAND	        digitiser1	Set             BASE-BSP-DIGITISER-DRIVER-DISPLAYMODE_MANUAL
sl@0
   582
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   583
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   584
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-0012-EPenDisplayOn 
sl@0
   585
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-0012-EPenDisplayOn 
sl@0
   586
                CREATE_OBJECT   RConsole	console1
sl@0
   587
                COMMAND		console1	new
sl@0
   588
                COMMAND		console1	Init		BASE-BSP-DIGITISER-DRIVER-MANUAL-Init            
sl@0
   589
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-ControlOn 
sl@0
   590
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0012-EPenDisplayOn
sl@0
   591
                DELAY           6000000
sl@0
   592
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOff
sl@0
   593
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOff
sl@0
   594
                COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-0012-EPenDisplayOn
sl@0
   595
                OUTSTANDING
sl@0
   596
                DELAY           1000000
sl@0
   597
                COMMAND	        digitiser1	Set		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   598
                COMMAND	        digitiser1	Get		BASE-BSP-DIGITISER-DRIVER-MANUAL-EDisplayStateOn
sl@0
   599
                COMMAND		console1	ClearScreen
sl@0
   600
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-0012-WriteFeedback
sl@0
   601
                COMMAND		console1	Write		BASE-BSP-DIGITISER-DRIVER-MANUAL-WriteFeedback
sl@0
   602
	        COMMAND		console1	Read		BASE-BSP-DIGITISER-DRIVER-MANUAL-ReadKey   
sl@0
   603
                OUTSTANDING
sl@0
   604
                COMMAND		console1	Control		BASE-BSP-DIGITISER-DRIVER-MANUAL-RAWMODEOFF
sl@0
   605
                COMMAND		console1	Destroy
sl@0
   606
		COMMAND		console1	Close
sl@0
   607
                COMMAND		console1        ~              
sl@0
   608
        END_TEST_BLOCK
sl@0
   609
END_TESTCASE 			BASE-BSP-DIGITISER-DRIVER-MANUAL-0012