graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Session-PublicApi.script
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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		GRAPHICS-WSERV-Session-PublicApi
       
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-Session-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the RWsSession class
       
    24 // as a means of confidence that the API works as expected.
       
    25 //
       
    26 // The purpose is to provide a regression test suite of PublishedAll APIs for
       
    27 // RWsSession related classes.
       
    28 // Negative testing is performed to confirm that correct errors are returned
       
    29 // when incorrect parameters are given.
       
    30 //
       
    31 // The tests are fully automated.
       
    32 ///////////////////////////////////////////////////////////////////////////////
       
    33 
       
    34 
       
    35 LOAD_SUITE	T_GraphicsWservAPI
       
    36 
       
    37 
       
    38 // ****************************************************************************
       
    39 // RWsSession
       
    40 // ****************************************************************************
       
    41 
       
    42 
       
    43 
       
    44 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0001
       
    45 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0001
       
    46 //! @SYMAPI			RWsSession
       
    47 //! @SYMAuthor			Sunny Yeh
       
    48 //! @SYMCreationDate		18/12/2006
       
    49 //! @SYMTestCaseDesc		RWsSession(): create a RWsSession object by C++ defaut constructor
       
    50 //!				Uses API elements: RWsSession()
       
    51 //! @SYMTestActions		simply execute new() a RWsSession to create the object
       
    52 //! @SYMTestStatus		Implemented
       
    53 //! @SYMTestPriority		Critical
       
    54 //! @SYMTestExpectedResults	RWsSession object was created without causing panic
       
    55 //! @SYMTestType		CIT
       
    56 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
    57 		CREATE_OBJECT	RWsSession	ws
       
    58 		COMMAND		ws		new
       
    59 	END_TEST_BLOCK
       
    60 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0001
       
    61 
       
    62 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0003
       
    63 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0003
       
    64 //! @SYMAPI			RWsSession
       
    65 //! @SYMAuthor			Sunny Yeh
       
    66 //! @SYMCreationDate		18/12/2006
       
    67 //! @SYMTestCaseDesc		Close():Closes the window server session
       
    68 //!				Uses API elements: RWsSession::Connect & Close
       
    69 //! @SYMTestActions		Create and connect a RWsSession using pre-constructed file server
       
    70 //! @SYMTestStatus		Implemented
       
    71 //! @SYMTestPriority		Medium
       
    72 //! @SYMTestExpectedResults	Connect() method returns KErrNone without causing panic
       
    73 //! @SYMTestType		CIT
       
    74 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
    75 		CREATE_OBJECT	RWsSession	ws
       
    76 		COMMAND		ws		new
       
    77 		COMMAND		ws		Connect
       
    78 		COMMAND		ws		Close
       
    79 	END_TEST_BLOCK
       
    80 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0003
       
    81 
       
    82 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0004
       
    83 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0004
       
    84 //! @SYMAPI			RWsSession
       
    85 //! @SYMAuthor			Sunny Yeh
       
    86 //! @SYMCreationDate		19/12/2006
       
    87 //! @SYMTestCaseDesc 		ResourceCount():Gets the number of objects that the server has allocated for that client.
       
    88 //!				Uses API elements: Connect() ,PurgePointerEvents() and Close()
       
    89 //! @SYMTestActions		1. use new() to create a RWsSession object
       
    90 //!				2. use Connect() to make a connection with window server
       
    91 //!				3. use ResourceCount() to get the number of objects
       
    92 //!				4. Close RWsSession object using Close()
       
    93 //! @SYMTestStatus		Implemented
       
    94 //! @SYMTestPriority		Low
       
    95 //! @SYMTestExpectedResults	all pointer events waiting remove
       
    96 //! @SYMTestType		CIT
       
    97 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
    98 		CREATE_OBJECT	RWsSession	ws
       
    99 		COMMAND		ws		new
       
   100 		COMMAND		ws		Connect
       
   101 		COMMAND		ws		ResourceCount			GRAPHICS-WSERV-Session-PublicApi-0004-0001-ResourceCount_command003
       
   102 		COMMAND		ws		Close
       
   103 	END_TEST_BLOCK
       
   104 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0004
       
   105 
       
   106 
       
   107 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0005
       
   108 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0005
       
   109 //! @SYMAPI			RWsSession
       
   110 //! @SYMAuthor			Sunny Yeh
       
   111 //! @SYMCreationDate		18/12/2006
       
   112 //! @SYMTestCaseDesc		Flush(): sends all pending commands in the buffer to the window server
       
   113 //!				Uses API elements: RWsSession::Connnect & Flush & Close
       
   114 //! @SYMTestActions		1. Create and connect a RWsSession
       
   115 //!				2. To send all pending commands in the buffer to the window server
       
   116 //!				3. Close the RWsSession
       
   117 //! @SYMTestStatus		Implemented
       
   118 //! @SYMTestPriority		Low
       
   119 //! @SYMTestExpectedResults	sends all pending commands in the buffer to the window server
       
   120 //! @SYMTestType		CIT
       
   121 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   122 		CREATE_OBJECT	RWsSession	ws
       
   123 		COMMAND		ws		new
       
   124 		COMMAND		ws		Connect
       
   125 		COMMAND		ws		Flush
       
   126 		COMMAND		ws		Close
       
   127 	END_TEST_BLOCK
       
   128 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0005
       
   129 
       
   130 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0006
       
   131 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0006
       
   132 //! @SYMAPI			RWsSession
       
   133 //! @SYMAuthor			Sunny Yeh
       
   134 //! @SYMCreationDate		19/12/2006
       
   135 //! @SYMTestCaseDesc		SetAutoFlush(TBool aState): set auto-flush state of a RWsSession
       
   136 //!				Uses API elements: RWsSession::Connnect & SetAutoFlush & Close
       
   137 //! @SYMTestActions		1. Create and connect a RWsSession
       
   138 //!				2. SetAutoFlush to TRUE, and check the return value should be FALSE (previous value the default)
       
   139 //!				3. SetAutoFlush to FALSE, and check the return value should be TRUE (previous value)
       
   140 //!				4. Close the RWsSession
       
   141 //! @SYMTestStatus		Implemented
       
   142 //! @SYMTestPriority		Low
       
   143 //! @SYMTestExpectedResults	Set auto-flush state without causing panic, and the return value is its previous value as expected if provided
       
   144 //! @SYMTestType		CIT
       
   145 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   146 		CREATE_OBJECT	RWsSession	ws
       
   147 		COMMAND		ws		new
       
   148 		COMMAND		ws		Connect
       
   149 		COMMAND		ws		SetAutoFlush			GRAPHICS-WSERV-Session-PublicApi-0006-0001-SetAutoFlush_command003
       
   150 		COMMAND		ws		SetAutoFlush			GRAPHICS-WSERV-Session-PublicApi-0006-0001-SetAutoFlush_command004
       
   151 		COMMAND		ws		Close
       
   152 	END_TEST_BLOCK
       
   153 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0006
       
   154 
       
   155 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0007
       
   156 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0007
       
   157 //! @SYMAPI			RWsSession
       
   158 //! @SYMAuthor			Sunny Yeh
       
   159 //! @SYMCreationDate		19/12/2006
       
   160 //! @SYMTestCaseDesc		SetBufferSizeL(TInt aBufSize): set both the buffer size and maximum buffer size for queuing commands to send to the Windows Server
       
   161 //!				Uses API elements: RWsSession::Connnect & SetBufferSizeL & Close
       
   162 //! @SYMTestActions		1. Create and connect a RWsSession
       
   163 //!				2. set minimum buffer size to 640 bytes
       
   164 //!				3. Close the RWsSession
       
   165 //! @SYMTestStatus		Implemented
       
   166 //! @SYMTestPriority		Low
       
   167 //! @SYMTestExpectedResults	the minimum buffer size to be set
       
   168 //! @SYMTestType		CIT
       
   169 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   170 		CREATE_OBJECT	RWsSession	ws
       
   171 		COMMAND		ws		new
       
   172 		COMMAND		ws		Connect
       
   173 		COMMAND		ws		SetBufferSizeL			GRAPHICS-WSERV-Session-PublicApi-0007-0001-SetBufferSizeL_command003
       
   174 		COMMAND		ws		Close
       
   175 	END_TEST_BLOCK
       
   176 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0007
       
   177 
       
   178 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0008
       
   179 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0008
       
   180 //! @SYMAPI			RWsSession
       
   181 //! @SYMAuthor			Sunny Yeh
       
   182 //! @SYMCreationDate		19/12/2006
       
   183 //! @SYMTestCaseDesc		SetBufferSizeL(TInt aBufSize) & SetMaxBufferSizeL(TInt aMaxBufSize): set both the buffer size and maximum buffer size for queuing commands to send to the Windows Server
       
   184 //!				Uses API elements: RWsSession::Connnect & SetBufferSizeL & SetMaxBufferSizeL & Close
       
   185 //! @SYMTestActions		1. Create and connect a RWsSession
       
   186 //!				2. set minimum buffer size to 640 bytes
       
   187 //!				3. set maximum buffer size to 16384 bytes
       
   188 //!				4. Close the RWsSession
       
   189 //! @SYMTestStatus		Implemented
       
   190 //! @SYMTestPriority		Low
       
   191 //! @SYMTestExpectedResults	both the minimum buffer size and maximum buffer size for queuing commands to be set
       
   192 //! @SYMTestType		CIT
       
   193 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   194 		CREATE_OBJECT	RWsSession	ws
       
   195 		COMMAND		ws		new
       
   196 		COMMAND		ws		Connect
       
   197 		COMMAND		ws		SetBufferSizeL			GRAPHICS-WSERV-Session-PublicApi-0008-0001-SetBufferSizeL_command003
       
   198 		COMMAND		ws		SetMaxBufferSizeL		GRAPHICS-WSERV-Session-PublicApi-0008-0001-SetMaxBufferSizeL_command004
       
   199 		COMMAND		ws		Close
       
   200 	END_TEST_BLOCK	
       
   201 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0008
       
   202 
       
   203 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0009
       
   204 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0009
       
   205 //! @SYMAPI			RWsSession
       
   206 //! @SYMAuthor			Sunny Yeh
       
   207 //! @SYMCreationDate		19/12/2006
       
   208 //! @SYMTestCaseDesc		SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): set the default fading parameters
       
   209 //!				SetSystemFaded(TBool aFaded):all windows in the system as faded or unfaded, using the default fading parameters
       
   210 //!				Uses API elements: RWsSession::Connnect & SetDefaultFadingParameters & SetSystemFaded & Close
       
   211 //! @SYMTestActions		1. Create and connect a RWsSession
       
   212 //!				2. Uses SetDefaultFadingParameters to set the mapping values of black map fading parameter to 0
       
   213 //!				3. Uses SetDefaultFadingParameters to set the mapping values of white map fading parameter to 255
       
   214 //!				4. Uses SetSystemFaded to all windows in the system as faded or unfaded, using the default fading parameters
       
   215 //!				5. Close the RWsSession
       
   216 //! @SYMTestStatus		Implemented
       
   217 //! @SYMTestPriority		Low
       
   218 //! @SYMTestExpectedResults	the mapping values of black map and white fading parameter to be set
       
   219 //! @SYMTestType		CIT
       
   220 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   221 		CREATE_OBJECT	RWsSession	ws
       
   222 		COMMAND		ws		new
       
   223 		COMMAND		ws		Connect
       
   224 		COMMAND		ws		SetDefaultFadingParameters	GRAPHICS-WSERV-Session-PublicApi-0009-0001-SetDefaultFadingParameters_command003
       
   225 		COMMAND		ws		SetSystemFaded			GRAPHICS-WSERV-Session-PublicApi-0009-0001-SetSystemFaded_command004
       
   226 		COMMAND		ws		Close
       
   227 	END_TEST_BLOCK
       
   228 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0009
       
   229 
       
   230 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0010
       
   231 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0010
       
   232 //! @SYMAPI			RWsSession
       
   233 //! @SYMAuthor			Sunny Yeh
       
   234 //! @SYMCreationDate		19/12/2006
       
   235 //! @SYMTestCaseDesc		SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): set the default fading parameters
       
   236 //!				SetSystemFaded(TBool aFaded, TUint8 aBlackMap, TUint8 aWhiteMap):set all windows in the system as faded or unfaded, overriding the default fading parameters 
       
   237 //!				Uses API elements: RWsSession::Connnect & SetDefaultFadingParameters & SetSystemFaded & Close
       
   238 //! @SYMTestActions		1. Create and connect a RWsSession
       
   239 //!				2. Uses SetDefaultFadingParameters to set the mapping values of black map fading parameter to 0
       
   240 //!				3. Uses SetDefaultFadingParameters to set the mapping values of white map fading parameter to 255
       
   241 //!				4. Uses SetSystemFaded to set ETrue to fade all windows
       
   242 //!				5. Uses SetSystemFaded to set the mapping values of black map fading parameter to 10
       
   243 //!				6. Uses SetSystemFaded to set the mapping values of black map fading parameter to 244
       
   244 //!				7. Close the RWsSession
       
   245 //! @SYMTestStatus		Implemented
       
   246 //! @SYMTestPriority		Low
       
   247 //! @SYMTestExpectedResults	the default fading parameters and  all windows in the system as faded or unfaded, overriding the default fading parameters to be set
       
   248 //! @SYMTestType		CIT
       
   249 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   250 		CREATE_OBJECT	RWsSession	ws
       
   251 		COMMAND		ws		new
       
   252 		COMMAND		ws		Connect
       
   253 		COMMAND		ws		SetDefaultFadingParameters	GRAPHICS-WSERV-Session-PublicApi-0010-0001-SetDefaultFadingParameters_command003
       
   254 		COMMAND		ws		SetSystemFaded			GRAPHICS-WSERV-Session-PublicApi-0010-0001-SetSystemFaded_command004
       
   255 		COMMAND		ws		Close
       
   256 	END_TEST_BLOCK
       
   257 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0010
       
   258 
       
   259 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0011
       
   260 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0011
       
   261 //! @SYMAPI			RWsSession
       
   262 //! @SYMAuthor			Sunny Yeh
       
   263 //! @SYMCreationDate		19/12/2006
       
   264 //! @SYMTestCaseDesc		SetShadowVector(const TPoint &aVector): set the shadow vector
       
   265 //!				ShadowVector():get the current value of the shadow vector
       
   266 //!				Uses API elements: RWsSession::Connnect & SetShadowVector & ShadowVector & Close
       
   267 //! @SYMTestActions		1. Create and connect a RWsSession
       
   268 //!				2. Uses SetShadowVector to set the mapping values of black map fading parameter to 0
       
   269 //!				3. Uses SetShadowVector to set the mapping values of white map fading parameter to 255
       
   270 //!				4. Uses ShadowVector to set ETrue to fade all windows
       
   271 //!				5. Uses ShadowVector to set the mapping values of black map fading parameter to 10
       
   272 //!				6. Close the RWsSession
       
   273 //! @SYMTestStatus		Implemented
       
   274 //! @SYMTestPriority		Low
       
   275 //! @SYMTestExpectedResults	get the current value of the shadow vector correctly
       
   276 //! @SYMTestType		CIT
       
   277 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   278 		CREATE_OBJECT	RWsSession	ws
       
   279 		COMMAND		ws		new
       
   280 		COMMAND		ws		Connect
       
   281 		COMMAND		ws		SetShadowVector			GRAPHICS-WSERV-Session-PublicApi-0011-0001-SetShadowVector_command003
       
   282 		COMMAND		ws		ShadowVector			GRAPHICS-WSERV-Session-PublicApi-0011-0001-ShadowVector_command004
       
   283 		COMMAND		ws		Close
       
   284 	END_TEST_BLOCK
       
   285 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0011
       
   286 
       
   287 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0012
       
   288 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0012
       
   289 //! @SYMAPI			RWsSession
       
   290 //! @SYMAuthor			Sunny Yeh
       
   291 //! @SYMCreationDate		19/12/2006
       
   292 //! @SYMTestCaseDesc		SetPointerCursorArea(const TPoint &aVector): set the shadow vector
       
   293 //!				PointerCursorArea():get the current value of the shadow vector
       
   294 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close
       
   295 //! @SYMTestActions		1. Create and connect a RWsSession
       
   296 //!				2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle  to -90,
       
   297 //!					the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to 696 and the vertical co-ordinate of the bottom of the rectangle to 312
       
   298 //!				3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for the first screen display mode
       
   299 //!				4. Uses SetShadowVector to set the mapping values of white map fading parameter to 255
       
   300 //!				5. Uses PointerCursorArea to set ETrue to fade all windows
       
   301 //!				6. Uses ShadowVector to set the mapping values of black map fading parameter to 10
       
   302 //!				7. Close the RWsSession
       
   303 //! @SYMTestStatus		Implemented
       
   304 //! @SYMTestPriority		Low
       
   305 //! @SYMTestExpectedResults	the new shadow vector to be set and get the expected value
       
   306 //! @SYMTestType		CIT
       
   307 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   308 		CREATE_OBJECT	RWsSession	ws
       
   309 		COMMAND		ws		new
       
   310 		COMMAND		ws		Connect
       
   311 		COMMAND		ws		SetPointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0012-0001-SetPointerCursorArea_command003
       
   312 		COMMAND		ws		PointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0012-0001-PointerCursorArea_command004
       
   313 		COMMAND		ws		Close
       
   314 	END_TEST_BLOCK
       
   315 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0012
       
   316 
       
   317 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0013
       
   318 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0013
       
   319 //! @SYMAPI			RWsSession
       
   320 //! @SYMAuthor			Sunny Yeh
       
   321 //! @SYMCreationDate		19/12/2006
       
   322 //! @SYMTestCaseDesc		SetPointerCursorArea(TInt aScreenSizeMode, const TRect &aArea): set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode
       
   323 //!				PointerCursorArea(TInt aScreenSizeMode) const:get the current value of the shadow vector
       
   324 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close
       
   325 //! @SYMTestActions		1. Create and connect a RWsSession
       
   326 //!				2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle  to -90,
       
   327 //!					the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to 696 and the vertical co-ordinate of the bottom of the rectangle to 312
       
   328 //!				3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode
       
   329 //!				4. Set the screen mode to which the new area applies to 0
       
   330 //!				5. Close the RWsSession
       
   331 //! @SYMTestStatus		Implemented
       
   332 //! @SYMTestPriority		Low
       
   333 //! @SYMTestExpectedResults	the new shadow vector to be set and get the expected value
       
   334 //! @SYMTestType		CIT
       
   335 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   336 		CREATE_OBJECT	RWsSession	ws
       
   337 		COMMAND		ws		new
       
   338 		COMMAND		ws		Connect
       
   339 		COMMAND		ws		SetPointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0013-0001-SetPointerCursorArea_command003
       
   340 		COMMAND		ws		PointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0013-0001-PointerCursorArea_command004
       
   341 		COMMAND		ws		Close
       
   342 	END_TEST_BLOCK
       
   343 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0013
       
   344 
       
   345 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0014
       
   346 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0014
       
   347 //! @SYMAPI			RWsSession
       
   348 //! @SYMAuthor			Sunny Yeh
       
   349 //! @SYMCreationDate		19/12/2006
       
   350 //! @SYMTestCaseDesc		SetPointerCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor
       
   351 //!				PointerCursorMode(TInt aScreenSizeMode) const:get the current mode for the pointer cursor
       
   352 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorMode & PointerCursorMode & Close
       
   353 //! @SYMTestActions		1. Create and connect a RWsSession
       
   354 //!				2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNormal
       
   355 //!				3. Uses TPointerCursorMode's object as parameter for SetPointerCursorMode to set the current mode for the pointer cursor
       
   356 //!				4. Uses PointerCursorMode to get the current mode for the pointer cursor
       
   357 //!				5. Close the RWsSession
       
   358 //! @SYMTestStatus		Implemented
       
   359 //! @SYMTestPriority		Low
       
   360 //! @SYMTestExpectedResults	the current mode for the pointer cursor to be set as the expected value
       
   361 //! @SYMTestType		CIT
       
   362 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   363 		CREATE_OBJECT	RWsSession	ws
       
   364 		CREATE_OBJECT	RWindowGroup	wingrp
       
   365 		COMMAND		ws		new
       
   366 		COMMAND		ws		Connect
       
   367 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0014-0001-new_command003
       
   368 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0014-0001-Construct_command004
       
   369 		COMMAND		ws		SetPointerCursorMode		GRAPHICS-WSERV-Session-PublicApi-0014-0001-SetPointerCursorMode_command005
       
   370 		COMMAND		ws		PointerCursorMode		GRAPHICS-WSERV-Session-PublicApi-0014-0001-PointerCursorMode_command006
       
   371 		COMMAND		wingrp		Close
       
   372 		COMMAND		ws		Close
       
   373 	END_TEST_BLOCK
       
   374 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0014
       
   375 
       
   376 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0015
       
   377 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0015
       
   378 //! @SYMAPI			RWsSession
       
   379 //! @SYMAuthor			Sunny Yeh
       
   380 //! @SYMCreationDate		19/12/2006
       
   381 //! @SYMTestCaseDesc		SetClientCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor
       
   382 //!				Uses API elements: RWsSession::Connnect & SetClientCursorMode & Close
       
   383 //! @SYMTestActions		1. Create and connect a RWsSession
       
   384 //!				2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNormal
       
   385 //!				3. Uses TPointerCursorMode's object as parameter for SetClientCursorMode to set the current mode for the pointer cursor
       
   386 //!				4. Close the RWsSession
       
   387 //! @SYMTestStatus		Implemented
       
   388 //! @SYMTestPriority		Low
       
   389 //! @SYMTestExpectedResults	the current mode for the pointer cursor to be set as the expected value
       
   390 //! @SYMTestType		CIT
       
   391 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   392 		CREATE_OBJECT	RWsSession	ws
       
   393 		COMMAND		ws		new
       
   394 		COMMAND		ws		Connect
       
   395 		COMMAND		ws		SetClientCursorMode		GRAPHICS-WSERV-Session-PublicApi-0015-0001-SetClientCursorMode_command003
       
   396 		COMMAND		ws		Close
       
   397 	END_TEST_BLOCK
       
   398 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0015
       
   399 
       
   400 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0016
       
   401 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0016
       
   402 //! @SYMAPI			RWsSession
       
   403 //! @SYMAuthor			Sunny Yeh
       
   404 //! @SYMCreationDate		19/12/2006
       
   405 //! @SYMTestCaseDesc		SetPointerCursorPosition(const TPoint &aPosition): set the pointer cursor position
       
   406 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorPosition & Close
       
   407 //! @SYMTestActions		1. Create and connect a RWsSession
       
   408 //!				2. Uses TPoint's object to define the pointer cursor X position as 6 and Y position as 0
       
   409 //!				3. Uses PointerCursorPosition() to get the pointer cursor position
       
   410 //!				4. Close the RWsSession
       
   411 //! @SYMTestStatus		Implemented
       
   412 //! @SYMTestPriority		Low
       
   413 //! @SYMTestExpectedResults	the current mode for the pointer cursor to be set as the expected value
       
   414 //! @SYMTestType		CIT
       
   415 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   416 		CREATE_OBJECT	RWsSession	ws
       
   417 		COMMAND		ws		new
       
   418 		COMMAND		ws		Connect
       
   419 		COMMAND		ws		SetPointerCursorPosition	GRAPHICS-WSERV-Session-PublicApi-0016-0001-SetPointerCursorPosition_command003
       
   420 		COMMAND		ws		PointerCursorPosition		GRAPHICS-WSERV-Session-PublicApi-0016-0001-PointerCursorPosition_command004
       
   421 		COMMAND		ws		Close
       
   422 	END_TEST_BLOCK
       
   423 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0016
       
   424 
       
   425 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0017
       
   426 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0017
       
   427 //! @SYMAPI			RWsSession
       
   428 //! @SYMAuthor			Sunny Yeh
       
   429 //! @SYMCreationDate		19/12/2006
       
   430 //! @SYMTestCaseDesc		SetKeyboardRepeatRate(const TTimeIntervalMicroSeconds32 &aInitialTime, const TTimeIntervalMicroSeconds32 &aTime): set the system-wide keyboard repeat rate
       
   431 //!				Uses API elements: RWsSession::Connnect & SetKeyboardRepeatRate & Close
       
   432 //! @SYMTestActions		1. Create and connect a RWsSession
       
   433 //!				2. Get the current values of the Keyboard Repeat Rate and store it
       
   434 //!				3. Set values to the Keyboard Repeat Rate
       
   435 //!				4. Get the Keyboard Repeat Rate and verify that the are the values used in Set
       
   436 //!				5. Restore the previous values to the Keyboard Repeat Rate
       
   437 //!				6. Close the RWsSession
       
   438 //! @SYMTestStatus		Implemented
       
   439 //! @SYMTestPriority		Low
       
   440 //! @SYMTestExpectedResults	the current mode for the pointer cursor to be set as the expected value
       
   441 //! @SYMTestType		CIT
       
   442 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   443 		CREATE_OBJECT	RWsSession	ws
       
   444 		COMMAND		ws		new
       
   445 		COMMAND		ws		Connect
       
   446 		COMMAND		ws		GetKeyboardRepeatRate		GRAPHICS-WSERV-Session-PublicApi-0017-0001-GetKeyboardRepeatRate_command003
       
   447 		COMMAND		ws		SetKeyboardRepeatRate		GRAPHICS-WSERV-Session-PublicApi-0017-0001-SetKeyboardRepeatRate_command004
       
   448 		COMMAND		ws		GetKeyboardRepeatRate		GRAPHICS-WSERV-Session-PublicApi-0017-0001-GetKeyboardRepeatRate_command005
       
   449 		COMMAND		ws		SetKeyboardRepeatRate		GRAPHICS-WSERV-Session-PublicApi-0017-0001-SetKeyboardRepeatRate_command006
       
   450 		COMMAND		ws		Close
       
   451 	END_TEST_BLOCK
       
   452 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0017
       
   453 
       
   454 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0018
       
   455 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0018
       
   456 //! @SYMAPI			RWsSession
       
   457 //! @SYMAuthor			Sunny Yeh
       
   458 //! @SYMCreationDate		18/12/2006
       
   459 //! @SYMTestCaseDesc		Close():Closes the window server session
       
   460 //!				Uses API elements: RWsSession::Connect & Close
       
   461 //! @SYMTestActions		Create and connect a RWsSession using pre-constructed file server
       
   462 //! @SYMTestStatus		Implemented
       
   463 //! @SYMTestPriority		Medium
       
   464 //! @SYMTestExpectedResults	Connect() method returns KErrNone without causing panic
       
   465 //! @SYMTestType		CIT
       
   466 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   467 		CREATE_OBJECT	RWsSession	ws
       
   468 		COMMAND		ws		new
       
   469 		COMMAND		ws		Connect
       
   470 		COMMAND		ws		SetDoubleClick			GRAPHICS-WSERV-Session-PublicApi-0018-0001-SetDoubleClick_command003
       
   471 		COMMAND		ws		GetDoubleClickSettings		GRAPHICS-WSERV-Session-PublicApi-0018-0001-GetDoubleClickSettings_command004
       
   472 		COMMAND		ws		Close
       
   473 	END_TEST_BLOCK
       
   474 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0018
       
   475 
       
   476 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0019
       
   477 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0019
       
   478 //! @SYMAPI			RWsSession
       
   479 //! @SYMAuthor			Sunny Yeh
       
   480 //! @SYMCreationDate		18/12/2006
       
   481 //! @SYMTestCaseDesc		Close():Closes the window server session
       
   482 //!				Uses API elements: RWsSession::Connect & Close
       
   483 //! @SYMTestActions		Create and connect a RWsSession using pre-constructed file server
       
   484 //! @SYMTestStatus		Implemented
       
   485 //! @SYMTestPriority		Medium
       
   486 //! @SYMTestExpectedResults	Connect() method returns KErrNone without causing panic
       
   487 //! @SYMTestType		CIT
       
   488 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   489 		CREATE_OBJECT	RWsSession	ws
       
   490 		COMMAND		ws		new
       
   491 		COMMAND		ws		Connect				GRAPHICS-WSERV-Session-PublicApi-0019-0001-Connect_command002
       
   492 		COMMAND		ws		Close
       
   493 	END_TEST_BLOCK
       
   494 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0019
       
   495 
       
   496 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0020
       
   497 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0020
       
   498 //! @SYMAPI			RWsSession
       
   499 //! @SYMAuthor			Sunny Yeh
       
   500 //! @SYMCreationDate		18/12/2006
       
   501 //! @SYMTestCaseDesc		Version(): get the connected WSERV version
       
   502 //!				Uses API elements: RWsSession::Connnect & Version & Close
       
   503 //! @SYMTestActions		1. Create and connect a RWsSession
       
   504 //!				2. Get the version of the RWsSession connected WSERV
       
   505 //!				3. Close the RWsSession
       
   506 //! @SYMTestStatus		Implemented
       
   507 //! @SYMTestPriority		Low
       
   508 //! @SYMTestExpectedResults	Get WSERV version without causing panic, returned version matches the expected if provided
       
   509 //! @SYMTestType		CIT
       
   510 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   511 		CREATE_OBJECT	RWsSession	ws
       
   512 		COMMAND		ws		new
       
   513 		COMMAND		ws		Connect
       
   514 		COMMAND		ws		Version				GRAPHICS-WSERV-Session-PublicApi-0020-0001-Version_command003
       
   515 		COMMAND		ws		Close
       
   516 	END_TEST_BLOCK
       
   517 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0020
       
   518 
       
   519 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0021
       
   520 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0021
       
   521 //! @SYMAPI			RWsSession
       
   522 //! @SYMAuthor			Sunny Yeh
       
   523 //! @SYMCreationDate		18/12/2006
       
   524 //! @SYMTestCaseDesc		WindowGroupList(RArray< TWindowGroupChainInfo > *aWindowList): get a list of identifier of window group and parent identifier of window group of all window groups in all window server sessions via RArray
       
   525 //!				Uses API elements: RWsSession::Connnect & WindowGroupList & Close
       
   526 //! @SYMTestActions		1. Create and connect a RWsSession
       
   527 //!				2. use NumWindowGroups() to get the total number of window groups currently
       
   528 //!				3. get a list of identifier of window group via RArray
       
   529 //!				4. Close the RWsSession
       
   530 //! @SYMTestStatus		Implemented
       
   531 //! @SYMTestPriority		Low
       
   532 //! @SYMTestExpectedResults	Get WSERV version without causing panic, returned version matches the expected if provided
       
   533 //! @SYMTestType		CIT
       
   534 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   535 		CREATE_OBJECT	RWsSession	ws
       
   536 		COMMAND		ws		new
       
   537 		COMMAND		ws		Connect
       
   538 		COMMAND		ws		NumWindowGroups
       
   539 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0021-0001-WindowGroupList_command004
       
   540 		COMMAND		ws		Close
       
   541 	END_TEST_BLOCK
       
   542 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0021
       
   543 
       
   544 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0022
       
   545 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0022
       
   546 //! @SYMAPI			RWsSession
       
   547 //! @SYMAuthor			Sunny Yeh
       
   548 //! @SYMCreationDate		18/12/2006
       
   549 //! @SYMTestCaseDesc		SetDefaultSystemPointerCursor(): set the default system pointer cursor
       
   550 //!				Uses API elements: RWsSession::Connnect & ClaimSystemPointerCursorList & SetDefaultSystemPointerCursor & Close
       
   551 //! @SYMTestActions		1. Create and connect a RWsSession
       
   552 //!				2. Uses ClaimSystemPointerCursorList to gain access to the list,
       
   553 //!				4. Close the RWsSession
       
   554 //! @SYMTestStatus		Implemented
       
   555 //! @SYMTestPriority		Low
       
   556 //! @SYMTestExpectedResults	The system pointer cursor should be owned by the UI and fail with error KErrInUse(-14)
       
   557 //! @SYMTestType		CIT
       
   558 	START_TEST_BLOCK		10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   559 		CREATE_OBJECT		RWsSession	ws
       
   560 		COMMAND			ws		new
       
   561 		COMMAND			ws		Connect
       
   562 		COMMAND	!Error=-14	ws		ClaimSystemPointerCursorList
       
   563 		COMMAND			ws		Close
       
   564 	END_TEST_BLOCK
       
   565 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0022
       
   566 
       
   567 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0024
       
   568 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0024
       
   569 //! @SYMAPI			RWsSession
       
   570 //! @SYMAuthor			Sunny Yeh
       
   571 //! @SYMCreationDate		18/12/2006
       
   572 //! @SYMTestCaseDesc		WindowGroupList(CArrayFixFlat< TInt > *aWindowList) to get a list of identifiers of all window groups in all window server sessions
       
   573 //!				SetWindowGroupOrdinalPosition(): set the ordinal position of a window group
       
   574 //!				Uses API elements: RWsSession::Connnect & WindowGroupList & SetWindowGroupOrdinalPosition & Close
       
   575 //! @SYMTestActions		1. Create and connect a RWsSession
       
   576 //!						2. Create and construct a window group
       
   577 //!						3. Set the window group's identifier.
       
   578 //!						4. Use SetWindowGroupOrdinalPosition to set the window group's position
       
   579 //!						5. Close the RWindowGroup
       
   580 //!						6. Close the RWsSession
       
   581 //! @SYMTestStatus		Implemented
       
   582 //! @SYMTestPriority		Low
       
   583 //! @SYMTestExpectedResults	window group ordinal position is set and no panic.
       
   584 //! @SYMTestType		CIT
       
   585 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   586 		CREATE_OBJECT	RWsSession	ws
       
   587 		CREATE_OBJECT	RWindowGroup	wingrp
       
   588 		COMMAND		ws		new
       
   589 		COMMAND		ws		Connect
       
   590         COMMAND		wingrp	new								GRAPHICS-WSERV-Session-PublicApi-0024-0001-new_command003
       
   591 		COMMAND		wingrp	Construct						GRAPHICS-WSERV-Session-PublicApi-0024-0001-Construct_command004
       
   592         COMMAND		wingrp	Identifier
       
   593 		COMMAND		ws		SetWindowGroupOrdinalPosition	GRAPHICS-WSERV-Session-PublicApi-0024-0001-SetWindowGroupOrdinalPosition_command005
       
   594 		COMMAND		wingrp	Close
       
   595 		COMMAND		ws		Close
       
   596 	END_TEST_BLOCK
       
   597 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0024
       
   598 
       
   599 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0025
       
   600 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0025
       
   601 //! @SYMAPI			RWsSession
       
   602 //! @SYMAuthor			Sunny Yeh
       
   603 //! @SYMCreationDate		1/08/2006
       
   604 //! @SYMTestCaseDesc 		Gets a list of identifiers of all window groups in all window server sessions
       
   605 //!				Uses API elements: Connect(),SetAutoFlush(), WindowGroupList(),and Close()
       
   606 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   607 //!				2. use Connect() to make a connection with window server
       
   608 //!				3. set the state to TRUE to active the auto flush if it needs to flush
       
   609 //!				4. use NumWindowGroups() to get the total number of window groups currently
       
   610 //!				5. use WindowGroupList() to get a list of identifiers of all window groups
       
   611 //!				6. set the array buffer as CArrayFixFlat< TInt >
       
   612 //!				7. Close RWsSession object using Close()
       
   613 //! @SYMTestStatus		Implemented
       
   614 //! @SYMTestPriority		Low
       
   615 //! @SYMTestExpectedResults	Display a list of identifiers of all window groups in all window server sessions
       
   616 //! @SYMTestType		CIT
       
   617 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   618 		CREATE_OBJECT	RWsSession	ws
       
   619 		COMMAND		ws		new
       
   620 		COMMAND		ws		Connect
       
   621 		COMMAND		ws		SetAutoFlush		GRAPHICS-WSERV-Session-PublicApi-0025-0001-SetAutoFlush_command004
       
   622 		COMMAND		ws		NumWindowGroups
       
   623 		COMMAND		ws		WindowGroupList		GRAPHICS-WSERV-Session-PublicApi-0025-0001-WindowGroupList_command006
       
   624 		COMMAND		ws		Close
       
   625 	END_TEST_BLOCK
       
   626 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0025
       
   627 
       
   628 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0026
       
   629 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0026
       
   630 //! @SYMAPI			RWsSession
       
   631 //! @SYMAuthor			Sunny Yeh
       
   632 //! @SYMCreationDate		1/08/2006
       
   633 //! @SYMTestCaseDesc 		Gets a list of identifiers of all window groups in all window server sessions
       
   634 //!				Uses API elements: Connect(),SetAutoFlush(),GetWindowGroupClientThreadId(),and Close()
       
   635 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   636 //!				2. use Connect() to make a connection with window server
       
   637 //!				3. set the state to TRUE to active the auto flush if it needs to flush
       
   638 //!				4. use NumWindowGroups() to get the total number of window groups currently
       
   639 //!				5. use WindowGroupList() to get a list of identifiers of all window groups
       
   640 //!				6. use GetWindowGroupClientThreadId() to get the thread ID of the client that owns the window group specified by the window group identifier.
       
   641 //!				7. Close RWsSession object using Close()
       
   642 //! @SYMTestStatus		Implemented
       
   643 //! @SYMTestPriority		Low
       
   644 //! @SYMTestExpectedResults	Set
       
   645 //! @SYMTestType		CIT
       
   646 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   647 		CREATE_OBJECT	RWsSession	ws
       
   648 		CREATE_OBJECT	RWindowGroup	wingrp
       
   649 		COMMAND		ws		new
       
   650 		COMMAND		ws		Connect
       
   651 		COMMAND		ws		SetAutoFlush			GRAPHICS-WSERV-Session-PublicApi-0026-0001-SetAutoFlush_command003
       
   652 		COMMAND		ws		NumWindowGroups
       
   653 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0026-0001-new_command005
       
   654 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0026-0001-Construct_command006
       
   655 		COMMAND		ws		NumWindowGroups			GRAPHICS-WSERV-Session-PublicApi-0026-0001-NumWindowGroups_command007
       
   656 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0026-0001-WindowGroupList_command008
       
   657 		COMMAND		ws		GetWindowGroupClientThreadId	GRAPHICS-WSERV-Session-PublicApi-0026-0001-GetWindowGroupClientThreadId_command009
       
   658 		COMMAND		wingrp		Close
       
   659 		COMMAND		ws		Close
       
   660 	END_TEST_BLOCK
       
   661 
       
   662 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0026
       
   663 
       
   664 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0027
       
   665 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0027
       
   666 //! @SYMAPI			RWsSession
       
   667 //! @SYMAuthor			Sunny Yeh
       
   668 //! @SYMCreationDate		1/08/2006
       
   669 //! @SYMTestCaseDesc 		Gets a list of identifiers of all window groups in all window server sessions
       
   670 //!				Uses API elements: Connect(),SetAutoFlush(),FindWindowGroupIdentifier(),and Close()
       
   671 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   672 //!				2. use Connect() to make a connection with window server
       
   673 //!				3. set the state to TRUE to active the auto flush if it needs to flush
       
   674 //!				4. use FindWindowGroupIdentifier() to get all window groups whose names match a given string
       
   675 //!				5. use '*e*' as match string
       
   676 //!			  	6. Close RWsSession object using Close()
       
   677 //! @SYMTestStatus		Implemented
       
   678 //! @SYMTestPriority		Low
       
   679 //! @SYMTestExpectedResults	Set
       
   680 //! @SYMTestType		CIT
       
   681 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   682 		CREATE_OBJECT	RWsSession	ws
       
   683 		COMMAND		ws		new
       
   684 		COMMAND		ws		Connect
       
   685 		COMMAND		ws		SetAutoFlush			GRAPHICS-WSERV-Session-PublicApi-0027-0001-SetAutoFlush_command004
       
   686 		COMMAND		ws		FindWindowGroupIdentifier	GRAPHICS-WSERV-Session-PublicApi-0027-0001-FindWindowGroupIdentifier_command005
       
   687 		COMMAND		ws		Close
       
   688 	END_TEST_BLOCK
       
   689 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0027
       
   690 
       
   691 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0028
       
   692 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0028
       
   693 //! @SYMAPI			RWsSession
       
   694 //! @SYMAuthor			Sunny Yeh
       
   695 //! @SYMCreationDate		1/08/2006
       
   696 //! @SYMTestCaseDesc 		Gets the total number of window groups currently running in the window server.
       
   697 //!				Uses API elements: Connect(), NumWindowGroups(),and Close()
       
   698 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   699 //!				2. use Connect() to make a connection with window server
       
   700 //!				3. use NumWindowGroups() to get the total number of window groups currently
       
   701 //!				4. Close RWsSession object using Close()
       
   702 //! @SYMTestStatus		Implemented
       
   703 //! @SYMTestPriority		Low
       
   704 //! @SYMTestExpectedResults	Display the total number of window groups
       
   705 //! @SYMTestType		CIT
       
   706 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   707 		CREATE_OBJECT	RWsSession	ws
       
   708 		COMMAND		ws		new
       
   709 		COMMAND		ws		Connect
       
   710 		COMMAND		ws		NumWindowGroups
       
   711 		COMMAND		ws		Close
       
   712 	END_TEST_BLOCK
       
   713 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0028
       
   714 
       
   715 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0029
       
   716 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0029
       
   717 //! @SYMAPI			RWsSession
       
   718 //! @SYMAuthor			Sunny Yeh
       
   719 //! @SYMCreationDate		1/08/2006
       
   720 //! @SYMTestCaseDesc 		SetFocusScreen(TInt aScreenNumber):Sets the focus screen
       
   721 //!				GetFocusScreen():Gets focus screen
       
   722 //!				Uses API elements: Connect(),SetFocusScreen(), GetFocusScreen(),and Close()
       
   723 //! @SYMTestActions		1. Uses new() to create a RWsSession object
       
   724 //!				2. Uses Connect() to make a connection with window server
       
   725 //!				3. Uses SetFocusScreen to set focus screen 
       
   726 //!				4. Uses GetFocusScreen() to get the focus screen
       
   727 //!				5. Close RWsSession object using Close()
       
   728 //! @SYMTestStatus		Implemented
       
   729 //! @SYMTestPriority		Low
       
   730 //! @SYMTestExpectedResults	return KErrNone while SetFocusScreen and get the screen number of current focus screen 
       
   731 //! @SYMTestType		CIT
       
   732 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   733 		CREATE_OBJECT	RWsSession	ws
       
   734 		COMMAND		ws		new
       
   735 		COMMAND		ws		Connect
       
   736 		COMMAND		ws		SetFocusScreen			GRAPHICS-WSERV-Session-PublicApi-0029-0001-SetFocusScreen_command004
       
   737 		COMMAND		ws		GetFocusScreen			GRAPHICS-WSERV-Session-PublicApi-0029-0001-GetFocusScreen_command005
       
   738 		COMMAND		ws		Close
       
   739 	END_TEST_BLOCK
       
   740 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0029
       
   741 
       
   742 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0030
       
   743 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0030
       
   744 //! @SYMAPI			RWsSession
       
   745 //! @SYMAuthor			Sunny Yeh
       
   746 //! @SYMCreationDate		1/08/2006
       
   747 //! @SYMTestCaseDesc 		Set up and get the background color
       
   748 //!				Uses API elements: Connect() ,SetAutoFlush(),SetBackgroundColor(),GetBackgroundColor()and Close()
       
   749 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   750 //!				2. use Connect() to make a connection with window server
       
   751 //!				3. set the state to TRUE to active the auto flush if it needs to flush
       
   752 //!				4. set the background color as Red(255),Green(245)and Blue(245)
       
   753 //!				5. get the background color to verify
       
   754 //!				6. Close RWsSession object using Close()
       
   755 //! @SYMTestStatus		Implemented
       
   756 //! @SYMTestPriority		Low
       
   757 //! @SYMTestExpectedResults	Set auto-flush state without causing panic, and the return the value of background color  as expected
       
   758 //! @SYMTestType		CIT
       
   759 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   760 		CREATE_OBJECT	RWsSession	ws
       
   761 		COMMAND		ws		new
       
   762 		COMMAND		ws		Connect
       
   763 		COMMAND		ws		SetAutoFlush			GRAPHICS-WSERV-Session-PublicApi-0030-0001-SetAutoFlush_command004
       
   764 		COMMAND		ws		SetBackgroundColor		GRAPHICS-WSERV-Session-PublicApi-0030-0001-SetBackgroundColor_command005
       
   765 		COMMAND		ws		GetBackgroundColor		GRAPHICS-WSERV-Session-PublicApi-0030-0001-GetBackgroundColor_command006
       
   766 		COMMAND		ws		GetDefaultOwningWindow		GRAPHICS-WSERV-Session-PublicApi-0030-0001-GetDefaultOwningWindow_command007
       
   767 		COMMAND		ws		Close
       
   768 	END_TEST_BLOCK
       
   769 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0030
       
   770 
       
   771 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0031
       
   772 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0031
       
   773 //! @SYMAPI			RWsSession
       
   774 //! @SYMAuthor			Sunny Yeh
       
   775 //! @SYMCreationDate		19/12/2006
       
   776 //! @SYMTestCaseDesc 		Set up and get the background color
       
   777 //!				Uses API elements: Connect() ,NumWindowGroups()and Close()
       
   778 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   779 //!				2. use Connect() to make a connection with window server
       
   780 //!				3. use NumWindowGroups() to get the total number of window groups currently running in the window server and include all the groups running in all sessions
       
   781 //!				4. Close RWsSession object using Close()
       
   782 //! @SYMTestStatus		Implemented
       
   783 //! @SYMTestPriority		Low
       
   784 //! @SYMTestExpectedResults	return the total number of window groups currently running as expected
       
   785 //! @SYMTestType		CIT
       
   786 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   787 		CREATE_OBJECT	RWsSession	ws
       
   788 		COMMAND		ws		new
       
   789 		COMMAND		ws		Connect
       
   790 		COMMAND		ws		NumWindowGroups
       
   791 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0031-0001-WindowGroupList_command005
       
   792 		COMMAND		ws		GetWindowGroupOrdinalPriority	GRAPHICS-WSERV-Session-PublicApi-0031-0001-GetWindowGroupOrdinalPriority_command006
       
   793 		COMMAND		ws		Close
       
   794 	END_TEST_BLOCK
       
   795 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0031
       
   796 
       
   797 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0032
       
   798 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0032
       
   799 //! @SYMAPI			RWsSession
       
   800 //! @SYMAuthor			Sunny Yeh
       
   801 //! @SYMCreationDate		19/12/2006
       
   802 //! @SYMTestCaseDesc 		Set up and get the background color
       
   803 //!				Uses API elements: Connect() ,SetBufferSizeL()and Close()
       
   804 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   805 //!				2. use Connect() to make a connection with window server
       
   806 //!				3. use SetBufferSizeL() to set the buffer size and maximum buffer size for
       
   807 //!					queuing commands to send to the Windows Server
       
   808 //!				4. use NumWindowGroups() to get the total number of window groups currently
       
   809 //!				5. use WindowGroupList() to get a list of identifiers of all window groups in all window server	sessions with RArray
       
   810 //!				6. Close RWsSession object using Close()
       
   811 //! @SYMTestStatus		Implemented
       
   812 //! @SYMTestPriority		Low
       
   813 //! @SYMTestExpectedResults	allocate the required memory without any leave code or panic code
       
   814 //! @SYMTestType		CIT
       
   815 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   816 		CREATE_OBJECT	RWsSession	ws
       
   817 		COMMAND		ws		new
       
   818 		COMMAND		ws		Connect
       
   819 		COMMAND		ws		SetBufferSizeL			GRAPHICS-WSERV-Session-PublicApi-0032-0001-SetBufferSizeL_command004
       
   820 		COMMAND		ws		NumWindowGroups
       
   821 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0032-0001-WindowGroupList_command006
       
   822 		COMMAND		ws		Close
       
   823 	END_TEST_BLOCK
       
   824 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0032
       
   825 
       
   826 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0033
       
   827 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0033
       
   828 //! @SYMAPI			RWsSession
       
   829 //! @SYMAuthor			Sunny Yeh
       
   830 //! @SYMCreationDate		19/12/2006
       
   831 //! @SYMTestCaseDesc 		Set up and get the background color
       
   832 //!				Uses API elements: Connect() ,SetMaxBufferSizeL()and Close()
       
   833 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   834 //!				2. use Connect() to make a connection with window server
       
   835 //!				3. use SetMaxBufferSizeL() to set the buffer size and maximum buffer size for
       
   836 //!					queuing commands to send to the Windows Server
       
   837 //!		   		4. Close RWsSession object using Close()
       
   838 //! @SYMTestStatus		Implemented
       
   839 //! @SYMTestPriority		Low
       
   840 //! @SYMTestExpectedResults	allocate the required memory without any leave code or panic code
       
   841 //! @SYMTestType		CIT
       
   842 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   843 		CREATE_OBJECT	RWsSession	ws
       
   844 		COMMAND		ws		new
       
   845 		COMMAND		ws		Connect
       
   846 		COMMAND		ws		SetMaxBufferSizeL		GRAPHICS-WSERV-Session-PublicApi-0033-0001-SetMaxBufferSizeL_command004
       
   847 		COMMAND		ws		Close
       
   848 	END_TEST_BLOCK
       
   849 
       
   850 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0033
       
   851 
       
   852 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0038
       
   853 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0038
       
   854 //! @SYMAPI			RWsSession
       
   855 //! @SYMAuthor			Sunny Yeh
       
   856 //! @SYMCreationDate		19/12/2006
       
   857 //! @SYMTestCaseDesc 		RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=0):Requests the window server to send OFF events to a window
       
   858 //!				Uses API elements: Connect() ,RequestOffEvents()and Close()
       
   859 //! @SYMTestActions		1.	use new() to create a RWsSession object
       
   860 //!				2.	use Connect() to make a connection with window server
       
   861 //!				3.	new and Construct a RWindowGroup within the RWsSession
       
   862 //!				4.	Execute RequestOffEvents() with FALSE to make WSERV switch back to powering down the machine itself
       
   863 //!				5.	Destruct and close all objects used
       
   864 //! @SYMTestStatus		Implemented
       
   865 //! @SYMTestPriority		Low
       
   866 //! @SYMTestExpectedResults	allocate the required memory without any leave code or panic code
       
   867 //! @SYMTestType		CIT
       
   868 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   869 		CREATE_OBJECT	RWsSession	ws
       
   870 		CREATE_OBJECT	RWindowGroup	wingrp
       
   871 		COMMAND		ws		new
       
   872 		COMMAND		ws		Connect
       
   873 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0038-0001-new_command01
       
   874 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0038-0001-Construct_command02
       
   875 		COMMAND		ws		RequestOffEvents		GRAPHICS-WSERV-Session-PublicApi-0038-0001-RequestOffEvents_command003
       
   876 		COMMAND		wingrp		Close
       
   877 		COMMAND		ws		Close
       
   878 	END_TEST_BLOCK
       
   879 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0038
       
   880 
       
   881 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0039
       
   882 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0039
       
   883 //! @SYMAPI			RWsSession
       
   884 //! @SYMAuthor			Sunny Yeh
       
   885 //! @SYMCreationDate		19/12/2006
       
   886 //! @SYMTestCaseDesc 		RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=0):Requests the window server to send OFF events to a window
       
   887 //!				Uses API elements: Connect() ,RequestOffEvents()and Close()
       
   888 //! @SYMTestActions		1.	use new() to create a RWsSession object
       
   889 //!				2.	use Connect() to make a connection with window server
       
   890 //!				3.	new and Construct a RWindowGroup within the RWsSession
       
   891 //!				4.	Execute RequestOffEvents() with TRUE to request WSERV to send OFF events to the RWindowGroup
       
   892 //!				5.	Destruct and close all objects used
       
   893 //! @SYMTestStatus		Implemented
       
   894 //! @SYMTestPriority		Low
       
   895 //! @SYMTestExpectedResults	Error KErrAlreadyExists(-11) expected as the system should already have a window assigned for off events
       
   896 //! @SYMTestType		CIT
       
   897 	START_TEST_BLOCK		10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   898 		CREATE_OBJECT		RWsSession	ws
       
   899 		CREATE_OBJECT		RWindowGroup	wingrp
       
   900 		COMMAND			ws		new
       
   901 		COMMAND			ws		Connect
       
   902 		COMMAND			wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0039-0001-new_command01
       
   903 		COMMAND			wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0039-0001-Construct_command02
       
   904 		COMMAND !Error=-11	ws		RequestOffEvents		GRAPHICS-WSERV-Session-PublicApi-0039-0001-RequestOffEvents_command003
       
   905 		COMMAND			wingrp		Close
       
   906 		COMMAND			ws		Close
       
   907 	END_TEST_BLOCK
       
   908 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0039
       
   909 
       
   910 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0040
       
   911 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0040
       
   912 //! @SYMAPI			RWsSession
       
   913 //! @SYMAuthor			Sunny Yeh
       
   914 //! @SYMCreationDate		19/12/2006
       
   915 //! @SYMTestCaseDesc 		NumWindowGroups(TInt aPriority):Gets the number of window groups of a given window group priority running in all sessions in the window server.
       
   916 //!				Uses API elements: Connect() ,NumWindowGroups()and Close()
       
   917 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   918 //!				2. use Connect() to make a connection with window server
       
   919 //!				3. use NumWindowGroups() to get the number of window groups of a given window group priority running in all sessions
       
   920 //!				4. Close RWsSession object using Close()
       
   921 //! @SYMTestStatus		Implemented
       
   922 //! @SYMTestPriority		Low
       
   923 //! @SYMTestExpectedResults	restore all mapping hotkey
       
   924 //! @SYMTestType		CIT
       
   925 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   926 		CREATE_OBJECT	RWsSession	ws
       
   927 		COMMAND		ws		new
       
   928 		COMMAND		ws		Connect
       
   929 		COMMAND		ws		NumWindowGroups			GRAPHICS-WSERV-Session-PublicApi-0040-0001-NumWindowGroups_command003
       
   930 		COMMAND		ws		Close
       
   931 	END_TEST_BLOCK
       
   932 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0040
       
   933 
       
   934 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0041
       
   935 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0041
       
   936 //! @SYMAPI			RWsSession
       
   937 //! @SYMAuthor			Sunny Yeh
       
   938 //! @SYMCreationDate		19/12/2006
       
   939 //! @SYMTestCaseDesc 		WindowGroupList(TInt aPriority, CArrayFixFlat< TInt > *aWindowList):							Lists the number of window groups of a given window group priority running in all window server sessions
       
   940 //!				GetWindowGroupHandle(TInt aIdentifier):Gets the handle of the window specified by the window group identifier
       
   941 //!				Uses API elements: Connect() ,WindowGroupList(),GetWindowGroupHandle() and Close()
       
   942 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   943 //!				2. use Connect() to make a connection with window server
       
   944 //!				3. use NumWindowGroups() to get the total number of window groups currently
       
   945 //!				4. use WindowGroupList() to Lists the number of window groups of a given window group priority
       
   946 //!				5. use GetWindowGroupHandle() to get the handle of the window specified by the window group identifier
       
   947 //!				6. Close RWsSession object using Close()
       
   948 //! @SYMTestStatus		Implemented
       
   949 //! @SYMTestPriority		Low
       
   950 //! @SYMTestExpectedResults	restore all mapping hotkey
       
   951 //! @SYMTestType		CIT
       
   952 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   953 		CREATE_OBJECT	RWsSession	ws
       
   954 		CREATE_OBJECT	RWindowGroup	wingrp
       
   955 		COMMAND		ws		new
       
   956 		COMMAND		ws		Connect
       
   957 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0041-0001-new_command003
       
   958 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0041-0001-Construct_command004
       
   959 		COMMAND		ws		NumWindowGroups
       
   960 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0041-0001-WindowGroupList_command006
       
   961 		COMMAND		ws		GetWindowGroupHandle		GRAPHICS-WSERV-Session-PublicApi-0041-0001-GetWindowGroupHandle_command007
       
   962 		COMMAND		wingrp		Close
       
   963 		COMMAND		ws		Close
       
   964 	END_TEST_BLOCK
       
   965 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0041
       
   966 
       
   967 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0044
       
   968 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0044
       
   969 //! @SYMAPI			RWsSession
       
   970 //! @SYMAuthor			Sunny Yeh
       
   971 //! @SYMCreationDate		19/12/2006
       
   972 //! @SYMTestCaseDesc 		FetchMessage(TUid &aUid, TPtr8 &aParams, const TWsEvent &aMessageEvent):causes a flush of the window server buffer
       
   973 //!				Uses API elements: Connect() ,FetchMessage()and Close()
       
   974 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   975 //!				2. use Connect() to make a connection with window server
       
   976 //!				3. use FetchMessage() to cause a flush of the window server buffer
       
   977 //!				4. Close RWsSession object using Close()
       
   978 //! @SYMTestStatus		Implemented
       
   979 //! @SYMTestPriority		Low
       
   980 //! @SYMTestExpectedResults	Error KErrNotFound(-1) as no events have been triggered
       
   981 //! @SYMTestType		CIT
       
   982 	START_TEST_BLOCK		10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
   983 		CREATE_OBJECT		RWsSession	ws
       
   984 		COMMAND			ws		new
       
   985 		COMMAND			ws		Connect
       
   986 		COMMAND 		ws		FetchMessage
       
   987 		COMMAND			ws		Close
       
   988 	END_TEST_BLOCK
       
   989 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0044
       
   990 
       
   991 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0045
       
   992 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0045
       
   993 //! @SYMAPI			RWsSession
       
   994 //! @SYMAuthor			Sunny Yeh
       
   995 //! @SYMCreationDate		19/12/2006
       
   996 //! @SYMTestCaseDesc 		SetHotKey(THotKey aType,TUint aKeyCode,TUint aModifierMask,TUint aModifier):sets the hot keys
       
   997 //!				Uses API elements: Connect() ,SetHotKey()and Close()
       
   998 //! @SYMTestActions		1. use new() to create a RWsSession object
       
   999 //!				2. use Connect() to make a connection with window server
       
  1000 //!				3. use SetHotKey() to set the hot key to EHotKeyIncBrightness and key code to EKeyLeftAlt
       
  1001 //!				4. Close RWsSession object using Close()
       
  1002 //! @SYMTestStatus		Implemented
       
  1003 //! @SYMTestPriority		Low
       
  1004 //! @SYMTestExpectedResults	hot key and key code can be set
       
  1005 //! @SYMTestType		CIT
       
  1006 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1007 		CREATE_OBJECT	RWsSession	ws
       
  1008 		COMMAND		ws		new
       
  1009 		COMMAND		ws		Connect
       
  1010 		COMMAND		ws		SetHotKey			GRAPHICS-WSERV-Session-PublicApi-0045-0001-SetHotKey_command004
       
  1011 		COMMAND		ws		Close
       
  1012 	END_TEST_BLOCK
       
  1013 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0045
       
  1014 
       
  1015 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0046
       
  1016 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0046
       
  1017 //! @SYMAPI			RWsSession
       
  1018 //! @SYMAuthor			Sunny Yeh
       
  1019 //! @SYMCreationDate		19/12/2006
       
  1020 //! @SYMTestCaseDesc 		ClearHotKeys(THotKey aType):Clears all mappings for the specified hotkey, including the default mapping
       
  1021 //!				Uses API elements: Connect() ,ClearHotKeys()and Close()
       
  1022 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1023 //!				2. use Connect() to make a connection with window server
       
  1024 //!				3. use ClearHotKeys() to clear all mappings
       
  1025 //!				4. Close RWsSession object using Close()
       
  1026 //! @SYMTestStatus		Implemented
       
  1027 //! @SYMTestPriority		Low
       
  1028 //! @SYMTestExpectedResults	clear all mapping hotkey
       
  1029 //! @SYMTestType		CIT
       
  1030 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1031 		CREATE_OBJECT	RWsSession	ws
       
  1032 		COMMAND		ws		new
       
  1033 		COMMAND		ws		Connect
       
  1034 		COMMAND		ws		ClearHotKeys			GRAPHICS-WSERV-Session-PublicApi-0046-0001-ClearHotKeys_command004
       
  1035 		COMMAND		ws		Close
       
  1036 	END_TEST_BLOCK
       
  1037 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0046
       
  1038 
       
  1039 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0047
       
  1040 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0047
       
  1041 //! @SYMAPI			RWsSession
       
  1042 //! @SYMAuthor			Sunny Yeh
       
  1043 //! @SYMCreationDate		19/12/2006
       
  1044 //! @SYMTestCaseDesc 		RestoreDefaultHotKey(THotKey aType):Restores the default mapping for a hot key
       
  1045 //!				Uses API elements: Connect() ,RestoreDefaultHotKey()and Close()
       
  1046 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1047 //!				2. use Connect() to make a connection with window server
       
  1048 //!				3. use RestoreDefaultHotKey() to restore the default mapping
       
  1049 //!				4. Close RWsSession object using Close()
       
  1050 //! @SYMTestStatus		Implemented
       
  1051 //! @SYMTestPriority		Low
       
  1052 //! @SYMTestExpectedResults	restore all mapping hotkey
       
  1053 //! @SYMTestType		CIT
       
  1054 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1055 		CREATE_OBJECT	RWsSession	ws
       
  1056 		COMMAND		ws		new
       
  1057 		COMMAND		ws		Connect
       
  1058 		COMMAND		ws		RestoreDefaultHotKey		GRAPHICS-WSERV-Session-PublicApi-0047-0001-RestoreDefaultHotKey_command004
       
  1059 		COMMAND		ws		Close
       
  1060 	END_TEST_BLOCK
       
  1061 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0047
       
  1062 
       
  1063 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0048
       
  1064 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0048
       
  1065 //! @SYMAPI			RWsSession
       
  1066 //! @SYMAuthor			Sunny Yeh
       
  1067 //! @SYMCreationDate		19/12/2006
       
  1068 //! @SYMTestCaseDesc 		RestoreDefaultHotKey(TEventModifier aModifier, TModifierState aState):sets the state of the modifier keys
       
  1069 //!				Uses API elements: Connect() ,SetModifierState()and Close()
       
  1070 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1071 //!				2. use Connect() to make a connection with window server
       
  1072 //!				3. use SetModifierState() to set the state of the modifier keys
       
  1073 //!				4. Close RWsSession object using Close()
       
  1074 //! @SYMTestStatus		Implemented
       
  1075 //! @SYMTestPriority		Low
       
  1076 //! @SYMTestExpectedResults	restore all mapping hotkey
       
  1077 //! @SYMTestType		CIT
       
  1078 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1079 		CREATE_OBJECT	RWsSession	ws
       
  1080 		COMMAND		ws		new
       
  1081 		COMMAND		ws		Connect
       
  1082 		COMMAND		ws		SetModifierState		GRAPHICS-WSERV-Session-PublicApi-0048-0001-SetModifierState_command004
       
  1083 		COMMAND		ws		Close
       
  1084 	END_TEST_BLOCK
       
  1085 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0048
       
  1086 
       
  1087 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0049
       
  1088 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0049
       
  1089 //! @SYMAPI			RWsSession
       
  1090 //! @SYMAuthor			Sunny Yeh
       
  1091 //! @SYMCreationDate		19/12/2006
       
  1092 //! @SYMTestCaseDesc 		GetDefaultOwningWindow():gets the identifier of the current default owning window group
       
  1093 //!				Uses API elements: Connect() ,GetDefaultOwningWindow()and Close()
       
  1094 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1095 //!				2. use Connect() to make a connection with window server
       
  1096 //!				3. use GetDefaultOwningWindow() to get the identifier of the current default owning window group
       
  1097 //!				4. Close RWsSession object using Close()
       
  1098 //! @SYMTestStatus		Implemented
       
  1099 //! @SYMTestPriority		Low
       
  1100 //! @SYMTestExpectedResults	restore all mapping hotkey
       
  1101 //! @SYMTestType		CIT
       
  1102 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1103 		CREATE_OBJECT	RWsSession	ws
       
  1104 		COMMAND		ws		new
       
  1105 		COMMAND		ws		Connect
       
  1106 		COMMAND		ws		GetDefaultOwningWindow		GRAPHICS-WSERV-Session-PublicApi-0049-0001-GetDefaultOwningWindow_command004
       
  1107 		COMMAND		ws		Close
       
  1108 	END_TEST_BLOCK
       
  1109 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0049
       
  1110 
       
  1111 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0050
       
  1112 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0050
       
  1113 //! @SYMAPI			RWsSession
       
  1114 //! @SYMAuthor			Sunny Yeh
       
  1115 //! @SYMCreationDate		19/12/2006
       
  1116 //! @SYMTestCaseDesc 		GetDefaultOwningWindow(TInt aScreenNumber):gets the identifier of the current default owning window group on a specified screen
       
  1117 //!				Uses API elements: Connect() ,GetDefaultOwningWindow()and Close()
       
  1118 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1119 //!				2. use Connect() to make a connection with window server
       
  1120 //!				3. use GetDefaultOwningWindow() to get the identifier of the current default owning window group on a specified screen
       
  1121 //!				4. Close RWsSession object using Close()
       
  1122 //! @SYMTestStatus		Implemented
       
  1123 //! @SYMTestPriority		Low
       
  1124 //! @SYMTestExpectedResults	restore all mapping hotkey
       
  1125 //! @SYMTestType		CIT
       
  1126 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1127 		CREATE_OBJECT	RWsSession	ws
       
  1128 		COMMAND		ws		new
       
  1129 		COMMAND		ws		Connect
       
  1130 		COMMAND		ws		GetDefaultOwningWindow		GRAPHICS-WSERV-Session-PublicApi-0050-0001-GetDefaultOwningWindow_command004
       
  1131 		COMMAND		ws		Close
       
  1132 	END_TEST_BLOCK
       
  1133 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0050
       
  1134 
       
  1135 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0051
       
  1136 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0051
       
  1137 //! @SYMAPI			RWsSession
       
  1138 //! @SYMAuthor			Sunny Yeh
       
  1139 //! @SYMCreationDate		19/12/2006
       
  1140 //! @SYMTestCaseDesc 		NumWindowGroups(TInt aScreenNumber, TInt aPriority):gets the number of window groups of a given window group priority running on a specified screen
       
  1141 //!				Uses API elements: Connect() ,NumWindowGroups()and Close()
       
  1142 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1143 //!				2. use Connect() to make a connection with window server
       
  1144 //!				3. use NumWindowGroups() to get the number of window groups of a given window group priority running on a specified screen
       
  1145 //!				4. Close RWsSession object using Close()
       
  1146 //! @SYMTestStatus		Implemented
       
  1147 //! @SYMTestPriority		Low
       
  1148 //! @SYMTestExpectedResults	Number of window groups of priority on the specified screen
       
  1149 //! @SYMTestType		CIT
       
  1150 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1151 		CREATE_OBJECT	RWsSession	ws
       
  1152 		COMMAND		ws		new
       
  1153 		COMMAND		ws		Connect
       
  1154 		COMMAND		ws		NumWindowGroups			GRAPHICS-WSERV-Session-PublicApi-0051-0001-NumWindowGroups_command003
       
  1155 		COMMAND		ws		Close
       
  1156 	END_TEST_BLOCK
       
  1157 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0051
       
  1158 
       
  1159 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0052
       
  1160 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0052
       
  1161 //! @SYMAPI			RWsSession
       
  1162 //! @SYMAuthor			Sunny Yeh
       
  1163 //! @SYMCreationDate		19/12/2006
       
  1164 //! @SYMTestCaseDesc 		GetFocusWindowGroup(TInt aScreenNumber):gets the identifier of the window group on a specified screen that currently has the keyboard focus
       
  1165 //!				Uses API elements: Connect() ,GetFocusWindowGroup()and Close()
       
  1166 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1167 //!				2. use Connect() to make a connection with window server
       
  1168 //!				3. use GetFocusWindowGroup() to get the identifier of the window group on a specified screen that currently has the keyboard focus
       
  1169 //!				4. Close RWsSession object using Close()
       
  1170 //! @SYMTestStatus		Implemented
       
  1171 //! @SYMTestPriority		Low
       
  1172 //! @SYMTestExpectedResults	return the identifier of window group with keyboard focus
       
  1173 //! @SYMTestType		CIT
       
  1174 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1175 		CREATE_OBJECT	RWsSession	ws
       
  1176 		CREATE_OBJECT	CWsScreenDevice	scrdev
       
  1177 		CREATE_OBJECT	RWindowGroup	wingrp
       
  1178 		COMMAND		ws		new
       
  1179 		COMMAND		ws		Connect
       
  1180 		COMMAND		scrdev		new				GRAPHICS-WSERV-Session-PublicApi-0052-0001-new_command003
       
  1181 		COMMAND		scrdev		Construct
       
  1182 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0052-0001-new_command005
       
  1183 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0052-0001-Construct_command006
       
  1184 		COMMAND		ws		GetFocusWindowGroup		GRAPHICS-WSERV-Session-PublicApi-0052-0001-GetFocusWindowGroup_command007
       
  1185 		COMMAND		wingrp		Close
       
  1186 		COMMAND		scrdev		~
       
  1187 		COMMAND		ws		Close
       
  1188 	END_TEST_BLOCK
       
  1189 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0052
       
  1190 
       
  1191 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0053
       
  1192 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0053
       
  1193 //! @SYMAPI			RWsSession
       
  1194 //! @SYMAuthor			Sunny Yeh
       
  1195 //! @SYMCreationDate		19/12/2006
       
  1196 //! @SYMTestCaseDesc 		WindowGroupList(CArrayFixFlat< TInt > *aWindowList, TInt aScreenNumber, TInt aPriority=EAllPriorities):Lists the number of window groups of a given window group priority running on a specified screen
       
  1197 //!				Uses API elements: Connect() ,WindowGroupList()and Close()
       
  1198 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1199 //!				2. use Connect() to make a connection with window server
       
  1200 //!				3. use NumWindowGroups() to get the total number of window groups currently
       
  1201 //!				4. use WindowGroupList() to get the number of window groups of a given window group priority
       
  1202 //!				5. Close RWsSession object using Close()
       
  1203 //! @SYMTestStatus		Implemented
       
  1204 //! @SYMTestPriority		Low
       
  1205 //! @SYMTestExpectedResults	return KErrNone from calling the method WindowGroupList
       
  1206 //! @SYMTestType		CIT
       
  1207 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1208 		CREATE_OBJECT	RWsSession	ws
       
  1209 		COMMAND		ws		new
       
  1210 		COMMAND		ws		Connect
       
  1211 		COMMAND		ws		NumWindowGroups
       
  1212 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0053-0001-WindowGroupList_command005
       
  1213 		COMMAND		ws		Close
       
  1214 	END_TEST_BLOCK
       
  1215 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0053
       
  1216 
       
  1217 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0054
       
  1218 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0054
       
  1219 //! @SYMAPI			RWsSession
       
  1220 //! @SYMAuthor			Sunny Yeh
       
  1221 //! @SYMCreationDate		20/09/2006
       
  1222 //! @SYMTestCaseDesc 		SetCustomTextCursor(TInt aIdentifier, const TArray< TSpriteMember > &aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment):adds a custom text cursor to the server's list of cursors
       
  1223 //!				Uses API elements: RWsSession::Connect & Close, CFbsBitmap::Load
       
  1224 //! @SYMTestActions		1.	use new() to create a RWsSession object
       
  1225 //!				2.	use Connect() to make a connection with window server
       
  1226 //!				3.	new and Load() a CFbsBitmap to construct custom text cursor
       
  1227 //!	   			4.	use SetCustomTextCursor() to add custom text cursor of identifier 100, flag=ESpriteNoShadows, alignment=ECustomTextCursorAlignTop
       
  1228 //!	   				with one SpriteMember of the specified bitmap, drawmode=EDrawModeAND, and offset (5,5)
       
  1229 //!				5.	Destruct and close all objects used
       
  1230 //! @SYMTestStatus		Implemented
       
  1231 //! @SYMTestPriority		Low
       
  1232 //! @SYMTestExpectedResults	call SetCustomTextCursor() without causing panic
       
  1233 //! @SYMTestType		CIT
       
  1234 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1235 		CREATE_OBJECT	RWsSession	ws
       
  1236 		CREATE_OBJECT	CFbsBitmap	fbsbmp
       
  1237 		COMMAND		ws		new
       
  1238 		COMMAND		ws		Connect
       
  1239 		COMMAND		fbsbmp		new
       
  1240 		COMMAND		fbsbmp		Load				GRAPHICS-WSERV-Session-PublicApi-0054-0001-Load_command001
       
  1241 		COMMAND		ws		SetCustomTextCursor		GRAPHICS-WSERV-Session-PublicApi-0054-0001-SetCustomTextCursor_command002
       
  1242 		COMMAND		fbsbmp	~
       
  1243 		COMMAND		ws		Close
       
  1244 	END_TEST_BLOCK
       
  1245 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0054
       
  1246 
       
  1247 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0055
       
  1248 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0055
       
  1249 //! @SYMAPI			RWsSession
       
  1250 //! @SYMAuthor			Sunny Yeh
       
  1251 //! @SYMCreationDate		19/12/2006
       
  1252 //! @SYMTestCaseDesc 		GetPriorityKey(TWsPriorityKeyEvent &aEvent):Gets the completed priority key event from the window server session
       
  1253 //!				PriorityKeyReady(TRequestStatus *aStat):Requests priority key events from the window server
       
  1254 //!				Uses API elements: Connect() ,GetPriorityKey()and Close()
       
  1255 //! @SYMTestActions		1.	Create and construct a RWindowGroup to receive the priority key event
       
  1256 //!					1.1	New and connect a RWsSession
       
  1257 //!					1.2	New and construct a RWindowGroup within the RWsSession
       
  1258 //!				2.	Use CaptureKey() to request key capture of RWindowGroup for the specified key, e.g. keycode=EKeyF1
       
  1259 //!				3.	Use AddPriorityKey() to add a priority key of the RWindowGroup, e.g. keycode=EKeyF1
       
  1260 //!				4.	Use PriorityKeyReady() to request priority key events from WSERV
       
  1261 //!				5.	Use SimulateKeyEvent() to simulate a key event (with the same keycode and modifier of the specified priority key)
       
  1262 //!				6.	Use Flush() to send all pending commands in the buffer to WSERV
       
  1263 //!				7.	Use OUTSTANDING to wait for a priority key event
       
  1264 //!				8.	when event obtained, execute GetPriorityKey to retrieve the priority key event
       
  1265 //!				9.	Use Key() to get and check if the returned key event is the same as expected
       
  1266 //!				10.	Close and destruct all objects used
       
  1267 //! @SYMTestStatus		Implemented
       
  1268 //! @SYMTestPriority		Low
       
  1269 //! @SYMTestExpectedResults	PriorityKeyReady() and GetPriorityKey() called without causing panic, and receive the priority key event as expected
       
  1270 //! @SYMTestType		CIT
       
  1271 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1272 		CREATE_OBJECT	RWsSession	ws
       
  1273 		CREATE_OBJECT	RWindowGroup	wingrp
       
  1274 		CREATE_OBJECT	TWsPriorityKeyEvent	we
       
  1275 		COMMAND		ws		new
       
  1276 		COMMAND		ws		Connect
       
  1277 		COMMAND		wingrp		new			GRAPHICS-WSERV-Session-PublicApi-0055-0001-new_command04
       
  1278 		COMMAND		wingrp		Construct		GRAPHICS-WSERV-Session-PublicApi-0055-0001-Construct_command05
       
  1279 		COMMAND		wingrp		CaptureKey		GRAPHICS-WSERV-Session-PublicApi-0055-0001-CaptureKey_command006
       
  1280 		COMMAND		wingrp		AddPriorityKey		GRAPHICS-WSERV-Session-PublicApi-0055-0001-AddPriorityKey_command007
       
  1281 		COMMAND		ws		PriorityKeyReady
       
  1282 		COMMAND		ws		SimulateKeyEvent	GRAPHICS-WSERV-Session-PublicApi-0055-0001-SimulateKeyEvent_command008
       
  1283 		COMMAND		ws		Flush
       
  1284 		OUTSTANDING
       
  1285 		COMMAND		we		new
       
  1286 		COMMAND		ws		GetPriorityKey		GRAPHICS-WSERV-Session-PublicApi-0055-0001-GetPriorityKey_command009
       
  1287 		COMMAND		we		Key			GRAPHICS-WSERV-Session-PublicApi-0055-0001-Key_command010
       
  1288 		COMMAND		wingrp		Close
       
  1289 		COMMAND		ws		Close
       
  1290 	END_TEST_BLOCK
       
  1291 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0055
       
  1292 
       
  1293 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0056
       
  1294 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0056
       
  1295 //! @SYMAPI			RWsSession
       
  1296 //! @SYMAuthor			Sunny Yeh
       
  1297 //! @SYMCreationDate		19/12/2006
       
  1298 //! @SYMTestCaseDesc 		GetPriorityKey(TWsPriorityKeyEvent &aEvent):Gets the completed priority key event from the window server session
       
  1299 //!				PriorityKeyReadyCancel():Cancels a priority key event request
       
  1300 //!				Uses API elements: Connect() ,GetPriorityKey(),PriorityKeyReady(),PriorityKeyReadyCancel()  and Close()
       
  1301 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1302 //!				2. use Connect() to make a connection with window server
       
  1303 //!				3. use GetPriorityKey() to get the completed priority key event
       
  1304 //!				4. use PriorityKeyReady() to request priority key events
       
  1305 //!				5. use PriorityKeyReadyCancel() to cancel a priority key event request
       
  1306 //!				6. Close RWsSession object using Close()
       
  1307 //! @SYMTestStatus		Implemented
       
  1308 //! @SYMTestPriority		Low
       
  1309 //! @SYMTestExpectedResults	KErrCancel(-3)
       
  1310 //! @SYMTestType		CIT
       
  1311 	START_TEST_BLOCK		10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1312 		CREATE_OBJECT		RWsSession	ws
       
  1313 		COMMAND			ws		new
       
  1314 		COMMAND			ws		Connect
       
  1315 		COMMAND !AsyncError=-3	ws		PriorityKeyReady	
       
  1316 		COMMAND			ws		PriorityKeyReadyCancel
       
  1317 		OUTSTANDING
       
  1318 		COMMAND			ws		Close
       
  1319 	END_TEST_BLOCK
       
  1320 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0056
       
  1321 
       
  1322 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0057
       
  1323 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0057
       
  1324 //! @SYMAPI			RWsSession
       
  1325 //! @SYMAuthor			Sunny Yeh
       
  1326 //! @SYMCreationDate		19/12/2006
       
  1327 //! @SYMTestCaseDesc 		GetRedraw(TWsRedrawEvent &aEvent):Gets the redraw event from the session.
       
  1328 //!				Uses API elements: RWsSession::Connect & RedrawReady & GetRedraw, RWindowGroup::Construct, RWindowBase::Activate, RWindow::Construct & SetExtent, TWsRedrawEvent::Rect
       
  1329 //! @SYMTestActions		1.	Create and construct a RWindow to receive the redraw event
       
  1330 //!					1.1	New and connect a RWsSession
       
  1331 //!					1.2	New and construct a RWindowGroup within the RWsSession
       
  1332 //!					1.3	New and construct a RWindow as the child of the RWindowGroup
       
  1333 //!					1.4	Set the extent of RWindow to (5,6) and height=15, width=10
       
  1334 //!					1.5	Activate RWindow to display and enable it to receive event
       
  1335 //!				2.	Use RedrawReady to request redraw events from WSERV
       
  1336 //!				3.	Use OUTSTANDING to wait for a redraw event
       
  1337 //!				4.	when event obtained, exexute GetRedraw to retrieve the redraw event
       
  1338 //!				5.	Execute Rect() to get and check if the returned rectangle is the same as expected
       
  1339 //!				6.	Close and destruct all objects used
       
  1340 //! @SYMTestStatus		Implemented
       
  1341 //! @SYMTestPriority		Low
       
  1342 //! @SYMTestExpectedResults	RedrawReady() and GetRedraw() called without causing panic, and receive redraw event as expected
       
  1343 //! @SYMTestType		CIT
       
  1344 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1345 		CREATE_OBJECT	RWsSession	ws
       
  1346 		CREATE_OBJECT	RWindowGroup	wingrp
       
  1347 		CREATE_OBJECT	RWindow		win
       
  1348 		CREATE_OBJECT	TWsRedrawEvent	we
       
  1349 		COMMAND		ws		new
       
  1350 		COMMAND		ws		Connect
       
  1351 		COMMAND		wingrp		new			GRAPHICS-WSERV-Session-PublicApi-0057-0001-new_command01
       
  1352 		COMMAND		wingrp		Construct		GRAPHICS-WSERV-Session-PublicApi-0057-0001-Construct_command02
       
  1353 		COMMAND		win		new			GRAPHICS-WSERV-Session-PublicApi-0057-0001-new_command01
       
  1354 		COMMAND		win		Construct		GRAPHICS-WSERV-Session-PublicApi-0057-0001-Construct_command003
       
  1355 		COMMAND		win		SetExtent		GRAPHICS-WSERV-Session-PublicApi-0057-0001-SetExtent_command004
       
  1356 		COMMAND		win		Activate
       
  1357 		COMMAND		ws		RedrawReady
       
  1358 		OUTSTANDING
       
  1359 		COMMAND		we		new
       
  1360 		COMMAND		ws		GetRedraw		GRAPHICS-WSERV-Session-PublicApi-0057-0001-GetRedraw_command005
       
  1361 		COMMAND		we		Rect			GRAPHICS-WSERV-Session-PublicApi-0057-0001-Rect_command006
       
  1362 		COMMAND		wingrp		Close
       
  1363 		COMMAND		ws		Close
       
  1364 	END_TEST_BLOCK
       
  1365 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0057
       
  1366 
       
  1367 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0058
       
  1368 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0058
       
  1369 //! @SYMAPI			RWsSession
       
  1370 //! @SYMAuthor			Sunny Yeh
       
  1371 //! @SYMCreationDate		19/12/2006
       
  1372 //! @SYMTestCaseDesc 		GetRedraw(TWsRedrawEvent &aEvent):Gets the redraw event from the session.
       
  1373 //!				RedrawReady(TRequestStatus *aStat):Requests redraw events from the window server
       
  1374 //!				RedrawReadyCancel():Cancels a redraw event request
       
  1375 //!				Uses API elements: Connect() ,RedrawReady(),GetRedraw(),RedrawReadyCancel()  and Close()
       
  1376 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1377 //!				2. use Connect() to make a connection with window server
       
  1378 //!				3. use RedrawReady() to request redraw events from the window server
       
  1379 //!				4. use RedrawReadyCancel() to cancel a redraw event request
       
  1380 //!				5. Close RWsSession object using Close()
       
  1381 //! @SYMTestStatus		Implemented
       
  1382 //! @SYMTestPriority		Low
       
  1383 //! @SYMTestExpectedResults	KErrCancel(-3)
       
  1384 //! @SYMTestType		CIT
       
  1385 	START_TEST_BLOCK		10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1386 		CREATE_OBJECT		RWsSession	ws
       
  1387 		COMMAND			ws		new
       
  1388 		COMMAND			ws		Connect
       
  1389 		COMMAND !AsyncError=-3	ws		RedrawReady
       
  1390 		COMMAND			ws		RedrawReadyCancel
       
  1391 		OUTSTANDING
       
  1392 		COMMAND			ws		Close
       
  1393 	END_TEST_BLOCK
       
  1394 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0058
       
  1395 
       
  1396 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0059
       
  1397 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0059
       
  1398 //! @SYMAPI			RWsSession
       
  1399 //! @SYMAuthor			Sunny Yeh
       
  1400 //! @SYMCreationDate		19/12/2006
       
  1401 //! @SYMTestCaseDesc 		FindWindowGroupIdentifier(TInt aPreviousIdentifier, TThreadId aThreadId):Gets the identifiers of window groups belonging to a client 
       
  1402 //!				Uses API elements: Connect() ,WindowGroupList(),GetWindowGroupHandle(),FindWindowGroupIdentifier() and Close()
       
  1403 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1404 //!				2. use Connect() to make a connection with window server
       
  1405 //!				3. use NumWindowGroups() to get the total number of window groups currently
       
  1406 //!				4. use WindowGroupList() to Lists the number of window groups of a given window group priority
       
  1407 //!				5. use GetWindowGroupHandle() to get the handle of the window specified by the window group identifier
       
  1408 //!				6. use FindWindowGroupIdentifier() to get the id of window group belonging to a client
       
  1409 //!				7. Close RWsSession object using Close()
       
  1410 //! @SYMTestStatus		Implemented
       
  1411 //! @SYMTestPriority		Low
       
  1412 //! @SYMTestExpectedResults	return next window group identifier after the one identified by aPreviousIdentifier 
       
  1413 //! @SYMTestType		CIT
       
  1414 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1415 		CREATE_OBJECT	RWsSession	ws
       
  1416 		CREATE_OBJECT	RWindowGroup	wingrp
       
  1417 		COMMAND		ws		new
       
  1418 		COMMAND		ws		Connect
       
  1419 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0059-0001-new_command003
       
  1420 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0059-0001-Construct_command004
       
  1421 		COMMAND		ws		NumWindowGroups
       
  1422 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0059-0001-WindowGroupList_command006
       
  1423 		COMMAND		ws		GetWindowGroupHandle		GRAPHICS-WSERV-Session-PublicApi-0059-0001-GetWindowGroupHandle_command007
       
  1424 		COMMAND		ws		FindWindowGroupIdentifier	GRAPHICS-WSERV-Session-PublicApi-0059-0001-FindWindowGroupIdentifier_command008
       
  1425 		COMMAND		ws		Close
       
  1426 	END_TEST_BLOCK
       
  1427 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0059
       
  1428 
       
  1429 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0061
       
  1430 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0061
       
  1431 //! @SYMAPI			RWsSession
       
  1432 //! @SYMAuthor			Felix Chen
       
  1433 //! @SYMCreationDate		10/04/2007
       
  1434 //! @SYMTestCaseDesc 		Clear the redraw store for all windows in the system
       
  1435 //!				Uses API elements: Connect(), ClearAllRedrawStores()and Close()
       
  1436 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1437 //!				2. use Connect() to make a connection with window server
       
  1438 //!				3. use ClearAllRedrawStores() to clear the redraw store for all windows
       
  1439 //!				4. Close RWsSession object by using Close()
       
  1440 //! @SYMTestStatus		Implemented
       
  1441 //! @SYMTestPriority		Low
       
  1442 //! @SYMTestExpectedResults	Clear the redraw store for all windows in the system without any leave code or panic code
       
  1443 //! @SYMTestType		CIT
       
  1444 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1445 		CREATE_OBJECT	RWsSession	ws
       
  1446 		COMMAND		ws		new
       
  1447 		COMMAND		ws		Connect
       
  1448 		COMMAND		ws		ClearAllRedrawStores
       
  1449 		COMMAND		ws		Close
       
  1450 	END_TEST_BLOCK
       
  1451 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0061
       
  1452 
       
  1453 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0063
       
  1454 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0063
       
  1455 //! @SYMAPI			RWsSession
       
  1456 //! @SYMAuthor			Felix Chen
       
  1457 //! @SYMCreationDate		10/04/2007
       
  1458 //! @SYMTestCaseDesc 		Releases the system pointer cursor list and deletes all the entries in it
       
  1459 //!				Uses API elements: Connect(), FreeSystemPointerCursorList() and Close()
       
  1460 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1461 //!				2. use Connect() to make a connection with window server
       
  1462 //!				3. use FreeSystemPointerCursorList() to release the system pointer cursor list and deletes all the entries in it
       
  1463 //!				4. Close RWsSession object by using Close()
       
  1464 //! @SYMTestStatus		Implemented
       
  1465 //! @SYMTestPriority		Low
       
  1466 //! @SYMTestExpectedResults	Releases the system pointer cursor list and deletes all the entries in it
       
  1467 //! @SYMTestType		CIT
       
  1468 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1469 		CREATE_OBJECT	RWsSession	ws
       
  1470 		COMMAND		ws		new
       
  1471 		COMMAND		ws		Connect
       
  1472 		COMMAND		ws		FreeSystemPointerCursorList
       
  1473 		COMMAND		ws		Close
       
  1474 	END_TEST_BLOCK
       
  1475 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0063
       
  1476 
       
  1477 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0064
       
  1478 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0064
       
  1479 //! @SYMAPI			RWsSession
       
  1480 //! @SYMAuthor			Felix Chen
       
  1481 //! @SYMCreationDate		10/04/2007
       
  1482 //! @SYMTestCaseDesc 		Sets the mode used to control process priorities to the desired mode
       
  1483 //!				Uses API elements: Connect(), ComputeMode() and Close()
       
  1484 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1485 //!				2. use Connect() to make a connection with window server
       
  1486 //!				3. use ComputeMode() to set the mode used to control process priorities
       
  1487 //!				4. Close RWsSession object by using Close()
       
  1488 //! @SYMTestStatus		Implemented
       
  1489 //! @SYMTestPriority		Low
       
  1490 //! @SYMTestExpectedResults	Sets the mode used to control process priorities to the desired mode
       
  1491 //! @SYMTestType		CIT
       
  1492 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1493 		CREATE_OBJECT	RWsSession	ws
       
  1494 		COMMAND		ws		new
       
  1495 		COMMAND		ws		Connect
       
  1496 		COMMAND		ws		ComputeMode		GRAPHICS-WSERV-Session-PublicApi-0064-0001-ComputeMode_command004
       
  1497 		COMMAND		ws		Close
       
  1498 	END_TEST_BLOCK
       
  1499 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0064
       
  1500 
       
  1501 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0066
       
  1502 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0066
       
  1503 //! @SYMAPI			RWsSession
       
  1504 //! @SYMAuthor			Felix Chen
       
  1505 //! @SYMCreationDate		10/04/2007
       
  1506 //! @SYMTestCaseDesc 		Send all pending commands in the buffer to the window server
       
  1507 //!				Uses API elements: Connect(), Flush() and Close()
       
  1508 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1509 //!				2. use Connect() to make a connection with window server
       
  1510 //!				3. use Flush() to send all pending commands in the buffer to the window server
       
  1511 //!				4. Close RWsSession object by using Close()
       
  1512 //! @SYMTestStatus		Implemented
       
  1513 //! @SYMTestPriority		Medium
       
  1514 //! @SYMTestExpectedResults	All pending commands in the buffer are sent to the window server
       
  1515 //! @SYMTestType		CIT
       
  1516 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1517 		CREATE_OBJECT	RWsSession	ws
       
  1518 		COMMAND		ws		new
       
  1519 		COMMAND		ws		Connect
       
  1520 		COMMAND		ws		Flush
       
  1521 		COMMAND		ws		Close
       
  1522 	END_TEST_BLOCK
       
  1523 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0066
       
  1524 
       
  1525 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0068
       
  1526 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0068
       
  1527 //! @SYMAPI			RWsSession
       
  1528 //! @SYMAuthor			Felix Chen
       
  1529 //! @SYMCreationDate		10/04/2007
       
  1530 //! @SYMTestCaseDesc 		Get the identifier of the window group that currently has the keyboard focus
       
  1531 //!				Uses API elements: Connect(), GetFocusWindowGroup() and Close()
       
  1532 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1533 //!				2. use Connect() to make a connection with window server
       
  1534 //!				3. use GetFocusWindowGroup() to get the identifier of the window group that currently has the keyboard focus
       
  1535 //!				4. Close RWsSession object by using Close()
       
  1536 //! @SYMTestStatus		Implemented
       
  1537 //! @SYMTestPriority		Low
       
  1538 //! @SYMTestExpectedResults	The identifier we obtained should match the expected ID
       
  1539 //! @SYMTestType		CIT
       
  1540 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1541 		CREATE_OBJECT	RWsSession	ws
       
  1542 		CREATE_OBJECT	RWindowGroup	wingrp
       
  1543 		COMMAND		ws		new
       
  1544 		COMMAND		ws		Connect
       
  1545 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0068-0001-new_command003
       
  1546 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0068-0001-Construct_command004
       
  1547 		COMMAND		ws		GetFocusWindowGroup
       
  1548 		COMMAND		wingrp		Close
       
  1549 		COMMAND		ws		Close
       
  1550 	END_TEST_BLOCK
       
  1551 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0068
       
  1552 
       
  1553 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0069
       
  1554 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0069
       
  1555 //! @SYMAPI			RWsSession
       
  1556 //! @SYMAuthor			Felix Chen
       
  1557 //! @SYMCreationDate		20/05/2007
       
  1558 //! @SYMTestCaseDesc 		Get the state of the modifier keys
       
  1559 //!				Uses API elements: Connect(), GetModifierState() and Close()
       
  1560 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1561 //!				2. use Connect() to make a connection with window server
       
  1562 //!				3. use GetModifierState() to get the state of the modifier keys
       
  1563 //!				4. Close RWsSession object by using Close()
       
  1564 //! @SYMTestStatus		Implemented
       
  1565 //! @SYMTestPriority		Low
       
  1566 //! @SYMTestExpectedResults	The modifier state we obtained should match the expected state
       
  1567 //! @SYMTestType		CIT
       
  1568 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1569 		CREATE_OBJECT	RWsSession	ws
       
  1570 		COMMAND		ws		new
       
  1571 		COMMAND		ws		Connect
       
  1572 		COMMAND		ws		GetModifierState
       
  1573 		COMMAND		ws		Close
       
  1574 	END_TEST_BLOCK
       
  1575 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0069
       
  1576 
       
  1577 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0070
       
  1578 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0070
       
  1579 //! @SYMAPI			RWsSession
       
  1580 //! @SYMAuthor			Felix Chen
       
  1581 //! @SYMCreationDate		20/05/2007
       
  1582 //! @SYMTestCaseDesc 		Get the list of available colour modes
       
  1583 //!				Uses API elements: Connect(), GetColorModeList() and Close()
       
  1584 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1585 //!				2. use Connect() to make a connection with window server
       
  1586 //!				3. use GetColorModeList() to get the list of available colour modes
       
  1587 //!				4. Close RWsSession object by using Close()
       
  1588 //! @SYMTestStatus		Implemented
       
  1589 //! @SYMTestPriority		Low
       
  1590 //! @SYMTestExpectedResults	Get the list of available colour modes and the number of available colour modes should match the expected value
       
  1591 //! @SYMTestType		CIT
       
  1592 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1593 		CREATE_OBJECT	RWsSession	ws
       
  1594 		COMMAND		ws		new
       
  1595 		COMMAND		ws		Connect
       
  1596 		COMMAND		ws		GetColorModeList		GRAPHICS-WSERV-Session-PublicApi-0070-0001-GetColorModeList_command003
       
  1597 		COMMAND		ws		GetColorModeList		GRAPHICS-WSERV-Session-PublicApi-0070-0001-GetColorModeList_command004
       
  1598 		COMMAND		ws		Close
       
  1599 	END_TEST_BLOCK
       
  1600 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0070
       
  1601 
       
  1602 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0071
       
  1603 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0071
       
  1604 //! @SYMAPI			RWsSession
       
  1605 //! @SYMAuthor			Felix Chen
       
  1606 //! @SYMCreationDate		22/05/2007
       
  1607 //! @SYMTestCaseDesc 		Get the number of colours available in the richest supported colour mode, and the number of grays available in the richest gray mode, then return the default display mode
       
  1608 //!				Uses API elements: Connect(), GetDefModeMaxNumColors() and Close()
       
  1609 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1610 //!				2. use Connect() to make a connection with window server
       
  1611 //!				3. use GetDefModeMaxNumColors() to get the number of colours available in the richest supported colour mode, and the number of grays available in the richest gray mode, then return the default display mode
       
  1612 //!				4. Close RWsSession object by using Close()
       
  1613 //! @SYMTestStatus		Implemented
       
  1614 //! @SYMTestPriority		Low
       
  1615 //! @SYMTestExpectedResults	The number of colours/grays available in the richest supported mode should match the expected value
       
  1616 //! @SYMTestType		CIT
       
  1617 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1618 		CREATE_OBJECT	RWsSession	ws
       
  1619 		COMMAND		ws		new
       
  1620 		COMMAND		ws		Connect
       
  1621 		COMMAND		ws		GetDefModeMaxNumColors		GRAPHICS-WSERV-Session-PublicApi-0071-0001-GetDefModeMaxNumColors_command004
       
  1622 		COMMAND		ws		Close
       
  1623 	END_TEST_BLOCK
       
  1624 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0071
       
  1625 
       
  1626 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0073
       
  1627 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0073
       
  1628 //! @SYMAPI			RWsSession
       
  1629 //! @SYMAuthor			Felix Chen
       
  1630 //! @SYMCreationDate		23/05/2007
       
  1631 //! @SYMTestCaseDesc 		Get the heap count
       
  1632 //!				Uses API elements: Connect(), HeapCount() and Close()
       
  1633 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1634 //!				2. use Connect() to make a connection with window server
       
  1635 //!				3. use HeapCount() to get the heap count
       
  1636 //!				4. Close RWsSession object by using Close()
       
  1637 //! @SYMTestStatus		Implemented
       
  1638 //! @SYMTestPriority		Low
       
  1639 //! @SYMTestExpectedResults	The heap count should be greater than expected value
       
  1640 //! @SYMTestType		CIT
       
  1641 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1642 		CREATE_OBJECT	RWsSession	ws
       
  1643 		COMMAND		ws		new
       
  1644 		COMMAND		ws		Connect
       
  1645 		COMMAND		ws		HeapCount			GRAPHICS-WSERV-Session-PublicApi-0073-0001-HeapCount_command004
       
  1646 		COMMAND		ws		Close
       
  1647 	END_TEST_BLOCK
       
  1648 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0073
       
  1649 
       
  1650 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0075
       
  1651 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0075
       
  1652 //! @SYMAPI			RWsSession
       
  1653 //! @SYMAuthor			Felix Chen
       
  1654 //! @SYMCreationDate		23/05/2007
       
  1655 //! @SYMTestCaseDesc 		Get the pointer cursor area for the specified screen display mode
       
  1656 //!				Uses API elements: Connect(), PointerCursorArea() and Close()
       
  1657 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1658 //!				2. use Connect() to make a connection with window server
       
  1659 //!				3. use PointerCursorArea() to get the pointer cursor area for the specified screen display mode
       
  1660 //!				4. Close RWsSession object by using Close()
       
  1661 //! @SYMTestStatus		Implemented
       
  1662 //! @SYMTestPriority		Low
       
  1663 //! @SYMTestExpectedResults	The pointer cursor area we obtained should match the expected TRect
       
  1664 //! @SYMTestType		CIT
       
  1665 
       
  1666 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1667 		CREATE_OBJECT	RWsSession	ws
       
  1668 		COMMAND		ws		new
       
  1669 		COMMAND		ws		Connect
       
  1670 		COMMAND		ws		PointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0075-0001-PointerCursorArea_command004
       
  1671 		COMMAND		ws		Close
       
  1672 	END_TEST_BLOCK
       
  1673 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0075
       
  1674 
       
  1675 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0076
       
  1676 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0076
       
  1677 //! @SYMAPI			RWsSession
       
  1678 //! @SYMAuthor			Felix Chen
       
  1679 //! @SYMCreationDate		23/05/2007
       
  1680 //! @SYMTestCaseDesc 		Get the pointer cursor area for the first screen display mode
       
  1681 //!				Uses API elements: Connect(), PointerCursorArea() and Close()
       
  1682 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1683 //!				2. use Connect() to make a connection with window server
       
  1684 //!				3. use PointerCursorArea() to get the pointer cursor area for the first screen display mode
       
  1685 //!				4. Close RWsSession object by using Close()
       
  1686 //! @SYMTestStatus		Implemented
       
  1687 //! @SYMTestPriority		Low
       
  1688 //! @SYMTestExpectedResults	The pointer cursor area we obtained should match the expected TRect
       
  1689 //! @SYMTestType		CIT
       
  1690 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1691 		CREATE_OBJECT	RWsSession	ws
       
  1692 		COMMAND		ws		new
       
  1693 		COMMAND		ws		Connect
       
  1694 		COMMAND		ws		PointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0076-0001-PointerCursorArea_command004
       
  1695 		COMMAND		ws		Close
       
  1696 	END_TEST_BLOCK
       
  1697 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0076
       
  1698 
       
  1699 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0077
       
  1700 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0077
       
  1701 //! @SYMAPI			RWsSession
       
  1702 //! @SYMAuthor			Felix Chen
       
  1703 //! @SYMCreationDate		23/05/2007
       
  1704 //! @SYMTestCaseDesc 		Get the current mode for the pointer cursor
       
  1705 //!				Uses API elements: Connect(), PointerCursorMode() and Close()
       
  1706 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1707 //!				2. use Connect() to make a connection with window server
       
  1708 //!				3. use PointerCursorMode() to get the current mode for the pointer cursor
       
  1709 //!				4. Close RWsSession object by using Close()
       
  1710 //! @SYMTestStatus		Implemented
       
  1711 //! @SYMTestPriority		Low
       
  1712 //! @SYMTestExpectedResults	The pointer cursor mode we obtained should match the expected mode
       
  1713 //! @SYMTestType		CIT
       
  1714 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1715 		CREATE_OBJECT	RWsSession	ws
       
  1716 		COMMAND		ws		new
       
  1717 		COMMAND		ws		Connect
       
  1718 		COMMAND		ws		PointerCursorMode		GRAPHICS-WSERV-Session-PublicApi-0077-0001-PointerCursorMode_command004
       
  1719 		COMMAND		ws		Close
       
  1720 	END_TEST_BLOCK
       
  1721 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0077
       
  1722 
       
  1723 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0078
       
  1724 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0078
       
  1725 //! @SYMAPI			RWsSession
       
  1726 //! @SYMAuthor			Felix Chen
       
  1727 //! @SYMCreationDate		23/05/2007
       
  1728 //! @SYMTestCaseDesc 		Get the pointer cursor position
       
  1729 //!				Uses API elements: Connect(), PointerCursorPosition() and Close()
       
  1730 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1731 //!				2. use Connect() to make a connection with window server
       
  1732 //!				3. use PointerCursorPosition() to get the current mode for the pointer cursor
       
  1733 //!				4. Close RWsSession object by using Close()
       
  1734 //! @SYMTestStatus		Implemented
       
  1735 //! @SYMTestPriority		Low
       
  1736 //! @SYMTestExpectedResults	Get the pointer cursor position and display it. The position should stay at the origin (0,0) at the beginning
       
  1737 //! @SYMTestType		CIT
       
  1738 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1739 		CREATE_OBJECT	RWsSession	ws
       
  1740 		COMMAND		ws		new
       
  1741 		COMMAND		ws		Connect
       
  1742 		COMMAND		ws		PointerCursorPosition		GRAPHICS-WSERV-Session-PublicApi-0078-0001-PointerCursorPosition_command004
       
  1743 		COMMAND		ws		Close
       
  1744 	END_TEST_BLOCK
       
  1745 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0078
       
  1746 
       
  1747 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0079
       
  1748 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0079
       
  1749 //! @SYMAPI			RWsSession
       
  1750 //! @SYMAuthor			Felix Chen
       
  1751 //! @SYMCreationDate		24/05/2007
       
  1752 //! @SYMTestCaseDesc 		Prepare for switch off
       
  1753 //!				Uses API elements: Connect(), PrepareForSwitchOff() and Close()
       
  1754 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1755 //!				2. use Connect() to make a connection with window server
       
  1756 //!				3. use PrepareForSwitchOff() to stop the window server heart beat timer if running
       
  1757 //!				4. Close RWsSession object by using Close()
       
  1758 //! @SYMTestStatus		Implemented
       
  1759 //! @SYMTestPriority		Low
       
  1760 //! @SYMTestExpectedResults	This stops the window server heart beat timer if running
       
  1761 //! @SYMTestType		CIT
       
  1762 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1763 		CREATE_OBJECT	RWsSession	ws
       
  1764 		COMMAND		ws		new
       
  1765 		COMMAND		ws		Connect
       
  1766 		COMMAND		ws		PrepareForSwitchOff
       
  1767 		COMMAND		ws		Close
       
  1768 	END_TEST_BLOCK
       
  1769 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0079
       
  1770 
       
  1771 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0080
       
  1772 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0080
       
  1773 //! @SYMAPI			RWsSession
       
  1774 //! @SYMAuthor			Felix Chen
       
  1775 //! @SYMCreationDate		24/05/2007
       
  1776 //! @SYMTestCaseDesc 		Allows the window server client to enable or disable logging of window server events. For logging to work, the wsini.ini file has
       
  1777 //!				to specify the type of logging required and the DLLs for that type of logging must have been correctly installed.
       
  1778 //!				Uses API elements: Connect(), LogCommand() and Close()
       
  1779 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1780 //!				2. use Connect() to make a connection with window server
       
  1781 //!				3. use LogCommand() to set the logging status
       
  1782 //!				4. Close RWsSession object by using Close()
       
  1783 //! @SYMTestStatus		Implemented
       
  1784 //! @SYMTestPriority		Low
       
  1785 //! @SYMTestExpectedResults	The logging status is set to desired mode
       
  1786 //! @SYMTestType		CIT
       
  1787 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1788 		CREATE_OBJECT	RWsSession	ws
       
  1789 		COMMAND		ws		new
       
  1790 		COMMAND		ws		Connect
       
  1791 		COMMAND		ws		LogCommand			GRAPHICS-WSERV-Session-PublicApi-0080-0001-LogCommand_command004
       
  1792 		COMMAND		ws		Close
       
  1793 	END_TEST_BLOCK
       
  1794 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0080
       
  1795 
       
  1796 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0081
       
  1797 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0081
       
  1798 //! @SYMAPI			RWsSession
       
  1799 //! @SYMAuthor			Felix Chen
       
  1800 //! @SYMCreationDate		24/05/2007
       
  1801 //! @SYMTestCaseDesc 		Adds a message to the window server debug log if one is currently in operation
       
  1802 //!				Uses API elements: Connect(), LogMessage() and Close()
       
  1803 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1804 //!				2. use Connect() to make a connection with window server
       
  1805 //!				3. use LogMessage() to add a log message
       
  1806 //!				4. Close RWsSession object by using Close()
       
  1807 //! @SYMTestStatus		Implemented
       
  1808 //! @SYMTestPriority		Low
       
  1809 //! @SYMTestExpectedResults	The message is added to the window server debug log
       
  1810 //! @SYMTestType		CIT
       
  1811 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1812 		CREATE_OBJECT	RWsSession	ws
       
  1813 		COMMAND		ws		new
       
  1814 		COMMAND		ws		Connect
       
  1815 		COMMAND		ws		LogMessage			GRAPHICS-WSERV-Session-PublicApi-0081-0001-LogMessage_command004
       
  1816 		COMMAND		ws		Close
       
  1817 	END_TEST_BLOCK
       
  1818 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0081
       
  1819 
       
  1820 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0082
       
  1821 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0082
       
  1822 //! @SYMAPI			RWsSession
       
  1823 //! @SYMAuthor			Sunny Yeh
       
  1824 //! @SYMCreationDate		19/12/2006
       
  1825 //! @SYMTestCaseDesc 		GetColorModeList(TInt aScreenNumber, CArrayFixFlat< TInt > *aModeList) const:Gets the list of available colour modes on a particular screen
       
  1826 //!				Uses API elements: Connect() ,GetColorModeList() and Close()
       
  1827 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1828 //!				2. use Connect() to make a connection with window server
       
  1829 //!				3. use GetColorModeList() to get the list of colour modes
       
  1830 //!				4. Close RWsSession object using Close()
       
  1831 //! @SYMTestStatus		Implemented
       
  1832 //! @SYMTestPriority		Low
       
  1833 //! @SYMTestExpectedResults	restore all mapping hotkey
       
  1834 //! @SYMTestType		CIT
       
  1835 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1836 		CREATE_OBJECT	RWsSession	ws
       
  1837 		COMMAND		ws		new
       
  1838 		COMMAND		ws		Connect
       
  1839 		COMMAND		ws		NumberOfScreens		GRAPHICS-WSERV-Session-PublicApi-0082-0001-NumberOfScreens_command004
       
  1840 		COMMAND		ws		GetFocusScreen		GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetFocusScreen_command005
       
  1841 		COMMAND		ws		GetColorModeList	GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetColorModeList_command006
       
  1842 		COMMAND		ws		GetColorModeList	GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetColorModeList_command007
       
  1843 		COMMAND		ws		Close
       
  1844 	END_TEST_BLOCK
       
  1845 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0082
       
  1846 
       
  1847 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0083
       
  1848 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0083
       
  1849 //! @SYMAPI			RWsSession
       
  1850 //! @SYMAuthor			Sunny Yeh
       
  1851 //! @SYMCreationDate		19/12/2006
       
  1852 //! @SYMTestCaseDesc 		GetColorModeList(TInt aScreenNumber, CArrayFixFlat< TInt > *aModeList) const:Gets the list of available colour modes on a particular screen
       
  1853 //!				Uses API elements: Connect() ,GetColorModeList() and Close()
       
  1854 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1855 //!				2. use Connect() to make a connection with window server
       
  1856 //!				3. use GetColorModeList() to get the list of colour modes
       
  1857 //!				4. Close RWsSession object using Close()
       
  1858 //! @SYMTestStatus		Implemented
       
  1859 //! @SYMTestPriority		Low
       
  1860 //! @SYMTestExpectedResults	restore all mapping hotkey
       
  1861 //! @SYMTestType		CIT
       
  1862 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1863 		CREATE_OBJECT	RWsSession	ws	
       
  1864 		COMMAND		ws		new
       
  1865 		COMMAND		ws		Connect
       
  1866 		COMMAND		ws		GetColorModeList	GRAPHICS-WSERV-Session-PublicApi-0083-0001-GetColorModeList_command004
       
  1867 		COMMAND		ws		GetColorModeList	GRAPHICS-WSERV-Session-PublicApi-0083-0001-GetColorModeList_command005
       
  1868 		COMMAND		ws		Close
       
  1869 	END_TEST_BLOCK
       
  1870 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0083
       
  1871 
       
  1872 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0085
       
  1873 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0085
       
  1874 //! @SYMAPI			RWsSession
       
  1875 //! @SYMAuthor			Sunny Yeh
       
  1876 //! @SYMCreationDate		19/12/2006
       
  1877 //! @SYMTestCaseDesc 		PurgePointerEvents():Removes all pointer events waiting to be delivered to this session
       
  1878 //!				Uses API elements: Connect() ,PurgePointerEvents() and Close()
       
  1879 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1880 //!				2. use Connect() to make a connection with window server
       
  1881 //!				3. use PurgePointerEvents() to remove all pointer events waiting
       
  1882 //!				4. Close RWsSession object using Close()
       
  1883 //! @SYMTestStatus		Implemented
       
  1884 //! @SYMTestPriority		Low
       
  1885 //! @SYMTestExpectedResults	all pointer events waiting remove
       
  1886 //! @SYMTestType		CIT
       
  1887 	START_TEST_BLOCK	10		T_GraphicsWservAPI			\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1888 		CREATE_OBJECT	RWsSession	ws
       
  1889 		COMMAND		ws		new
       
  1890 		COMMAND		ws		Connect
       
  1891 		COMMAND		ws		PurgePointerEvents
       
  1892 		COMMAND		ws		Close
       
  1893 	END_TEST_BLOCK
       
  1894 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0085
       
  1895 
       
  1896 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0086
       
  1897 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0086
       
  1898 //! @SYMAPI			RWsSession
       
  1899 //! @SYMAuthor			Sunny Yeh
       
  1900 //! @SYMCreationDate		19/12/2006
       
  1901 //! @SYMTestCaseDesc 		GetDefModeMaxNumColors(TInt aScreenNumber, TInt &aColor, TInt &aGray):Gets the number of colours available in the richest supported colour mode on the specified screen.
       
  1902 //!				Uses API elements: Connect() ,PurgePointerEvents() and Close()
       
  1903 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1904 //!				2. use Connect() to make a connection with window server
       
  1905 //!				3. use GetDefModeMaxNumColors() to get the number of colours available in the richest supported colour mode
       
  1906 //!				4. Close RWsSession object using Close()
       
  1907 //! @SYMTestStatus		Implemented
       
  1908 //! @SYMTestPriority		Low
       
  1909 //! @SYMTestExpectedResults	return the default display mode
       
  1910 //! @SYMTestType		CIT
       
  1911 	START_TEST_BLOCK	10		T_GraphicsWservAPI			\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1912 		CREATE_OBJECT	RWsSession	ws
       
  1913 		COMMAND		ws		new
       
  1914 		COMMAND		ws		Connect
       
  1915 		COMMAND		ws		GetDefModeMaxNumColors			GRAPHICS-WSERV-Session-PublicApi-0086-0001-GetDefModeMaxNumColors_command004
       
  1916 		COMMAND		ws		Close
       
  1917 	END_TEST_BLOCK
       
  1918 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0086
       
  1919 
       
  1920 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0087
       
  1921 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0087
       
  1922 //! @SYMAPI			RWsSession
       
  1923 //! @SYMAuthor			Felix Chen
       
  1924 //! @SYMCreationDate		10/04/2007
       
  1925 //! @SYMTestCaseDesc 		Sets the mode used to control process priorities to the desired mode
       
  1926 //!				Uses API elements: Connect(), ComputeMode() and Close()
       
  1927 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1928 //!				2. use Connect() to make a connection with window server
       
  1929 //!				3. use ComputeMode() to set the mode used to control process priorities
       
  1930 //!				4. Close RWsSession object by using Close()
       
  1931 //! @SYMTestStatus		Implemented
       
  1932 //! @SYMTestPriority		Low
       
  1933 //! @SYMTestExpectedResults	Sets the mode used to control process priorities to the desired mode
       
  1934 //! @SYMTestType		CIT
       
  1935 	START_TEST_BLOCK	10		T_GraphicsWservAPI	\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1936 		CREATE_OBJECT	RWsSession	ws
       
  1937 		COMMAND		ws		new
       
  1938 		COMMAND		ws		Connect
       
  1939 		COMMAND		ws		ComputeMode		GRAPHICS-WSERV-Session-PublicApi-0087-0001-ComputeMode_command004
       
  1940 		COMMAND		ws		Close
       
  1941 	END_TEST_BLOCK
       
  1942 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0087
       
  1943 
       
  1944 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0088
       
  1945 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0088
       
  1946 //! @SYMAPI			RWsSession
       
  1947 //! @SYMAuthor			Sunny Yeh
       
  1948 //! @SYMCreationDate		19/12/2006
       
  1949 //! @SYMTestCaseDesc 		FindWindowGroupIdentifier(TInt aPreviousIdentifier, TThreadId aThreadId):Gets the identifiers of window groups belonging to a client 
       
  1950 //!				Uses API elements: Connect() ,WindowGroupList(),GetWindowGroupHandle(),FindWindowGroupIdentifier() and Close()
       
  1951 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  1952 //!				2. use Connect() to make a connection with window server
       
  1953 //!				3. use NumWindowGroups() to get the total number of window groups currently
       
  1954 //!				4. use WindowGroupList() to Lists the number of window groups of a given window group priority
       
  1955 //!				5. use GetWindowGroupHandle() to get the handle of the window specified by the window group identifier
       
  1956 //!				6. use FindWindowGroupIdentifier() to get the id of window group belonging to a client
       
  1957 //!				7. Close RWsSession object using Close()
       
  1958 //! @SYMTestStatus		Implemented
       
  1959 //! @SYMTestPriority		Low
       
  1960 //! @SYMTestExpectedResults	return next window group identifier after the one identified by aPreviousIdentifier 
       
  1961 //! @SYMTestType		CIT
       
  1962 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1963 		CREATE_OBJECT	RWsSession	ws
       
  1964 		CREATE_OBJECT	RWindowGroup	wingrp
       
  1965 		COMMAND		ws		new
       
  1966 		COMMAND		ws		Connect
       
  1967 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0088-0001-new_command003
       
  1968 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0088-0001-Construct_command004
       
  1969 		COMMAND		ws		NumWindowGroups
       
  1970 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0088-0001-WindowGroupList_command006
       
  1971 		COMMAND		ws		GetWindowGroupHandle		GRAPHICS-WSERV-Session-PublicApi-0088-0001-GetWindowGroupHandle_command007
       
  1972 		COMMAND		ws		FindWindowGroupIdentifier	GRAPHICS-WSERV-Session-PublicApi-0088-0001-FindWindowGroupIdentifier_command008
       
  1973 		COMMAND		ws		Close
       
  1974 	END_TEST_BLOCK
       
  1975 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0088
       
  1976 
       
  1977 
       
  1978 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0090
       
  1979 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0090
       
  1980 //! @SYMAPI			RWsSession
       
  1981 //! @SYMAuthor			Sunny Yeh
       
  1982 //! @SYMCreationDate		19/12/2006
       
  1983 //! @SYMTestCaseDesc		SetPointerCursorArea(TInt aScreenSizeMode, const TRect &aArea): set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode
       
  1984 //!				PointerCursorArea(TInt aScreenSizeMode) const:get the current value of the shadow vector
       
  1985 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close
       
  1986 //! @SYMTestActions		1. Create and connect a RWsSession
       
  1987 //!				2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle  to -90,
       
  1988 //!					the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to 696 and the vertical co-ordinate of the bottom of the rectangle to 312
       
  1989 //!				3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode
       
  1990 //!				4. Set the screen mode to which the new area applies to 0
       
  1991 //! @SYMTestStatus		Implemented
       
  1992 //! @SYMTestPriority		Low
       
  1993 //! @SYMTestExpectedResults	The test result !PanicCode=54 !PanicString=WSERV occure and is catched
       
  1994 //! @SYMTestType		CIT
       
  1995 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  1996 		CREATE_OBJECT	RWsSession	ws
       
  1997 		COMMAND		ws		new
       
  1998 		COMMAND		ws		Connect
       
  1999 		COMMAND		ws		SetPointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0090-0001-SetPointerCursorArea_command003
       
  2000 		COMMAND		ws		PointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0090-0001-PointerCursorArea_command004
       
  2001 	END_TEST_BLOCK !PanicCode=54 !PanicString=WSERV
       
  2002     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg    
       
  2003 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0090
       
  2004 
       
  2005 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0091
       
  2006 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0091
       
  2007 //! @SYMAPI			RWsSession
       
  2008 //! @SYMAuthor			Sunny Yeh
       
  2009 //! @SYMCreationDate		19/12/2006
       
  2010 //! @SYMTestCaseDesc 		RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=0):Requests the window server to send OFF events to a window
       
  2011 //!				Uses API elements: Connect() ,RequestOffEvents()and Close()
       
  2012 //! @SYMTestActions		1.	use new() to create a RWsSession object
       
  2013 //!				2.	use Connect() to make a connection with window server
       
  2014 //!				3.	new and Construct a RWindowGroup within the RWsSession
       
  2015 //!				4.	use SetBufferSizeL() to set the buffer size as -1
       
  2016 //!				5.	Execute RequestOffEvents() with FALSE to make WSERV switch back to powering down the machine itself
       
  2017 //! @SYMTestStatus		Implemented
       
  2018 //! @SYMTestPriority		Low
       
  2019 //! @SYMTestExpectedResults	The test result !PanicCode=54 !PanicString=WSERV occure and is catched
       
  2020 //! @SYMTestType		CIT
       
  2021 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2022 		CREATE_OBJECT	RWsSession	ws
       
  2023 		CREATE_OBJECT	RWindowGroup	wingrp
       
  2024 		COMMAND		ws		new
       
  2025 		COMMAND		ws		Connect
       
  2026 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0091-0001-new_command01
       
  2027 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0091-0001-Construct_command02
       
  2028 		COMMAND		ws		SetBufferSizeL			GRAPHICS-WSERV-Session-PublicApi-0091-0001-SetBufferSizeL_command003
       
  2029 		COMMAND		ws		RequestOffEvents		GRAPHICS-WSERV-Session-PublicApi-0091-0001-RequestOffEvents_command004
       
  2030 	END_TEST_BLOCK !PanicCode=51 !PanicString=WSERV
       
  2031     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg    
       
  2032 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0091
       
  2033 
       
  2034 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0092
       
  2035 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0092
       
  2036 //! @SYMAPI			RWsSession
       
  2037 //! @SYMAuthor			Sunny Yeh
       
  2038 //! @SYMCreationDate		19/12/2006
       
  2039 //! @SYMTestCaseDesc 		RestoreDefaultHotKey(THotKey aType):Restores the default mapping for a hot key
       
  2040 //!				Uses API elements: Connect() ,RestoreDefaultHotKey()and Close()
       
  2041 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  2042 //!				2. use Connect() to make a connection with window server
       
  2043 //!				3. use RestoreDefaultHotKey() to restore the default mapping for hot key -1
       
  2044 //!				4. Close RWsSession object using Close()
       
  2045 //! @SYMTestStatus		Implemented
       
  2046 //! @SYMTestPriority		Low
       
  2047 //! @SYMTestExpectedResults	RestoreDefaultHotKey to fail with error KErrArgument(-6)
       
  2048 //! @SYMTestType			CIT
       
  2049 	START_TEST_BLOCK		10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2050 		CREATE_OBJECT		RWsSession	ws
       
  2051 		COMMAND			ws		new
       
  2052 		COMMAND			ws		Connect
       
  2053 		COMMAND	!Error=-6	ws		RestoreDefaultHotKey		GRAPHICS-WSERV-Session-PublicApi-0092-0001-RestoreDefaultHotKey_command004
       
  2054 		COMMAND			ws		Close
       
  2055 	END_TEST_BLOCK
       
  2056 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0092
       
  2057 
       
  2058 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0093
       
  2059 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0093
       
  2060 //! @SYMAPI			RWsSession
       
  2061 //! @SYMAuthor			Sunny Yeh
       
  2062 //! @SYMCreationDate		19/12/2006
       
  2063 //! @SYMTestCaseDesc		SetAutoFlush(TBool aState): set auto-flush state of a RWsSession
       
  2064 //!				Uses API elements: RWsSession::Connnect & SetAutoFlush & Close
       
  2065 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2066 //!				2. SetAutoFlush to FALSE, and check the return value should be TRUE (previous value)
       
  2067 //!				3. Close the RWsSession
       
  2068 //! @SYMTestStatus		Implemented
       
  2069 //! @SYMTestPriority		Low
       
  2070 //! @SYMTestExpectedResults	Set auto-flush state without causing panic, and the return value is its previous value as expected if provided
       
  2071 //! @SYMTestType		CIT
       
  2072 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2073 		CREATE_OBJECT	RWsSession	ws
       
  2074 		COMMAND		ws		new
       
  2075 		COMMAND		ws		Connect
       
  2076 		COMMAND		ws		SetAutoFlush			GRAPHICS-WSERV-Session-PublicApi-0093-0001-SetAutoFlush_command003
       
  2077 		COMMAND		ws		Close
       
  2078 	END_TEST_BLOCK
       
  2079 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0093
       
  2080 
       
  2081 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0094
       
  2082 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0094
       
  2083 //! @SYMAPI			RWsSession
       
  2084 //! @SYMAuthor			Sunny Yeh
       
  2085 //! @SYMCreationDate		1/08/2006
       
  2086 //! @SYMTestCaseDesc 		Set up and get the background color
       
  2087 //!				Uses API elements: Connect() ,SetBufferSizeL(),SetBackgroundColor(),GetBackgroundColor()and Close()
       
  2088 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  2089 //!				2. use Connect() to make a connection with window server
       
  2090 //!				3. use SetBufferSizeL() to set the buffer size as 131072
       
  2091 //!				3. use SetMaxBufferSizeL() to set the maximum as 635
       
  2092 //!				4. set the background color as Red(-1),Green(-1)and Blue(-1)
       
  2093 //!				5. Close RWsSession object using Close()
       
  2094 //! @SYMTestStatus		Implemented
       
  2095 //! @SYMTestPriority		Low
       
  2096 //! @SYMTestExpectedResults	Set auto-flush state without causing panic, and the return the value of background color  as expected
       
  2097 //! @SYMTestType		CIT
       
  2098 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2099 		CREATE_OBJECT	RWsSession	ws
       
  2100 		COMMAND		ws		new
       
  2101 		COMMAND		ws		Connect
       
  2102 		COMMAND		ws		SetBufferSizeL			GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetBufferSizeL_command003
       
  2103 		COMMAND		ws		SetMaxBufferSizeL			GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetMaxBufferSizeL_command004
       
  2104 		COMMAND		ws		SetBackgroundColor		GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetBackgroundColor_command005
       
  2105 
       
  2106 		COMMAND		ws		Close
       
  2107 	END_TEST_BLOCK
       
  2108 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0094
       
  2109 
       
  2110 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0096
       
  2111 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0096
       
  2112 //! @SYMAPI			RWsSession
       
  2113 //! @SYMAuthor			Sunny Yeh
       
  2114 //! @SYMCreationDate		19/12/2006
       
  2115 //! @SYMTestCaseDesc		SetClientCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor
       
  2116 //!				Uses API elements: RWsSession::Connnect & SetClientCursorMode & Close
       
  2117 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2118 //!				2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNormal
       
  2119 //!				3. Uses TPointerCursorMode's object as parameter for SetClientCursorMode to set the current mode for the pointer cursor
       
  2120 //!				4. Close the RWsSession
       
  2121 //! @SYMTestStatus		Implemented
       
  2122 //! @SYMTestPriority		Low
       
  2123 //! @SYMTestExpectedResults	the current mode for the pointer cursor to be set as the expected value
       
  2124 //! @SYMTestType		CIT
       
  2125 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2126 		CREATE_OBJECT	RWsSession	ws
       
  2127 		COMMAND		ws		new
       
  2128 		COMMAND		ws		Connect
       
  2129 		COMMAND		ws		SetClientCursorMode		GRAPHICS-WSERV-Session-PublicApi-0096-0001-SetClientCursorMode_command003
       
  2130 		COMMAND		ws		Close
       
  2131 	END_TEST_BLOCK
       
  2132 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0096
       
  2133 
       
  2134 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0097
       
  2135 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0097
       
  2136 //! @SYMAPI			RWsSession
       
  2137 //! @SYMAuthor			Sunny Yeh
       
  2138 //! @SYMCreationDate		20/09/2006
       
  2139 //! @SYMTestCaseDesc 		SetCustomTextCursor(TInt aIdentifier, const TArray< TSpriteMember > &aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment):adds a custom text cursor to the server's list of cursors
       
  2140 //!				Uses API elements: RWsSession::Connect & Close, CFbsBitmap::Load
       
  2141 //! @SYMTestActions		1.	use new() to create a RWsSession object
       
  2142 //!				2.	use Connect() to make a connection with window server
       
  2143 //!				3.	new and Load() a CFbsBitmap to construct custom text cursor
       
  2144 //!	   			4.	use SetCustomTextCursor() to add custom text cursor of identifier -1, flag=ESpriteNoShadows, alignment=ECustomTextCursorAlignTop
       
  2145 //!	   				with one SpriteMember of the specified bitmap, drawmode=EDrawModeAND, and offset (-1,-1)
       
  2146 //!				5.	Destruct and close all objects used
       
  2147 //! @SYMTestStatus		Implemented
       
  2148 //! @SYMTestPriority		Low
       
  2149 //! @SYMTestExpectedResults	call SetCustomTextCursor() without causing panic
       
  2150 //! @SYMTestType		CIT
       
  2151 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2152 		CREATE_OBJECT	RWsSession	ws
       
  2153 		CREATE_OBJECT	CFbsBitmap	fbsbmp
       
  2154 		COMMAND		ws		new
       
  2155 		COMMAND		ws		Connect
       
  2156 		COMMAND		fbsbmp		new
       
  2157 		COMMAND		fbsbmp		Load				GRAPHICS-WSERV-Session-PublicApi-0097-0001-Load_command001
       
  2158 		COMMAND 	ws		SetCustomTextCursor		GRAPHICS-WSERV-Session-PublicApi-0097-0001-SetCustomTextCursor_command002
       
  2159 		COMMAND		fbsbmp	~
       
  2160 		COMMAND		ws		Close
       
  2161 	END_TEST_BLOCK
       
  2162 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0097
       
  2163 
       
  2164 START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0098
       
  2165 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0098
       
  2166 //! @SYMAPI			RWsSession
       
  2167 //! @SYMAuthor			Sunny Yeh
       
  2168 //! @SYMCreationDate		19/12/2006
       
  2169 //! @SYMTestCaseDesc		SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): set the default fading parameters
       
  2170 //!				SetSystemFaded(TBool aFaded):all windows in the system as faded or unfaded, using the default fading parameters
       
  2171 //!				Uses API elements: RWsSession::Connnect & SetDefaultFadingParameters & SetSystemFaded & Close
       
  2172 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2173 //!				2. Uses SetDefaultFadingParameters to set the mapping values of black map fading parameter to -1
       
  2174 //!				3. Uses SetDefaultFadingParameters to set the mapping values of white map fading parameter to -255
       
  2175 //!				4. Uses SetSystemFaded to all windows in the system as faded or unfaded, using the default fading parameters
       
  2176 //!				5. Close the RWsSession
       
  2177 //! @SYMTestStatus		Implemented
       
  2178 //! @SYMTestPriority		Low
       
  2179 //! @SYMTestExpectedResults	the mapping values of black map and white fading parameter to be set
       
  2180 //! @SYMTestType		CIT
       
  2181 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2182 		CREATE_OBJECT	RWsSession	ws
       
  2183 		COMMAND		ws		new
       
  2184 		COMMAND		ws		Connect
       
  2185 		COMMAND		ws		SetDefaultFadingParameters	GRAPHICS-WSERV-Session-PublicApi-0098-0001-SetDefaultFadingParameters_command003
       
  2186 		COMMAND		ws		SetSystemFaded			GRAPHICS-WSERV-Session-PublicApi-0098-0001-SetSystemFaded_command004
       
  2187 		COMMAND		ws		Close
       
  2188 	END_TEST_BLOCK
       
  2189 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0098
       
  2190 
       
  2191 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0099
       
  2192 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0099
       
  2193 //! @SYMAPI			RWsSession
       
  2194 //! @SYMAuthor			Sunny Yeh
       
  2195 //! @SYMCreationDate		18/12/2006
       
  2196 //! @SYMTestCaseDesc		Close():Closes the window server session
       
  2197 //!				Uses API elements: RWsSession::Connect & Close
       
  2198 //! @SYMTestActions		Create and connect a RWsSession using pre-constructed file server
       
  2199 //! @SYMTestStatus		Implemented
       
  2200 //! @SYMTestPriority		Medium
       
  2201 //! @SYMTestExpectedResults	Connect() method returns KErrNone without causing panic
       
  2202 //! @SYMTestType		CIT
       
  2203 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2204 		CREATE_OBJECT	RWsSession	ws
       
  2205 		COMMAND		ws		new
       
  2206 		COMMAND		ws		Connect
       
  2207 		COMMAND		ws		SetDoubleClick			GRAPHICS-WSERV-Session-PublicApi-0099-0001-SetDoubleClick_command003
       
  2208 		COMMAND		ws		GetDoubleClickSettings		GRAPHICS-WSERV-Session-PublicApi-0099-0001-GetDoubleClickSettings_command004
       
  2209 		COMMAND		ws		Close
       
  2210 	END_TEST_BLOCK
       
  2211 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0099
       
  2212 
       
  2213 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0100
       
  2214 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0100
       
  2215 //! @SYMAPI			RWsSession
       
  2216 //! @SYMAuthor			Sunny Yeh
       
  2217 //! @SYMCreationDate		19/12/2006
       
  2218 //! @SYMTestCaseDesc 		SetHotKey(THotKey aType,TUint aKeyCode,TUint aModifierMask,TUint aModifier):sets the hot keys
       
  2219 //!				Uses API elements: Connect() ,SetHotKey()and Close()
       
  2220 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  2221 //!				2. use Connect() to make a connection with window server
       
  2222 //!				3. use SetHotKey() to set the hot key to EHotKeyIncBrightness and key code to EKeyLeftAlt
       
  2223 //!				4. Close RWsSession object using Close()
       
  2224 //! @SYMTestStatus		Implemented
       
  2225 //! @SYMTestPriority		Low
       
  2226 //! @SYMTestExpectedResults	hot key and key code can be set
       
  2227 //! @SYMTestType		CIT
       
  2228 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2229 		CREATE_OBJECT	RWsSession	ws
       
  2230 		COMMAND		ws		new
       
  2231 		COMMAND		ws		Connect
       
  2232 		COMMAND		ws		SetHotKey			GRAPHICS-WSERV-Session-PublicApi-0100-0001-SetHotKey_command004
       
  2233 		COMMAND		ws		Close
       
  2234 	END_TEST_BLOCK
       
  2235 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0100
       
  2236 
       
  2237 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0102
       
  2238 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0102
       
  2239 //! @SYMAPI			RWsSession
       
  2240 //! @SYMAuthor			Sunny Yeh
       
  2241 //! @SYMCreationDate		19/12/2006
       
  2242 //! @SYMTestCaseDesc 		RestoreDefaultHotKey(TEventModifier aModifier, TModifierState aState):sets the state of the modifier keys
       
  2243 //!				Uses API elements: Connect() ,SetModifierState()and Close()
       
  2244 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  2245 //!				2. use Connect() to make a connection with window server
       
  2246 //!				3. use SetModifierState() to set the state of the modifier keys
       
  2247 //!				4. Close RWsSession object using Close()
       
  2248 //! @SYMTestStatus		Implemented
       
  2249 //! @SYMTestPriority		Low
       
  2250 //! @SYMTestExpectedResults	restore all mapping hotkey
       
  2251 //! @SYMTestType		CIT
       
  2252 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2253 		CREATE_OBJECT	RWsSession	ws
       
  2254 		COMMAND		ws		new
       
  2255 		COMMAND		ws		Connect
       
  2256 		COMMAND		ws		SetModifierState		GRAPHICS-WSERV-Session-PublicApi-0102-0001-SetModifierState_command004
       
  2257 		COMMAND		ws		Close
       
  2258 	END_TEST_BLOCK
       
  2259 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0102
       
  2260 
       
  2261 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0103
       
  2262 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0103
       
  2263 //! @SYMAPI			RWsSession
       
  2264 //! @SYMAuthor			Sunny Yeh
       
  2265 //! @SYMCreationDate		19/12/2006
       
  2266 //! @SYMTestCaseDesc		SetPointerCursorArea(const TPoint &aVector): set the shadow vector
       
  2267 //!				PointerCursorArea():get the current value of the shadow vector
       
  2268 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close
       
  2269 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2270 //!				2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle  to -90,
       
  2271 //!					the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to -696 and the vertical co-ordinate of the bottom of the rectangle to -312
       
  2272 //!				3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for the first screen display mode
       
  2273 //!				4. Uses SetShadowVector to set the mapping values of white map fading parameter to 255
       
  2274 //!				5. Uses PointerCursorArea to set ETrue to fade all windows
       
  2275 //!				6. Uses ShadowVector to set the mapping values of black map fading parameter to 10
       
  2276 //!				7. Close the RWsSession
       
  2277 //! @SYMTestStatus		Implemented
       
  2278 //! @SYMTestPriority		Low
       
  2279 //! @SYMTestExpectedResults	the new shadow vector to be set and get the expected value
       
  2280 //! @SYMTestType		CIT
       
  2281 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2282 		CREATE_OBJECT	RWsSession	ws
       
  2283 		COMMAND		ws		new
       
  2284 		COMMAND		ws		Connect
       
  2285 		COMMAND		ws		SetPointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0103-0001-SetPointerCursorArea_command003
       
  2286 		COMMAND		ws		PointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0103-0001-PointerCursorArea_command004
       
  2287 		COMMAND		ws		Close
       
  2288 	END_TEST_BLOCK
       
  2289 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0103
       
  2290 
       
  2291 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0104
       
  2292 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0104
       
  2293 //! @SYMAPI			RWsSession
       
  2294 //! @SYMAuthor			Sunny Yeh
       
  2295 //! @SYMCreationDate		19/12/2006
       
  2296 //! @SYMTestCaseDesc		SetPointerCursorArea(TInt aScreenSizeMode, const TRect &aArea): set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode
       
  2297 //!				PointerCursorArea(TInt aScreenSizeMode) const:get the current value of the shadow vector
       
  2298 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close
       
  2299 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2300 //!				2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle  to -90,
       
  2301 //!					the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to -696 and the vertical co-ordinate of the bottom of the rectangle to -312
       
  2302 //!				3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode
       
  2303 //!				4. Set the screen mode to which the new area applies to -1
       
  2304 //! @SYMTestStatus		Implemented
       
  2305 //! @SYMTestPriority		Low
       
  2306 //! @SYMTestExpectedResults	The !PanicCode=54 !PanicString=WSERV occur and is catched 
       
  2307 //! @SYMTestType		CIT
       
  2308 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2309 		CREATE_OBJECT	RWsSession	ws
       
  2310 		COMMAND		ws		new
       
  2311 		COMMAND		ws		Connect
       
  2312 		COMMAND		ws		SetPointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0104-0001-SetPointerCursorArea_command003
       
  2313 		COMMAND		ws		PointerCursorArea		GRAPHICS-WSERV-Session-PublicApi-0104-0001-PointerCursorArea_command004
       
  2314 	END_TEST_BLOCK !PanicCode=54 !PanicString=WSERV
       
  2315     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg    
       
  2316 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0104
       
  2317 
       
  2318 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0105
       
  2319 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0105
       
  2320 //! @SYMAPI			RWsSession
       
  2321 //! @SYMAuthor			Sunny Yeh
       
  2322 //! @SYMCreationDate		19/12/2006
       
  2323 //! @SYMTestCaseDesc		SetPointerCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor
       
  2324 //!				PointerCursorMode(TInt aScreenSizeMode) const:get the current mode for the pointer cursor
       
  2325 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorMode & PointerCursorMode & Close
       
  2326 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2327 //!				2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNone
       
  2328 //!				3. Uses TPointerCursorMode's object as parameter for SetPointerCursorMode to set the current mode for the pointer cursor
       
  2329 //!				4. Uses PointerCursorMode to get the current mode for the pointer cursor
       
  2330 //!				5. Close the RWsSession
       
  2331 //! @SYMTestStatus		Implemented
       
  2332 //! @SYMTestPriority		Low
       
  2333 //! @SYMTestExpectedResults	the current mode for the pointer cursor to be set as the expected value
       
  2334 //! @SYMTestType		CIT
       
  2335 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2336 		CREATE_OBJECT	RWsSession	ws
       
  2337 		CREATE_OBJECT	RWindowGroup	wingrp
       
  2338 		COMMAND		ws		new
       
  2339 		COMMAND		ws		Connect
       
  2340 		COMMAND		wingrp		new				GRAPHICS-WSERV-Session-PublicApi-0105-0001-new_command003
       
  2341 		COMMAND		wingrp		Construct			GRAPHICS-WSERV-Session-PublicApi-0105-0001-Construct_command004
       
  2342 		COMMAND		ws		SetPointerCursorMode		GRAPHICS-WSERV-Session-PublicApi-0105-0001-SetPointerCursorMode_command005
       
  2343 		COMMAND		ws		PointerCursorMode		GRAPHICS-WSERV-Session-PublicApi-0105-0001-PointerCursorMode_command006
       
  2344 		COMMAND		wingrp		Close
       
  2345 		COMMAND		ws		Close
       
  2346 	END_TEST_BLOCK
       
  2347 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0105
       
  2348 
       
  2349 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0106
       
  2350 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0106
       
  2351 //! @SYMAPI			RWsSession
       
  2352 //! @SYMAuthor			Sunny Yeh
       
  2353 //! @SYMCreationDate		19/12/2006
       
  2354 //! @SYMTestCaseDesc		SetPointerCursorPosition(const TPoint &aPosition): set the pointer cursor position
       
  2355 //!				Uses API elements: RWsSession::Connnect & SetPointerCursorPosition & Close
       
  2356 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2357 //!				2. Uses TPoint's object to define the pointer cursor X position as -1 and Y position as -1
       
  2358 //!				3. Uses PointerCursorPosition() to get the pointer cursor position
       
  2359 //!				4. Close the RWsSession
       
  2360 //! @SYMTestStatus		Implemented
       
  2361 //! @SYMTestPriority		Low
       
  2362 //! @SYMTestExpectedResults	the current mode for the pointer cursor to be set as the expected value
       
  2363 //! @SYMTestType		CIT
       
  2364 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2365 		CREATE_OBJECT	RWsSession	ws
       
  2366 		COMMAND		ws		new
       
  2367 		COMMAND		ws		Connect
       
  2368 		COMMAND		ws		SetPointerCursorPosition	GRAPHICS-WSERV-Session-PublicApi-0106-0001-SetPointerCursorPosition_command003
       
  2369 		COMMAND		ws		PointerCursorPosition		GRAPHICS-WSERV-Session-PublicApi-0106-0001-PointerCursorPosition_command004
       
  2370 		COMMAND		ws		Close
       
  2371 	END_TEST_BLOCK
       
  2372 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0106
       
  2373 
       
  2374 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0109
       
  2375 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0109
       
  2376 //! @SYMAPI			RWsSession
       
  2377 //! @SYMAuthor			Sunny Yeh
       
  2378 //! @SYMCreationDate		19/12/2006
       
  2379 //! @SYMTestCaseDesc		SetSystemFaded(TBool aFaded, TUint8 aBlackMap, TUint8 aWhiteMap):set all windows in the system as faded or unfaded, overriding the default fading parameters 
       
  2380 //!				Uses API elements: RWsSession::Connnect &SetSystemFaded & Close
       
  2381 //! @SYMTestActions		1. Create and connect a RWsSession
       
  2382 //!				2. Uses SetSystemFaded to set EFalse to fade all windows
       
  2383 //!				3. Uses SetSystemFaded to set the mapping values of black map fading parameter to -10
       
  2384 //!				4. Uses SetSystemFaded to set the mapping values of white map fading parameter to -244
       
  2385 //!				5. Close the RWsSession
       
  2386 //! @SYMTestStatus		Implemented
       
  2387 //! @SYMTestPriority		Low
       
  2388 //! @SYMTestExpectedResults	the shadow vector to be set
       
  2389 //! @SYMTestType		CIT
       
  2390 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2391 		CREATE_OBJECT	RWsSession	ws
       
  2392 		COMMAND		ws		new
       
  2393 		COMMAND		ws		Connect
       
  2394 		COMMAND		ws		SetSystemFaded			GRAPHICS-WSERV-Session-PublicApi-0109-0001-SetSystemFaded_command003
       
  2395 		COMMAND		ws		Close
       
  2396 	END_TEST_BLOCK
       
  2397 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0109
       
  2398 
       
  2399 START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0111
       
  2400 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0111
       
  2401 //! @SYMAPI			RWsSession
       
  2402 //! @SYMAuthor			Sunny Yeh
       
  2403 //! @SYMCreationDate		1/08/2006
       
  2404 //! @SYMTestCaseDesc 		Gets a list of identifiers of all window groups in all window server sessions
       
  2405 //!				Uses API elements: Connect(),FindWindowGroupIdentifier(),and Close()
       
  2406 //! @SYMTestActions		1. use new() to create a RWsSession object
       
  2407 //!				2. use Connect() to make a connection with window server
       
  2408 //!				3. use FindWindowGroupIdentifier() to get all window groups whose names match a given string
       
  2409 //!				4. use '*GVNKWTX*' as match string
       
  2410 //!			  	5. Close RWsSession object using Close()
       
  2411 //! @SYMTestStatus		Implemented
       
  2412 //! @SYMTestPriority		Low
       
  2413 //! @SYMTestExpectedResults	FindWindowGroupIdentifier return -1(KErrNotFound).
       
  2414 //! @SYMTestType		CIT
       
  2415 	START_TEST_BLOCK		10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2416 		CREATE_OBJECT		RWsSession	ws
       
  2417 		COMMAND			ws		new
       
  2418 		COMMAND			ws		Connect
       
  2419 		COMMAND	!Error=-1	ws		FindWindowGroupIdentifier	GRAPHICS-WSERV-Session-PublicApi-0111-0001-FindWindowGroupIdentifier_command004
       
  2420 		COMMAND			ws		Close
       
  2421 	END_TEST_BLOCK
       
  2422 END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0111
       
  2423 
       
  2424 //! START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0114
       
  2425 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0114
       
  2426 //! @SYMAPI			RWsSession
       
  2427 //! @SYMAuthor			Sunny Yeh
       
  2428 //! @SYMCreationDate		19/12/2006
       
  2429 //! @SYMTestCaseDesc 		NumWindowGroups(TInt aScreenNumber, TInt aPriority):gets the number of window groups of a given window group priority running on a specified screen
       
  2430 //!				Uses API elements: Connect() ,NumWindowGroups()and Close()
       
  2431 //! @SYMTestActions		1.	use new() to create a RWsSession object
       
  2432 //!				2.	use Connect() to make a connection with window server
       
  2433 //!				3.	use NumWindowGroups() to get the number of window groups with negative number of a given window group priority running on a specified screen with negative screen number
       
  2434 //! @SYMTestStatus		Implemented
       
  2435 //! @SYMTestPriority		Low
       
  2436 //! @SYMTestExpectedResults	The !PanicCode=65 !PanicString=WSERV occur and catch it 
       
  2437 //! @SYMTestType		CIT
       
  2438 //! 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2439 //! 		CREATE_OBJECT	RWsSession	ws
       
  2440 //! 		COMMAND		ws		new
       
  2441 //! 		COMMAND		ws		Connect
       
  2442 //! 		COMMAND		ws		NumWindowGroups			GRAPHICS-WSERV-Session-PublicApi-0114-0001-NumWindowGroups_command003
       
  2443 //! 	END_TEST_BLOCK	!PanicCode=65 !PanicString=WSERV
       
  2444 //!     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg    
       
  2445 //! END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0114
       
  2446 
       
  2447 //! START_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0115
       
  2448 //! @SYMTestCaseID		GRAPHICS-WSERV-Session-PublicApi-0115
       
  2449 //! @SYMAPI			RWsSession
       
  2450 //! @SYMAuthor			Sunny Yeh
       
  2451 //! @SYMCreationDate		19/12/2006
       
  2452 //! @SYMTestCaseDesc 		WindowGroupList(CArrayFixFlat< TInt > *aWindowList, TInt aScreenNumber, TInt aPriority=EAllPriorities):Lists the number of window groups of a given window group priority running on a specified screen
       
  2453 //!				Uses API elements: Connect() ,WindowGroupList()and Close()
       
  2454 //! @SYMTestActions		1.	use new() to create a RWsSession object
       
  2455 //!				2.	use Connect() to make a connection with window server
       
  2456 //!				3.	use NumWindowGroups() to get the total number of window groups currently
       
  2457 //!				4.	use WindowGroupList() to get the number of window groups of a given window group priority and running on a specified screen with negative screen number
       
  2458 //! @SYMTestStatus		Implemented
       
  2459 //! @SYMTestPriority		Low
       
  2460 //! @SYMTestExpectedResults	The !PanicCode=65 !PanicString=WSERV occur and catch it
       
  2461 //! @SYMTestType		CIT
       
  2462 //! 	START_TEST_BLOCK	10		T_GraphicsWservAPI		\graphics\GRAPHICS-WSERV-Session-PublicApi.ini
       
  2463 //! 		CREATE_OBJECT	RWsSession	ws
       
  2464 //! 		COMMAND		ws		new
       
  2465 //! 		COMMAND		ws		Connect
       
  2466 //! 		COMMAND		ws		NumWindowGroups
       
  2467 //! 		COMMAND		ws		WindowGroupList			GRAPHICS-WSERV-Session-PublicApi-0115-0001-WindowGroupList_command005
       
  2468 //! 	END_TEST_BLOCK	!PanicCode=65 !PanicString=WSERV
       
  2469 //!     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg    
       
  2470 //! END_TESTCASE	GRAPHICS-WSERV-Session-PublicApi-0115