windowing/windowserver/test/t_genericplugin/scripts/graphics-wserv-genericplugin-load-nonnga.script
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 //
       
     2 // Copyright (c) 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 /////////////////////////////////////////////////////////////////////
       
    17 // graphics-wserv-genericplugin-load-nonnga.script
       
    18 //
       
    19 // Tests the generic plug-in framework
       
    20 //
       
    21 // The test is fully automated.
       
    22 /////////////////////////////////////////////////////////////////////
       
    23 
       
    24 LOAD_SUITE	t_wservgenericpluginserver_nonnga
       
    25 DELAY		5000
       
    26 
       
    27 START_TESTCASE GRAPHICS-WSERV-1841-0001
       
    28 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0001
       
    29 //!@SYMPREQ					1841
       
    30 //!@SYMTestCaseDesc			Control of CWsPlugin loading from WSINI.INI			
       
    31 //!@SYMTestActions			tests alternative fader specified by an ID and alternative 
       
    32 //!							render stage specified by TYPE in wsini.ini file are loaded
       
    33 //!@SYMTestStatus			Implemented
       
    34 //!@SYMTestPriority			2
       
    35 //!@SYMTestExpectedResults	Alternative plugins are loaded as specified. 
       
    36 //!							Window created in screen 0 is faded with custom fader and 
       
    37 //!							two lines are drawn on the left top window by custom render stage.
       
    38 //!@SYMTestType				CT
       
    39 RUN_TEST_STEP 100	t_wservgenericpluginserver_nonnga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nonnga.ini graphics-wserv-genericplugin-0001
       
    40 END_TESTCASE GRAPHICS-WSERV-1841-0001
       
    41 
       
    42 START_TESTCASE GRAPHICS-WSERV-1841-0002
       
    43 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0002
       
    44 //!@SYMPREQ					1841
       
    45 //!@SYMTestCaseDesc			Test that plugins can be specified on a per-screen basis through WSINI.INI file
       
    46 //!@SYMTestActions			Create modified WSINI.INI file which specifies different fader and render stage
       
    47 //!							plugins to be used on screens 0 and 1.
       
    48 //!@SYMTestStatus			Implemented
       
    49 //!@SYMTestPriority			2
       
    50 //!@SYMTestExpectedResults	Both sets of plugins are loaded, and the correct plugin is used on each screen.
       
    51 //!							Windows created in different screen are faded with different color.
       
    52 //!							Windows in screen 0 have two lines drawn on left top window by custom render stage 
       
    53 //!							while windows in screen 1 use standard render stage.
       
    54 //!@SYMTestType				CT
       
    55 RUN_TEST_STEP 100	t_wservgenericpluginserver_nonnga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nonnga.ini graphics-wserv-genericplugin-0002
       
    56 END_TESTCASE GRAPHICS-WSERV-1841-0002
       
    57 
       
    58 START_TESTCASE GRAPHICS-WSERV-1841-0003
       
    59 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0003
       
    60 //!@SYMPREQ					1841
       
    61 //!@SYMTestCaseDesc			Passing data to CWsPlugin on construction through WSINI.INI file
       
    62 //!@SYMTestActions			Create modified WSINI.INI file which specifies a test plugin to be loaded, 
       
    63 //!							and contains a section for that plugin containing a DATA variable.
       
    64 //!							TestFader_Data plugin is used for this test
       
    65 //!@SYMTestStatus			Implemented
       
    66 //!@SYMTestPriority			2
       
    67 //!@SYMTestExpectedResults	The plug-in is loaded as specified. 
       
    68 //!							Window created in screen 1 is faded by fader with fading option set in WSINI.INI.
       
    69 //!@SYMTestType				CT
       
    70 RUN_TEST_STEP 100	t_wservgenericpluginserver_nonnga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nonnga.ini graphics-wserv-genericplugin-0003
       
    71 END_TESTCASE GRAPHICS-WSERV-1841-0003
       
    72 
       
    73 START_TESTCASE GRAPHICS-WSERV-1841-0004
       
    74 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0004
       
    75 //!@SYMPREQ					1841
       
    76 //!@SYMTestCaseDesc			Integer and string attributes in WSINI.INI file can be read from CWsPlugin. 			
       
    77 //!@SYMTestActions			Create modified WSINI.INI file which specifies a test fader to be loaded to screen 0.
       
    78 //!							Specifies integer and string variables for default, custom, and screen sections
       
    79 //!@SYMTestStatus			Implemented
       
    80 //!@SYMTestPriority			2
       
    81 //!@SYMTestExpectedResults	Alternative plug-in is loaded as specified and attributes can be accessed from plug-in.
       
    82 //!@SYMTestType				CT
       
    83 RUN_TEST_STEP 100	t_wservgenericpluginserver_nonnga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nonnga.ini graphics-wserv-genericplugin-0004
       
    84 END_TESTCASE GRAPHICS-WSERV-1841-0004
       
    85 
       
    86 START_TESTCASE GRAPHICS-WSERV-1841-0005
       
    87 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0005
       
    88 //!@SYMPREQ					1841
       
    89 //!@SYMTestCaseDesc			CWsPlugin can gain information about closing windows using MWsWindow interface.
       
    90 //!@SYMTestActions			Create modified WSINI.INI file which specifies a test renderer to be loaded.
       
    91 //!							Register CWsPLugin as eventhandler receiving EWindowClosing events.
       
    92 //!@SYMTestStatus			Implemented
       
    93 //!@SYMTestPriority			2
       
    94 //!@SYMTestExpectedResults	Plugin can access information about closing windows through MWsWindow interface.
       
    95 //!							Windows with different size and position are created and closed in screen 0.
       
    96 //!@SYMTestType				CT
       
    97 RUN_TEST_STEP 100	t_wservgenericpluginserver_nonnga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nonnga.ini graphics-wserv-genericplugin-0005
       
    98 END_TESTCASE GRAPHICS-WSERV-1841-0005
       
    99 
       
   100 START_TESTCASE GRAPHICS-WSERV-1841-0006
       
   101 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0006
       
   102 //!@SYMPREQ					1841
       
   103 //!@SYMTestCaseDesc			CWsPlugin can obtain instance of another CWPlugin.
       
   104 //!@SYMTestActions			Create modified WSINI.INI file which specifies a test renderer, test fader, and service plug-in to be loaded.
       
   105 //!							Service plugin offers elementary service to other plug-ins.
       
   106 //!@SYMTestStatus			Implemented
       
   107 //!@SYMTestPriority			2
       
   108 //!@SYMTestExpectedResults	Test fader can access information set in service plugin by test renderer.
       
   109 //!@SYMTestType				CT
       
   110 RUN_TEST_STEP 100	t_wservgenericpluginserver_nonnga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nonnga.ini graphics-wserv-genericplugin-0006
       
   111 END_TESTCASE GRAPHICS-WSERV-1841-0006
       
   112 
       
   113 START_TESTCASE GRAPHICS-WSERV-1841-0100
       
   114 //!@SYMTestCaseID			GRAPHICS-WSERV-1841-0100
       
   115 //!@SYMPREQ					1841
       
   116 //!@SYMTestCaseDesc			Negative tests for control of CWsPlugin loading from WSINI.INI			
       
   117 //!@SYMTestActions			Modify WSINI.INI file that specifies the below plugins to be loaded and check the log file.
       
   118 //!							1. Fader without ID or Type for identification in wsini.ini file.
       
   119 //!							2. Fader with mismatch UIDs in wsini.ini file.
       
   120 //!							3. Fader which leaves from ConstructL.
       
   121 //!							4. Render stage factory which responds incorrectly(return NULL) to ResolveObjectInterface method call.	
       
   122 //!							5. Render stage factory which returns NULL from CreateStageL method.
       
   123 //!@SYMTestStatus			Implemented
       
   124 //!@SYMTestPriority			2
       
   125 //!@SYMTestExpectedResults	1. Fader without ID or Type for identification in wsini.ini file is not loaded.
       
   126 //!							2. Fader with mismatch UIDs in wsini.ini file is not loaded.
       
   127 //!							3. Fader which leaves from ConstructL is not loaded.
       
   128 //!							4. Render stage factory which responds incorrectly(return NULL) to ResolveObjectInterface method 
       
   129 //!							call is created without effect.	
       
   130 //!							5. Render stage factory which returns NULL from CreateStageL method call is 
       
   131 //!							created without effect. 
       
   132 //!@SYMTestType				CT 
       
   133 RUN_TEST_STEP 100	t_wservgenericpluginserver_nonnga T_WServGenericpluginStepLoad graphics-wserv-genericplugin-nonnga.ini graphics-wserv-genericplugin-0100
       
   134 END_TESTCASE GRAPHICS-WSERV-1841-0100