graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimGeneralFunctions-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-AnimGeneralFunctions-PublicApi
       
    18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the MAnimGeneralFunctions 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 // MAnimGeneralFunctions related classes.
       
    28 // Negative caseing 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 LOAD_SUITE      T_GraphicsWservAPI
       
    35 DELAY           1000
       
    36 
       
    37 
       
    38 // ****************************************************************************
       
    39 // MAnimGeneralFunctions
       
    40 // ****************************************************************************
       
    41 
       
    42 
       
    43 
       
    44 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001
       
    45 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001
       
    46 //!@SYMAPI                   MAnimGeneralFunctions::Animate(TDateTime {ptr})
       
    47 //!@SYMAuthor                Cherry Song
       
    48 //!@SYMCreationDate          10-04-2008
       
    49 //!@SYMTestCaseDesc          The client sends command ECmdGeneralAnimate to animation DLL by CommandReply to start animation , and then check 
       
    50 //!                          if the returned result is the expected one.
       
    51 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
    52 //!                          2.  Create and construct RWindowGroup and RWindow.
       
    53 //!                          3.  Activate the RWindow.
       
    54 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
    55 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
    56 //!                          6.  Create a RAnim by using RAnimDll object.
       
    57 //!                          7.  Create an instance of  RAnimForMClass .
       
    58 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
    59 //!                          9.  Send ECmdGeneralAnimate with a specified TDateTime parameter to animation DLL by CommandReply.
       
    60 //!                          9.1 The wrapper check the returned result from step 8 is correct(1) or not.
       
    61 //!                          10. Destroy RAnim and RAnimForMClass.
       
    62 //!                          11. Destroy RAnimDll.
       
    63 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
    64 //!@SYMTestStatus            Implemented
       
    65 //!@SYMTestPriority          High
       
    66 //!@SYMTestExpectedResults   CommandReply returns 1(stands for True).
       
    67 //!@SYMTestType              CIT
       
    68     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
    69         CREATE_OBJECT              RWsSession               ws
       
    70         CREATE_OBJECT              RWindowGroup             wingp
       
    71         CREATE_OBJECT              RWindow                  win
       
    72         CREATE_OBJECT              RAnimDll                 animdll
       
    73         CREATE_OBJECT              RAnim                    anim
       
    74         CREATE_OBJECT              RAnimForMClass           animformc
       
    75         COMMAND                    ws                       new                      
       
    76         COMMAND                    ws                       Connect                  
       
    77         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command03
       
    78         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command04
       
    79         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command05
       
    80         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command06
       
    81         COMMAND                    win                      Activate
       
    82         COMMAND                    win                      BeginRedraw
       
    83         COMMAND                    win                      EndRedraw
       
    84         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-SetAutoFlush_Command08
       
    85         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command09
       
    86         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Load_Command10
       
    87         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command11
       
    88         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command12
       
    89         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command13
       
    90         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-CommandReply_Command14
       
    91         COMMAND                    anim                     Destroy                  
       
    92         COMMAND                    animformc                Destroy                  
       
    93         COMMAND                    animdll                  Destroy                  
       
    94         COMMAND                    win                      Close                    
       
    95         COMMAND                    wingp                    Close                    
       
    96         COMMAND                    ws                       Close                    
       
    97     END_TEST_BLOCK
       
    98 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001
       
    99 
       
   100 
       
   101 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002
       
   102 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002
       
   103 //!@SYMAPI                   MAnimGeneralFunctions::Client()
       
   104 //!@SYMAuthor                Cherry Song
       
   105 //!@SYMCreationDate          10-04-2008
       
   106 //!@SYMTestCaseDesc          The client sends command ECmdGeneralClient to animation DLL by CommandReply to get a reference to the calling client's thread ,
       
   107 //!                          and then check if the returned threadId is the expected one.
       
   108 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   109 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   110 //!                          3.  Activate the RWindow.
       
   111 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   112 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   113 //!                          6.  Create a RAnim by using RAnimDll object.
       
   114 //!                          7.  Create an instance of  RAnimForMClass .
       
   115 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   116 //!                          9.  Send ECmdGeneralClient with client thread id to animation DLL by CommandReply.
       
   117 //!                          9.1 Plugin gets a reference to the calling client's thread and return to client.
       
   118 //!                          9.2 The wrapper check if the threadId equals to the client one. If not, set this case fail.
       
   119 //!                          10. Destroy RAnim and RAnimForMClass
       
   120 //!                          11. Destroy RAnimDll.
       
   121 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   122 //!@SYMTestStatus            Implemented
       
   123 //!@SYMTestPriority          High
       
   124 //!@SYMTestExpectedResults   CommandReply returns the client thread id properly.
       
   125 //!@SYMTestType              CIT
       
   126     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   127         CREATE_OBJECT              RWsSession               ws
       
   128         CREATE_OBJECT              RWindowGroup             wingp
       
   129         CREATE_OBJECT              RWindow                  win
       
   130         CREATE_OBJECT              RAnimDll                 animdll
       
   131         CREATE_OBJECT              RAnim                    anim
       
   132         CREATE_OBJECT              RAnimForMClass           animformc
       
   133         COMMAND                    ws                       new                      
       
   134         COMMAND                    ws                       Connect                  
       
   135         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command03
       
   136         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command04
       
   137         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command05
       
   138         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command06
       
   139         COMMAND                    win                      Activate
       
   140         COMMAND                    win                      BeginRedraw
       
   141         COMMAND                    win                      EndRedraw
       
   142         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-SetAutoFlush_Command08
       
   143         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command09
       
   144         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Load_Command10
       
   145         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command11
       
   146         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command12
       
   147         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command13
       
   148         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-CommandReply_Command14
       
   149         COMMAND                    animformc                Destroy                  
       
   150         COMMAND                    anim                     Destroy                  
       
   151         COMMAND                    animdll                  Destroy                  
       
   152         COMMAND                    win                      Close                    
       
   153         COMMAND                    wingp                    Close                    
       
   154         COMMAND                    ws                       Close                    
       
   155     END_TEST_BLOCK
       
   156 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002
       
   157 
       
   158 
       
   159 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003
       
   160 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003
       
   161 //!@SYMAPI                   MAnimGeneralFunctions::FlashStateOn()
       
   162 //!@SYMAuthor                Cherry Song
       
   163 //!@SYMCreationDate          10-04-2008
       
   164 //!@SYMTestCaseDesc          The client sends command ECmdGeneralFlashStateOn to animation DLL by CommandReply to get the current flash cycle state,
       
   165 //!                          the plugin will verify if the state's correct and return the result to client. 
       
   166 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   167 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   168 //!                          3.  Activate the RWindow.
       
   169 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   170 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   171 //!                          6.  Create a RAnim by using RAnimDll object.
       
   172 //!                          7.  Create an instance of  RAnimForMClass .
       
   173 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   174 //!                          9.  Send ECmdGeneralFlashStateOn to animation DLL by CommandReply.
       
   175 //!                          9.1 Plugin check if the FlashStateOn function execute expectedly. If does, return 1, else return 0.
       
   176 //!                          9.2 The wrapper check the returned value is 1 or not. If 0, set this case fail.
       
   177 //!                          10. Destroy RAnim and RAnimForMClass
       
   178 //!                          11. Destroy RAnimDll.
       
   179 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   180 //!@SYMTestStatus            Implemented
       
   181 //!@SYMTestPriority          High
       
   182 //!@SYMTestExpectedResults   CommandReply returns 1(stands for True).
       
   183 //!@SYMTestType              CIT
       
   184     START_TEST_BLOCK          20          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   185         CREATE_OBJECT              RWsSession               ws
       
   186         CREATE_OBJECT              RWindowGroup             wingp
       
   187         CREATE_OBJECT              RWindow                  win
       
   188         CREATE_OBJECT              RAnimDll                 animdll
       
   189         CREATE_OBJECT              RAnim                    anim
       
   190         CREATE_OBJECT              RAnimForMClass           animformc
       
   191         COMMAND                    ws                       new                      
       
   192         COMMAND                    ws                       Connect                  
       
   193         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command03
       
   194         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command04
       
   195         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command05
       
   196         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command06
       
   197         COMMAND                    win                      Activate
       
   198         COMMAND                    win                      BeginRedraw
       
   199         COMMAND                    win                      EndRedraw
       
   200         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-SetAutoFlush_Command08
       
   201         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command09
       
   202         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Load_Command10
       
   203         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command11
       
   204         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command12
       
   205         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command13
       
   206         DELAY                      2000000                                           
       
   207         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-CommandReply_Command14
       
   208         COMMAND                    anim                     Destroy                  
       
   209         COMMAND                    animformc                Destroy                  
       
   210         COMMAND                    animdll                  Destroy                  
       
   211         COMMAND                    win                      Close                    
       
   212         COMMAND                    wingp                    Close                    
       
   213         COMMAND                    ws                       Close                    
       
   214     END_TEST_BLOCK
       
   215 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003
       
   216 
       
   217 
       
   218 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004
       
   219 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004
       
   220 //!@SYMAPI                   MAnimGeneralFunctions::Panic()
       
   221 //!@SYMAuthor                Cherry Song
       
   222 //!@SYMCreationDate          10-04-2008
       
   223 //!@SYMTestCaseDesc          The client sends command ECmdGeneralPanic to animation DLL by CommandReply to execute the MAnimGeneralFunctions::Panic(), and then see if the client is panicked.
       
   224 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   225 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   226 //!                          3.  Activate the RWindow.
       
   227 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   228 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   229 //!                          6.  Create a RAnim by using RAnimDll object.
       
   230 //!                          7.  Create an instance of  RAnimForMClass .
       
   231 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   232 //!                          9.  Send ECmdGeneralPanic to animation DLL by CommandReply.
       
   233 //!@SYMTestStatus            Implemented
       
   234 //!@SYMTestPriority          High
       
   235 //!@SYMTestExpectedResults   Client is panic with WSERV:22.
       
   236 //!@SYMTestType              CIT
       
   237     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   238         CREATE_OBJECT              RWsSession               ws
       
   239         CREATE_OBJECT              RWindowGroup             wingp
       
   240         CREATE_OBJECT              RWindow                  win
       
   241         CREATE_OBJECT              RAnimDll                 animdll
       
   242         CREATE_OBJECT              RAnim                    anim
       
   243         CREATE_OBJECT              RAnimForMClass           animformc
       
   244         COMMAND                    ws                       new                      
       
   245         COMMAND                    ws                       Connect                  
       
   246         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command03
       
   247         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command04
       
   248         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command05
       
   249         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command06
       
   250         COMMAND                    win                      Activate
       
   251         COMMAND                    win                      BeginRedraw
       
   252         COMMAND                    win                      EndRedraw
       
   253         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-SetAutoFlush_Command08
       
   254         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command09
       
   255         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Load_Command10
       
   256         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command11
       
   257         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command12
       
   258         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command13
       
   259         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-CommandReply_Command14
       
   260     END_TEST_BLOCK    !PanicString=WSERV    !PanicCode=22
       
   261     RUN_TEST_STEP          100          T_GraphicsWservAPI          utilityClearPanicDlg
       
   262 
       
   263 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004
       
   264 
       
   265 
       
   266 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005
       
   267 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005
       
   268 //!@SYMAPI                   MAnimGeneralFunctions::ScreenDevice()
       
   269 //!@SYMAuthor                Cherry Song
       
   270 //!@SYMCreationDate          10-04-2008
       
   271 //!@SYMTestCaseDesc          The client sends command ECmdGeneralScreenDevice to animation DLL by CommandReply to get a pointer to the screen device,
       
   272 //!                          then the plugin will execute one CFbsScreenDevice function and return 0 to client if execute successfully.
       
   273 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   274 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   275 //!                          3.  Activate the RWindow.
       
   276 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   277 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   278 //!                          6.  Create a RAnim by using RAnimDll object.
       
   279 //!                          7.  Create an instance of  RAnimForMClass .
       
   280 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   281 //!                          9.  Send ECmdGeneralScreenDevice to animation DLL by CommandReply.
       
   282 //!                          9.1 Plugin invoke one CFbsScreenDevice function to verify if the CFbsScreenDevice pointer which is returned by MAnimGeneralFunctions::ScreenDevice() works or not .
       
   283 //!                          If it works,  return 0 to client.
       
   284 //!                          9.2 The wrapper check if the return code is 0. If not, set this case failed.
       
   285 //!                          10. Destroy RAnim and RAnimForMClass.
       
   286 //!                          11. Destroy RAnimDll.
       
   287 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   288 //!@SYMTestStatus            Implemented
       
   289 //!@SYMTestPriority          High
       
   290 //!@SYMTestExpectedResults   The CommandReply return 0 to client in step 9, which means the Plugin has executed one CFbsScreenDevice function successfully.
       
   291 //!@SYMTestType              CIT
       
   292     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   293         CREATE_OBJECT              RWsSession               ws
       
   294         CREATE_OBJECT              RWindowGroup             wingp
       
   295         CREATE_OBJECT              RWindow                  win
       
   296         CREATE_OBJECT              RAnimDll                 animdll
       
   297         CREATE_OBJECT              RAnim                    anim
       
   298         CREATE_OBJECT              RAnimForMClass           animformc
       
   299         COMMAND                    ws                       new                      
       
   300         COMMAND                    ws                       Connect                  
       
   301         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command03
       
   302         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command04
       
   303         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command05
       
   304         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command06
       
   305         COMMAND                    win                      Activate
       
   306         COMMAND                    win                      BeginRedraw
       
   307         COMMAND                    win                      EndRedraw
       
   308         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-SetAutoFlush_Command08
       
   309         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command09
       
   310         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Load_Command10
       
   311         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command11
       
   312         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command12
       
   313         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command13
       
   314         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-CommandReply_Command14
       
   315         COMMAND                    anim                     Destroy                  
       
   316         COMMAND                    animformc                Destroy                  
       
   317         COMMAND                    animdll                  Destroy                  
       
   318         COMMAND                    win                      Close                    
       
   319         COMMAND                    wingp                    Close                    
       
   320         COMMAND                    ws                       Close                    
       
   321     END_TEST_BLOCK
       
   322 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005
       
   323 
       
   324 
       
   325 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006
       
   326 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006
       
   327 //!@SYMAPI                   MAnimGeneralFunctions::ExtendedInterface(TInt)
       
   328 //!@SYMAuthor                Cherry Song
       
   329 //!@SYMCreationDate          10-04-2008
       
   330 //!@SYMTestCaseDesc          The client sends command ECmdGeneralExtendedInterface with parameter 0(ENumberOfExtendedInterfaces)
       
   331 //!                          to animation DLL to get the number of extended interfaces, and then check if the returned result is the expected one.
       
   332 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   333 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   334 //!                          3.  Activate the RWindow.
       
   335 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   336 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   337 //!                          6.  Create a RAnim by using RAnimDll object.
       
   338 //!                          7.  Create an instance of  RAnimForMClass .
       
   339 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   340 //!                          9.  Send ECmdGeneralExtendedInterface with parameter equals to 0 to animation DLL by CommandReply.
       
   341 //!                          9.1 Plugin invoke the MAnimGeneralFunctions::ExtendedInterface(0) and return the result.
       
   342 //!                          9.2 The wrapper check if the value equals to the expected value.If not, set this case fail.
       
   343 //!                          10. Destroy RAnim and RAnimForMClass.
       
   344 //!                          11. Destroy RAnimDll.
       
   345 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   346 //!@SYMTestStatus            Implemented
       
   347 //!@SYMTestPriority          High
       
   348 //!@SYMTestExpectedResults   CommandReply returns the number of extended interface(currently, it is 2).
       
   349 //!@SYMTestType              CIT
       
   350     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   351         CREATE_OBJECT              RWsSession               ws
       
   352         CREATE_OBJECT              RWindowGroup             wingp
       
   353         CREATE_OBJECT              RWindow                  win
       
   354         CREATE_OBJECT              RAnimDll                 animdll
       
   355         CREATE_OBJECT              RAnim                    anim
       
   356         CREATE_OBJECT              RAnimForMClass           animformc
       
   357         COMMAND                    ws                       new                      
       
   358         COMMAND                    ws                       Connect                  
       
   359         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command03
       
   360         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command04
       
   361         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command05
       
   362         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command06
       
   363         COMMAND                    win                      Activate
       
   364         COMMAND                    win                      BeginRedraw
       
   365         COMMAND                    win                      EndRedraw
       
   366         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-SetAutoFlush_Command08
       
   367         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command09
       
   368         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Load_Command10
       
   369         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command11
       
   370         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command12
       
   371         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command13
       
   372         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-CommandReply_Command14
       
   373         COMMAND                    anim                     Destroy                  
       
   374         COMMAND                    animformc                Destroy                  
       
   375         COMMAND                    animdll                  Destroy                  
       
   376         COMMAND                    win                      Close                    
       
   377         COMMAND                    wingp                    Close                    
       
   378         COMMAND                    ws                       Close                    
       
   379     END_TEST_BLOCK
       
   380 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006
       
   381 
       
   382 
       
   383 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007
       
   384 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007
       
   385 //!@SYMAPI                   MAnimGeneralFunctions::ExtendedInterface(TInt)
       
   386 //!@SYMAuthor                Cherry Song
       
   387 //!@SYMCreationDate          10-04-2008
       
   388 //!@SYMTestCaseDesc          The client sends command ECmdGeneralExtendedInterface with parameter 1(EWindowExtensionInterface) to animation DLL 
       
   389 //!                          to get a pointer to the window extension interface, check if it works or not, and return the result to client. 
       
   390 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   391 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   392 //!                          3.  Activate the RWindow.
       
   393 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   394 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   395 //!                          6.  Create a RAnim by using RAnimDll object.
       
   396 //!                          7.  Create an instance of  RAnimForMClass .
       
   397 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   398 //!                          9.  Send ECmdGeneralExtendedInterface with parameter equals to 1 to animation DLL by CommandReply
       
   399 //!                          9.1 Plugin invoke one MAnimGeneralFunctionsWindowExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::ExtendedInterface(1) works or not .
       
   400 //!                          If works, Plugin return 0 to client.
       
   401 //!                          9.2 The wrapper check the returned value is 0.If not 0, set this case fail.
       
   402 //!                          10. Destroy RAnim and RAnimForMClass.
       
   403 //!                          11. Destroy RAnimDll.
       
   404 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   405 //!@SYMTestStatus            Implemented
       
   406 //!@SYMTestPriority          High
       
   407 //!@SYMTestExpectedResults   CommandReply returns 0 in step 9.
       
   408 //!@SYMTestType              CIT
       
   409     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   410         CREATE_OBJECT              RWsSession               ws
       
   411         CREATE_OBJECT              RWindowGroup             wingp
       
   412         CREATE_OBJECT              RWindow                  win
       
   413         CREATE_OBJECT              RAnimDll                 animdll
       
   414         CREATE_OBJECT              RAnim                    anim
       
   415         CREATE_OBJECT              RAnimForMClass           animformc
       
   416         COMMAND                    ws                       new                      
       
   417         COMMAND                    ws                       Connect                  
       
   418         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command03
       
   419         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command04
       
   420         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command05
       
   421         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command06
       
   422         COMMAND                    win                      Activate
       
   423         COMMAND                    win                      BeginRedraw
       
   424         COMMAND                    win                      EndRedraw
       
   425         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-SetAutoFlush_Command08
       
   426         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command09
       
   427         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Load_Command10
       
   428         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command11
       
   429         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command12
       
   430         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command13
       
   431         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-CommandReply_Command14
       
   432         COMMAND                    anim                     Destroy                  
       
   433         COMMAND                    animformc                Destroy                  
       
   434         COMMAND                    animdll                  Destroy                  
       
   435         COMMAND                    win                      Close                    
       
   436         COMMAND                    wingp                    Close                    
       
   437         COMMAND                    ws                       Close                    
       
   438     END_TEST_BLOCK
       
   439 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007
       
   440 
       
   441 
       
   442 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008
       
   443 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008
       
   444 //!@SYMAPI                   MAnimGeneralFunctions::ExtendedInterface(TInt)
       
   445 //!@SYMAuthor                Cherry Song
       
   446 //!@SYMCreationDate          10-04-2008
       
   447 //!@SYMTestCaseDesc          The client sends command ECmdGeneralExtendedInterface with parameter 2(EEventExtentionInterface) to animation DLL 
       
   448 //!                          to get a pointer to the event extension interface, check if it works or not, and return the result to client. 
       
   449 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   450 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   451 //!                          3.  Activate the RWindow.
       
   452 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   453 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   454 //!                          6.  Create a RAnim by using RAnimDll object.
       
   455 //!                          7.  Create an instance of  RAnimForMClass .
       
   456 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   457 //!                          9.  Send ECmdGeneralExtendedInterface with parameter equals to 2 to animation DLL by CommandReply.
       
   458 //!                          9.1 Plugin invoke one MAnimGeneralFunctionsEventExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::ExtendedInterface(2) works or not.
       
   459 //!                          If it works, Plugin return 0 to client.
       
   460 //!                          9.2 The wrapper check the returned value is 0. If not 0, set this case fail.
       
   461 //!                          10.  Destroy RAnim and RAnimForMClass.
       
   462 //!                          11. Destroy RAnimDll.
       
   463 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   464 //!@SYMTestStatus            Implemented
       
   465 //!@SYMTestPriority          High
       
   466 //!@SYMTestExpectedResults   CommandReply returns 0 in step 9.
       
   467 //!@SYMTestType              CIT
       
   468     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   469         CREATE_OBJECT              RWsSession               ws
       
   470         CREATE_OBJECT              RWindowGroup             wingp
       
   471         CREATE_OBJECT              RWindow                  win
       
   472         CREATE_OBJECT              RAnimDll                 animdll
       
   473         CREATE_OBJECT              RAnim                    anim
       
   474         CREATE_OBJECT              RAnimForMClass           animformc
       
   475         COMMAND                    ws                       new                      
       
   476         COMMAND                    ws                       Connect                  
       
   477         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command03
       
   478         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command04
       
   479         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command05
       
   480         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command06
       
   481         COMMAND                    win                      Activate
       
   482         COMMAND                    win                      BeginRedraw
       
   483         COMMAND                    win                      EndRedraw
       
   484         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-SetAutoFlush_Command08
       
   485         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command09
       
   486         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Load_Command10
       
   487         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command11
       
   488         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command12
       
   489         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command13
       
   490         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-CommandReply_Command14
       
   491         COMMAND                    anim                     Destroy                  
       
   492         COMMAND                    animformc                Destroy                  
       
   493         COMMAND                    animdll                  Destroy                  
       
   494         COMMAND                    win                      Close                    
       
   495         COMMAND                    wingp                    Close                    
       
   496         COMMAND                    ws                       Close                    
       
   497     END_TEST_BLOCK
       
   498 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008
       
   499 
       
   500 
       
   501 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009
       
   502 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009
       
   503 //!@SYMAPI                   MAnimGeneralFunctions::ExtendedInterface(TInt)
       
   504 //!@SYMAuthor                Cherry Song
       
   505 //!@SYMCreationDate          07-05-2008
       
   506 //!@SYMTestCaseDesc          The client sends command ECmdGeneralExtendedInterface with parameter 4(an unexisted interface number)
       
   507 //!                          to animation DLL, and then check if the returned result is a NULL pointer.
       
   508 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   509 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   510 //!                          3.  Activate the RWindow.
       
   511 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   512 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   513 //!                          6.  Create a RAnim by using RAnimDll object.
       
   514 //!                          7.  Create an instance of  RAnimForMClass .
       
   515 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   516 //!                          9.  Send ECmdGeneralExtendedInterface with parameter equals to 4 to animation DLL by CommandReply.
       
   517 //!                          9.1 Plugin invoke the MAnimGeneralFunctions::ExtendedInterface(4) and return the result.
       
   518 //!                          9.2 The wrapper check if the returned pointer is NULL. If not, set this case fail.
       
   519 //!                          10.  Destroy RAnim and RAnimForMClass.
       
   520 //!                          11. Destroy RAnimDll.
       
   521 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   522 //!@SYMTestStatus            Implemented
       
   523 //!@SYMTestPriority          High
       
   524 //!@SYMTestExpectedResults   CommandReply returns a NULL pointer.
       
   525 //!@SYMTestType              CIT
       
   526     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   527         CREATE_OBJECT              RWsSession               ws
       
   528         CREATE_OBJECT              RWindowGroup             wingp
       
   529         CREATE_OBJECT              RWindow                  win
       
   530         CREATE_OBJECT              RAnimDll                 animdll
       
   531         CREATE_OBJECT              RAnim                    anim
       
   532         CREATE_OBJECT              RAnimForMClass           animformc
       
   533         COMMAND                    ws                       new                      
       
   534         COMMAND                    ws                       Connect                  
       
   535         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command03
       
   536         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command04
       
   537         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command05
       
   538         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command06
       
   539         COMMAND                    win                      Activate
       
   540         COMMAND                    win                      BeginRedraw
       
   541         COMMAND                    win                      EndRedraw
       
   542         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-SetAutoFlush_Command08
       
   543         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command09
       
   544         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Load_Command10
       
   545         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command11
       
   546         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command12
       
   547         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command13
       
   548         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-CommandReply_Command14
       
   549         COMMAND                    anim                     Destroy                  
       
   550         COMMAND                    animformc                Destroy                  
       
   551         COMMAND                    animdll                  Destroy                  
       
   552         COMMAND                    win                      Close                    
       
   553         COMMAND                    wingp                    Close                    
       
   554         COMMAND                    ws                       Close                    
       
   555     END_TEST_BLOCK
       
   556 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009
       
   557 
       
   558 
       
   559 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010
       
   560 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010
       
   561 //!@SYMAPI                   MAnimGeneralFunctions::WindowExtension()
       
   562 //!@SYMAuthor                Cherry Song
       
   563 //!@SYMCreationDate          10-04-2008
       
   564 //!@SYMTestCaseDesc          The client sends command ECmdGeneralWindowExtension to animation DLL to get one pointer to the MAnimGeneralFunctionsWindowExtension,
       
   565 //!                          and check if it works and return the result to client.
       
   566 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   567 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   568 //!                          3.  Activate the RWindow.
       
   569 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   570 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   571 //!                          6.  Create a RAnim by using RAnimDll object.
       
   572 //!                          7.  Create an instance of  RAnimForMClass .
       
   573 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   574 //!                          9.  Send ECmdGeneralWindowExtension to animation DLL by CommandReply.
       
   575 //!                          9.1 Plugin invoke one MAnimGeneralFunctionsWindowExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::WindowExtension() works or not.
       
   576 //!                          If it works, Plugin return 0 to client .
       
   577 //!                          9.2 The wrapper check the returned value is 0. If not 0, set this case fail.
       
   578 //!                          10. Destroy RAnim and RAnimForMClass.
       
   579 //!                          11. Destroy RAnimDll.
       
   580 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   581 //!@SYMTestStatus            Implemented
       
   582 //!@SYMTestPriority          High
       
   583 //!@SYMTestExpectedResults   CommandReply returns 0 in step 9.
       
   584 //!@SYMTestType              CIT
       
   585     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   586         CREATE_OBJECT              RWsSession               ws
       
   587         CREATE_OBJECT              RWindowGroup             wingp
       
   588         CREATE_OBJECT              RWindow                  win
       
   589         CREATE_OBJECT              RAnimDll                 animdll
       
   590         CREATE_OBJECT              RAnim                    anim
       
   591         CREATE_OBJECT              RAnimForMClass           animformc
       
   592         COMMAND                    ws                       new                      
       
   593         COMMAND                    ws                       Connect                  
       
   594         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command03
       
   595         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command04
       
   596         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command05
       
   597         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command06
       
   598         COMMAND                    win                      Activate
       
   599         COMMAND                    win                      BeginRedraw
       
   600         COMMAND                    win                      EndRedraw
       
   601         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-SetAutoFlush_Command08
       
   602         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command09
       
   603         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Load_Command10
       
   604         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command11
       
   605         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command12
       
   606         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command13
       
   607         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-CommandReply_Command14
       
   608         COMMAND                    anim                     Destroy                  
       
   609         COMMAND                    animformc                Destroy                  
       
   610         COMMAND                    animdll                  Destroy                  
       
   611         COMMAND                    win                      Close                    
       
   612         COMMAND                    wingp                    Close                    
       
   613         COMMAND                    ws                       Close                    
       
   614     END_TEST_BLOCK
       
   615 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010
       
   616 
       
   617 
       
   618 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011
       
   619 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011
       
   620 //!@SYMAPI                   MAnimGeneralFunctions::NumberofExtendedInterfaces()
       
   621 //!@SYMAuthor                Cherry Song
       
   622 //!@SYMCreationDate          10-04-2008
       
   623 //!@SYMTestCaseDesc          The client sends command ECmdGeneralNumofExtInterfaces to animation DLL to get the number of extended interfaces .
       
   624 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   625 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   626 //!                          3.  Activate the RWindow.
       
   627 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   628 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   629 //!                          6.  Create a RAnim by using RAnimDll object.
       
   630 //!                          7.  Create an instance of  RAnimForMClass .
       
   631 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   632 //!                          9.  Send ECmdGeneralNumofExtInterfaces to animation DLL by CommandReply.
       
   633 //!                          9.1 Plugin get the number of extended interface and return it to client.
       
   634 //!                          9.2 The wrapper check if the number equals to the expected one. it not,set this case fail.
       
   635 //!                          10.  Destroy RAnim and RAnimForMClass.
       
   636 //!                          11. Destroy RAnimDll.
       
   637 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   638 //!@SYMTestStatus            Implemented
       
   639 //!@SYMTestPriority          High
       
   640 //!@SYMTestExpectedResults   CommandReply returns the number of extended interfaces(currently it is 2 )
       
   641 //!@SYMTestType              CIT
       
   642     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   643         CREATE_OBJECT              RWsSession               ws
       
   644         CREATE_OBJECT              RWindowGroup             wingp
       
   645         CREATE_OBJECT              RWindow                  win
       
   646         CREATE_OBJECT              RAnimDll                 animdll
       
   647         CREATE_OBJECT              RAnim                    anim
       
   648         CREATE_OBJECT              RAnimForMClass           animformc
       
   649         COMMAND                    ws                       new                      
       
   650         COMMAND                    ws                       Connect                  
       
   651         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command03
       
   652         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command04
       
   653         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command05
       
   654         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command06
       
   655         COMMAND                    win                      Activate
       
   656         COMMAND                    win                      BeginRedraw
       
   657         COMMAND                    win                      EndRedraw
       
   658         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-SetAutoFlush_Command08
       
   659         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command09
       
   660         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Load_Command10
       
   661         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command11
       
   662         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command12
       
   663         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command13
       
   664         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-CommandReply_Command14
       
   665         COMMAND                    anim                     Destroy                  
       
   666         COMMAND                    animformc                Destroy                  
       
   667         COMMAND                    animdll                  Destroy                  
       
   668         COMMAND                    win                      Close                    
       
   669         COMMAND                    wingp                    Close                    
       
   670         COMMAND                    ws                       Close                    
       
   671     END_TEST_BLOCK
       
   672 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011
       
   673 
       
   674 
       
   675 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012
       
   676 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012
       
   677 //!@SYMAPI                   MAnimGeneralFunctions::EventExtension()
       
   678 //!@SYMAuthor                Cherry Song
       
   679 //!@SYMCreationDate          10-04-2008
       
   680 //!@SYMTestCaseDesc          The client sends command ECmdGeneralEventExtension to animation DLL to 
       
   681 //!                          get one pointer to the MAnimGeneralFunctionsEventExtension object.
       
   682 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   683 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   684 //!                          3.  Activate the RWindow.
       
   685 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   686 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   687 //!                          6.  Create a RAnim by using RAnimDll object.
       
   688 //!                          7.  Create an instance of  RAnimForMClass .
       
   689 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   690 //!                          9.  Send ECmdGeneralEventExtension to animation DLL by CommandReply.
       
   691 //!                          9.1 Plugin invoke one MAnimGeneralFunctionsEventExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::EventExtension() works or not.
       
   692 //!                          If it works, the Plugin return 0 to client.
       
   693 //!                          9.2 The wrapper check the returned value is 0. If not 0, set this case fail.
       
   694 //!                          10. Destroy RAnim and RAnimForMClass.
       
   695 //!                          11. Destroy RAnimDll.
       
   696 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   697 //!@SYMTestStatus            Implemented
       
   698 //!@SYMTestPriority          High
       
   699 //!@SYMTestExpectedResults   CommandReply returns 0 in step 9.
       
   700 //!@SYMTestType              CIT
       
   701     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   702         CREATE_OBJECT              RWsSession               ws
       
   703         CREATE_OBJECT              RWindowGroup             wingp
       
   704         CREATE_OBJECT              RWindow                  win
       
   705         CREATE_OBJECT              RAnimDll                 animdll
       
   706         CREATE_OBJECT              RAnim                    anim
       
   707         CREATE_OBJECT              RAnimForMClass           animformc
       
   708         COMMAND                    ws                       new                      
       
   709         COMMAND                    ws                       Connect                  
       
   710         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command03
       
   711         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command04
       
   712         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command05
       
   713         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command06
       
   714         COMMAND                    win                      Activate
       
   715         COMMAND                    win                      BeginRedraw
       
   716         COMMAND                    win                      EndRedraw
       
   717         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-SetAutoFlush_Command08
       
   718         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command09
       
   719         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Load_Command10
       
   720         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command11
       
   721         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command12
       
   722         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command13
       
   723         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-CommandReply_Command14
       
   724         COMMAND                    anim                     Destroy                  
       
   725         COMMAND                    animformc                Destroy                  
       
   726         COMMAND                    animdll                  Destroy                  
       
   727         COMMAND                    win                      Close                    
       
   728         COMMAND                    wingp                    Close                    
       
   729         COMMAND                    ws                       Close                    
       
   730     END_TEST_BLOCK
       
   731 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012
       
   732 
       
   733 
       
   734 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013
       
   735 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013
       
   736 //!@SYMAPI                   MAnimGeneralFunctions::GetRawEvents(TBool)
       
   737 //!@SYMAuthor                Albert Wu
       
   738 //!@SYMCreationDate          10-04-2008
       
   739 //!@SYMTestCaseDesc          The client sends command ECmdGeneralGetRawEvents with ETrue/EFalse parameter to animation DLL by CommandReply 
       
   740 //!                          to switch the animation raw event handling on/off.
       
   741 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   742 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   743 //!                          3.  Activate the RWindow.
       
   744 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   745 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   746 //!                          6.  Create a RAnim by using RAnimDll object.
       
   747 //!                          7.  Create an instance of  RAnimForMClass .
       
   748 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   749 //!                          9.  Send ECmdGeneralGetRawEvents with ETrue parameter to animation DLL by CommandReply.
       
   750 //!                          9.1 The plugin invoke the GetRawEvents of MAnimGeneralFunctions class. If execute successfully, return 0.
       
   751 //!                          9.2 The wrapper check if the return code is 0 (it means successfully)
       
   752 //!                          10. Send ECmdGeneralGetRawEvents with EFalse parameter to animation DLL by CommandReply.
       
   753 //!                          10.1 The plugin invoke the GetRawEvents of MAnimGeneralFunctions class. If execute successfully, return 0.
       
   754 //!                          10.2 The wrapper check if the return code is 0 ( it means successfully)
       
   755 //!                          11. Destroy RAnim and RAnimForMClass.
       
   756 //!                          12. Destroy RAnimDll.
       
   757 //!                          13. Close RWsSession ,RWindowGroup and RWindow.
       
   758 //!@SYMTestStatus            Implemented
       
   759 //!@SYMTestPriority          High
       
   760 //!@SYMTestExpectedResults   The return results of CommandReply are 0(it means MAnimGeneralFunctions::GetRawEvent executed successfully);
       
   761 //!@SYMTestType              CIT
       
   762     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   763         CREATE_OBJECT              RWsSession               ws
       
   764         CREATE_OBJECT              RWindowGroup             wingp
       
   765         CREATE_OBJECT              RWindow                  win
       
   766         CREATE_OBJECT              RAnimDll                 animdll
       
   767         CREATE_OBJECT              RAnim                    anim
       
   768         CREATE_OBJECT              RAnimForMClass           animformc
       
   769         COMMAND                    ws                       new                      
       
   770         COMMAND                    ws                       Connect                  
       
   771         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command03
       
   772         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command04
       
   773         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command05
       
   774         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command06
       
   775         COMMAND                    win                      Activate
       
   776         COMMAND                    win                      BeginRedraw
       
   777         COMMAND                    win                      EndRedraw
       
   778         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-SetAutoFlush_Command08
       
   779         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command09
       
   780         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Load_Command10
       
   781         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command11
       
   782         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command12
       
   783         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command13
       
   784         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-CommandReply_Command14
       
   785         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-CommandReply_Command15
       
   786         COMMAND                    anim                     Destroy                  
       
   787         COMMAND                    animformc                Destroy                  
       
   788         COMMAND                    animdll                  Destroy                  
       
   789         COMMAND                    win                      Close                    
       
   790         COMMAND                    wingp                    Close                    
       
   791         COMMAND                    ws                       Close                    
       
   792     END_TEST_BLOCK
       
   793 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013
       
   794 
       
   795 
       
   796 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014
       
   797 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014
       
   798 //!@SYMAPI                   MAnimGeneralFunctions::PostRawEvent(const TRawEvent {ref})                       
       
   799 //!@SYMAuthor                Cherry Song
       
   800 //!@SYMCreationDate          10-04-2008
       
   801 //!@SYMTestCaseDesc          The first phase :the client sends command ECmdGeneralGetRawEvents to animation DLL by CommandReply to switch the raw event handling on, 
       
   802 //!                          then send command ECmdGeneralPostRawEvent to animation DLL to post some raw event,after a short interval check if the event has been received.
       
   803 //!                          The second phase : the client sends command ECmdGeneralGetRawEvents to animation DLL by CommandReply to switch the raw event handling off, 
       
   804 //!                          then send command ECmdGeneralPostRawEvent to animation DLL to post some raw event,after a short interval check if the event has not been received.  
       
   805 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   806 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   807 //!                          3.  Activate the RWindow.
       
   808 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   809 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   810 //!                          6.  Create a RAnim by using RAnimDll object.
       
   811 //!                          7.  Create an instance of  RAnimForMClass .
       
   812 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   813 //!                          9.  Send ECmdGeneralGetRawEvents with ETrue parameter to animation DLL by CommandReply.
       
   814 //!                          10.  Send ECmdGeneralPostRawEvent with TRawEvent parameter to animation DLL by CommandReply.
       
   815 //!                          11. Delay 1 second.
       
   816 //!                          12. Send ECmdRetrieveResult animation DLL by CommandReply.
       
   817 //!                          12.1 The wrapper check if the return code equals to the expected one(ETure). If not, set this case failed.
       
   818 //!                          13. Send ECmdGeneralGetRawEvents with EFalse parameter to animation DLL by CommandReply.
       
   819 //!                          14. Send ECmdGeneralPostRawEvent with TRawEvent parameter to animation DLL by CommandReply.
       
   820 //!                          15. Delay 1 second.
       
   821 //!                          16. Send ECmdRetrieveResult animation DLL by CommandReply.
       
   822 //!                          16.1 The wrapper check if the return code equals to the expected one(EFalse). If not, set this case failed.
       
   823 //!                          17. Destroy RAnim and RAnimForMClass.
       
   824 //!                          18. Destroy RAnimDll.
       
   825 //!                          19. Close RWsSession ,RWindowGroup and RWindow.
       
   826 //!@SYMTestStatus            Implemented
       
   827 //!@SYMTestPriority          High
       
   828 //!@SYMTestExpectedResults   1.The first CommandReply with ECmdRetrieveResult operation code return 1(it means the raw event has been posted to the plugin dll).
       
   829 //!                          2.The second CommandReply with ECmdRetrieveResult operation code return 0(it means the raw event has not been posted to the plugin dll).
       
   830 //!@SYMTestType              CIT
       
   831     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   832         CREATE_OBJECT              RWsSession               ws
       
   833         CREATE_OBJECT              RWindowGroup             wingp
       
   834         CREATE_OBJECT              RWindow                  win
       
   835         CREATE_OBJECT              RAnimDll                 animdll
       
   836         CREATE_OBJECT              RAnim                    anim
       
   837         CREATE_OBJECT              RAnimForMClass           animformc
       
   838         COMMAND                    ws                       new                      
       
   839         COMMAND                    ws                       Connect                  
       
   840         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command03
       
   841         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command04
       
   842         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command05
       
   843         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command06
       
   844         COMMAND                    win                      Activate
       
   845         COMMAND                    win                      BeginRedraw
       
   846         COMMAND                    win                      EndRedraw
       
   847         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-SetAutoFlush_Command08
       
   848         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command09
       
   849         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Load_Command10
       
   850         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command11
       
   851         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command12
       
   852         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command13
       
   853         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command14
       
   854         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command15
       
   855         DELAY                      1000000                                           
       
   856         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command17
       
   857         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command18
       
   858         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command19
       
   859         DELAY                      1000000                                           
       
   860         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command21
       
   861         COMMAND                    anim                     Destroy                  
       
   862         COMMAND                    animformc                Destroy                  
       
   863         COMMAND                    animdll                  Destroy                  
       
   864         COMMAND                    win                      Close                    
       
   865         COMMAND                    wingp                    Close                    
       
   866         COMMAND                    ws                       Close                    
       
   867     END_TEST_BLOCK
       
   868 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014
       
   869 
       
   870 
       
   871 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015
       
   872 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015
       
   873 //!@SYMAPI                   MAnimGeneralFunctions::PostKeyEvent(const TKeyEvent {ref})
       
   874 //!@SYMAuthor                Cherry Song
       
   875 //!@SYMCreationDate          10-04-2008
       
   876 //!@SYMTestCaseDesc          The client sends command ECmdGeneralPostKeyEvent with a certain key to animation DLL to post key event, then check if the keyevent post equals to the key input just now.
       
   877 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   878 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   879 //!                          3.  Activate the RWindow.
       
   880 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   881 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   882 //!                          6.  Create a RAnim by using RAnimDll object.
       
   883 //!                          7.  Create an instance of  RAnimForMClass .
       
   884 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   885 //!                          9.  Send ECmdGeneralPostKeyEvent with an TKeyEvent object to animation DLL by CommandReply.
       
   886 //!                          9.1 Using Windowgroup to capture a certain key event.
       
   887 //!                          9.2 Send ECmdGeneralPostKeyEvent with a certain key to animation Dll.
       
   888 //!                          9.3 Plugin Dll will send a key event using the method PostKeyEvent.
       
   889 //!                          9.4 Client wait for the notification of the WsSession.
       
   890 //!                          9.5 The WindowGroup capture the key event and compare to the certain event type.
       
   891 //!                          10.  Wrapper check if the return code equals to the expected one(ETure). If not, set this case failed.
       
   892 //!                          11. Destroy RAnim and RAnimForMClass.
       
   893 //!                          12. Destroy RAnimDll.
       
   894 //!                          13. Close RWsSession,RWindowGroup and RWindow.
       
   895 //!@SYMTestStatus            Implemented
       
   896 //!@SYMTestPriority          High
       
   897 //!@SYMTestExpectedResults   Step 9.5 capture the correct key event which is posted by animation DLL previously.
       
   898 //!@SYMTestType              CIT
       
   899     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   900         CREATE_OBJECT              RWsSession               ws
       
   901         CREATE_OBJECT              RWindowGroup             wingp
       
   902         CREATE_OBJECT              RWindow                  win
       
   903         CREATE_OBJECT              RAnimDll                 animdll
       
   904         CREATE_OBJECT              RAnim                    anim
       
   905         CREATE_OBJECT              RAnimForMClass           animformc
       
   906         COMMAND                    ws                       new                      
       
   907         COMMAND                    ws                       Connect                  
       
   908         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command03
       
   909         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command04
       
   910         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command05
       
   911         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command06
       
   912         COMMAND                    win                      Activate
       
   913         COMMAND                    win                      BeginRedraw
       
   914         COMMAND                    win                      EndRedraw
       
   915         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-SetAutoFlush_Command08
       
   916         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command09
       
   917         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Load_Command10
       
   918         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command11
       
   919         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command12
       
   920         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command13
       
   921         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-CommandReply_Command14
       
   922         COMMAND                    anim                     Destroy                  
       
   923         COMMAND                    animformc                Destroy                  
       
   924         COMMAND                    animdll                  Destroy                  
       
   925         COMMAND                    win                      Close                    
       
   926         COMMAND                    wingp                    Close                    
       
   927         COMMAND                    ws                       Close                    
       
   928     END_TEST_BLOCK
       
   929 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015
       
   930 
       
   931 
       
   932 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016
       
   933 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016
       
   934 //!@SYMAPI                   MAnimGeneralFunctions::Sync()
       
   935 //!@SYMAuthor                Albert Wu
       
   936 //!@SYMCreationDate          10-04-2008
       
   937 //!@SYMTestCaseDesc          The client sends command ECmdGeneralSync to animation DLL by CommandReply to get the current sync mode.
       
   938 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   939 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   940 //!                          3.  Activate the RWindow.
       
   941 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
   942 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
   943 //!                          6.  Create a RAnim by using RAnimDll object.
       
   944 //!                          7.  Create an instance of  RAnimForMClass .
       
   945 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
   946 //!                          9.  Send ECmdGeneralSync to animation DLL by CommandReply.
       
   947 //!                          9.1 The plugin return the current synchronisation mode .
       
   948 //!                          9.2 The wrapper check the returned result is correct.
       
   949 //!                          10. Destroy RAnim and RAnimForMClass.
       
   950 //!                          11. Destroy RAnimDll.
       
   951 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
   952 //!@SYMTestStatus            Implemented
       
   953 //!@SYMTestPriority          High
       
   954 //!@SYMTestExpectedResults   In step 9, CommandReply returns ESyncNone (No explicit sync mode set, so the returned sync mode here is ESyncNone). 
       
   955 //!@SYMTestType              CIT
       
   956     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
   957         CREATE_OBJECT              RWsSession               ws
       
   958         CREATE_OBJECT              RWindowGroup             wingp
       
   959         CREATE_OBJECT              RWindow                  win
       
   960         CREATE_OBJECT              RAnimDll                 animdll
       
   961         CREATE_OBJECT              RAnim                    anim
       
   962         CREATE_OBJECT              RAnimForMClass           animformc
       
   963         COMMAND                    ws                       new                      
       
   964         COMMAND                    ws                       Connect                  
       
   965         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command03
       
   966         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command04
       
   967         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command05
       
   968         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command06
       
   969         COMMAND                    win                      Activate
       
   970         COMMAND                    win                      BeginRedraw
       
   971         COMMAND                    win                      EndRedraw
       
   972         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-SetAutoFlush_Command08
       
   973         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command09
       
   974         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Load_Command10
       
   975         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command11
       
   976         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command12
       
   977         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command13
       
   978         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-CommandReply_Command14
       
   979         COMMAND                    anim                     Destroy                  
       
   980         COMMAND                    animformc                Destroy                  
       
   981         COMMAND                    animdll                  Destroy                  
       
   982         COMMAND                    win                      Close                    
       
   983         COMMAND                    wingp                    Close                    
       
   984         COMMAND                    ws                       Close                    
       
   985     END_TEST_BLOCK
       
   986 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016
       
   987 
       
   988 
       
   989 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017
       
   990 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017
       
   991 //!@SYMAPI                   MAnimGeneralFunctions::SetSync(TAnimSync)
       
   992 //!@SYMAuthor                Cherry Song
       
   993 //!@SYMCreationDate          10-04-2008
       
   994 //!@SYMTestCaseDesc          The client sends command ECmdGeneralSetSync to animation DLL by CommandReply to set sync mode as client asked, then check if it is the expected one via sending
       
   995 //!                          command ECmdGeneralSync to animation DLL to get the current sync mode.
       
   996 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   997 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   998 //!                          3.  Activate the RWindow.
       
   999 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
  1000 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
  1001 //!                          6.  Create a RAnim by using RAnimDll object.
       
  1002 //!                          7.  Create an instance of  RAnimForMClass .
       
  1003 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
  1004 //!                          9.  Send ECmdGeneralSetSync with ESyncNone to animation DLL by CommandReply.
       
  1005 //!                          10. Send ECmdGeneralSync to animation DLL by CommandReply.
       
  1006 //!                          10.1 The wrapper check the returned result is ESyncNone.
       
  1007 //!                          11. Send ECmdGeneralSetSync with ESyncFlash to animation DLL by CommandReply.
       
  1008 //!                          12. Send ECmdGeneralSync to animation DLL by CommandReply.
       
  1009 //!                          12.1 The wrapper check the returned result is ESyncFlash.
       
  1010 //!                          13. Send ECmdGeneralSetSync with ESyncSecond to animation DLL by CommandReply.
       
  1011 //!                          14. Send ECmdGeneralSync to animation DLL by CommandReply.
       
  1012 //!                          14.1 The wrapper check the returned result is ESyncSecond.
       
  1013 //!                          15. Send ECmdGeneralSetSync with ESyncMinute to animation DLL by CommandReply.
       
  1014 //!                          16. Send ECmdGeneralSync to animation DLL by CommandReply.
       
  1015 //!                          16.1 The wrapper check the returned result is ESyncMinute.
       
  1016 //!                          17. Send ECmdGeneralSetSync with ESyncDay to animation DLL by CommandReply.
       
  1017 //!                          18. Send ECmdGeneralSync to animation DLL by CommandReply.
       
  1018 //!                          18.1 The wrapper check the returned result is ESyncDay.
       
  1019 //!                          19. Destroy RAnim and RAnimForMClass.
       
  1020 //!                          20. Destroy RAnimDll.
       
  1021 //!                          21. Close RWsSession ,RWindowGroup and RWindow.
       
  1022 //!@SYMTestStatus            Implemented
       
  1023 //!@SYMTestPriority          High
       
  1024 //!@SYMTestExpectedResults   1.In step 10, CommandReply returns ESyncNone.
       
  1025 //!                          2.In step 12, CommandReply returns ESyncFlash.
       
  1026 //!                          3.In step 14, CommandReply returns ESyncSecond.
       
  1027 //!                          4.In step 16, CommandReply returns ESyncMinute.
       
  1028 //!                          4.In step 18, CommandReply returns ESyncDay.
       
  1029 //!@SYMTestType              CIT
       
  1030     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1031         CREATE_OBJECT              RWsSession               ws
       
  1032         CREATE_OBJECT              RWindowGroup             wingp
       
  1033         CREATE_OBJECT              RWindow                  win
       
  1034         CREATE_OBJECT              RAnimDll                 animdll
       
  1035         CREATE_OBJECT              RAnim                    anim
       
  1036         CREATE_OBJECT              RAnimForMClass           animformc
       
  1037         COMMAND                    ws                       new                      
       
  1038         COMMAND                    ws                       Connect                  
       
  1039         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command03
       
  1040         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command04
       
  1041         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command05
       
  1042         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command06
       
  1043         COMMAND                    win                      Activate
       
  1044         COMMAND                    win                      BeginRedraw
       
  1045         COMMAND                    win                      EndRedraw
       
  1046         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-SetAutoFlush_Command08
       
  1047         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command09
       
  1048         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Load_Command10
       
  1049         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command11
       
  1050         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command12
       
  1051         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command13
       
  1052         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command14
       
  1053         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command15
       
  1054         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command16
       
  1055         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command17
       
  1056         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command18
       
  1057         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command19
       
  1058         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command20
       
  1059         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command21
       
  1060         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command22
       
  1061         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command23
       
  1062         COMMAND                    anim                     Destroy                  
       
  1063         COMMAND                    animformc                Destroy                  
       
  1064         COMMAND                    animdll                  Destroy                  
       
  1065         COMMAND                    win                      Close                    
       
  1066         COMMAND                    wingp                    Close                    
       
  1067         COMMAND                    ws                       Close                    
       
  1068     END_TEST_BLOCK
       
  1069 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017
       
  1070 
       
  1071 
       
  1072 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018
       
  1073 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018
       
  1074 //!@SYMAPI                   MAnimGeneralFunctions::SetInterval(TInt)
       
  1075 //!@SYMAuthor                Jason Lin
       
  1076 //!@SYMCreationDate          10-04-2008
       
  1077 //!@SYMTestCaseDesc          The client sends command to animation DLL to set the synchronisation mode as TAnimSync::ESyncNone and desired animation interval,
       
  1078 //!                          then the Animate() function is called at the defined interval.
       
  1079 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1080 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1081 //!                          3.Activate the RWindow.
       
  1082 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1083 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1084 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1085 //!                          7.Create an instance of  RAnimForMClass .
       
  1086 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1087 //!                          9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone.
       
  1088 //!                          10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply .
       
  1089 //!                          10.1 Plugin calculate and verify the interval has been set to 4 flash ticks.
       
  1090 //!                          11.Delay 8 seconds.
       
  1091 //!                          12.Send command ECmdReceiveResult to animation DLL by CommandReply.
       
  1092 //!                          12.1 The wrapper check if the return code equals to the expected code(1 stands for success).
       
  1093 //!                          13.Send command ECmdGeneralSetInterval with 1 flash tick to animation DLL by CommandReply.
       
  1094 //!                          13.1 Plugin calculate and verify the interval has been set to 1 flash tick.
       
  1095 //!                          14.Delay 2 seconds.
       
  1096 //!                          15.Send command ECmdReceiveResult to animation DLL by CommandReply .
       
  1097 //!                          15.1 The wrapper check if the return code equals to the expected code(1 stands for success).
       
  1098 //!                          16.Destroy RAnim and RAnimForMClass.
       
  1099 //!                          17.Destroy RAnimDll.
       
  1100 //!                          18.Close RWsSession ,RWindowGroup and RWindow.
       
  1101 //!@SYMTestStatus            Implemented
       
  1102 //!@SYMTestPriority          High
       
  1103 //!@SYMTestExpectedResults   All CommandReply with ECmdRetrieveResult operation code return 1.                         
       
  1104 //!@SYMTestType              CIT
       
  1105     START_TEST_BLOCK          200          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1106         CREATE_OBJECT              RWsSession               ws
       
  1107         CREATE_OBJECT              RWindowGroup             wingp
       
  1108         CREATE_OBJECT              RWindow                  win
       
  1109         CREATE_OBJECT              RAnimDll                 animdll
       
  1110         CREATE_OBJECT              RAnim                    anim
       
  1111         CREATE_OBJECT              RAnimForMClass           animformc
       
  1112         COMMAND                    ws                       new                      
       
  1113         COMMAND                    ws                       Connect                  
       
  1114         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command03
       
  1115         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command04
       
  1116         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command05
       
  1117         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command06
       
  1118         COMMAND                    win                      Activate
       
  1119         COMMAND                    win                      BeginRedraw
       
  1120         COMMAND                    win                      EndRedraw
       
  1121         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-SetAutoFlush_Command08
       
  1122         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command09
       
  1123         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Load_Command10
       
  1124         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command11
       
  1125         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command12
       
  1126         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command13
       
  1127         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command14
       
  1128         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command15
       
  1129         DELAY                      8000000                                          
       
  1130         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command17
       
  1131         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command18
       
  1132         DELAY                      2000000                                          
       
  1133         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command20
       
  1134         COMMAND                    anim                     Destroy                  
       
  1135         COMMAND                    animformc                Destroy                  
       
  1136         COMMAND                    animdll                  Destroy                  
       
  1137         COMMAND                    win                      Close                    
       
  1138         COMMAND                    wingp                    Close                    
       
  1139         COMMAND                    ws                       Close                    
       
  1140     END_TEST_BLOCK
       
  1141 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018
       
  1142 
       
  1143 
       
  1144 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019
       
  1145 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019
       
  1146 //!@SYMAPI                   MAnimGeneralFunctions::SetInterval(TInt)
       
  1147 //!@SYMAuthor                Jason Lin
       
  1148 //!@SYMCreationDate          10-04-2008
       
  1149 //!@SYMTestCaseDesc          The client sends command to animation DLL to set interval to 0, the countdown stops and the Animate() function is no longer called.
       
  1150 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1151 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1152 //!                          3.Activate the RWindow.
       
  1153 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1154 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1155 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1156 //!                          7.Create an instance of  RAnimForMClass .
       
  1157 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1158 //!                          9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone.
       
  1159 //!                          10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply.
       
  1160 //!                          10.1 Plugin calculate and verify the interval has been set to 4 flash ticks.
       
  1161 //!                          11.Delay 8 seconds.
       
  1162 //!                          12.Send command ECmdReceiveResult to animation DLL .
       
  1163 //!                          12.1 The wrapper check if the return code equals to the expected code(1 stands for success).
       
  1164 //!                          13.Send command ECmdGeneralSetInterval with 0 flash tick to animation DLL by CommandReply.
       
  1165 //!                          13.1 Plugin calculate and verify the interval has been set to 0 flash tick.
       
  1166 //!                          14.Delay 2 seconds.
       
  1167 //!                          15.Send command ECmdReceiveResult to animation DLL .
       
  1168 //!                          15.1 The wrapper check if the return code equals to the expected code(1 stands for success).
       
  1169 //!                          16.Destroy RAnim and RAnimForMClass.
       
  1170 //!                          17.Destroy RAnimDll.
       
  1171 //!                          18.Close RWsSession ,RWindowGroup and RWindow.
       
  1172 //!@SYMTestStatus            Implemented
       
  1173 //!@SYMTestPriority          High
       
  1174 //!@SYMTestExpectedResults   CommandReply with ECmdRetrieveResult operation code return 1.
       
  1175 //!@SYMTestType              CIT
       
  1176     START_TEST_BLOCK          200          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1177         CREATE_OBJECT              RWsSession               ws
       
  1178         CREATE_OBJECT              RWindowGroup             wingp
       
  1179         CREATE_OBJECT              RWindow                  win
       
  1180         CREATE_OBJECT              RAnimDll                 animdll
       
  1181         CREATE_OBJECT              RAnim                    anim
       
  1182         CREATE_OBJECT              RAnimForMClass           animformc
       
  1183         COMMAND                    ws                       new                      
       
  1184         COMMAND                    ws                       Connect                  
       
  1185         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command03
       
  1186         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command04
       
  1187         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command05
       
  1188         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command06
       
  1189         COMMAND                    win                      Activate
       
  1190         COMMAND                    win                      BeginRedraw
       
  1191         COMMAND                    win                      EndRedraw
       
  1192         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-SetAutoFlush_Command08
       
  1193         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command09
       
  1194         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Load_Command10
       
  1195         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command11
       
  1196         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command12
       
  1197         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command13
       
  1198         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command14
       
  1199         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command15
       
  1200         DELAY                      8000000                                          
       
  1201         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command17
       
  1202         DELAY                      2000000                                          
       
  1203         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command19
       
  1204         COMMAND                    anim                     Destroy                  
       
  1205         COMMAND                    animformc                Destroy                  
       
  1206         COMMAND                    animdll                  Destroy                  
       
  1207         COMMAND                    win                      Close                    
       
  1208         COMMAND                    wingp                    Close                    
       
  1209         COMMAND                    ws                       Close                    
       
  1210     END_TEST_BLOCK
       
  1211 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019
       
  1212 
       
  1213 
       
  1214 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020
       
  1215 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020
       
  1216 //!@SYMAPI                   MAnimGeneralFunctions::SetInterval(TInt)
       
  1217 //!@SYMAuthor                Jason Lin
       
  1218 //!@SYMCreationDate          10-04-2008
       
  1219 //!@SYMTestCaseDesc          Negative case. The client sends command to set the synchronisation mode as TAnimSync::ESyncNone,
       
  1220 //!                          then send command to set the interval with a negative number.
       
  1221 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1222 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1223 //!                          3.Activate the RWindow.
       
  1224 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1225 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1226 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1227 //!                          7.Create an instance of  RAnimForMClass .
       
  1228 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1229 //!                          9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone.
       
  1230 //!                          10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply.
       
  1231 //!                          10.1 Plugin calculate and verify the interval has been set to 4 flash ticks.
       
  1232 //!                          11.Delay 8 seconds.
       
  1233 //!                          12.Send command ECmdRetrieveResult to animation DLL .
       
  1234 //!                          12.1 The wrapper check if the return code equals to the expected code(1 stands for success).
       
  1235 //!                          13.Send command ECmdGeneralSetInterval with -4 flash ticks to animation DLL by CommandReply(OutStanding after this command).
       
  1236 //!                          13.1 Plugin calculate and verify the interval has been set to 0 flash tick.
       
  1237 //!                          14.Delay 8 seconds.
       
  1238 //!                          15.Send command ECmdRetrieveResult to animation DLL .
       
  1239 //!                          15.1 The wrapper check if the return code equals to the expected code(1 stands for success).
       
  1240 //!                          16.Destroy RAnim and RAnimForMClass.
       
  1241 //!                          17.Destroy RAnimDll.
       
  1242 //!                          18.Close RWsSession ,RWindowGroup and RWindow.
       
  1243 //!@SYMTestStatus            Implemented
       
  1244 //!@SYMTestPriority          High
       
  1245 //!@SYMTestExpectedResults   All CommandReply with ECmdRetrieveResult operation code return 1.
       
  1246 //!@SYMTestType              CIT
       
  1247     START_TEST_BLOCK          200          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1248         CREATE_OBJECT              RWsSession               ws
       
  1249         CREATE_OBJECT              RWindowGroup             wingp
       
  1250         CREATE_OBJECT              RWindow                  win
       
  1251         CREATE_OBJECT              RAnimDll                 animdll
       
  1252         CREATE_OBJECT              RAnim                    anim
       
  1253         CREATE_OBJECT              RAnimForMClass           animformc
       
  1254         COMMAND                    ws                       new                      
       
  1255         COMMAND                    ws                       Connect                  
       
  1256         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command03
       
  1257         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command04
       
  1258         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command05
       
  1259         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command06
       
  1260         COMMAND                    win                      Activate
       
  1261         COMMAND                    win                      BeginRedraw
       
  1262         COMMAND                    win                      EndRedraw
       
  1263         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-SetAutoFlush_Command08
       
  1264         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command09
       
  1265         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Load_Command10
       
  1266         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command11
       
  1267         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command12
       
  1268         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command13
       
  1269         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command14
       
  1270         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command15
       
  1271         DELAY                      8000000                                          
       
  1272         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command17
       
  1273         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command18
       
  1274         DELAY                      8000000                                          
       
  1275         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command20
       
  1276         COMMAND                    anim                     Destroy                  
       
  1277         COMMAND                    animformc                Destroy                  
       
  1278         COMMAND                    animdll                  Destroy                  
       
  1279         COMMAND                    win                      Close                    
       
  1280         COMMAND                    wingp                    Close                    
       
  1281         COMMAND                    ws                       Close                    
       
  1282     END_TEST_BLOCK
       
  1283 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020
       
  1284 
       
  1285 
       
  1286 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021
       
  1287 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021
       
  1288 //!@SYMAPI                   MAnimGeneralFunctions::SetInterval(TInt)
       
  1289 //!@SYMAuthor                Jason Lin
       
  1290 //!@SYMCreationDate          10-04-2008
       
  1291 //!@SYMTestCaseDesc          Negative case, the client sends command to animation DLL to set the synchronization mode as TAnimSync::ESyncFlash, 
       
  1292 //!                          then send command to set the animation interval,the window server should panics the client.
       
  1293 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1294 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1295 //!                          3.Activate the RWindow.
       
  1296 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1297 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1298 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1299 //!                          7.Create an instance of  RAnimForMClass .
       
  1300 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1301 //!                          9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncFlash.
       
  1302 //!                          10.Send command ECmdGeneralSetInterval with 1 flash tick to animation DLL by CommandReply.
       
  1303 //!@SYMTestStatus            Implemented
       
  1304 //!@SYMTestPriority          High
       
  1305 //!@SYMTestExpectedResults   The window server return Panic 22( WServ Panic number )  at step 9.
       
  1306 //!@SYMTestType              CIT
       
  1307     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1308         CREATE_OBJECT              RWsSession               ws
       
  1309         CREATE_OBJECT              RWindowGroup             wingp
       
  1310         CREATE_OBJECT              RWindow                  win
       
  1311         CREATE_OBJECT              RAnimDll                 animdll
       
  1312         CREATE_OBJECT              RAnim                    anim
       
  1313         CREATE_OBJECT              RAnimForMClass           animformc
       
  1314         COMMAND                    ws                       new                      
       
  1315         COMMAND                    ws                       Connect                  
       
  1316         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command03
       
  1317         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command04
       
  1318         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command05
       
  1319         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command06
       
  1320         COMMAND                    win                      Activate
       
  1321         COMMAND                    win                      BeginRedraw
       
  1322         COMMAND                    win                      EndRedraw
       
  1323         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-SetAutoFlush_Command08
       
  1324         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command09
       
  1325         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Load_Command10
       
  1326         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command11
       
  1327         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command12
       
  1328         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command13
       
  1329         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-CommandReply_Command14
       
  1330         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-CommandReply_Command15
       
  1331     END_TEST_BLOCK    !PanicString=WSERV    !PanicCode=22
       
  1332     RUN_TEST_STEP          100          T_GraphicsWservAPI          utilityClearPanicDlg
       
  1333 
       
  1334 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021
       
  1335 
       
  1336 
       
  1337 
       
  1338 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025
       
  1339 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025
       
  1340 //!@SYMAPI                   MAnimGeneralFunctions::SetNextInterval(TInt)
       
  1341 //!@SYMAuthor                Jason Lin
       
  1342 //!@SYMCreationDate          10-04-2008
       
  1343 //!@SYMTestCaseDesc          The client sends command ECmdGeneralSetNextInterval to animation DLL to reset the current countdown to the specified number of flash ticks,
       
  1344 //!                          irrespective of its current value. After the countdown expires, the interval should return to its usual rate.
       
  1345 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1346 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1347 //!                          3.Activate the RWindow.
       
  1348 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1349 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1350 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1351 //!                          7.Create an instance of  RAnimForMClass .
       
  1352 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1353 //!                          9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone.
       
  1354 //!                          10.Send command ECmdGeneralSetNextInterval with 4 flash ticks to animation DLL by CommandReply .
       
  1355 //!                          10.1 Plugin calculate and verify the interval has been changed or not. And will return the result asychronously.
       
  1356 //!                          11.Delay 8 seconds.
       
  1357 //!                          12.Send the CommandReply with ECmdReceiveResult opcode to animation DLL .
       
  1358 //!                          12.1 The wrapper check if the return code equals to the expected code(1 stands for success).
       
  1359 //!                          13.Destroy RAnim and RAnimForMClass.
       
  1360 //!                          14.Destroy RAnimDll.
       
  1361 //!                          15.Close RWsSession ,RWindowGroup and RWindow.
       
  1362 //!@SYMTestStatus            Implemented
       
  1363 //!@SYMTestPriority          High
       
  1364 //!@SYMTestExpectedResults   The CommandReply with ECmdRetrieveResult operation code return 1.
       
  1365 //!@SYMTestType              CIT
       
  1366     START_TEST_BLOCK          1000          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1367         CREATE_OBJECT              RWsSession               ws
       
  1368         CREATE_OBJECT              RWindowGroup             wingp
       
  1369         CREATE_OBJECT              RWindow                  win
       
  1370         CREATE_OBJECT              RAnimDll                 animdll
       
  1371         CREATE_OBJECT              RAnim                    anim
       
  1372         CREATE_OBJECT              RAnimForMClass           animformc
       
  1373         COMMAND                    ws                       new                      
       
  1374         COMMAND                    ws                       Connect                  
       
  1375         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command03
       
  1376         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command04
       
  1377         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command05
       
  1378         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command06
       
  1379         COMMAND                    win                      Activate
       
  1380         COMMAND                    win                      BeginRedraw
       
  1381         COMMAND                    win                      EndRedraw
       
  1382         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-SetAutoFlush_Command08
       
  1383         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command09
       
  1384         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Load_Command10
       
  1385         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command11
       
  1386         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command12
       
  1387         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command13
       
  1388         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command14
       
  1389         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command15
       
  1390         DELAY                      8000000                                          
       
  1391         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command17
       
  1392         COMMAND                    anim                     Destroy                  
       
  1393         COMMAND                    animformc                Destroy                  
       
  1394         COMMAND                    animdll                  Destroy                  
       
  1395         COMMAND                    win                      Close                    
       
  1396         COMMAND                    wingp                    Close                    
       
  1397         COMMAND                    ws                       Close                    
       
  1398     END_TEST_BLOCK
       
  1399 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025
       
  1400 
       
  1401 
       
  1402 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026
       
  1403 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026
       
  1404 //!@SYMAPI                   MAnimGeneralFunctions::SetNextInterval(TInt)
       
  1405 //!@SYMAuthor                Jason Lin
       
  1406 //!@SYMCreationDate          10-04-2008
       
  1407 //!@SYMTestCaseDesc          Negative case, the client sends command to animation DLL to set the synchronization mode as TAnimSync::ESyncFlash, 
       
  1408 //!                          then send command ECmdGeneralSetNextInterval to set the animation next interval,the window server should panics the client.
       
  1409 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1410 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1411 //!                          3.Activate the RWindow.
       
  1412 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1413 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1414 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1415 //!                          7.Create an instance of  RAnimForMClass .
       
  1416 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1417 //!                          9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncFlash.
       
  1418 //!                          10.Send command ECmdGeneralSetNextInterval with 1 flash tick to animation DLL by CommandReply.
       
  1419 //!@SYMTestStatus            Implemented
       
  1420 //!@SYMTestPriority          High
       
  1421 //!@SYMTestExpectedResults   The window server return Panic 22( WServ Panic number ) at step 10.
       
  1422 //!@SYMTestType              CIT
       
  1423     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1424         CREATE_OBJECT              RWsSession               ws
       
  1425         CREATE_OBJECT              RWindowGroup             wingp
       
  1426         CREATE_OBJECT              RWindow                  win
       
  1427         CREATE_OBJECT              RAnimDll                 animdll
       
  1428         CREATE_OBJECT              RAnim                    anim
       
  1429         CREATE_OBJECT              RAnimForMClass           animformc
       
  1430         COMMAND                    ws                       new                      
       
  1431         COMMAND                    ws                       Connect                  
       
  1432         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command03
       
  1433         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command04
       
  1434         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command05
       
  1435         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command06
       
  1436         COMMAND                    win                      Activate
       
  1437         COMMAND                    win                      BeginRedraw
       
  1438         COMMAND                    win                      EndRedraw
       
  1439         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-SetAutoFlush_Command08
       
  1440         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command09
       
  1441         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Load_Command10
       
  1442         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command11
       
  1443         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command12
       
  1444         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command13
       
  1445         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-CommandReply_Command14
       
  1446         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-CommandReply_Command15
       
  1447     END_TEST_BLOCK    !PanicString=WSERV    !PanicCode=22
       
  1448     RUN_TEST_STEP          100          T_GraphicsWservAPI          utilityClearPanicDlg
       
  1449 
       
  1450 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026
       
  1451 
       
  1452 
       
  1453 
       
  1454 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030
       
  1455 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030
       
  1456 //!@SYMAPI                   MAnimGeneralFunctions::SetNextInterval(TInt)
       
  1457 //!@SYMAuthor                Jason Lin
       
  1458 //!@SYMCreationDate          10-04-2008
       
  1459 //!@SYMTestCaseDesc          The client sends command to animation DLL to set the synchronization mode as TAnimSync::ESyncNone, 
       
  1460 //!                          then sends command ECmdGeneralSetNextInterval to set the animation next interval to 0, at last sends command ECmdGeneralSetNextInterval to set the next interval to a negative value.
       
  1461 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1462 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1463 //!                          3.Activate the RWindow.
       
  1464 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1465 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1466 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1467 //!                          7.Create an instance of  RAnimForMClass .
       
  1468 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1469 //!                          9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone.
       
  1470 //!                          10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply .
       
  1471 //!                          10.1 Plugin calculate and verify the interval has been changed or not. And will return the result asychronously.
       
  1472 //!                          11.Delay 8 seconds.
       
  1473 //!                          11.1 Wrapper check if the return code equals to the expected code(1 stands for success).
       
  1474 //!                          12.Send command ECmdGeneralSetNextInterval with -2 flash ticks to animation DLL by CommandReply .
       
  1475 //!                          13.1 Plugin calculate and verify the interval has been changed or not. And will return the result asychronously.
       
  1476 //!                          14.Delay 1 second.
       
  1477 //!                          15.Send the CommandReply with ECmdRetrieveResult opcode to animation DLL.
       
  1478 //!                          15.1 Wrapper check if the return code equals to the expected code (1 stands for success).
       
  1479 //!                          16.Destroy RAnim and RAnimForMClass.
       
  1480 //!                          17.Destroy RAnimDll.
       
  1481 //!                          18.Close RWsSession ,RWindowGroup and RWindow.
       
  1482 //!@SYMTestStatus            Implemented
       
  1483 //!@SYMTestPriority          High
       
  1484 //!@SYMTestExpectedResults   All the CommandReply with ECmdRetrieveResult operation code return 1.
       
  1485 //!@SYMTestType              CIT
       
  1486     START_TEST_BLOCK          200          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1487         CREATE_OBJECT              RWsSession               ws
       
  1488         CREATE_OBJECT              RWindowGroup             wingp
       
  1489         CREATE_OBJECT              RWindow                  win
       
  1490         CREATE_OBJECT              RAnimDll                 animdll
       
  1491         CREATE_OBJECT              RAnim                    anim
       
  1492         CREATE_OBJECT              RAnimForMClass           animformc
       
  1493         COMMAND                    ws                       new                      
       
  1494         COMMAND                    ws                       Connect                  
       
  1495         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command03
       
  1496         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command04
       
  1497         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command05
       
  1498         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command06
       
  1499         COMMAND                    win                      Activate
       
  1500         COMMAND                    win                      BeginRedraw
       
  1501         COMMAND                    win                      EndRedraw
       
  1502         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-SetAutoFlush_Command08
       
  1503         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command09
       
  1504         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Load_Command10
       
  1505         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command11
       
  1506         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command12
       
  1507         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command13
       
  1508         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command14
       
  1509         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command15
       
  1510         DELAY                      8000000                                          
       
  1511         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command17
       
  1512         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command18
       
  1513         DELAY                      1000000                                          
       
  1514         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command20
       
  1515         COMMAND                    anim                     Destroy                  
       
  1516         COMMAND                    animformc                Destroy                  
       
  1517         COMMAND                    animdll                  Destroy                  
       
  1518         COMMAND                    win                      Close                    
       
  1519         COMMAND                    wingp                    Close                    
       
  1520         COMMAND                    ws                       Close                    
       
  1521     END_TEST_BLOCK
       
  1522 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030
       
  1523 
       
  1524 
       
  1525 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031
       
  1526 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031
       
  1527 //!@SYMAPI                   MAnimGeneralFunctions::RegisterForNotifications(TUint32)
       
  1528 //!@SYMAuthor                Jason Lin
       
  1529 //!@SYMCreationDate          10-04-2008
       
  1530 //!@SYMTestCaseDesc          Register to receive DSA notifications. The client sends command ECmdGeneralRegisterForNotifications to animation DLL via the CommandReply 
       
  1531 //!                          with parameter as 1 to register to receive DSA notifications. Then the client call StartL() of CDirectScreenAccess object to trigger EDirectScreenAccess event, 
       
  1532 //!                          the DLL will trap this event and then return the result to client.
       
  1533 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1534 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1535 //!                          3.Activate the RWindow.
       
  1536 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1537 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1538 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1539 //!                          7.Create an instance of  RAnimForMClass .
       
  1540 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1541 //!                          9.Send command ECmdGeneralRegisterForNotifications with 1 to animation DLL by CommandReply.
       
  1542 //!                          10.Create and construct CWsScreenDevice.
       
  1543 //!                          11.Create and construct CWsScreenDevice with the created RWsSession.
       
  1544 //!                          12.Create CDirectScreenAccess object with the created RWsSession,RWindow,CWsScreenDevice.
       
  1545 //!                          13.Call StartL() of CDirectScreenAccess object to trigger EDirectScreenAccess event.
       
  1546 //!                          14.Send the CommandReply with ECmdRetrieveResult opcode to animation DLL .
       
  1547 //!                          15.Send command ECmdGeneralRegisterForNotifications with 0 to animation DLL by CommandReply(To prevent the panic).
       
  1548 //!                          16.Destroy CDirectScreenAccess.
       
  1549 //!                          17.Destroy CWsScreenDevice.
       
  1550 //!                          18.Close RWsSession.
       
  1551 //!                          19.Destroy RAnim and RAnimForMClass.
       
  1552 //!                          20.Destroy RAnimDll.
       
  1553 //!                          21.Close RWsSession ,RWindowGroup and RWindow.
       
  1554 //!@SYMTestStatus            Implemented
       
  1555 //!@SYMTestPriority          High
       
  1556 //!@SYMTestExpectedResults   Step 15 return true
       
  1557 //!@SYMTestType              CIT
       
  1558     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1559         CREATE_OBJECT              RWsSession               ws
       
  1560         CREATE_OBJECT              RWindowGroup             wingp
       
  1561         CREATE_OBJECT              RWindow                  win
       
  1562         CREATE_OBJECT              RAnimDll                 animdll
       
  1563         CREATE_OBJECT              RAnim                    anim
       
  1564         CREATE_OBJECT              RAnimForMClass           animformc
       
  1565         CREATE_OBJECT              CWsScreenDevice          scrdev
       
  1566         CREATE_OBJECT              CDirectScreenAccess      dsa
       
  1567         COMMAND                    ws                       new                      
       
  1568         COMMAND                    ws                       Connect                  
       
  1569         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command03
       
  1570         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command04
       
  1571         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command05
       
  1572         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command06
       
  1573         COMMAND                    win                      Activate
       
  1574         COMMAND                    win                      BeginRedraw
       
  1575         COMMAND                    win                      EndRedraw
       
  1576         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-SetAutoFlush_Command08
       
  1577         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command09
       
  1578         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Load_Command10
       
  1579         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command11
       
  1580         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command12
       
  1581         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command13
       
  1582         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command14
       
  1583         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command15
       
  1584         COMMAND                    scrdev                   Construct                
       
  1585         COMMAND                    dsa                      NewL                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-NewL_Command17
       
  1586         COMMAND                    dsa                      StartL                   GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-StartL_Command18
       
  1587         COMMAND                    dsa                      Cancel                   
       
  1588         COMMAND                    dsa                      ~                        
       
  1589         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command21
       
  1590         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command22
       
  1591         COMMAND                    scrdev                   ~                        
       
  1592         COMMAND                    anim                     Destroy                  
       
  1593         COMMAND                    animformc                Destroy                  
       
  1594         COMMAND                    animdll                  Destroy                  
       
  1595         COMMAND                    win                      Close                    
       
  1596         COMMAND                    wingp                    Close                    
       
  1597         COMMAND                    ws                       Close                    
       
  1598     END_TEST_BLOCK
       
  1599 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031
       
  1600 
       
  1601 
       
  1602 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034
       
  1603 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034
       
  1604 //!@SYMAPI                   MAnimGeneralFunctions::Message()
       
  1605 //!@SYMAuthor                Jason Lin
       
  1606 //!@SYMCreationDate          11-04-2008
       
  1607 //!@SYMTestCaseDesc          The client sends the command ECmdGeneralMessage to the animation DLL by the CommandReply to get the address of RMessagePtr2 object. 
       
  1608 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1609 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1610 //!                          3.Activate the RWindow.
       
  1611 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1612 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1613 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1614 //!                          7.Create an instance of  RAnimForMClass .
       
  1615 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1616 //!                          9.Client Send command ECmdGeneralMessage with a string "Send message"  to animation DLL by CommandReply.
       
  1617 //!                          9.1 Plugin return the same string to client via another slot.
       
  1618 //!                          9.2 The wrapper compare the returned string and the original one , to check if it is same. If not, set this case failed.
       
  1619 //!                          10.Destroy RAnim and RAnimForMClass.
       
  1620 //!                          11.Destroy RAnimDll.
       
  1621 //!                          12.Close RWsSession ,RWindowGroup and RWindow.
       
  1622 //!@SYMTestStatus            Implemented
       
  1623 //!@SYMTestPriority          High
       
  1624 //!@SYMTestExpectedResults   The return result of step 9 is the same string "Send message".
       
  1625 //!@SYMTestType              CIT
       
  1626     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1627         CREATE_OBJECT              RWsSession               ws
       
  1628         CREATE_OBJECT              RWindowGroup             wingp
       
  1629         CREATE_OBJECT              RWindow                  win
       
  1630         CREATE_OBJECT              RAnimDll                 animdll
       
  1631         CREATE_OBJECT              RAnim                    anim
       
  1632         CREATE_OBJECT              RAnimForMClass           animformc
       
  1633         COMMAND                    ws                       new                      
       
  1634         COMMAND                    ws                       Connect                  
       
  1635         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command03
       
  1636         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command04
       
  1637         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command05
       
  1638         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command06
       
  1639         COMMAND                    win                      Activate
       
  1640         COMMAND                    win                      BeginRedraw
       
  1641         COMMAND                    win                      EndRedraw
       
  1642         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-SetAutoFlush_Command08
       
  1643         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command09
       
  1644         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Load_Command10
       
  1645         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command11
       
  1646         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command12
       
  1647         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command13
       
  1648         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-CommandReply_Command14
       
  1649         COMMAND                    anim                     Destroy                  
       
  1650         COMMAND                    animformc                Destroy                  
       
  1651         COMMAND                    animdll                  Destroy                  
       
  1652         COMMAND                    win                      Close                    
       
  1653         COMMAND                    wingp                    Close                    
       
  1654         COMMAND                    ws                       Close                    
       
  1655     END_TEST_BLOCK
       
  1656 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034
       
  1657 
       
  1658 
       
  1659 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035
       
  1660 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035
       
  1661 //!@SYMAPI                   MAnimGeneralFunctions::DuplicateBitmapL(TInt)
       
  1662 //!@SYMAuthor                Yue Zhang
       
  1663 //!@SYMCreationDate          11-04-2008
       
  1664 //!@SYMTestCaseDesc          Send command and a bitmap handle to animation DLL to call DuplicateBitmap function, and then try to draw the bitmap.
       
  1665 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1666 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1667 //!                          3.Activate the RWindow.
       
  1668 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1669 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1670 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1671 //!                          7.Create an instance of  RAnimForMClass .
       
  1672 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1673 //!                          9.Create CWsScreenDevice object and construct it.
       
  1674 //!                          10.Set required display mode of RWindow object.
       
  1675 //!                          11.Set background color of RWindow object.
       
  1676 //!                          12.Construct CWindowAnim object by RWindow.
       
  1677 //!                          13.Create a CFbsBitmap object and load bitmap.
       
  1678 //!                          14.Send ECmdAnimDuplicateBitmap command to plugin Dll with the handle.
       
  1679 //!                          14.1 Plugin draw the duplicated bitmap .
       
  1680 //!                          15.Use ScreenDevice object to compare the bitmap rectangle with a blank rectangle.
       
  1681 //!                          16.Close and destroy all the related objects.
       
  1682 //!@SYMTestStatus            Implemented
       
  1683 //!@SYMTestPriority          High
       
  1684 //!@SYMTestExpectedResults   In step 15, the compare result should not be same because the bitmap should be drawn.
       
  1685 //!@SYMTestType              CIT
       
  1686     START_TEST_BLOCK          1000          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1687         CREATE_OBJECT              RWsSession               ws
       
  1688         CREATE_OBJECT              RWindowGroup             wingp
       
  1689         CREATE_OBJECT              RWindow                  win
       
  1690         CREATE_OBJECT              RAnimDll                 animdll
       
  1691         CREATE_OBJECT              RAnim                    anim
       
  1692         CREATE_OBJECT              RAnimForMClass           animformc
       
  1693         CREATE_OBJECT              CWsScreenDevice          scrdev
       
  1694         CREATE_OBJECT              CFbsBitmap               bitmap
       
  1695         COMMAND                    ws                       new                      
       
  1696         COMMAND                    ws                       Connect                  
       
  1697         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command03
       
  1698         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command04
       
  1699         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command05
       
  1700         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command06
       
  1701         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetAutoFlush_Command07
       
  1702         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command08
       
  1703         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Load_Command09
       
  1704         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command10
       
  1705         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command11
       
  1706         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command12
       
  1707         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetRequiredDisplayMode_Command13
       
  1708         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetBackgroundColor_Command14
       
  1709         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command15
       
  1710         COMMAND                    win                      Activate                 
       
  1711         COMMAND                    win                      BeginRedraw              
       
  1712         COMMAND                    win                      EndRedraw                
       
  1713         COMMAND                    scrdev                   Construct                
       
  1714         COMMAND                    bitmap                   new                      
       
  1715         COMMAND                    bitmap                   Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Load_Command21
       
  1716         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-CommandReply_Command22
       
  1717         COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-RectCompare_Command23
       
  1718         COMMAND                    bitmap                   ~                        
       
  1719         COMMAND                    scrdev                   ~                        
       
  1720         COMMAND                    anim                     Destroy                  
       
  1721         COMMAND                    animformc                Destroy                  
       
  1722         COMMAND                    animdll                  Destroy                  
       
  1723         COMMAND                    win                      Close                    
       
  1724         COMMAND                    wingp                    Close                    
       
  1725         COMMAND                    ws                       Close                    
       
  1726     END_TEST_BLOCK
       
  1727 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035
       
  1728 
       
  1729 
       
  1730 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036
       
  1731 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036
       
  1732 //!@SYMAPI                   MAnimGeneralFunctions::DuplicateBitmapL(TInt)
       
  1733 //!@SYMAuthor                Yue Zhang
       
  1734 //!@SYMCreationDate          11-04-2008
       
  1735 //!@SYMTestCaseDesc          Negative case, the client sends command and an invalid bitmap handle to animation DLL to call DuplicateBitmap function.
       
  1736 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1737 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1738 //!                          3.Activate the RWindow.
       
  1739 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1740 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1741 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1742 //!                          7.Create an instance of  RAnimForMClass .
       
  1743 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1744 //!                          9.Set required display mode of RWindow object.
       
  1745 //!                          10.Set background color of RWindow object.
       
  1746 //!                          11.Create a CFbsBitmap object and load bitmap.
       
  1747 //!                          12.Send ECmdAnimDuplicateBitmap command to plugin Dll with the no-existing handle.
       
  1748 //!@SYMTestStatus            Implemented
       
  1749 //!@SYMTestPriority          High
       
  1750 //!@SYMTestExpectedResults   In step 12, will get a WServ-7 panic.
       
  1751 //!@SYMTestType              CIT
       
  1752     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1753         CREATE_OBJECT              RWsSession               ws
       
  1754         CREATE_OBJECT              RWindowGroup             wingp
       
  1755         CREATE_OBJECT              RWindow                  win
       
  1756         CREATE_OBJECT              RAnimDll                 animdll
       
  1757         CREATE_OBJECT              RAnim                    anim
       
  1758         CREATE_OBJECT              RAnimForMClass           animformc
       
  1759         CREATE_OBJECT              CFbsBitmap               bitmap
       
  1760         COMMAND                    ws                       new                      
       
  1761         COMMAND                    ws                       Connect                  
       
  1762         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command03
       
  1763         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command04
       
  1764         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command05
       
  1765         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command06
       
  1766         COMMAND                    win                      Activate
       
  1767         COMMAND                    win                      BeginRedraw
       
  1768         COMMAND                    win                      EndRedraw
       
  1769         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetAutoFlush_Command08
       
  1770         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command09
       
  1771         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Load_Command10
       
  1772         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command11
       
  1773         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command12
       
  1774         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command13
       
  1775         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetRequiredDisplayMode_Command14
       
  1776         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetBackgroundColor_Command15
       
  1777         COMMAND                    bitmap                   new                      
       
  1778         COMMAND                    bitmap                   Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Load_Command17
       
  1779         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-CommandReply_Command18
       
  1780     END_TEST_BLOCK    !PanicString=WSERV    !PanicCode=7
       
  1781     RUN_TEST_STEP          100          T_GraphicsWservAPI          utilityClearPanicDlg
       
  1782 
       
  1783 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036
       
  1784 
       
  1785 
       
  1786 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037
       
  1787 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037
       
  1788 //!@SYMAPI                   MAnimGeneralFunctions::DuplicateBitmapL(TInt)
       
  1789 //!@SYMAuthor                Yue Zhang
       
  1790 //!@SYMCreationDate          11-04-2008
       
  1791 //!@SYMTestCaseDesc          The client sends command and a bitmap handle to animation DLL to call DuplicateBitmap function in the situation of memory leak.
       
  1792 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1793 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1794 //!                          3.Activate the RWindow.
       
  1795 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1796 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1797 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1798 //!                          7.Create an instance of RAnimForMClass .
       
  1799 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1800 //!                          9.Create CWsScreenDevice object and construct it.
       
  1801 //!                          10.Set required display mode of RWindow object.
       
  1802 //!                          11.Set background color of RWindow object.
       
  1803 //!                          12.Construct CWindowAnim object by RWindow.
       
  1804 //!                          13.Create a CFbsBitmap object and load bitmap.
       
  1805 //!                          14.Send ECmdUtilEatupMemory command to plugin Dll, the plugin dll will eatup the memory to cause the memory leak.
       
  1806 //!                          15.Send ECmdAnimDuplicateBitmap command to plugin Dll with the handle.
       
  1807 //!                          16.Send ECmdUtilFreeEatenMemory command to plugin Dll, the plugin dll will release the eaten memory.
       
  1808 //!                          17.Use ScreenDevice object to compare the bitmap rectangle with a blank rectangle.
       
  1809 //!                          18.Close and destroy all the related objects.
       
  1810 //!@SYMTestStatus            Implemented
       
  1811 //!@SYMTestPriority          High
       
  1812 //!@SYMTestExpectedResults   In step 17, the compare result should be same because the bitmap should not be drawn.
       
  1813 //!@SYMTestType              CIT
       
  1814     START_TEST_BLOCK          1000          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1815         CREATE_OBJECT              RWsSession               ws
       
  1816         CREATE_OBJECT              RWindowGroup             wingp
       
  1817         CREATE_OBJECT              RWindow                  win
       
  1818         CREATE_OBJECT              RAnimDll                 animdll
       
  1819         CREATE_OBJECT              RAnim                    anim
       
  1820         CREATE_OBJECT              RAnimForMClass           animformc
       
  1821         CREATE_OBJECT              CWsScreenDevice          scrdev
       
  1822         CREATE_OBJECT              CFbsBitmap               bitmap
       
  1823         COMMAND                    ws                       new                      
       
  1824         COMMAND                    ws                       Connect                  
       
  1825         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command03
       
  1826         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command04
       
  1827         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command05
       
  1828         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command06
       
  1829         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetAutoFlush_Command07
       
  1830         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command08
       
  1831         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Load_Command09
       
  1832         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command10
       
  1833         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command11
       
  1834         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command12
       
  1835         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetRequiredDisplayMode_Command13
       
  1836         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetBackgroundColor_Command14
       
  1837         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command15
       
  1838         COMMAND                    win                      Activate                 
       
  1839         COMMAND                    win                      BeginRedraw              
       
  1840         COMMAND                    win                      EndRedraw                
       
  1841         COMMAND                    scrdev                   Construct                
       
  1842         COMMAND                    bitmap                   new                      
       
  1843         COMMAND                    bitmap                   Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Load_Command21
       
  1844         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command22
       
  1845         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command23
       
  1846         //COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command24
       
  1847         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-RectCompare_Command25
       
  1848         COMMAND                    bitmap                   ~                        
       
  1849         COMMAND                    scrdev                   ~                        
       
  1850         COMMAND                    anim                     Destroy                  
       
  1851         COMMAND                    animformc                Destroy                  
       
  1852         COMMAND                    animdll                  Destroy                  
       
  1853         COMMAND                    win                      Close                    
       
  1854         COMMAND                    wingp                    Close                    
       
  1855         COMMAND                    ws                       Close                    
       
  1856     END_TEST_BLOCK
       
  1857 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037
       
  1858 
       
  1859 
       
  1860 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038
       
  1861 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038
       
  1862 //!@SYMAPI                   MAnimGeneralFunctions::DuplicateFontL(TInt)
       
  1863 //!@SYMAuthor                Yue Zhang
       
  1864 //!@SYMCreationDate          11-04-2008
       
  1865 //!@SYMTestCaseDesc          The client sends command and a font handle to animation DLL to call DuplicateFont function, and then try to draw the font.
       
  1866 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1867 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1868 //!                          3.Activate the RWindow.
       
  1869 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1870 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1871 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1872 //!                          7.Create an instance of  RAnimForMClass .
       
  1873 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1874 //!                          9.Create CWsScreenDevice object and construct it.
       
  1875 //!                          10.Set required display mode of RWindow object.
       
  1876 //!                          11.Set background color of RWindow object.
       
  1877 //!                          12.Create a TFontSpec object with the proper font name and height.
       
  1878 //!                          13.Create a CFont object using GetNearestFontInTwips of CWsScreenDevice object.
       
  1879 //!                          14.Send ECmdAnimDuplicateFont command to plugin Dll with the font's handle.
       
  1880 //!                          14.1 Plugin get the duplicated font's ID and return it to the client.
       
  1881 //!                          14.2 Wrapper verify it with the original font on the client side. If it's the same , set this case failed.
       
  1882 //!                          15.Close and destroy all the related objects.
       
  1883 //!@SYMTestStatus            Implemented
       
  1884 //!@SYMTestPriority          High
       
  1885 //!@SYMTestExpectedResults   In step 14, the compare result should not be same because the bitmap should be drawn.
       
  1886 //!@SYMTestType              CIT
       
  1887     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1888         CREATE_OBJECT              RWsSession               ws
       
  1889         CREATE_OBJECT              RWindowGroup             wingp
       
  1890         CREATE_OBJECT              RWindow                  win
       
  1891         CREATE_OBJECT              RAnimDll                 animdll
       
  1892         CREATE_OBJECT              RAnim                    anim
       
  1893         CREATE_OBJECT              RAnimForMClass           animformc
       
  1894         CREATE_OBJECT              CWsScreenDevice          scrdev
       
  1895         CREATE_OBJECT              CFbsFont                 font
       
  1896         COMMAND                    ws                       new                      
       
  1897         COMMAND                    ws                       Connect                  
       
  1898         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command03
       
  1899         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command04
       
  1900         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command05
       
  1901         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command06
       
  1902         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetAutoFlush_Command07
       
  1903         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command08
       
  1904         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Load_Command09
       
  1905         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command10
       
  1906         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command11
       
  1907         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command12
       
  1908         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetRequiredDisplayMode_Command13
       
  1909         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetBackgroundColor_Command14
       
  1910         COMMAND                    win                      Activate
       
  1911         COMMAND                    win                      BeginRedraw              
       
  1912         COMMAND                    win                      EndRedraw                
       
  1913         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command18
       
  1914         COMMAND                    scrdev                   Construct                
       
  1915         COMMAND                    scrdev                   GetNearestFontToDesignHeightInTwips          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-GetNearestFontToDesignHeightInTwips_Command20
       
  1916         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-CommandReply_Command21
       
  1917         COMMAND                    scrdev                   ~                        
       
  1918         COMMAND                    anim                     Destroy                  
       
  1919         COMMAND                    animformc                Destroy                  
       
  1920         COMMAND                    animdll                  Destroy                  
       
  1921         COMMAND                    win                      Close                    
       
  1922         COMMAND                    wingp                    Close                    
       
  1923         COMMAND                    ws                       Close                    
       
  1924     END_TEST_BLOCK
       
  1925 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038
       
  1926 
       
  1927 
       
  1928 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039
       
  1929 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039
       
  1930 //!@SYMAPI                   MAnimGeneralFunctions::DuplicateFontL(TInt)
       
  1931 //!@SYMAuthor                Yue Zhang
       
  1932 //!@SYMCreationDate          11-04-2008
       
  1933 //!@SYMTestCaseDesc          Negative case, the client sends command and one invalid font handle to animation DLL to call DuplicateFont function, and then try to draw the font.
       
  1934 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1935 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1936 //!                          3.Activate the RWindow.
       
  1937 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1938 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1939 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1940 //!                          7.Create an instance of  RAnimForMClass .
       
  1941 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1942 //!                          9.Set required display mode of RWindow object.
       
  1943 //!                          10.Set background color of RWindow object.
       
  1944 //!                          11.Send ECmdAnimDuplicateFont command to plugin Dll with a invalid font's handle.
       
  1945 //!@SYMTestStatus            Implemented
       
  1946 //!@SYMTestPriority          High
       
  1947 //!@SYMTestExpectedResults   In step 11, will get a WServ-13 panic.
       
  1948 //!@SYMTestType              CIT
       
  1949     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  1950         CREATE_OBJECT              RWsSession               ws
       
  1951         CREATE_OBJECT              RWindowGroup             wingp
       
  1952         CREATE_OBJECT              RWindow                  win
       
  1953         CREATE_OBJECT              RAnimDll                 animdll
       
  1954         CREATE_OBJECT              RAnim                    anim
       
  1955         CREATE_OBJECT              RAnimForMClass           animformc
       
  1956         COMMAND                    ws                       new                      
       
  1957         COMMAND                    ws                       Connect                  
       
  1958         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command03
       
  1959         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command04
       
  1960         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command05
       
  1961         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command06
       
  1962         COMMAND                    win                      Activate
       
  1963         COMMAND                    win                      BeginRedraw
       
  1964         COMMAND                    win                      EndRedraw
       
  1965         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetAutoFlush_Command08
       
  1966         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command09
       
  1967         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Load_Command10
       
  1968         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command11
       
  1969         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command12
       
  1970         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command13
       
  1971         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetRequiredDisplayMode_Command14
       
  1972         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetBackgroundColor_Command15
       
  1973         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-CommandReply_Command16
       
  1974     END_TEST_BLOCK    !PanicString=WSERV    !PanicCode=13
       
  1975     RUN_TEST_STEP          100          T_GraphicsWservAPI          utilityClearPanicDlg
       
  1976 
       
  1977 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039
       
  1978 
       
  1979 
       
  1980 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040
       
  1981 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040
       
  1982 //!@SYMAPI                   MAnimGeneralFunctions::DuplicateFontL(TInt)
       
  1983 //!@SYMAuthor                Yue Zhang
       
  1984 //!@SYMCreationDate          11-04-2008
       
  1985 //!@SYMTestCaseDesc          The client sends command and a font handle to animation DLL to call DuplicateFont function, and then try to draw the font.
       
  1986 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  1987 //!                          2.Create and construct RWindowGroup and RWindow.
       
  1988 //!                          3.Activate the RWindow.
       
  1989 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  1990 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  1991 //!                          6.Create a RAnim object by using RAnimDll object.
       
  1992 //!                          7.Create an instance of  RAnimForMClass .
       
  1993 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  1994 //!                          9.Create CWsScreenDevice object and construct it.
       
  1995 //!                          10.Set required display mode of RWindow object.
       
  1996 //!                          11.Set background color of RWindow object.
       
  1997 //!                          12.Create a TFontSpec object with the proper font name and height.
       
  1998 //!                          13.Create a CFont object using GetNearestFontInTwips of CWsScreenDevice object.
       
  1999 //!                          14.Send ECmdUtilEatupMemory command to plugin Dll, the plugin dll will eatup the memory to cause the memory leak.
       
  2000 //!                          15.Send ECmdAnimDuplicateFont command to plugin Dll with the font's handle.
       
  2001 //!                          15.1 Plugin can not get the duplicated font's ID and return zero to the client.
       
  2002 //!                          15.2 Wrapper verify the result. If it's zero, set this case failed and set the error -4(KErrNoMemory).
       
  2003 //!                          16.Send ECmdUtilFreeEatenMemory command to plugin Dll, the plugin dll will release the eaten memory.
       
  2004 //!                          17.Close and destroy all the related objects.
       
  2005 //!@SYMTestStatus            Implemented
       
  2006 //!@SYMTestPriority          High
       
  2007 //!@SYMTestExpectedResults   In step 15, client get zero value and the the error code to -4(KErrNoMemory).
       
  2008 //!@SYMTestType              CIT
       
  2009     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2010         CREATE_OBJECT              RWsSession               ws
       
  2011         CREATE_OBJECT              RWindowGroup             wingp
       
  2012         CREATE_OBJECT              RWindow                  win
       
  2013         CREATE_OBJECT              RAnimDll                 animdll
       
  2014         CREATE_OBJECT              RAnim                    anim
       
  2015         CREATE_OBJECT              RAnimForMClass           animformc
       
  2016         CREATE_OBJECT              CWsScreenDevice          scrdev
       
  2017         CREATE_OBJECT              CFbsFont                 font
       
  2018         COMMAND                    ws                       new                      
       
  2019         COMMAND                    ws                       Connect                  
       
  2020         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command03
       
  2021         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command04
       
  2022         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command05
       
  2023         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command06
       
  2024         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetAutoFlush_Command07
       
  2025         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command08
       
  2026         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Load_Command09
       
  2027         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command10
       
  2028         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command11
       
  2029         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command12
       
  2030         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetRequiredDisplayMode_Command13
       
  2031         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetBackgroundColor_Command14
       
  2032         COMMAND                    win                      Activate
       
  2033         COMMAND                    win                      BeginRedraw              
       
  2034         COMMAND                    win                      EndRedraw                
       
  2035         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command18
       
  2036         COMMAND                    scrdev                   Construct                
       
  2037         COMMAND                    scrdev                   GetNearestFontToDesignHeightInTwips          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-GetNearestFontToDesignHeightInTwips_Command20
       
  2038         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command21
       
  2039         COMMAND          !Error=-4 animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command22
       
  2040         //COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command23
       
  2041         COMMAND                    scrdev                   ~                        
       
  2042         COMMAND                    anim                     Destroy                  
       
  2043         COMMAND                    animformc                Destroy                  
       
  2044         COMMAND                    animdll                  Destroy                  
       
  2045         COMMAND                    win                      Close                    
       
  2046         COMMAND                    wingp                    Close                    
       
  2047         COMMAND                    ws                       Close                    
       
  2048     END_TEST_BLOCK
       
  2049 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040
       
  2050 
       
  2051 
       
  2052 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041
       
  2053 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041
       
  2054 //!@SYMAPI                   MAnimGeneralFunctions::CloseFont(CFbsFont ptr)
       
  2055 //!@SYMAuthor                Yue Zhang
       
  2056 //!@SYMCreationDate          11-04-2008
       
  2057 //!@SYMTestCaseDesc          The client sends command and a font handle to animation DLL to call DuplicateFont function, and then try to draw the font,after that, close the font.
       
  2058 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  2059 //!                          2.Create and construct RWindowGroup and RWindow.
       
  2060 //!                          3.Activate the RWindow.
       
  2061 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  2062 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  2063 //!                          6.Create a RAnim object by using RAnimDll object.
       
  2064 //!                          7.Create an instance of  RAnimForMClass .
       
  2065 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  2066 //!                          9.Create CWsScreenDevice object and construct it.
       
  2067 //!                          10.Create CWindowGc of CWsScreenDevice.
       
  2068 //!                          11.Set required display mode of RWindow object.
       
  2069 //!                          12.Set background color of RWindow object.
       
  2070 //!                          13.Create a TFontSpec object with the proper font name and height.
       
  2071 //!                          14.Create a CFont object using GetNearestFontInTwips of CWsScreenDevice object.
       
  2072 //!                          15.Send ECmdAnimCloseFont command to plugin Dll with the font's handle.
       
  2073 //!                          16.Close and destroy all the related objects.
       
  2074 //!@SYMTestStatus            Implemented
       
  2075 //!@SYMTestPriority          High
       
  2076 //!@SYMTestExpectedResults   In step 15,CloseFont function should be executed successfully.
       
  2077 //!@SYMTestType              CIT
       
  2078     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2079         CREATE_OBJECT              RWsSession               ws
       
  2080         CREATE_OBJECT              RWindowGroup             wingp
       
  2081         CREATE_OBJECT              RWindow                  win
       
  2082         CREATE_OBJECT              RAnimDll                 animdll
       
  2083         CREATE_OBJECT              RAnim                    anim
       
  2084         CREATE_OBJECT              RAnimForMClass           animformc
       
  2085         CREATE_OBJECT              CWsScreenDevice          scrdev
       
  2086         CREATE_OBJECT              CWindowGc                wingc
       
  2087         CREATE_OBJECT              CFbsFont                 font
       
  2088         COMMAND                    ws                       new                      
       
  2089         COMMAND                    ws                       Connect                  
       
  2090         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command03
       
  2091         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command04
       
  2092         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command05
       
  2093         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command06
       
  2094         COMMAND                    win                      Activate
       
  2095         COMMAND                    win                      BeginRedraw
       
  2096         COMMAND                    win                      EndRedraw
       
  2097         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetAutoFlush_Command08
       
  2098         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command09
       
  2099         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Load_Command10
       
  2100         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command11
       
  2101         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command12
       
  2102         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command13
       
  2103         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetRequiredDisplayMode_Command14
       
  2104         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetBackgroundColor_Command15
       
  2105         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command16
       
  2106         COMMAND                    scrdev                   Construct                
       
  2107         COMMAND                    scrdev                   GetNearestFontToDesignHeightInTwips          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-GetNearestFontToDesignHeightInTwips_Command18
       
  2108         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-CommandReply_Command19
       
  2109         COMMAND                    scrdev                   ~                        
       
  2110         COMMAND                    anim                     Destroy                  
       
  2111         COMMAND                    animformc                Destroy                  
       
  2112         COMMAND                    animdll                  Destroy                  
       
  2113         COMMAND                    win                      Close                    
       
  2114         COMMAND                    wingp                    Close                    
       
  2115         COMMAND                    ws                       Close                    
       
  2116     END_TEST_BLOCK
       
  2117 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041
       
  2118 
       
  2119 
       
  2120 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042
       
  2121 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042
       
  2122 //!@SYMAPI                   MAnimGeneralFunctions::ReplyBuf(const TDesC8 {ref})
       
  2123 //!@SYMAuthor                Cherry Song
       
  2124 //!@SYMCreationDate          23-04-2008
       
  2125 //!@SYMTestCaseDesc          The client sends command ECmdGeneralReplyBuf8 to animation DLL by CommandReply, and then check if the returned result is the expected one.
       
  2126 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
  2127 //!                          2.  Create and construct RWindowGroup and RWindow.
       
  2128 //!                          3.  Activate the RWindow.
       
  2129 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
  2130 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
  2131 //!                          6.  Create a RAnim by using RAnimDll object.
       
  2132 //!                          7.  Create an instance of  RAnimForMClass .
       
  2133 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
  2134 //!                          9.  Send ECmdGeneralReplyBuf8 with the descriptor usded by ReplyBuf() to animation DLL by CommandReply.
       
  2135 //!                          9.1 In wrapper,set the slot 1 and slot 2 of IpcArgs associated with different TBuf8 descriptor.
       
  2136 //!                          9.2 The wrapper check the slot 1 of IpcArgs is the same with the descriptor sent to animation DLL, and the one in slot 2 of the IpcArgs does not change.
       
  2137 //!                          10. Destroy RAnim and RAnimForMClass.
       
  2138 //!                          11. Destroy RAnimDll.
       
  2139 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
  2140 //!@SYMTestStatus            Implemented
       
  2141 //!@SYMTestPriority          High
       
  2142 //!@SYMTestExpectedResults   After calling CommandReply(),the descriptor in IpcArgs slot 1 is the same with the descriptor sent to animation DLL and the one in IpcArgs slot 2 does not change.
       
  2143 //!@SYMTestType              CIT
       
  2144     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2145         CREATE_OBJECT              RWsSession               ws
       
  2146         CREATE_OBJECT              RWindowGroup             wingp
       
  2147         CREATE_OBJECT              RWindow                  win
       
  2148         CREATE_OBJECT              RAnimDll                 animdll
       
  2149         CREATE_OBJECT              RAnim                    anim
       
  2150         CREATE_OBJECT              RAnimForMClass           animformc
       
  2151         COMMAND                    ws                       new                      
       
  2152         COMMAND                    ws                       Connect                  
       
  2153         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command03
       
  2154         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command04
       
  2155         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command05
       
  2156         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command06
       
  2157         COMMAND                    win                      Activate
       
  2158         COMMAND                    win                      BeginRedraw
       
  2159         COMMAND                    win                      EndRedraw
       
  2160         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-SetAutoFlush_Command08
       
  2161         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command09
       
  2162         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Load_Command10
       
  2163         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command11
       
  2164         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command12
       
  2165         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command13
       
  2166         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-CommandReply_Command14
       
  2167         COMMAND                    anim                     Destroy                  
       
  2168         COMMAND                    animformc                Destroy                  
       
  2169         COMMAND                    animdll                  Destroy                  
       
  2170         COMMAND                    win                      Close                    
       
  2171         COMMAND                    wingp                    Close                    
       
  2172         COMMAND                    ws                       Close                    
       
  2173     END_TEST_BLOCK
       
  2174 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042
       
  2175 
       
  2176 
       
  2177 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043
       
  2178 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043
       
  2179 //!@SYMAPI                   MAnimGeneralFunctions::ReplyBuf(const TDesC16 {ref})
       
  2180 //!@SYMAuthor                Cherry Song
       
  2181 //!@SYMCreationDate          23-04-2008
       
  2182 //!@SYMTestCaseDesc          The client sends command ECmdGeneralReplyBuf16 to animation DLL by CommandReply, and then check if the returned result is the expected one.
       
  2183 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
  2184 //!                          2.  Create and construct RWindowGroup and RWindow.
       
  2185 //!                          3.  Activate the RWindow.
       
  2186 //!                          4.  SetAutoFlush to TRUE for the RWsSession.
       
  2187 //!                          5.  Create a RAnimDll and Load an animation DLL.
       
  2188 //!                          6.  Create a RAnim by using RAnimDll object.
       
  2189 //!                          7.  Create an instance of  RAnimForMClass .
       
  2190 //!                          8.  Complete construction of the RAnim based on the created RWindow.
       
  2191 //!                          9.  Send ECmdGeneralReplyBuf16 with the descriptor usded by ReplyBuf() to animation DLL by CommandReply.
       
  2192 //!                          9.1 In wrapper,set the slot 1 and slot 2 of IpcArgs associated with different TBuf16 descriptor.
       
  2193 //!                          9.2 The wrapper check the descriptor in IpcArgs slot 1 is the same with the descriptor sent to animation DLL,and the one in slot 2 of the IpcArgs does not change.
       
  2194 //!                          10.  Destroy RAnim and RAnimForMClass.
       
  2195 //!                          11. Destroy RAnimDll.
       
  2196 //!                          12. Close RWsSession ,RWindowGroup and RWindow.
       
  2197 //!@SYMTestStatus            Implemented
       
  2198 //!@SYMTestPriority          High
       
  2199 //!@SYMTestExpectedResults   After calling CommandReply(),the descriptor in IpcArgs slot 1 is the same with the descriptor sent to animation DLL and the one in IpcArgs slot 2 does not change.
       
  2200 //!@SYMTestType              CIT
       
  2201     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2202         CREATE_OBJECT              RWsSession               ws
       
  2203         CREATE_OBJECT              RWindowGroup             wingp
       
  2204         CREATE_OBJECT              RWindow                  win
       
  2205         CREATE_OBJECT              RAnimDll                 animdll
       
  2206         CREATE_OBJECT              RAnim                    anim
       
  2207         CREATE_OBJECT              RAnimForMClass           animformc
       
  2208         COMMAND                    ws                       new                      
       
  2209         COMMAND                    ws                       Connect                  
       
  2210         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command03
       
  2211         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command04
       
  2212         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command05
       
  2213         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command06
       
  2214         COMMAND                    win                      Activate
       
  2215         COMMAND                    win                      BeginRedraw
       
  2216         COMMAND                    win                      EndRedraw
       
  2217         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-SetAutoFlush_Command08
       
  2218         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command09
       
  2219         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Load_Command10
       
  2220         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command11
       
  2221         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command12
       
  2222         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command13
       
  2223         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-CommandReply_Command14
       
  2224         COMMAND                    anim                     Destroy                  
       
  2225         COMMAND                    animformc                Destroy                  
       
  2226         COMMAND                    animdll                  Destroy                  
       
  2227         COMMAND                    win                      Close                    
       
  2228         COMMAND                    wingp                    Close                    
       
  2229         COMMAND                    ws                       Close                    
       
  2230     END_TEST_BLOCK
       
  2231 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043
       
  2232 
       
  2233 
       
  2234 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044
       
  2235 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044
       
  2236 //!@SYMAPI                   MAnimGeneralFunctions::SystemTime()
       
  2237 //!@SYMAuthor                Cherry Song
       
  2238 //!@SYMCreationDate          24/04/2008
       
  2239 //!@SYMTestCaseDesc          Set syncmode to ESyncDay, get the system time as it was when Animate() was last called.
       
  2240 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  2241 //!                          2.Create and construct RWindowGroup and RWindow.
       
  2242 //!                          3.Activate the RWindow.
       
  2243 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  2244 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  2245 //!                          6.Create a RAnim object by using RAnimDll object.
       
  2246 //!                          7.Create an instance of  RAnimForMClass .
       
  2247 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  2248 //!                          9.Send command ECmdGeneralSystemTime with ESyncDay to animation DLL by CommandReply.
       
  2249 //!                          9.1 Animation DLL verifies the behavior of API.
       
  2250 //!                          9.2 Wrapper checks the return value of step 10 is 1 or not.
       
  2251 //!                          10.Destroy RAnim and RAnimForMClass.
       
  2252 //!                          11.Destroy RAnimDll.
       
  2253 //!                          12.Close RWsSession ,RWindowGroup and RWindow.
       
  2254 //!@SYMTestStatus            Implemented
       
  2255 //!@SYMTestPriority          High
       
  2256 //!@SYMTestExpectedResults   Step 9 return 1
       
  2257 //!@SYMTestType              CIT
       
  2258     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2259         CREATE_OBJECT              RWsSession               ws
       
  2260         CREATE_OBJECT              RWindowGroup             wingp
       
  2261         CREATE_OBJECT              RWindow                  win
       
  2262         CREATE_OBJECT              RAnimDll                 animdll
       
  2263         CREATE_OBJECT              RAnim                    anim
       
  2264         CREATE_OBJECT              RAnimForMClass           animformc
       
  2265         COMMAND                    ws                       new                      
       
  2266         COMMAND                    ws                       Connect                  
       
  2267         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command03
       
  2268         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command04
       
  2269         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command05
       
  2270         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command06
       
  2271         COMMAND                    win                      Activate
       
  2272         COMMAND                    win                      BeginRedraw
       
  2273         COMMAND                    win                      EndRedraw
       
  2274         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-SetAutoFlush_Command08
       
  2275         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command09
       
  2276         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Load_Command10
       
  2277         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command11
       
  2278         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command12
       
  2279         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command13
       
  2280         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-CommandReply_Command14
       
  2281         COMMAND                    anim                     Destroy                  
       
  2282         COMMAND                    animformc                Destroy                  
       
  2283         COMMAND                    animdll                  Destroy                  
       
  2284         COMMAND                    win                      Close                    
       
  2285         COMMAND                    wingp                    Close                    
       
  2286         COMMAND                    ws                       Close                    
       
  2287     END_TEST_BLOCK
       
  2288 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044
       
  2289 
       
  2290 
       
  2291 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045
       
  2292 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045
       
  2293 //!@SYMAPI                   MAnimGeneralFunctions::SystemTime()
       
  2294 //!@SYMAuthor                Cherry Song
       
  2295 //!@SYMCreationDate          24/04/2008
       
  2296 //!@SYMTestCaseDesc          Set syncmode to ESyncMinute, get the system time as it was when Animate() was last called.
       
  2297 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  2298 //!                          2.Create and construct RWindowGroup and RWindow.
       
  2299 //!                          3.Activate the RWindow.
       
  2300 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  2301 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  2302 //!                          6.Create a RAnim object by using RAnimDll object.
       
  2303 //!                          7.Create an instance of  RAnimForMClass .
       
  2304 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  2305 //!                          9.Send command ECmdGeneralSystemTime with ESyncMinute to animation DLL by CommandReply.
       
  2306 //!                          9.1 Animation DLL verifies the behavior of API.
       
  2307 //!                          9.2 Wrapper checks the return value of step 10 is 1 or not.
       
  2308 //!                          10.Destroy RAnim and RAnimForMClass.
       
  2309 //!                          11.Destroy RAnimDll.
       
  2310 //!                          12.Close RWsSession ,RWindowGroup and RWindow.
       
  2311 //!@SYMTestStatus            Implemented
       
  2312 //!@SYMTestPriority          High
       
  2313 //!@SYMTestExpectedResults   Step 9 return 1
       
  2314 //!@SYMTestType              CIT
       
  2315     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2316         CREATE_OBJECT              RWsSession               ws
       
  2317         CREATE_OBJECT              RWindowGroup             wingp
       
  2318         CREATE_OBJECT              RWindow                  win
       
  2319         CREATE_OBJECT              RAnimDll                 animdll
       
  2320         CREATE_OBJECT              RAnim                    anim
       
  2321         CREATE_OBJECT              RAnimForMClass           animformc
       
  2322         COMMAND                    ws                       new                      
       
  2323         COMMAND                    ws                       Connect                  
       
  2324         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command03
       
  2325         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command04
       
  2326         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command05
       
  2327         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command06
       
  2328         COMMAND                    win                      Activate
       
  2329         COMMAND                    win                      BeginRedraw
       
  2330         COMMAND                    win                      EndRedraw
       
  2331         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-SetAutoFlush_Command08
       
  2332         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command09
       
  2333         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Load_Command10
       
  2334         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command11
       
  2335         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command12
       
  2336         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command13
       
  2337         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-CommandReply_Command14
       
  2338         COMMAND                    anim                     Destroy                  
       
  2339         COMMAND                    animformc                Destroy                  
       
  2340         COMMAND                    animdll                  Destroy                  
       
  2341         COMMAND                    win                      Close                    
       
  2342         COMMAND                    wingp                    Close                    
       
  2343         COMMAND                    ws                       Close                    
       
  2344     END_TEST_BLOCK
       
  2345 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045
       
  2346 
       
  2347 
       
  2348 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046
       
  2349 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046
       
  2350 //!@SYMAPI                   MAnimGeneralFunctions::SystemTime()
       
  2351 //!@SYMAuthor                Cherry Song
       
  2352 //!@SYMCreationDate          24/04/2008
       
  2353 //!@SYMTestCaseDesc          Set syncmode to ESyncSecond, get the system time as it was when Animate() was last called.
       
  2354 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  2355 //!                          2.Create and construct RWindowGroup and RWindow.
       
  2356 //!                          3.Activate the RWindow.
       
  2357 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  2358 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  2359 //!                          6.Create a RAnim object by using RAnimDll object.
       
  2360 //!                          7.Create an instance of  RAnimForMClass .
       
  2361 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  2362 //!                          9.Send command ECmdGeneralSystemTime with ESyncSecond to animation DLL by CommandReply.
       
  2363 //!                          9.1 Animation DLL verifies the behavior of API.
       
  2364 //!                          9.2 Wrapper checks the return value of step 10 is 1 or not.
       
  2365 //!                          10.Destroy RAnim and RAnimForMClass.
       
  2366 //!                          11.Destroy RAnimDll.
       
  2367 //!                          12.Close RWsSession ,RWindowGroup and RWindow.
       
  2368 //!@SYMTestStatus            Implemented
       
  2369 //!@SYMTestPriority          High
       
  2370 //!@SYMTestExpectedResults   Step 9 return 1
       
  2371 //!@SYMTestType              CIT
       
  2372     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2373         CREATE_OBJECT              RWsSession               ws
       
  2374         CREATE_OBJECT              RWindowGroup             wingp
       
  2375         CREATE_OBJECT              RWindow                  win
       
  2376         CREATE_OBJECT              RAnimDll                 animdll
       
  2377         CREATE_OBJECT              RAnim                    anim
       
  2378         CREATE_OBJECT              RAnimForMClass           animformc
       
  2379         COMMAND                    ws                       new                      
       
  2380         COMMAND                    ws                       Connect                  
       
  2381         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command03
       
  2382         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command04
       
  2383         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command05
       
  2384         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command06
       
  2385         COMMAND                    win                      Activate
       
  2386         COMMAND                    win                      BeginRedraw
       
  2387         COMMAND                    win                      EndRedraw
       
  2388         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-SetAutoFlush_Command08
       
  2389         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command09
       
  2390         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Load_Command10
       
  2391         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command11
       
  2392         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command12
       
  2393         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command13
       
  2394         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-CommandReply_Command14
       
  2395         COMMAND                    anim                     Destroy                  
       
  2396         COMMAND                    animformc                Destroy                  
       
  2397         COMMAND                    animdll                  Destroy                  
       
  2398         COMMAND                    win                      Close                    
       
  2399         COMMAND                    wingp                    Close                    
       
  2400         COMMAND                    ws                       Close                    
       
  2401     END_TEST_BLOCK
       
  2402 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046
       
  2403 
       
  2404 
       
  2405 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047
       
  2406 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047
       
  2407 //!@SYMAPI                   MAnimGeneralFunctions::SystemTime()
       
  2408 //!@SYMAuthor                Cherry Song
       
  2409 //!@SYMCreationDate          24/04/2008
       
  2410 //!@SYMTestCaseDesc          Set syncmode to ESyncFlash, get the system time as it was when Animate() was last called.
       
  2411 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  2412 //!                          2.Create and construct RWindowGroup and RWindow.
       
  2413 //!                          3.Activate the RWindow.
       
  2414 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  2415 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  2416 //!                          6.Create a RAnim object by using RAnimDll object.
       
  2417 //!                          7.Create an instance of  RAnimForMClass .
       
  2418 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  2419 //!                          9.Send command ECmdGeneralSystemTime with ESyncFlash to animation DLL by CommandReply.
       
  2420 //!                          9.1 Animation DLL verifies the behavior of API.
       
  2421 //!                          9.2 Wrapper checks the return value of step 10 is 1 or not.
       
  2422 //!                          10.Destroy RAnim and RAnimForMClass.
       
  2423 //!                          11.Destroy RAnimDll.
       
  2424 //!                          12.Close RWsSession ,RWindowGroup and RWindow.
       
  2425 //!@SYMTestStatus            Implemented
       
  2426 //!@SYMTestPriority          High
       
  2427 //!@SYMTestExpectedResults   Step 9 return 1
       
  2428 //!@SYMTestType              CIT
       
  2429     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2430         CREATE_OBJECT              RWsSession               ws
       
  2431         CREATE_OBJECT              RWindowGroup             wingp
       
  2432         CREATE_OBJECT              RWindow                  win
       
  2433         CREATE_OBJECT              RAnimDll                 animdll
       
  2434         CREATE_OBJECT              RAnim                    anim
       
  2435         CREATE_OBJECT              RAnimForMClass           animformc
       
  2436         COMMAND                    ws                       new                      
       
  2437         COMMAND                    ws                       Connect                  
       
  2438         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command03
       
  2439         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command04
       
  2440         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command05
       
  2441         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command06
       
  2442         COMMAND                    win                      Activate
       
  2443         COMMAND                    win                      BeginRedraw
       
  2444         COMMAND                    win                      EndRedraw
       
  2445         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-SetAutoFlush_Command08
       
  2446         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command09
       
  2447         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Load_Command10
       
  2448         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command11
       
  2449         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command12
       
  2450         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command13
       
  2451         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-CommandReply_Command14
       
  2452         COMMAND                    anim                     Destroy                  
       
  2453         COMMAND                    animformc                Destroy                  
       
  2454         COMMAND                    animdll                  Destroy                  
       
  2455         COMMAND                    win                      Close                    
       
  2456         COMMAND                    wingp                    Close                    
       
  2457         COMMAND                    ws                       Close                    
       
  2458     END_TEST_BLOCK
       
  2459 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047
       
  2460 
       
  2461 
       
  2462 START_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048
       
  2463 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048
       
  2464 //!@SYMAPI                   MAnimGeneralFunctions::SystemTime()
       
  2465 //!@SYMAuthor                Cherry Song
       
  2466 //!@SYMCreationDate          24/04/2008
       
  2467 //!@SYMTestCaseDesc          Set syncmode to ESyncNone and setinterval to 4, get the system time as it was when Animate() was last called.
       
  2468 //!@SYMTestActions           1.Create and connect a RWsSession.
       
  2469 //!                          2.Create and construct RWindowGroup and RWindow.
       
  2470 //!                          3.Activate the RWindow.
       
  2471 //!                          4.SetAutoFlush to TRUE for the RWsSession.
       
  2472 //!                          5.Create a RAnimDll object and Load an animation DLL.
       
  2473 //!                          6.Create a RAnim object by using RAnimDll object.
       
  2474 //!                          7.Create an instance of  RAnimForMClass .
       
  2475 //!                          8.Complete construction of the RAnim based on the created RWindow.
       
  2476 //!                          9.Send command ECmdGeneralSystemTime with ESyncNone to animation DLL by CommandReply.
       
  2477 //!                          9.1 Animation DLL verifies the behavior of API.
       
  2478 //!                          9.2 Wrapper checks the return value of step 10 is 1 or not.
       
  2479 //!                          10.Destroy RAnim and RAnimForMClass.
       
  2480 //!                          11.Destroy RAnimDll.
       
  2481 //!                          12.Close RWsSession ,RWindowGroup and RWindow.
       
  2482 //!@SYMTestStatus            Implemented
       
  2483 //!@SYMTestPriority          High
       
  2484 //!@SYMTestExpectedResults   Step 9 return 1
       
  2485 //!@SYMTestType              CIT
       
  2486     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini
       
  2487         CREATE_OBJECT              RWsSession               ws
       
  2488         CREATE_OBJECT              RWindowGroup             wingp
       
  2489         CREATE_OBJECT              RWindow                  win
       
  2490         CREATE_OBJECT              RAnimDll                 animdll
       
  2491         CREATE_OBJECT              RAnim                    anim
       
  2492         CREATE_OBJECT              RAnimForMClass           animformc
       
  2493         COMMAND                    ws                       new                      
       
  2494         COMMAND                    ws                       Connect                  
       
  2495         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command03
       
  2496         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command04
       
  2497         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command05
       
  2498         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command06
       
  2499         COMMAND                    win                      Activate
       
  2500         COMMAND                    win                      BeginRedraw
       
  2501         COMMAND                    win                      EndRedraw
       
  2502         COMMAND                    ws                       SetAutoFlush             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-SetAutoFlush_Command08
       
  2503         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command09
       
  2504         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Load_Command10
       
  2505         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command11
       
  2506         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command12
       
  2507         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command13
       
  2508         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-CommandReply_Command14
       
  2509         COMMAND                    anim                     Destroy                  
       
  2510         COMMAND                    animformc                Destroy                  
       
  2511         COMMAND                    animdll                  Destroy                  
       
  2512         COMMAND                    win                      Close                    
       
  2513         COMMAND                    wingp                    Close                    
       
  2514         COMMAND                    ws                       Close                    
       
  2515     END_TEST_BLOCK
       
  2516 END_TESTCASE          GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048
       
  2517 
       
  2518