graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Anim-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-Anim-PublicApi
       
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 
       
    20 // ****************************************************************************
       
    21 // T_RAnimChild (Inherited to test protected members of RAnim) 
       
    22 // ****************************************************************************
       
    23 /////////////////////////////////////////////////////////////////////
       
    24 // GRAPHICS-WSERV-Anim-PublicAPI.script
       
    25 //
       
    26 // Tests all public elements of the RAnim 
       
    27 // classes as a means of confidence that the APIs work as expected.
       
    28 
       
    29 
       
    30 //
       
    31 // The purpose is to provide a regression test suite of PublishedAll APIs for RAnim
       
    32 // The tests are fully automated.
       
    33 /////////////////////////////////////////////////////////////////////
       
    34 
       
    35 LOAD_SUITE      T_GraphicsWservAPI
       
    36 DELAY           1000
       
    37 
       
    38 /////////////////////////////////////////////////////////////////////
       
    39 // RAnim class
       
    40 /////////////////////////////////////////////////////////////////////
       
    41 
       
    42 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0001
       
    43 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0001
       
    44 //! @SYMAPI                     RAnim::RAnim()
       
    45 //! @SYMAuthor                  Jeffery Zhao
       
    46 //! @SYMCreationDate            21-04-2008
       
    47 //! @SYMTestCaseDesc            Create a RAnim object by default constructor.
       
    48 //! @SYMTestActions             1. Create RAnim by default constructor.
       
    49 //!                             2. Close RAnim.
       
    50 //! @SYMTestStatus              Implemented
       
    51 //! @SYMTestPriority            High
       
    52 //! @SYMTestExpectedResults     RAnim object was created without causing panic.
       
    53 //! @SYMTestType                CIT
       
    54     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
    55         CREATE_OBJECT           RAnim       anim
       
    56         COMMAND                 anim        new
       
    57     END_TEST_BLOCK
       
    58 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0001
       
    59 
       
    60 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0002
       
    61 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0002
       
    62 //! @SYMAPI                     RAnim::RAnim(RAnimDll{ref})
       
    63 //! @SYMAuthor                  Jeffery Zhao
       
    64 //! @SYMCreationDate            21-04-2008
       
    65 //! @SYMTestCaseDesc            Create a RAnim object from a given animation DLL.
       
    66 //! @SYMTestActions             1. Create and connect a RWsSession.
       
    67 //!                             2. Create RAnimDll and Load an animation DLL.
       
    68 //!                             3. Create RAnim from this animation DLL.
       
    69 //!                             5. Destroy RAnimDll.
       
    70 //!                             6. Close RWsSession.
       
    71 //! @SYMTestStatus              Implemented
       
    72 //! @SYMTestPriority            High
       
    73 //! @SYMTestExpectedResults     RAnim object was created without causing panic.
       
    74 //! @SYMTestType                CIT
       
    75     START_TEST_BLOCK            10    T_GraphicsWservAPI        \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
    76         CREATE_OBJECT           RWsSession      ws
       
    77         CREATE_OBJECT           RAnimDll        animdll
       
    78         CREATE_OBJECT           RAnim           anim
       
    79         COMMAND                 ws              new
       
    80         COMMAND                 ws              Connect
       
    81         COMMAND                 animdll         new             GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-new_Command03
       
    82         COMMAND                 animdll         Load            GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-Load_Command04
       
    83         COMMAND                 anim            new             GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-new_Command05
       
    84         COMMAND                 animdll         Destroy
       
    85         COMMAND                 ws              Close
       
    86     END_TEST_BLOCK
       
    87 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0002
       
    88 
       
    89 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0003
       
    90 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0003
       
    91 //! @SYMAPI                     RAnim::RAnim();
       
    92 //!                             RAnim::Close()
       
    93 //! @SYMAuthor                  Niandong Qiao
       
    94 //! @SYMCreationDate            10-03-2008
       
    95 //! @SYMTestCaseDesc            Create a RAnim object by default constructor, and then close it.
       
    96 //! @SYMTestActions             1. Create RAnim by default constructor.
       
    97 //!                             2. Close RAnim.
       
    98 //! @SYMTestStatus              Implemented
       
    99 //! @SYMTestPriority            High
       
   100 //! @SYMTestExpectedResults     RAnim object was created and closed without causing panic.
       
   101 //! @SYMTestType                CIT
       
   102     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   103         CREATE_OBJECT           RAnim       anim
       
   104         COMMAND                 anim        new
       
   105         COMMAND                 anim        Close
       
   106     END_TEST_BLOCK
       
   107 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0003
       
   108 
       
   109 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0004
       
   110 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0004
       
   111 //! @SYMAPI                     RAnim::RAnim();
       
   112 //!                             RAnim::Destroy()
       
   113 //! @SYMAuthor                  Niandong Qiao
       
   114 //! @SYMCreationDate            10-03-2008
       
   115 //! @SYMTestCaseDesc            Create a RAnim object by default constructor, and then destroy it.
       
   116 //! @SYMTestActions             1. Create RAnim by default constructor.
       
   117 //!                             2. Destroy RAnim.
       
   118 //! @SYMTestStatus              Implemented
       
   119 //! @SYMTestPriority            Low
       
   120 //! @SYMTestExpectedResults     RAnim object was created and destroyed without causing panic.
       
   121 //! @SYMTestType                CIT
       
   122     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   123         CREATE_OBJECT           RAnim       anim
       
   124         COMMAND                 anim        new
       
   125         COMMAND                 anim        Destroy
       
   126     END_TEST_BLOCK
       
   127 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0004
       
   128 
       
   129 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0005
       
   130 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0005
       
   131 //! @SYMAPI                     RAnim::RAnim(RAnimDll{ref});
       
   132 //!                             RAnim::Close()
       
   133 //! @SYMAuthor                  Niandong Qiao
       
   134 //! @SYMCreationDate            10-03-2008
       
   135 //! @SYMTestCaseDesc            Create a RAnim object from a given animation DLL, and then close it.
       
   136 //! @SYMTestActions             1. Create and connect a RWsSession.
       
   137 //!                             2. Create RAnimDll and Load an animation DLL.
       
   138 //!                             3. Create RAnim from this animation DLL.
       
   139 //!                             4. Close RAnim.
       
   140 //!                             5. Destroy RAnimDll.
       
   141 //!                             6. Close RWsSession.
       
   142 //! @SYMTestStatus              Implemented
       
   143 //! @SYMTestPriority            High
       
   144 //! @SYMTestExpectedResults     RAnim object was created and closed without causing panic.
       
   145 //! @SYMTestType                CIT
       
   146     START_TEST_BLOCK            10    T_GraphicsWservAPI        \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   147         CREATE_OBJECT           RWsSession      ws
       
   148         CREATE_OBJECT           RAnimDll        animdll
       
   149         CREATE_OBJECT           RAnim           anim
       
   150         COMMAND                 ws              new
       
   151         COMMAND                 ws              Connect
       
   152         COMMAND                 animdll         new             GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-new_Command03
       
   153         COMMAND                 animdll         Load            GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-Load_Command04
       
   154         COMMAND                 anim            new             GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-new_Command05
       
   155         COMMAND                 anim            Close
       
   156         COMMAND                 animdll         Destroy
       
   157         COMMAND                 ws              Close
       
   158     END_TEST_BLOCK
       
   159 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0005
       
   160 
       
   161 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0006
       
   162 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0006
       
   163 //! @SYMAPI                     RAnim::RAnim(RAnimDll{ref});
       
   164 //!                             RAnim::Destroy()
       
   165 //! @SYMAuthor                  Niandong Qiao
       
   166 //! @SYMCreationDate            10-03-2008
       
   167 //! @SYMTestCaseDesc            Create a RAnim object from a given animation DLL, and then destroy it.
       
   168 //! @SYMTestActions             1. Create and connect a RWsSession.
       
   169 //!                             2. Create RAnimDll and Load an animation DLL.
       
   170 //!                             3. Create RAnim from this animation DLL.
       
   171 //!                             4. Destroy RAnim.
       
   172 //!                             5. Destroy RAnimDll.
       
   173 //!                             6. Close RWsSession.
       
   174 //! @SYMTestStatus              Implemented
       
   175 //! @SYMTestPriority            Low
       
   176 //! @SYMTestExpectedResults     RAnim object was created and destroyed without causing panic.
       
   177 //! @SYMTestType                CIT
       
   178     START_TEST_BLOCK            10    T_GraphicsWservAPI        \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   179         CREATE_OBJECT           RWsSession      ws
       
   180         CREATE_OBJECT           RAnimDll        animdll
       
   181         CREATE_OBJECT           RAnim           anim
       
   182         COMMAND                 ws              new
       
   183         COMMAND                 ws              Connect
       
   184         COMMAND                 animdll         new             GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-new_Command03
       
   185         COMMAND                 animdll         Load            GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-Load_Command04
       
   186         COMMAND                 anim            new             GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-new_Command05
       
   187         COMMAND                 anim            Destroy
       
   188         COMMAND                 animdll         Destroy
       
   189         COMMAND                 ws              Close
       
   190     END_TEST_BLOCK
       
   191 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0006
       
   192 
       
   193 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0007
       
   194 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0007
       
   195 //! @SYMAPI                     RAnim::Construct(const RWindowBase{ref}, TInt, const TDesC8{ref});
       
   196 //!                             RAnim::Close()
       
   197 //! @SYMAuthor                  Niandong Qiao
       
   198 //! @SYMCreationDate            10-03-2008
       
   199 //! @SYMTestCaseDesc            Construct a RAnim object based on a window device, and then close it.
       
   200 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   201 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   202 //!                             3.  Activate the RWindow.
       
   203 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   204 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   205 //!                             6.  Create a RAnim from this animation DLL.
       
   206 //!                             7.  Complete construction of the RAnim based on created RWindow.
       
   207 //!                             8.  Retrieve last command.
       
   208 //!                             8.1 Send ECmdGetLast to plugin with CommandReply.
       
   209 //!                             8.2 Plugin send the parameters(Type,Params) of Construct to client through IPC package of CommandReply.
       
   210 //!                             8.3 Verify is the received IPC package is same with Construct, same Type, same Params.
       
   211 //!                             9.  Close RAnim.
       
   212 //!                             10. Destroy RAnimDll.
       
   213 //!                             11. Close RWsSession ,RWindowGroup and RWindow.
       
   214 //! @SYMTestStatus              Implemented
       
   215 //! @SYMTestPriority            High
       
   216 //! @SYMTestExpectedResults     1. RAnim Construct returns KErrNone.
       
   217 //!                             2. CommandReply received parameters are same with the parameters that used for Construct RAnim.
       
   218 //!                             3. RAnim object was closed without causing panic.
       
   219 //! @SYMTestType                CIT
       
   220     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   221         CREATE_OBJECT           RWsSession      ws
       
   222         CREATE_OBJECT           RWindowGroup    wingrp
       
   223         CREATE_OBJECT           RWindow         win
       
   224         CREATE_OBJECT           RAnimDll        animdll
       
   225         CREATE_OBJECT           RAnim           anim
       
   226         COMMAND                 ws              new
       
   227         COMMAND                 ws              Connect
       
   228         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_command03
       
   229         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_command04
       
   230         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_command05
       
   231         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_command06
       
   232         COMMAND                 win             Activate
       
   233         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-SetAutoFlush_command08
       
   234         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_Command09
       
   235         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Load_Command10
       
   236 
       
   237         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_Command11
       
   238         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_Command12
       
   239         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-CommandReply_Command13
       
   240         COMMAND                 anim            Close
       
   241 
       
   242         COMMAND                 animdll         Destroy
       
   243         COMMAND                 win             Close
       
   244         COMMAND                 wingrp          Close
       
   245         COMMAND                 ws              Close
       
   246     END_TEST_BLOCK
       
   247 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0007
       
   248 
       
   249 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0008
       
   250 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0008
       
   251 //! @SYMAPI                     RAnim::Construct(const RWindowBase{ref}, TInt, const TDesC8{ref}, const TIpcArgs{ref});
       
   252 //!                             RAnim::Destroy()
       
   253 //! @SYMAuthor                  Niandong Qiao
       
   254 //! @SYMCreationDate            10-03-2008
       
   255 //! @SYMTestCaseDesc            Construct a RAnim object with IPC arguments based on a window device and destroy server side animation object which created by CAnimDll::CreateInstanceL().
       
   256 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   257 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   258 //!                             3.  Activate the RWindow.
       
   259 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   260 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   261 //!                             6.  Create a RAnim from this animation DLL.
       
   262 //!                             7.  Construct RAnim.
       
   263 //!                             7.1 Complete construction of the RAnim with parameters(Type,Params) based on created RWindow object.
       
   264 //!                             7.2 Plugin send the parameters(Type,Params) of Construct back to client through IPC package.
       
   265 //!                             7.3 Verify is the received IPC package is same with the parameters(Type,Params) of Construct.
       
   266 //!                             8.  Destroy RAnim.
       
   267 //!                             9.  Destroy RAnimDll.
       
   268 //!                             10. Close RWsSession ,RWindowGroup and RWindow.
       
   269 //! @SYMTestStatus              Implemented
       
   270 //! @SYMTestPriority            High
       
   271 //! @SYMTestExpectedResults     1. RAnim Construct returns KErrNone.
       
   272 //!                             2. Construct received parameters are same with the parameters that sent to plugin.
       
   273 //!                             3. RAnim object was destroyed without causing panic.
       
   274 //! @SYMTestType                CIT
       
   275     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   276         CREATE_OBJECT           RWsSession      ws
       
   277         CREATE_OBJECT           RWindowGroup    wingrp
       
   278         CREATE_OBJECT           RWindow         win
       
   279         CREATE_OBJECT           RAnimDll        animdll
       
   280         CREATE_OBJECT           RAnim           anim
       
   281         COMMAND                 ws              new
       
   282         COMMAND                 ws              Connect
       
   283         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_command03
       
   284         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_command04
       
   285         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_command05
       
   286         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_command06
       
   287         COMMAND                 win             Activate
       
   288         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-SetAutoFlush_command08
       
   289         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_Command09
       
   290         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Load_Command10
       
   291 
       
   292         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_Command11
       
   293         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_Command12
       
   294         COMMAND                 anim            Destroy
       
   295 
       
   296         COMMAND                 animdll         Destroy
       
   297         COMMAND                 win             Close
       
   298         COMMAND                 wingrp          Close
       
   299         COMMAND                 ws              Close
       
   300     END_TEST_BLOCK
       
   301 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0008
       
   302 
       
   303 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0009
       
   304 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0009
       
   305 //! @SYMAPI                     RAnim::Construct(const RWsSprite{ref}, TInt, const TDesC8{ref})
       
   306 //! @SYMAuthor                  Niandong Qiao
       
   307 //! @SYMCreationDate            10-03-2008
       
   308 //! @SYMTestCaseDesc            Construct a RAnim object based on a sprite.
       
   309 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   310 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   311 //!                             3.  Activate the RWindow.
       
   312 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   313 //!                             5.  Create a RWsSprite with a window server session.
       
   314 //!                             6.  Construct the RWsSprite.
       
   315 //!                             7.  Create 4 CFbsBitmaps and load bitmaps.
       
   316 //!                             8.  Append these CFbsBitmaps to the RWsSprite.
       
   317 //!                             9.  Set RWsSprites's position.
       
   318 //!                             10. Activate the RWsSprite.
       
   319 //!                             11. Create a RAnimDll and Load an animation DLL.
       
   320 //!                             12. Create a RAnim from this animation DLL.
       
   321 //!                             13. Complete construction of the RAnim based on created RWsSprite.
       
   322 //!                             14. Retrieve last command.
       
   323 //!                             14.1 Send ECmdGetLast to plugin with CommandReply.
       
   324 //!                             14.2 Plugin send the parameters(Type,Params) of Construct to client through IPC package of CommandReply.
       
   325 //!                             14.3 Verify is the received IPC package is same with Construct, same Type, same Params.
       
   326 //!                             15. Destroy RAnim.
       
   327 //!                             16. Destroy RAnimDll.
       
   328 //!                             17. Delete 4 CFbsBitmaps.
       
   329 //!                             18. Close RWsSprite.
       
   330 //!                             19. Close RWsSession ,RWindowGroup and RWindow.
       
   331 //! @SYMTestStatus              Implemented
       
   332 //! @SYMTestPriority            High
       
   333 //! @SYMTestExpectedResults     1. RAnim Construct returns KErrNone.
       
   334 //!                             2. CommandReply received parameters are same with the parameters that used for Construct RAnim.
       
   335 //! @SYMTestType                CIT
       
   336     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   337         CREATE_OBJECT           RWsSession      ws
       
   338         CREATE_OBJECT           RWindowGroup    wingrp
       
   339         CREATE_OBJECT           RWindow         win
       
   340         CREATE_OBJECT           CFbsBitmap      mask1
       
   341         CREATE_OBJECT           CFbsBitmap      bitmap1
       
   342         CREATE_OBJECT           CFbsBitmap      bitmap2
       
   343         CREATE_OBJECT           CFbsBitmap      bitmap3
       
   344         CREATE_OBJECT           RWsSprite       sprite
       
   345         CREATE_OBJECT           RAnimDll        animdll
       
   346         CREATE_OBJECT           RAnim           anim
       
   347         COMMAND                 ws              new
       
   348         COMMAND                 ws              Connect
       
   349         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command03
       
   350         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command04
       
   351         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command05
       
   352         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command06
       
   353         COMMAND                 win             Activate
       
   354         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-SetAutoFlush_command08
       
   355         COMMAND                 sprite          new                 GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command09
       
   356         COMMAND                 sprite          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command10
       
   357         COMMAND                 mask1           new
       
   358         COMMAND                 mask1           Load                GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command12
       
   359         COMMAND                 bitmap1         new
       
   360         COMMAND                 bitmap1         Load                GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command14
       
   361         COMMAND                 sprite          AppendMember        GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command15
       
   362         COMMAND                 bitmap2         new
       
   363         COMMAND                 bitmap2         Load                GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command17
       
   364         COMMAND                 sprite          AppendMember        GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command18
       
   365         COMMAND                 bitmap3         new
       
   366         COMMAND                 bitmap3         Load                GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command20
       
   367         COMMAND                 sprite          AppendMember        GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command21
       
   368         COMMAND                 sprite          SetPosition         GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-SetPosition_command22
       
   369         COMMAND                 sprite          Activate
       
   370         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_Command24
       
   371         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_Command25
       
   372 
       
   373         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_Command26
       
   374         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_Command27
       
   375         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-CommandReply_Command28
       
   376         COMMAND                 anim            Destroy
       
   377 
       
   378         COMMAND                 animdll         Destroy
       
   379         COMMAND                 sprite          Close
       
   380         COMMAND                 mask1           ~
       
   381         COMMAND                 bitmap1         ~
       
   382         COMMAND                 bitmap2         ~
       
   383         COMMAND                 bitmap3         ~
       
   384         COMMAND                 win             Close
       
   385         COMMAND                 wingrp          Close
       
   386         COMMAND                 ws              Close
       
   387     END_TEST_BLOCK
       
   388 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0009
       
   389 
       
   390 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0010
       
   391 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0010
       
   392 //! @SYMAPI                     RAnim::Construct(const RWsSprite{ref}, TInt, const TDesC8{ref}, const TIpcArgs{ref})
       
   393 //! @SYMAuthor                  Niandong Qiao
       
   394 //! @SYMCreationDate            10-03-2008
       
   395 //! @SYMTestCaseDesc            Construct a RAnim object with IPC arguments based on a sprite.
       
   396 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   397 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   398 //!                             3.  Activate the RWindow.
       
   399 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   400 //!                             5.  Create a RWsSprite with a window server session.
       
   401 //!                             6.  Construct the RWsSprite.
       
   402 //!                             7.  Create 4 CFbsBitmaps and load bitmaps.
       
   403 //!                             8.  Append these CFbsBitmaps to the RWsSprite.
       
   404 //!                             9.  Set RWsSprites's position.
       
   405 //!                             10. Activate the RWsSprite.
       
   406 //!                             11. Create a RAnimDll and Load an animation DLL.
       
   407 //!                             12. Create a RAnim from this animation DLL.
       
   408 //!                             13. Construct RAnim.
       
   409 //!                             13.1 Complete construction of the RAnim with parameters(Type,Params) based on created RWsSprite object.
       
   410 //!                             13.2 Plugin send the parameters(Type,Params) of Construct back to client through IPC package.
       
   411 //!                             13.3 Verify is the received IPC package is same with the parameters(Type,Params) of Construct.
       
   412 //!                             14. Destroy RAnim.
       
   413 //!                             15. Destroy RAnimDll.
       
   414 //!                             16. Delete 4 CFbsBitmaps.
       
   415 //!                             17. Close RWsSprite.
       
   416 //!                             18. Close RWsSession ,RWindowGroup and RWindow.
       
   417 //! @SYMTestStatus              Implemented
       
   418 //! @SYMTestPriority            High
       
   419 //! @SYMTestExpectedResults     1. RAnim Construct returns KErrNone.
       
   420 //!                             2. Construct received parameters are same with the parameters that sent to plugin.
       
   421 //! @SYMTestType                CIT
       
   422     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   423         CREATE_OBJECT           RWsSession      ws
       
   424         CREATE_OBJECT           RWindowGroup    wingrp
       
   425         CREATE_OBJECT           RWindow         win
       
   426         CREATE_OBJECT           CFbsBitmap      mask1
       
   427         CREATE_OBJECT           CFbsBitmap      bitmap1
       
   428         CREATE_OBJECT           CFbsBitmap      bitmap2
       
   429         CREATE_OBJECT           CFbsBitmap      bitmap3
       
   430         CREATE_OBJECT           RWsSprite       sprite
       
   431         CREATE_OBJECT           RAnimDll        animdll
       
   432         CREATE_OBJECT           RAnim           anim
       
   433         COMMAND                 ws              new
       
   434         COMMAND                 ws              Connect
       
   435         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command03
       
   436         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command04
       
   437         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command05
       
   438         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command06
       
   439         COMMAND                 win             Activate
       
   440         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-SetAutoFlush_command08
       
   441         COMMAND                 sprite          new                 GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command09
       
   442         COMMAND                 sprite          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command10
       
   443         COMMAND                 mask1           new
       
   444         COMMAND                 mask1           Load                GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command12
       
   445         COMMAND                 bitmap1         new
       
   446         COMMAND                 bitmap1         Load                GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command14
       
   447         COMMAND                 sprite          AppendMember        GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command15
       
   448         COMMAND                 bitmap2         new
       
   449         COMMAND                 bitmap2         Load                GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command17
       
   450         COMMAND                 sprite          AppendMember        GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command18
       
   451         COMMAND                 bitmap3         new
       
   452         COMMAND                 bitmap3         Load                GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command20
       
   453         COMMAND                 sprite          AppendMember        GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command21
       
   454         COMMAND                 sprite          SetPosition         GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-SetPosition_command22
       
   455         COMMAND                 sprite          Activate
       
   456         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_Command24
       
   457         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_Command25
       
   458 
       
   459         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_Command26
       
   460         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_Command27
       
   461         COMMAND                 anim            Destroy
       
   462 
       
   463         COMMAND                 animdll         Destroy
       
   464         COMMAND                 sprite          Close
       
   465         COMMAND                 mask1           ~
       
   466         COMMAND                 bitmap1         ~
       
   467         COMMAND                 bitmap2         ~
       
   468         COMMAND                 bitmap3         ~
       
   469         COMMAND                 win             Close
       
   470         COMMAND                 wingrp          Close
       
   471         COMMAND                 ws              Close
       
   472     END_TEST_BLOCK
       
   473 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0010
       
   474 
       
   475 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0011
       
   476 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0011
       
   477 //! @SYMAPI                     RAnim::CommandReply(TInt)
       
   478 //! @SYMAuthor                  Niandong Qiao
       
   479 //! @SYMCreationDate            10-03-2008
       
   480 //! @SYMTestCaseDesc            Send command to plugin, then get the last received command from plugin, to verify they are same command.
       
   481 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   482 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   483 //!                             3.  Activate the RWindow.
       
   484 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   485 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   486 //!                             6.  Create a RAnim from this animation DLL.
       
   487 //!                             7.  Complete construction of the RAnim based on created RWindow.
       
   488 //!                             8.  Send ECmdTestWithoutPara to plugin by CommandReply.
       
   489 //!                             9.  Send ECmdGetLast to plugin by CommandReply with ipc, and verify is the received ipc package is same with ECmdTestWithoutPara.
       
   490 //!                             10. Destroy RAnim.
       
   491 //!                             11. Destroy RAnimDll.
       
   492 //!                             12. Close RWsSession ,RWindowGroup and RWindow.
       
   493 //! @SYMTestStatus              Implemented
       
   494 //! @SYMTestPriority            High
       
   495 //! @SYMTestExpectedResults     CommandReply returns KErrNone.
       
   496 //! @SYMTestType                CIT
       
   497     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   498         CREATE_OBJECT           RWsSession      ws
       
   499         CREATE_OBJECT           RWindowGroup    wingrp
       
   500         CREATE_OBJECT           RWindow         win
       
   501         CREATE_OBJECT           RAnimDll        animdll
       
   502         CREATE_OBJECT           RAnim           anim
       
   503         COMMAND                 ws              new
       
   504         COMMAND                 ws              Connect
       
   505         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_command03
       
   506         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_command04
       
   507         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_command05
       
   508         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_command06
       
   509         COMMAND                 win             Activate
       
   510         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-SetAutoFlush_command08
       
   511         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_Command09
       
   512         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Load_Command10
       
   513 
       
   514         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_Command11
       
   515         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_Command12
       
   516         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-CommandReply_Command13
       
   517         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-CommandReply_Command14
       
   518         COMMAND                 anim            Destroy
       
   519 
       
   520         COMMAND                 animdll         Destroy
       
   521         COMMAND                 win             Close
       
   522         COMMAND                 wingrp          Close
       
   523         COMMAND                 ws              Close
       
   524     END_TEST_BLOCK
       
   525 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0011
       
   526 
       
   527 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0012
       
   528 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0012
       
   529 //! @SYMAPI                     RAnim::CommandReply(TInt, const TPtrC8{ref})
       
   530 //! @SYMAuthor                  Niandong Qiao
       
   531 //! @SYMCreationDate            10-03-2008
       
   532 //! @SYMTestCaseDesc            Send a command and its arguments to plugin, then get the last received parameters from plugin, to verify they are same parameters.
       
   533 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   534 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   535 //!                             3.  Activate the RWindow.
       
   536 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   537 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   538 //!                             6.  Create a RAnim from this animation DLL.
       
   539 //!                             7.  Complete construction of the RAnim based on created RWindow.
       
   540 //!                             8.  Send ECmdTestWithPara and its arguments to plugin by CommandReply, and wait for a response.
       
   541 //!                             9.  Retrieve last command.
       
   542 //!                             9.1 Send ECmdGetLast to plugin with CommandReply.
       
   543 //!                             9.2 Plugin send the parameters(Opcode,Args) of first CommandReply to client through IPC package of this CommandReply.
       
   544 //!                             9.3 Verify is the received IPC package is same with the parameters(Opcode,Args) of first CommandReply.
       
   545 //!                             10. Destroy RAnim.
       
   546 //!                             11. Destroy RAnimDll.
       
   547 //!                             12. Close RWsSession ,RWindowGroup and RWindow.
       
   548 //! @SYMTestStatus              Implemented
       
   549 //! @SYMTestPriority            High
       
   550 //! @SYMTestExpectedResults     1. First CommandReply returns KErrNone.
       
   551 //!                             2. Second CommandReply received parameters are same with the parameters that used for first CommandReply.
       
   552 //! @SYMTestType                CIT
       
   553     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   554         CREATE_OBJECT           RWsSession      ws
       
   555         CREATE_OBJECT           RWindowGroup    wingrp
       
   556         CREATE_OBJECT           RWindow         win
       
   557         CREATE_OBJECT           RAnimDll        animdll
       
   558         CREATE_OBJECT           RAnim           anim
       
   559         COMMAND                 ws              new
       
   560         COMMAND                 ws              Connect
       
   561         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_command03
       
   562         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_command04
       
   563         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_command05
       
   564         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_command06
       
   565         COMMAND                 win             Activate
       
   566         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-SetAutoFlush_command08
       
   567         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_Command09
       
   568         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Load_Command10
       
   569 
       
   570         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_Command11
       
   571         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_Command12
       
   572         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-CommandReply_Command13
       
   573         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-CommandReply_Command14
       
   574         COMMAND                 anim            Destroy
       
   575 
       
   576         COMMAND                 animdll         Destroy
       
   577         COMMAND                 win             Close
       
   578         COMMAND                 wingrp          Close
       
   579         COMMAND                 ws              Close
       
   580     END_TEST_BLOCK
       
   581 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0012
       
   582 
       
   583 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0013
       
   584 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0013
       
   585 //! @SYMAPI                     RAnim::CommandReply(TInt, const TPtrC8{ref}, const TIpcArgs{ref})
       
   586 //! @SYMAuthor                  Niandong Qiao
       
   587 //! @SYMCreationDate            10-03-2008
       
   588 //! @SYMTestCaseDesc            Send a command and its arguments to plugin, then get the last received parameters from plugin, to verify they are same parameters.
       
   589 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   590 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   591 //!                             3.  Activate the RWindow.
       
   592 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   593 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   594 //!                             6.  Create a RAnim from this animation DLL.
       
   595 //!                             7.  Complete construction of the RAnim based on created RWindow.
       
   596 //!                             8.  Send a command.
       
   597 //!                             8.1 Send ECmdTestWithPara and its arguments to plugin by CommandReply.
       
   598 //!                             8.2 Plugin send the parameters(Opcode,Args) of CommandReply to client through IPC package of this CommandReply.
       
   599 //!                             8.3 Verify is the received IPC package is same with the parameters(Opcode,Args) of this CommandReply.
       
   600 //!                             9.  Destroy RAnim.
       
   601 //!                             10. Destroy RAnimDll.
       
   602 //!                             11. Close RWsSession ,RWindowGroup and RWindow.
       
   603 //! @SYMTestStatus              Implemented
       
   604 //! @SYMTestPriority            High
       
   605 //! @SYMTestExpectedResults     1. CommandReply returns KErrNone.
       
   606 //!                             2. CommandReply received parameters are same with the parameters that sent to plugin.
       
   607 //! @SYMTestType                CIT
       
   608     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   609         CREATE_OBJECT           RWsSession      ws
       
   610         CREATE_OBJECT           RWindowGroup    wingrp
       
   611         CREATE_OBJECT           RWindow         win
       
   612         CREATE_OBJECT           RAnimDll        animdll
       
   613         CREATE_OBJECT           RAnim           anim
       
   614         COMMAND                 ws              new
       
   615         COMMAND                 ws              Connect
       
   616         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_command03
       
   617         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_command04
       
   618         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_command05
       
   619         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_command06
       
   620         COMMAND                 win             Activate
       
   621         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-SetAutoFlush_command08
       
   622         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_Command09
       
   623         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Load_Command10
       
   624 
       
   625         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_Command11
       
   626         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_Command12
       
   627         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-CommandReply_Command13
       
   628         COMMAND                 anim            Destroy
       
   629 
       
   630         COMMAND                 animdll         Destroy
       
   631         COMMAND                 win             Close
       
   632         COMMAND                 wingrp          Close
       
   633         COMMAND                 ws              Close
       
   634     END_TEST_BLOCK
       
   635 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0013
       
   636 
       
   637 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0014
       
   638 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0014
       
   639 //! @SYMAPI                     RAnim::Command(TInt, const TPtrC8{ref})
       
   640 //! @SYMAuthor                  Niandong Qiao
       
   641 //! @SYMCreationDate            10-03-2008
       
   642 //! @SYMTestCaseDesc            Send a command and its arguments to plugin, then get the last received parameters from plugin, to verify they are same parameters.
       
   643 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   644 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   645 //!                             3.  Activate the RWindow.
       
   646 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   647 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   648 //!                             6.  Create a RAnim from this animation DLL.
       
   649 //!                             7.  Complete construction of the RAnim based on created RWindow.
       
   650 //!                             8.  Send ECmdTestWithPara and its arguments to plugin by Command, and returns immediately.
       
   651 //!                             9.  Retrieve last command.
       
   652 //!                             9.1 Send ECmdGetLast to plugin by CommandReply.
       
   653 //!                             9.2 Plugin send the parameters(Opcode,Args) of Command to client through IPC package of CommandReply.
       
   654 //!                             9.3 Verify is the received IPC package is same with the parameters(Opcode,Args) of Command.
       
   655 //!                             10. Destroy RAnim.
       
   656 //!                             11. Destroy RAnimDll.
       
   657 //!                             12. Close RWsSession ,RWindowGroup and RWindow.
       
   658 //! @SYMTestStatus              Implemented
       
   659 //! @SYMTestPriority            High
       
   660 //! @SYMTestExpectedResults     1. Command was sent without panic.
       
   661 //!                             2. CommandReply received parameters are same with the parameters that used for RAnim::Command.
       
   662 //! @SYMTestType                CIT
       
   663     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   664         CREATE_OBJECT           RWsSession      ws
       
   665         CREATE_OBJECT           RWindowGroup    wingrp
       
   666         CREATE_OBJECT           RWindow         win
       
   667         CREATE_OBJECT           RAnimDll        animdll
       
   668         CREATE_OBJECT           RAnim           anim
       
   669         COMMAND                 ws              new
       
   670         COMMAND                 ws              Connect
       
   671         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_command03
       
   672         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_command04
       
   673         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_command05
       
   674         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_command06
       
   675         COMMAND                 win             Activate
       
   676         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-SetAutoFlush_command08
       
   677         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_Command09
       
   678         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Load_Command10
       
   679 
       
   680         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_Command11
       
   681         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_Command12
       
   682         COMMAND                 anim            Command             GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Command_Command13
       
   683         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-CommandReply_Command14
       
   684         COMMAND                 anim            Destroy
       
   685 
       
   686         COMMAND                 animdll         Destroy
       
   687         COMMAND                 win             Close
       
   688         COMMAND                 wingrp          Close
       
   689         COMMAND                 ws              Close
       
   690     END_TEST_BLOCK
       
   691 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0014
       
   692 
       
   693 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0015
       
   694 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0015
       
   695 //! @SYMAPI                     RAnim::Command(TInt)
       
   696 //! @SYMAuthor                  Niandong Qiao
       
   697 //! @SYMCreationDate            10-03-2008
       
   698 //! @SYMTestCaseDesc            Send a command to plugin, then get the last received command from plugin, to verify they are same command.
       
   699 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   700 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   701 //!                             3.  Activate the RWindow.
       
   702 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   703 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   704 //!                             6.  Create a RAnim from this animation DLL.
       
   705 //!                             7.  Complete construction of the RAnim based on created RWindow.
       
   706 //!                             8.  Send ECmdTestWithoutPara to plugin by Command, and returns immediately.
       
   707 //!                             9.  Send ECmdGetLast to plugin by CommandReply with ipc, and verify is the received ipc package is same with ECmdTestWithoutPara.
       
   708 //!                             10. Destroy RAnim.
       
   709 //!                             12. Destroy RAnimDll.
       
   710 //!                             12. Close RWsSession ,RWindowGroup and RWindow.
       
   711 //! @SYMTestStatus              Implemented
       
   712 //! @SYMTestPriority            High
       
   713 //! @SYMTestExpectedResults     Command was sent without panic.
       
   714 //! @SYMTestType                CIT
       
   715     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   716         CREATE_OBJECT           RWsSession      ws
       
   717         CREATE_OBJECT           RWindowGroup    wingrp
       
   718         CREATE_OBJECT           RWindow         win
       
   719         CREATE_OBJECT           RAnimDll        animdll
       
   720         CREATE_OBJECT           RAnim           anim
       
   721         COMMAND                 ws              new
       
   722         COMMAND                 ws              Connect
       
   723         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_command03
       
   724         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_command04
       
   725         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_command05
       
   726         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_command06
       
   727         COMMAND                 win             Activate
       
   728         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-SetAutoFlush_command08
       
   729         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_Command09
       
   730         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Load_Command10
       
   731 
       
   732         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_Command11
       
   733         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_Command12
       
   734         COMMAND                 anim            Command             GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Command_Command13
       
   735         COMMAND                 anim            CommandReply        GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-CommandReply_Command14
       
   736         COMMAND                 anim            Destroy
       
   737 
       
   738         COMMAND                 animdll         Destroy
       
   739         COMMAND                 win             Close
       
   740         COMMAND                 wingrp          Close
       
   741         COMMAND                 ws              Close
       
   742     END_TEST_BLOCK
       
   743 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0015
       
   744 
       
   745 START_TESTCASE                  GRAPHICS-WSERV-Anim-PublicAPI-0016
       
   746 //! @SYMTestCaseID              GRAPHICS-WSERV-Anim-PublicAPI-0016
       
   747 //! @SYMAPI                     RAnim::AsyncCommandReply(TRequestStatus{ref}, TInt, const TIpcArgs{ref})
       
   748 //! @SYMAuthor                  Niandong Qiao
       
   749 //! @SYMCreationDate            10-03-2008
       
   750 //! @SYMTestCaseDesc            Sends a command and its arguments to plugin asynchronously, then get the last received parameters from plugin, to verify they are same parameters.
       
   751 //! @SYMTestActions             1.  Create and connect a RWsSession.
       
   752 //!                             2.  Create and construct RWindowGroup and RWindow.
       
   753 //!                             3.  Activate the RWindow.
       
   754 //!                             4.  SetAutoFlush to TRUE for the RWsSession.
       
   755 //!                             5.  Create a RAnimDll and Load an animation DLL.
       
   756 //!                             6.  Create a RAnim from this animation DLL.
       
   757 //!                             7.  Complete construction of the RAnim based on created RWindow.
       
   758 //!                             8.  Send ECmdTestWithoutPara to plugin by AsyncCommandReply with ipc, and verify is the received ipc package is same with ECmdTestWithoutPara.
       
   759 //!                             9.  Destroy RAnim.
       
   760 //!                             10. Destroy RAnimDll.
       
   761 //!                             11. Close RWsSession ,RWindowGroup and RWindow.
       
   762 //! @SYMTestStatus              Implemented
       
   763 //! @SYMTestPriority            High
       
   764 //! @SYMTestExpectedResults     1. Command was sent without panic.
       
   765 //!                             2. AsyncCommandReply received parameter are same with the opcode parameter that sent to plugin.
       
   766 //! @SYMTestType                CIT
       
   767     START_TEST_BLOCK            10    T_GraphicsWservAPI      \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini
       
   768         CREATE_OBJECT           RWsSession      ws
       
   769         CREATE_OBJECT           RWindowGroup    wingrp
       
   770         CREATE_OBJECT           RWindow         win
       
   771         CREATE_OBJECT           RAnimDll        animdll
       
   772         CREATE_OBJECT           RAnim           anim
       
   773         COMMAND                 ws              new
       
   774         COMMAND                 ws              Connect
       
   775         COMMAND                 wingrp          new                 GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_command03
       
   776         COMMAND                 wingrp          Construct           GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_command04
       
   777         COMMAND                 win             new                 GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_command05
       
   778         COMMAND                 win             Construct           GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_command06
       
   779         COMMAND                 win             Activate
       
   780         COMMAND                 ws              SetAutoFlush        GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-SetAutoFlush_command08
       
   781         COMMAND                 animdll         new                 GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_Command09
       
   782         COMMAND                 animdll         Load                GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Load_Command10
       
   783 
       
   784         COMMAND                 anim            new                 GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_Command11
       
   785         COMMAND                 anim            Construct           GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_Command12
       
   786         COMMAND                 anim            AsyncCommandReply   GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-AsyncCommandReply_Command13
       
   787         OUTSTANDING
       
   788         COMMAND                 anim            Destroy
       
   789 
       
   790         COMMAND                 animdll         Destroy
       
   791         COMMAND                 win             Close
       
   792         COMMAND                 wingrp          Close
       
   793         COMMAND                 ws              Close
       
   794     END_TEST_BLOCK
       
   795 END_TESTCASE                    GRAPHICS-WSERV-Anim-PublicAPI-0016
       
   796 
       
   797 
       
   798