graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimSpriteFunctions-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-AnimSpriteFunctions-PublicApi
       
    18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the MAnimSpriteFunctions 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 // MAnimSpriteFunctions 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 
       
    35 
       
    36 LOAD_SUITE      T_GraphicsWservAPI
       
    37 DELAY           1000
       
    38 
       
    39 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001
       
    40 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001
       
    41 //!@SYMAPI                   MAnimSpriteFunctions::GetSpriteMember(TInt)
       
    42 //!@SYMAuthor                Yue Zhang
       
    43 //!@SYMCreationDate          11-04-2008
       
    44 //!@SYMTestCaseDesc          Send command to animation DLL to call GetSpriteMember function, and then check if the spritenumber is the
       
    45 //!                          sending one.
       
    46 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
    47 //!                          2.  Create and construct RWindowGroup and RWindow.
       
    48 //!                          8.  Create RWsSprite with RWsSession.
       
    49 //!                          9.  Construct RWsSprite.
       
    50 //!                          10. Create a CFbsBitmap object as mask.
       
    51 //!                          11. Create 2 CFbsBitmap object and load bitmap.
       
    52 //!                          12. Append these CFbsBitmaps to the RWsSprite.
       
    53 //!                          13. Set RWsSprites's position.
       
    54 //!                          14. Activate the RWsSprite.
       
    55 //!                          15. Create and load the animation DLL.
       
    56 //!                          16. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
    57 //!                          17. Send ECmdSpriteGetSpriteMember command to plugin Dll with a given index number via CommandReply.
       
    58 //!                          17.1 Plugin Dll return the given number's offset.
       
    59 //!                          17.2 Wrapper check if the returned offset value equals to the sending one .
       
    60 //!                          18. Close and destroy all the related objects.
       
    61 //!@SYMTestStatus            Implemented
       
    62 //!@SYMTestPriority          High
       
    63 //!@SYMTestExpectedResults    the returned offset value in step 17 should be same as the given value in the step 6.
       
    64 //!@SYMTestType              CIT
       
    65     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
    66         CREATE_OBJECT              RWsSession               ws
       
    67         CREATE_OBJECT              RWindowGroup             wingp
       
    68         CREATE_OBJECT              RWindow                  win
       
    69         CREATE_OBJECT              RWsSprite                sprite
       
    70         CREATE_OBJECT              RAnimDll                 animdll
       
    71         CREATE_OBJECT              RAnim                    anim
       
    72         CREATE_OBJECT              RAnimForMClass           animformc
       
    73         CREATE_OBJECT              CFbsBitmap               mask1
       
    74         CREATE_OBJECT              CFbsBitmap               bitmap1
       
    75         CREATE_OBJECT              CFbsBitmap               bitmap2
       
    76         COMMAND                    ws                       new                      
       
    77         COMMAND                    ws                       Connect                  
       
    78         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command03
       
    79         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command04
       
    80         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command05
       
    81         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command06
       
    82         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command07
       
    83         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command08
       
    84         COMMAND                    mask1                    new                      
       
    85         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command10
       
    86         COMMAND                    bitmap1                  new                      
       
    87         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command12
       
    88         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-AppendMember_Command13
       
    89         COMMAND                    bitmap2                  new                      
       
    90         COMMAND                    bitmap2                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command15
       
    91         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-AppendMember_Command16
       
    92         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-SetPosition_Command17
       
    93         COMMAND                    sprite                   Activate
       
    94         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command19
       
    95         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command20
       
    96         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command21
       
    97         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command22
       
    98         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command23
       
    99         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-CommandReply_Command24
       
   100         COMMAND                    animformc                Destroy                  
       
   101         COMMAND                    anim                     Destroy                  
       
   102         COMMAND                    sprite                   Close                    
       
   103         COMMAND                    mask1                    ~                        
       
   104         COMMAND                    bitmap1                  ~                        
       
   105         COMMAND                    bitmap2                  ~                        
       
   106         COMMAND                    animdll                  Destroy                  
       
   107         COMMAND                    win                      Close                    
       
   108         COMMAND                    wingp                    Close                    
       
   109         COMMAND                    ws                       Close                    
       
   110     END_TEST_BLOCK
       
   111 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001
       
   112 
       
   113 
       
   114 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002
       
   115 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002
       
   116 //!@SYMAPI                   MAnimSpriteFunctions::Activate(TBool)
       
   117 //!@SYMAuthor                Yue Zhang
       
   118 //!@SYMCreationDate          11-04-2008
       
   119 //!@SYMTestCaseDesc          Send command to animation DLL to call Active() to turn a sprite on , then send the command with turn off paramter.
       
   120 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   121 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   122 //!                          3.  Set required display mode of RWindow object;
       
   123 //!                          4.  Create CWsScreenDevice object and construct it;
       
   124 //!                          5.  Set background color of RWindow object.
       
   125 //!                          6.  Active the RWindow object.
       
   126 //!                          7.  Redraw the RWindow object.
       
   127 //!                          8.  Create RWsSprite with RWsSession.
       
   128 //!                          9.  Construct RWsSprite.
       
   129 //!                          10. Create a CFbsBitmap object as mask.
       
   130 //!                          11. Create a CFbsBitmap object and load bitmap.
       
   131 //!                          12. Append the CFbsBitmaps to the RWsSprite.
       
   132 //!                          13. Set RWsSprites's position.
       
   133 //!                          14. Activate the RWsSprite.
       
   134 //!                          15. Create and load the animation DLL.
       
   135 //!                          16. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   136 //!                          17.Send command ECmdSpriteActivate with EFalse to plugin Dll via CommandReply.
       
   137 //!                          18.Use ScreenDevice object to compare the sprite rectangle with a blank rectangle.
       
   138 //!                          19.Send command ECmdSpriteActivate with ETrue to plugin Dll via CommandReply.
       
   139 //!                          20.Use ScreenDevice object to compare the sprite rectangle with a blank rectangle.
       
   140 //!                          21.Close and destroy all the related objects.
       
   141 //!@SYMTestStatus            Implemented
       
   142 //!@SYMTestPriority          High
       
   143 //!@SYMTestExpectedResults    1.In step 18, the compare result should be same because the sprite object has been turn off.
       
   144 //!                          2.In step 20, the compare result should not be same because the sprite object has been turn on.
       
   145 //!@SYMTestType              CIT
       
   146     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   147         CREATE_OBJECT              RWsSession               ws
       
   148         CREATE_OBJECT              RWindowGroup             wingp
       
   149         CREATE_OBJECT              RWindow                  win
       
   150         CREATE_OBJECT              RWsSprite                sprite
       
   151         CREATE_OBJECT              RAnimDll                 animdll
       
   152         CREATE_OBJECT              RAnim                    anim
       
   153         CREATE_OBJECT              RAnimForMClass           animformc
       
   154         CREATE_OBJECT              CWsScreenDevice          scrdev
       
   155         CREATE_OBJECT              CFbsBitmap               mask1
       
   156         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   157         COMMAND                    ws                       new                      
       
   158         COMMAND                    ws                       Connect                  
       
   159         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command03
       
   160         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command04
       
   161         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command05
       
   162         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command06
       
   163         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command07
       
   164         COMMAND                    scrdev                   Construct                
       
   165         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetRequiredDisplayMode_Command09
       
   166         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetBackgroundColor_Command10
       
   167         COMMAND                    win                      Activate                 
       
   168         COMMAND                    win                      BeginRedraw              
       
   169         COMMAND                    win                      EndRedraw                
       
   170         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command14
       
   171         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command15
       
   172         COMMAND                    mask1                    new                      
       
   173         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command17
       
   174         COMMAND                    bitmap1                  new                      
       
   175         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command19
       
   176         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-AppendMember_Command20
       
   177         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetPosition_Command21
       
   178         COMMAND                    sprite                   Activate                 
       
   179         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command23
       
   180         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command24
       
   181         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command25
       
   182         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command26
       
   183         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command27
       
   184         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-CommandReply_Command28
       
   185         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-RectCompare_Command29
       
   186         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-CommandReply_Command30
       
   187         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-RectCompare_Command31
       
   188         COMMAND                    animformc                Destroy                  
       
   189         COMMAND                    anim                     Destroy                  
       
   190         COMMAND                    sprite                   Close                    
       
   191         COMMAND                    mask1                    ~                        
       
   192         COMMAND                    bitmap1                  ~                        
       
   193         COMMAND                    animdll                  Destroy                  
       
   194         COMMAND                    scrdev                   ~                        
       
   195         COMMAND                    win                      Close                    
       
   196         COMMAND                    wingp                    Close                    
       
   197         COMMAND                    ws                       Close                    
       
   198     END_TEST_BLOCK
       
   199 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002
       
   200 
       
   201 
       
   202 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003
       
   203 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003
       
   204 //!@SYMAPI                   MAnimSpriteFunctions::SetPosition(const TPoint)
       
   205 //!@SYMAuthor                Yue Zhangy
       
   206 //!@SYMCreationDate          11-04-2008
       
   207 //!@SYMTestCaseDesc          Send command to animation DLL to call SetPosition to move the sprite object.
       
   208 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   209 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   210 //!                          3.  Set required display mode of RWindow object;
       
   211 //!                          4.  Create CWsScreenDevice object and construct it;
       
   212 //!                          5.  Set background color of RWindow object.
       
   213 //!                          6.  Active the RWindow object.
       
   214 //!                          7.  Redraw the RWindow object.
       
   215 //!                          8.  Create RWsSprite with RWsSession.
       
   216 //!                          9.  Construct RWsSprite.
       
   217 //!                          10. Create a CFbsBitmap object as mask.
       
   218 //!                          11. Create a CFbsBitmap object and load bitmap.
       
   219 //!                          12. Append the CFbsBitmaps to the RWsSprite.
       
   220 //!                          13. Set RWsSprites's position.
       
   221 //!                          14. Activate the RWsSprite.
       
   222 //!                          15. Create and load the animation DLL.
       
   223 //!                          16. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   224 //!                          17. Use ScreenDevice object to compare the sprite rectangle with a blank rectangle.
       
   225 //!                          18. Send ECmdSpriteSetPosition command to plugin Dll with a given position via CommandReply.
       
   226 //!                          19. Use ScreenDevice object to compare the previous position with a blank rectangle.
       
   227 //!                          20. Use ScreenDevice object to compare the new position with a blank rectangle.
       
   228 //!                          21. Close and destroy all the related objects.
       
   229 //!@SYMTestStatus            Implemented
       
   230 //!@SYMTestPriority          High
       
   231 //!@SYMTestExpectedResults    1.  In step 17, the compare result should not be same because the sprite object has been drawn.
       
   232 //!                          2.  In step 19, the compare result should be same because the sprite object has been moved to other place.
       
   233 //!                          3.  In step 20, the compare result should not be same because the sprite object has been moved here.
       
   234 //!@SYMTestType              CIT
       
   235     START_TEST_BLOCK          200          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   236         CREATE_OBJECT              RWsSession               ws
       
   237         CREATE_OBJECT              RWindowGroup             wingp
       
   238         CREATE_OBJECT              RWindow                  win
       
   239         CREATE_OBJECT              RWsSprite                sprite
       
   240         CREATE_OBJECT              RAnimDll                 animdll
       
   241         CREATE_OBJECT              RAnim                    anim
       
   242         CREATE_OBJECT              RAnimForMClass           animformc
       
   243         CREATE_OBJECT              CWsScreenDevice          scrdev
       
   244         CREATE_OBJECT              CFbsBitmap               mask1
       
   245         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   246         COMMAND                    ws                       new                      
       
   247         COMMAND                    ws                       Connect                  
       
   248         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command03
       
   249         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command04
       
   250         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command05
       
   251         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command06
       
   252         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command07
       
   253         COMMAND                    scrdev                   Construct                
       
   254         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetRequiredDisplayMode_Command09
       
   255         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetBackgroundColor_Command10
       
   256         COMMAND                    win                      Activate                 
       
   257         COMMAND                    win                      BeginRedraw              
       
   258         COMMAND                    win                      EndRedraw                
       
   259         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command14
       
   260         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command15
       
   261         COMMAND                    mask1                    new                      
       
   262         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command17
       
   263         COMMAND                    bitmap1                  new                      
       
   264         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command19
       
   265         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-AppendMember_Command20
       
   266         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetPosition_Command21
       
   267         COMMAND                    sprite                   Activate                 
       
   268         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command23
       
   269         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command24
       
   270         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command25
       
   271         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command26
       
   272         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command27
       
   273         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command28
       
   274         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-CommandReply_Command29
       
   275         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command30
       
   276         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command31
       
   277         COMMAND                    animformc                Destroy                  
       
   278         COMMAND                    anim                     Destroy                  
       
   279         COMMAND                    sprite                   Close                    
       
   280         COMMAND                    mask1                    ~                        
       
   281         COMMAND                    bitmap1                  ~                        
       
   282         COMMAND                    animdll                  Destroy                  
       
   283         COMMAND                    scrdev                   ~                        
       
   284         COMMAND                    win                      Close                    
       
   285         COMMAND                    wingp                    Close                    
       
   286         COMMAND                    ws                       Close                    
       
   287     END_TEST_BLOCK
       
   288 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003
       
   289 
       
   290 
       
   291 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004
       
   292 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004
       
   293 //!@SYMAPI                   MAnimSpriteFunctions::SpriteCanBeSeen()
       
   294 //!@SYMAuthor                Yue Zhang
       
   295 //!@SYMCreationDate          11-04-2008
       
   296 //!@SYMTestCaseDesc          Send command to animation DLL to call SpriteCanBeSeen() to check the function.
       
   297 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   298 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   299 //!                          3.  Set required display mode of RWindow object;
       
   300 //!                          4.  Create CWsScreenDevice object and construct it;
       
   301 //!                          5.  Set background color of RWindow object.
       
   302 //!                          6.  Active the RWindow object.
       
   303 //!                          7.  Redraw the RWindow object.
       
   304 //!                          8.  Create RWsSprite with RWsSession.
       
   305 //!                          9.  Construct RWsSprite.
       
   306 //!                          10. Create a CFbsBitmap object as mask.
       
   307 //!                          11. Create a CFbsBitmap object and load bitmap.
       
   308 //!                          12. Append the CFbsBitmaps to the RWsSprite.
       
   309 //!                          13. Set RWsSprites's position.
       
   310 //!                          14. Activate the RWsSprite.
       
   311 //!                          15. Create and load the animation DLL.
       
   312 //!                          16. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   313 //!                          17. Send ECmdSpriteActive command with EFalse to plugin Dll via CommandReply.
       
   314 //!                          18. Use ScreenDevice object to compare the sprite rectangle with a blank rectangle.
       
   315 //!                          19. Send ECmdSpriteCanBeSeen command to plugin Dll via CommandReply.
       
   316 //!                          19.1 The Wrapper check if the result equals to the expected (False) .If not ,set this case failed.
       
   317 //!                          20. Send ECmdSpriteActive command with ETrue to plugin Dll via CommandReply.
       
   318 //!                          21. Use ScreenDevice object to compare the sprite rectangle with a blank rectangle.
       
   319 //!                          22. Send ECmdSpriteCanBeSeen commmand to plugin Dll via CommandReply.
       
   320 //!                          22.1 The Wrapper check if the result equals to the expected(ETrue). If not ,set this case failed.
       
   321 //!                          23. Close and destroy all the related objects.
       
   322 //!@SYMTestStatus            Implemented
       
   323 //!@SYMTestPriority          High
       
   324 //!@SYMTestExpectedResults    1.  In step 18, the compare result should be same because the sprite object has been turn off.
       
   325 //!                          2.  In step 19, return value should be false because the sprite object has been turn off.
       
   326 //!                          3.  In step 21, the compare result should not be same because the sprite object has been turn on.
       
   327 //!                          4.  In step 22, eturn value should be true because the sprite object has been turn on.
       
   328 //!@SYMTestType              CIT
       
   329     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   330         CREATE_OBJECT              RWsSession               ws
       
   331         CREATE_OBJECT              RWindowGroup             wingp
       
   332         CREATE_OBJECT              RWindow                  win
       
   333         CREATE_OBJECT              RWsSprite                sprite
       
   334         CREATE_OBJECT              RAnimDll                 animdll
       
   335         CREATE_OBJECT              RAnim                    anim
       
   336         CREATE_OBJECT              RAnimForMClass           animformc
       
   337         CREATE_OBJECT              CWsScreenDevice          scrdev
       
   338         CREATE_OBJECT              CFbsBitmap               mask1
       
   339         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   340         COMMAND                    ws                       new                      
       
   341         COMMAND                    ws                       Connect                  
       
   342         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command03
       
   343         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command04
       
   344         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command05
       
   345         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command06
       
   346         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command07
       
   347         COMMAND                    scrdev                   Construct                
       
   348         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetRequiredDisplayMode_Command09
       
   349         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetBackgroundColor_Command10
       
   350         COMMAND                    win                      Activate                 
       
   351         COMMAND                    win                      BeginRedraw              
       
   352         COMMAND                    win                      EndRedraw                
       
   353         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command14
       
   354         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command15
       
   355         COMMAND                    mask1                    new                      
       
   356         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command17
       
   357         COMMAND                    bitmap1                  new                      
       
   358         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command19
       
   359         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-AppendMember_Command20
       
   360         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetPosition_Command21
       
   361         COMMAND                    sprite                   Activate                 
       
   362         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command23
       
   363         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command24
       
   364         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command25
       
   365         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command26
       
   366         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command27
       
   367         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command28
       
   368         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-RectCompare_Command29
       
   369         //!COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command30
       
   370         //!COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command31
       
   371         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-RectCompare_Command32
       
   372         //!COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command33
       
   373         COMMAND                    animformc                Destroy                  
       
   374         COMMAND                    anim                     Destroy                  
       
   375         COMMAND                    sprite                   Close                    
       
   376         COMMAND                    mask1                    ~                        
       
   377         COMMAND                    bitmap1                  ~                        
       
   378         COMMAND                    animdll                  Destroy                  
       
   379         COMMAND                    scrdev                   ~                        
       
   380         COMMAND                    win                      Close                    
       
   381         COMMAND                    wingp                    Close                    
       
   382         COMMAND                    ws                       Close                    
       
   383     END_TEST_BLOCK
       
   384 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004
       
   385 
       
   386 
       
   387 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005
       
   388 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005
       
   389 //!@SYMAPI                   MAnimSpriteFunctions::SpriteCanBeSeen()
       
   390 //!@SYMAuthor                Yue Zhang
       
   391 //!@SYMCreationDate          11-04-2008
       
   392 //!@SYMTestCaseDesc          Using a RWindow to cover the sprite object, check the return value of SpriteCanBeSeen().
       
   393 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   394 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   395 //!                          3.  Set required display mode of RWindow object;
       
   396 //!                          4.  Set background color of RWindow object.
       
   397 //!                          5.  Active the RWindow object.
       
   398 //!                          6.  Redraw the RWindow object.
       
   399 //!                          7.  Create RWsSprite with RWsSession.
       
   400 //!                          8.  Construct RWsSprite.
       
   401 //!                          9.  Create a CFbsBitmap object as mask.
       
   402 //!                          10. Create a CFbsBitmap object and load bitmap.
       
   403 //!                          11. Append these CFbsBitmaps to the RWsSprite.
       
   404 //!                          12. Set RWsSprites's position.
       
   405 //!                          13. Activate the RWsSprite.
       
   406 //!                          14. Create and load the animation DLL.
       
   407 //!                          15. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   408 //!                          16. Send ECmdSpriteCanBeSeen command to plugin Dll via CommandReply.
       
   409 //!                          16.1 The Wrapper check if the result equals to the expected (True) .If not ,set this case failed.
       
   410 //!                          17. Create another RWindow object.
       
   411 //!                          18. Set required display mode of the 2nd RWindow object;
       
   412 //!                          19. Set background color of the 2nd RWindow object.
       
   413 //!                          20. Active the 2nd RWindow object.
       
   414 //!                          21. Redraw the 2nd RWindow object.
       
   415 //!                          22. Send ECmdSpriteCanBeSeen command to plugin Dll via CommandReply.
       
   416 //!                          22.1 The Wrapper check if the result equals to the expected (False) .If not ,set this case failed.
       
   417 //!                          23. Close and destroy all the related objects.
       
   418 //!@SYMTestStatus            Implemented
       
   419 //!@SYMTestPriority          High
       
   420 //!@SYMTestExpectedResults    1.  In step 16, return value should be true because the sprite object has been shown.
       
   421 //!                          2.  In step 22, return value should be false because the sprite object has been covered.
       
   422 //!@SYMTestType              CIT
       
   423     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   424         CREATE_OBJECT              RWsSession               ws
       
   425         CREATE_OBJECT              RWindowGroup             wingp
       
   426         CREATE_OBJECT              RWindow                  win
       
   427         CREATE_OBJECT              RWindow                  win2
       
   428         CREATE_OBJECT              RWsSprite                sprite
       
   429         CREATE_OBJECT              RAnimDll                 animdll
       
   430         CREATE_OBJECT              RAnim                    anim
       
   431         CREATE_OBJECT              RAnimForMClass           animformc
       
   432         CREATE_OBJECT              CFbsBitmap               mask1
       
   433         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   434         COMMAND                    ws                       new                      
       
   435         COMMAND                    ws                       Connect                  
       
   436         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command03
       
   437         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command04
       
   438         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command05
       
   439         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command06
       
   440         COMMAND                    win                      SetRequiredDisplayMode          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetRequiredDisplayMode_Command09
       
   441         COMMAND                    win                      SetBackgroundColor          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetBackgroundColor_Command10
       
   442         COMMAND                    win                      Activate                 
       
   443         COMMAND                    win                      BeginRedraw              
       
   444         COMMAND                    win                      EndRedraw                
       
   445         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command14
       
   446         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command15
       
   447         COMMAND                    mask1                    new                      
       
   448         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command17
       
   449         COMMAND                    bitmap1                  new                      
       
   450         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command19
       
   451         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-AppendMember_Command20
       
   452         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetPosition_Command21
       
   453         COMMAND                    sprite                   Activate                 
       
   454         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command23
       
   455         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command24
       
   456         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command25
       
   457         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command26
       
   458         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command27
       
   459         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-CommandReply_Command28
       
   460         COMMAND                    win2                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command29
       
   461         COMMAND                    win2                     Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command30
       
   462         COMMAND                    win2                     SetRequiredDisplayMode          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetRequiredDisplayMode_Command31
       
   463         COMMAND                    win2                     SetBackgroundColor          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetBackgroundColor_Command32
       
   464         COMMAND                    win2                     Activate                 
       
   465         COMMAND                    win2                     BeginRedraw              
       
   466         COMMAND                    win2                     EndRedraw                
       
   467         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-CommandReply_Command36
       
   468         COMMAND                    animformc                Destroy                  
       
   469         COMMAND                    anim                     Destroy                  
       
   470         COMMAND                    sprite                   Close                    
       
   471         COMMAND                    mask1                    ~                        
       
   472         COMMAND                    bitmap1                  ~                        
       
   473         COMMAND                    animdll                  Destroy                  
       
   474         COMMAND                    win                      Close                    
       
   475         COMMAND                    win2                     Close                    
       
   476         COMMAND                    wingp                    Close                    
       
   477         COMMAND                    ws                       Close                    
       
   478     END_TEST_BLOCK
       
   479 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005
       
   480 
       
   481 
       
   482 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006
       
   483 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006
       
   484 //!@SYMAPI                   MAnimSpriteFunctions::UpdateMember(TInt, const TRect, TBool)
       
   485 //!@SYMAuthor                Yue Zhang
       
   486 //!@SYMCreationDate          11-04-2008
       
   487 //!@SYMTestCaseDesc          Send command to animation DLL to call Update function.
       
   488 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   489 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   490 //!                          3.  Create RWsSprite with RWsSession.
       
   491 //!                          4.  Construct RWsSprite.
       
   492 //!                          5.  Create a CFbsBitmap object as mask.
       
   493 //!                          6.  Create 2 CFbsBitmap object and load bitmap.
       
   494 //!                          7.  Append these CFbsBitmaps to the RWsSprite.
       
   495 //!                          8.  Set RWsSprites's position.
       
   496 //!                          9.  Activate the RWsSprite.
       
   497 //!                          10. Create and load the animation DLL.
       
   498 //!                          11. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   499 //!                          12. Send ECmdSpriteUpdateMember command to plugin Dll with a given index number and rect via CommandReply.
       
   500 //!                          12.1 Plugin Dll update the given rect at the given member.
       
   501 //!                          13. Close and destroy all the related objects.
       
   502 //!@SYMTestStatus            Implemented
       
   503 //!@SYMTestPriority          High
       
   504 //!@SYMTestExpectedResults    Update is executed successfully.
       
   505 //!@SYMTestType              CIT
       
   506     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   507         CREATE_OBJECT              RWsSession               ws
       
   508         CREATE_OBJECT              RWindowGroup             wingp
       
   509         CREATE_OBJECT              RWindow                  win
       
   510         CREATE_OBJECT              RWsSprite                sprite
       
   511         CREATE_OBJECT              RAnimDll                 animdll
       
   512         CREATE_OBJECT              RAnim                    anim
       
   513         CREATE_OBJECT              RAnimForMClass           animformc
       
   514         CREATE_OBJECT              CFbsBitmap               mask1
       
   515         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   516         CREATE_OBJECT              CFbsBitmap               bitmap2
       
   517         COMMAND                    ws                       new                      
       
   518         COMMAND                    ws                       Connect                  
       
   519         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command03
       
   520         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command04
       
   521         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command05
       
   522         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command06
       
   523         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command07
       
   524         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command08
       
   525         COMMAND                    mask1                    new                      
       
   526         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command10
       
   527         COMMAND                    bitmap1                  new                      
       
   528         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command12
       
   529         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-AppendMember_Command13
       
   530         COMMAND                    bitmap2                  new                      
       
   531         COMMAND                    bitmap2                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command15
       
   532         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-AppendMember_Command16
       
   533         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-SetPosition_Command17
       
   534         COMMAND                    sprite                   Activate                 
       
   535         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command19
       
   536         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command20
       
   537         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command21
       
   538         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command22
       
   539         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command23
       
   540         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-CommandReply_Command24
       
   541         COMMAND                    animformc                Destroy                  
       
   542         COMMAND                    anim                     Destroy                  
       
   543         COMMAND                    sprite                   Close                    
       
   544         COMMAND                    mask1                    ~                        
       
   545         COMMAND                    bitmap1                  ~                        
       
   546         COMMAND                    bitmap2                  ~                        
       
   547         COMMAND                    animdll                  Destroy                  
       
   548         COMMAND                    win                      Close                    
       
   549         COMMAND                    wingp                    Close                    
       
   550         COMMAND                    ws                       Close                    
       
   551     END_TEST_BLOCK
       
   552 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006
       
   553 
       
   554 
       
   555 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007
       
   556 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007
       
   557 //!@SYMAPI                   MAnimSpriteFunctions::UpdateMember(TInt, const TRect, TBool)
       
   558 //!@SYMAuthor                Yue Zhang
       
   559 //!@SYMCreationDate          11-04-2008
       
   560 //!@SYMTestCaseDesc          Send command to animation DLL to call Update function.Each CFbsBitmap was constructed by EDrawModePEN mode and when update the sprite object, set the aFullUpdate as EFalse.
       
   561 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   562 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   563 //!                          3.  Create RWsSprite with RWsSession.
       
   564 //!                          4.  Construct RWsSprite.
       
   565 //!                          5.  Create a CFbsBitmap object as mask.
       
   566 //!                          6.  Create 2 CFbsBitmap object and load bitmap.
       
   567 //!                          7.  Append these CFbsBitmaps to the RWsSprite.
       
   568 //!                          8.  Set RWsSprites's position.
       
   569 //!                          9.  Activate the RWsSprite.
       
   570 //!                          10. Create and load the animation DLL.
       
   571 //!                          11. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   572 //!                          12. Send ECmdSpriteUpdateMember command to plugin Dll with a given index number and rect via CommandReply.
       
   573 //!                          12.1 Plugin Dll update the given rect at the given member.
       
   574 //!                          13. Close and destroy all the related objects.
       
   575 //!@SYMTestStatus            Implemented
       
   576 //!@SYMTestPriority          High
       
   577 //!@SYMTestExpectedResults    Update is executed successfully.
       
   578 //!@SYMTestType              CIT
       
   579     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   580         CREATE_OBJECT              RWsSession               ws
       
   581         CREATE_OBJECT              RWindowGroup             wingp
       
   582         CREATE_OBJECT              RWindow                  win
       
   583         CREATE_OBJECT              RWsSprite                sprite
       
   584         CREATE_OBJECT              RAnimDll                 animdll
       
   585         CREATE_OBJECT              RAnim                    anim
       
   586         CREATE_OBJECT              RAnimForMClass           animformc
       
   587         CREATE_OBJECT              CFbsBitmap               mask1
       
   588         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   589         CREATE_OBJECT              CFbsBitmap               bitmap2
       
   590         COMMAND                    ws                       new                      
       
   591         COMMAND                    ws                       Connect                  
       
   592         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command03
       
   593         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command04
       
   594         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command05
       
   595         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command06
       
   596         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command07
       
   597         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command08
       
   598         COMMAND                    mask1                    new                      
       
   599         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command10
       
   600         COMMAND                    bitmap1                  new                      
       
   601         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command12
       
   602         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-AppendMember_Command13
       
   603         COMMAND                    bitmap2                  new                      
       
   604         COMMAND                    bitmap2                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command15
       
   605         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-AppendMember_Command16
       
   606         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-SetPosition_Command17
       
   607         COMMAND                    sprite                   Activate                 
       
   608         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command19
       
   609         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command20
       
   610         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command21
       
   611         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command22
       
   612         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command23
       
   613         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-CommandReply_Command24
       
   614         COMMAND                    animformc                Destroy                  
       
   615         COMMAND                    anim                     Destroy                  
       
   616         COMMAND                    sprite                   Close                    
       
   617         COMMAND                    mask1                    ~                        
       
   618         COMMAND                    bitmap1                  ~                        
       
   619         COMMAND                    bitmap2                  ~                        
       
   620         COMMAND                    animdll                  Destroy                  
       
   621         COMMAND                    win                      Close                    
       
   622         COMMAND                    wingp                    Close                    
       
   623         COMMAND                    ws                       Close                    
       
   624     END_TEST_BLOCK
       
   625 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007
       
   626 
       
   627 
       
   628 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008
       
   629 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008
       
   630 //!@SYMAPI                   MAnimSpriteFunctions::SizeChangedL()
       
   631 //!@SYMAuthor                Yue Zhang
       
   632 //!@SYMCreationDate          11-04-2008
       
   633 //!@SYMTestCaseDesc          Send command to animation DLL to call SizeChangeL function. After the member enlarge the size, there isn't panic occurs.
       
   634 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   635 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   636 //!                          3.  Create RWsSprite with RWsSession.
       
   637 //!                          4.  Construct RWsSprite.
       
   638 //!                          5.  Create a CFbsBitmap object as mask.
       
   639 //!                          6.  Resize the mask to enlarge it.
       
   640 //!                          7.  Create 2 CFbsBitmap object and load bitmap.
       
   641 //!                          8.  Append these CFbsBitmaps to the RWsSprite.
       
   642 //!                          9.  Set RWsSprites's position.
       
   643 //!                          10. Activate the RWsSprite.
       
   644 //!                          11. Create and load the animation DLL.
       
   645 //!                          12. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   646 //!                          13. resize a CFbsBitmap object to enlarge it.
       
   647 //!                          14. Send ECmdSpriteSizeChange command to plugin Dll via CommandReply.
       
   648 //!                          14.1 plugin Dll call the SizeChangeL function.
       
   649 //!                          15. Close and destroy all the related objects.
       
   650 //!@SYMTestStatus            Implemented
       
   651 //!@SYMTestPriority          High
       
   652 //!@SYMTestExpectedResults    Sizechange function is executed successfully.
       
   653 //!@SYMTestType              CIT
       
   654     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   655         CREATE_OBJECT              RWsSession               ws
       
   656         CREATE_OBJECT              RWindowGroup             wingp
       
   657         CREATE_OBJECT              RWindow                  win
       
   658         CREATE_OBJECT              RWsSprite                sprite
       
   659         CREATE_OBJECT              RAnimDll                 animdll
       
   660         CREATE_OBJECT              RAnim                    anim
       
   661         CREATE_OBJECT              RAnimForMClass           animformc
       
   662         CREATE_OBJECT              CFbsBitmap               mask1
       
   663         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   664         CREATE_OBJECT              CFbsBitmap               bitmap2
       
   665         COMMAND                    ws                       new                      
       
   666         COMMAND                    ws                       Connect                  
       
   667         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command03
       
   668         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command04
       
   669         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command05
       
   670         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command06
       
   671         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command07
       
   672         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command08
       
   673         COMMAND                    mask1                    new                      
       
   674         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command10
       
   675         COMMAND                    mask1                    Resize                   GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Resize_Command11
       
   676         COMMAND                    bitmap1                  new                      
       
   677         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command13
       
   678         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-AppendMember_Command14
       
   679         COMMAND                    bitmap2                  new                      
       
   680         COMMAND                    bitmap2                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command16
       
   681         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-AppendMember_Command17
       
   682         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-SetPosition_Command18
       
   683         COMMAND                    sprite                   Activate                 
       
   684         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command20
       
   685         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command21
       
   686         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command22
       
   687         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command23
       
   688         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command24
       
   689         COMMAND                    bitmap1                  Resize                   GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Resize_Command25
       
   690         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-CommandReply_Command26
       
   691         COMMAND                    animformc                Destroy                  
       
   692         COMMAND                    anim                     Destroy                  
       
   693         COMMAND                    sprite                   Close                    
       
   694         COMMAND                    mask1                    ~                        
       
   695         COMMAND                    bitmap1                  ~                        
       
   696         COMMAND                    bitmap2                  ~                        
       
   697         COMMAND                    animdll                  Destroy                  
       
   698         COMMAND                    win                      Close                    
       
   699         COMMAND                    wingp                    Close                    
       
   700         COMMAND                    ws                       Close                    
       
   701     END_TEST_BLOCK
       
   702 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008
       
   703 
       
   704 
       
   705 START_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009
       
   706 //!@SYMTestCaseID            GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009
       
   707 //!@SYMAPI                   MAnimSpriteFunctions::SizeChangedL()
       
   708 //!@SYMAuthor                Yue Zhang
       
   709 //!@SYMCreationDate          11-04-2008
       
   710 //!@SYMTestCaseDesc          Send command to animation DLL to call SizeChangeL function. Check if it sets the currently displayed sprite member to zero.
       
   711 //!@SYMTestActions           1.  Create and connect a RWsSession.
       
   712 //!                          2.  Create and construct RWindowGroup and RWindow.
       
   713 //!                          3.  Create RWsSprite with RWsSession.
       
   714 //!                          4.  Construct RWsSprite.
       
   715 //!                          5.  Create a CFbsBitmap object as mask.
       
   716 //!                          6.  Create 4 CFbsBitmap object and load bitmap.
       
   717 //!                          7.  Append these CFbsBitmaps to the RWsSprite.
       
   718 //!                          8.  Set RWsSprites's position.
       
   719 //!                          9.  Activate the RWsSprite.
       
   720 //!                          10. Create and load the animation DLL.
       
   721 //!                          11. Create RAnim and RAnimForMClass object and construct RAnimForMClass.
       
   722 //!                          12. Delay 4.5 seconds (just more than 2 member's inteval).
       
   723 //!                          13. Send ECmdSpriteSizeChange command to plugin Dll via CommandReply.
       
   724 //!                          13.1 plugin Dll call the SizeChangeL function.
       
   725 //!                          14. Delay 2.5 seconds (just more than 1 member's inteval).
       
   726 //!                          15. Use ScreenDevice object to compare the 3 member's sprite rectangle area with a blank rectangle.
       
   727 //!                          16. Close and destroy all the related objects.
       
   728 //!@SYMTestStatus            Implemented
       
   729 //!@SYMTestPriority          High
       
   730 //!@SYMTestExpectedResults    In step 15, the compare result should not be same because the 3rd sprite member is current displayed.
       
   731 //!@SYMTestType              CIT
       
   732     START_TEST_BLOCK          10          T_GraphicsWservAPI          \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini
       
   733         CREATE_OBJECT              RWsSession               ws
       
   734         CREATE_OBJECT              RWindowGroup             wingp
       
   735         CREATE_OBJECT              RWindow                  win
       
   736         CREATE_OBJECT              RWsSprite                sprite
       
   737         CREATE_OBJECT              RAnimDll                 animdll
       
   738         CREATE_OBJECT              RAnim                    anim
       
   739         CREATE_OBJECT              RAnimForMClass           animformc
       
   740         CREATE_OBJECT              CWsScreenDevice          scrdev
       
   741         CREATE_OBJECT              CFbsBitmap               mask1
       
   742         CREATE_OBJECT              CFbsBitmap               bitmap1
       
   743         CREATE_OBJECT              CFbsBitmap               bitmap2
       
   744         CREATE_OBJECT              CFbsBitmap               bitmap3
       
   745         CREATE_OBJECT              CFbsBitmap               bitmap4
       
   746         COMMAND                    ws                       new                      
       
   747         COMMAND                    ws                       Connect                  
       
   748         COMMAND                    wingp                    new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command03
       
   749         COMMAND                    wingp                    Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command04
       
   750         COMMAND                    win                      new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command05
       
   751         COMMAND                    win                      Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command06
       
   752         COMMAND                    win                      Activate                 
       
   753         COMMAND                    win                      BeginRedraw              
       
   754         COMMAND                    win                      EndRedraw                
       
   755         COMMAND                    scrdev                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command10
       
   756         COMMAND                    scrdev                   Construct                
       
   757         COMMAND                    sprite                   new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command12
       
   758         COMMAND                    sprite                   Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command13
       
   759         COMMAND                    mask1                    new                      
       
   760         COMMAND                    mask1                    Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command15
       
   761         COMMAND                    bitmap1                  new                      
       
   762         COMMAND                    bitmap1                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command17
       
   763         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command18
       
   764         COMMAND                    bitmap2                  new                      
       
   765         COMMAND                    bitmap2                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command20
       
   766         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command21
       
   767         COMMAND                    bitmap3                  new                      
       
   768         COMMAND                    bitmap3                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command23
       
   769         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command24
       
   770         COMMAND                    bitmap4                  new                      
       
   771         COMMAND                    bitmap4                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command26
       
   772         COMMAND                    sprite                   AppendMember             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command27
       
   773         COMMAND                    sprite                   SetPosition              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-SetPosition_Command28
       
   774         COMMAND                    sprite                   Activate                 
       
   775         COMMAND                    animdll                  new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command30
       
   776         COMMAND                    animdll                  Load                     GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command31
       
   777         COMMAND                    anim                     new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command32
       
   778         COMMAND                    animformc                new                      GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command33
       
   779         COMMAND                    animformc                Construct                GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command34
       
   780         DELAY                      4500000                                           
       
   781         COMMAND                    animformc                CommandReply             GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-CommandReply_Command36
       
   782         DELAY                      2500000                                           
       
   783         //!COMMAND                    scrdev                   RectCompare              GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-RectCompare_Command38
       
   784         COMMAND                    animformc                Destroy                  
       
   785         COMMAND                    anim                     Destroy                  
       
   786         COMMAND                    sprite                   Close                    
       
   787         COMMAND                    mask1                    ~                        
       
   788         COMMAND                    bitmap1                  ~                        
       
   789         COMMAND                    bitmap2                  ~                        
       
   790         COMMAND                    bitmap3                  ~                        
       
   791         COMMAND                    bitmap4                  ~                        
       
   792         COMMAND                    animdll                  Destroy                  
       
   793         COMMAND                    scrdev                   ~                        
       
   794         COMMAND                    win                      Close                    
       
   795         COMMAND                    wingp                    Close                    
       
   796         COMMAND                    ws                       Close                    
       
   797     END_TEST_BLOCK
       
   798 END_TESTCASE          GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009
       
   799 
       
   800