windowing/windowserver/test/t_stress/scripts/wservstresstest.script
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 PRINT Run WServer stress tests
       
    17 
       
    18 LOAD_SUITE twservstresstest
       
    19 
       
    20 START_TESTCASE GRAPHICS-WSERV-1841-0007
       
    21 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0007
       
    22 //!@SYMPREQ					1841
       
    23 //!@SYMTestCaseDesc			Test for correct rendering of window scenes			
       
    24 //!@SYMTestActions			Form a linear list of windows (or for bonus points, a tree) with various attributes (described in following tests).
       
    25 //!							For WSERV rendering of the scene, create RWindows having the required attributes, in the z-order corresponding to 
       
    26 //!							the list, and get WSERV to render the scene.
       
    27 //!							For comparison, render the windows into an offscreen bitmap, using naïve back-to-front composition of every window.
       
    28 //!							The window set is created and updated by a sequence of the following operations:
       
    29 //!								* Creating and destroying windows
       
    30 //!								* Moving and resizing windows
       
    31 //!								* Bring to foreground / send to background
       
    32 //!								* Make visible / invisible
       
    33 //!								* Invalidate / receive client updates
       
    34 //!							The sequence of operations to generate the scenes should be defined in data rather than code. 
       
    35 //!							(Ideally, driven by a seeded pseudo-random number generator).
       
    36 //!@SYMTestStatus			Implemented
       
    37 //!@SYMTestPriority			1
       
    38 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
    39 //!							(Note, may need to ensure that OSB has same bit-depth as screen to ensure equality.)
       
    40 //!@SYMTestType				CT
       
    41 RUN_TEST_STEP 3600 twservstresstest WServStressTest_One z:\wstest\wservstresstest1.ini
       
    42 END_TESTCASE GRAPHICS-WSERV-1841-0007
       
    43 
       
    44 START_TESTCASE GRAPHICS-WSERV-1841-0008
       
    45 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0008
       
    46 //!@SYMPREQ					1841
       
    47 //!@SYMTestCaseDesc			Test for correct rendering of window scenes	involving opaque windows		
       
    48 //!@SYMTestActions			Test setup as for previous test (random windows with various attributes, comparison of WSERV rendering against reference bitmap)
       
    49 //!							The test harness is enabled to create opaque windows.
       
    50 //!@SYMTestStatus			Implemented
       
    51 //!@SYMTestPriority			1
       
    52 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
    53 //!@SYMTestType				CT
       
    54 RUN_TEST_STEP 4000 twservstresstest WServStressTest_One z:\wstest\wservstresstest2.ini
       
    55 END_TESTCASE GRAPHICS-WSERV-1841-0008
       
    56 
       
    57 START_TESTCASE GRAPHICS-WSERV-1841-0009
       
    58 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0009
       
    59 //!@SYMPREQ					1841
       
    60 //!@SYMTestCaseDesc			Test for correct rendering of window scenes	involving transparent windows		
       
    61 //!@SYMTestActions			Test setup as for previous test (random windows with various attributes, comparison of WSERV rendering against reference bitmap)
       
    62 //!							The test harness is enabled to create alpha channel transparent windows. 
       
    63 //!							(These windows should draw some semi-transparent pixels. They could also call SetTransparentRegion().)
       
    64 //!@SYMTestStatus			Implemented
       
    65 //!@SYMTestPriority			1
       
    66 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
    67 //!@SYMTestType				CT
       
    68 RUN_TEST_STEP 3600 twservstresstest WServStressTest_One z:\wstest\wservstresstest3.ini
       
    69 END_TESTCASE GRAPHICS-WSERV-1841-0009
       
    70 
       
    71 START_TESTCASE GRAPHICS-WSERV-1841-0010
       
    72 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0010
       
    73 //!@SYMPREQ					1841
       
    74 //!@SYMTestCaseDesc			Test the correctness of the new redraw store, including disabled redraw store		
       
    75 //!@SYMTestActions			Test setup as for previous test (random windows with various attributes, comparison of WSERV rendering against reference bitmap)
       
    76 //!							Test harness is enabled to create windows with the following attributes:
       
    77 //!								* Use redraw drawing or non-redraw drawing
       
    78 //!								* Backed-up window
       
    79 //!								* Large window with redraw storing disabled
       
    80 //!@SYMTestStatus			Implemented
       
    81 //!@SYMTestPriority			1
       
    82 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
    83 //!@SYMTestType				CT
       
    84 RUN_TEST_STEP 4000 twservstresstest WServStressTest_One z:\wstest\wservstresstest4.ini
       
    85 END_TESTCASE GRAPHICS-WSERV-1841-0010
       
    86 
       
    87 START_TESTCASE GRAPHICS-WSERV-1841-0011
       
    88 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0011
       
    89 //!@SYMPREQ					1841
       
    90 //!@SYMTestCaseDesc			Test the correctness of the new sprite implementation
       
    91 //!@SYMTestActions			Test setup as for previous test (random windows with various attributes, comparison of WSERV rendering against reference bitmap)
       
    92 //!							Windows with the following attributes:
       
    93 //!							Has/does not have a window sprite. The code for these windows should move the sprite around in some deterministic fashion.
       
    94 //!							The data driving the test must include cases where a window with sprite appears behind a transparent window,
       
    95 //!							as this is a key use case for the new implementation
       
    96 //!@SYMTestStatus			Implemented
       
    97 //!@SYMTestPriority			1
       
    98 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
    99 //!@SYMTestType				CT
       
   100 RUN_TEST_STEP 3600 twservstresstest WServStressTest_One z:\wstest\wservstresstest5.ini
       
   101 END_TESTCASE GRAPHICS-WSERV-1841-0011
       
   102 
       
   103 START_TESTCASE GRAPHICS-WSERV-1841-0012
       
   104 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0012
       
   105 //!@SYMPREQ					1841
       
   106 //!@SYMTestCaseDesc			Test the correctness of the new anim scheduling
       
   107 //!@SYMTestActions			Test setup as for previous test (random windows with various attributes, comparison of WSERV rendering against reference bitmap)
       
   108 //!							Window which contains a ticking anim (eg clock).
       
   109 //!							The data driving the test must include cases where a window with ticking anim appears behind a transparent window, 
       
   110 //!							as this is a key use case for the new implementation.
       
   111 //!@SYMTestStatus			Implemented
       
   112 //!@SYMTestPriority			1
       
   113 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
   114 //!@SYMTestType				CT
       
   115 RUN_TEST_STEP 3600 twservstresstest WServStressTest_One z:\wstest\wservstresstest6.ini
       
   116 END_TESTCASE GRAPHICS-WSERV-1841-0012
       
   117 
       
   118 START_TESTCASE GRAPHICS-WSERV-1841-0101
       
   119 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0101
       
   120 //!@SYMPREQ					1841
       
   121 //!@SYMTestCaseDesc			Test the correctness of random usage of pen style
       
   122 //!@SYMTestActions			Test setup as for previous test (random windows with various attributes, comparison of WSERV rendering against reference bitmap)
       
   123 //!							These windows should draw something using randomize pen style.
       
   124 //!@SYMTestStatus			Implemented
       
   125 //!@SYMTestPriority			1
       
   126 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
   127 //!@SYMTestType				CT
       
   128 RUN_TEST_STEP 3600 twservstresstest WServStressTest_One z:\wstest\wservstresstest7.ini
       
   129 END_TESTCASE GRAPHICS-WSERV-1841-0101
       
   130 
       
   131 START_TESTCASE GRAPHICS-WSERV-1841-0102
       
   132 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0102
       
   133 //!@SYMPREQ					1841
       
   134 //!@SYMTestCaseDesc			Test the correctness of random usage of brush style
       
   135 //!@SYMTestActions			Test setup as for previous test (random windows with various attributes, comparison of WSERV rendering against reference bitmap)
       
   136 //!							These windows should draw something using randomize brush style.
       
   137 //!@SYMTestStatus			Implemented
       
   138 //!@SYMTestPriority			1
       
   139 //!@SYMTestExpectedResults	The WSERV rendering of the scene produces the same results as the back-to-front rendering into offscreen bitmap. 
       
   140 //!@SYMTestType				CT
       
   141 RUN_TEST_STEP 3600 twservstresstest WServStressTest_One z:\wstest\wservstresstest8.ini
       
   142 END_TESTCASE GRAPHICS-WSERV-1841-0102