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