graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-DsaSession-PublicApi.script
changeset 103 2717213c588a
parent 98 bf7481649c98
child 116 171fae344dd4
child 121 d72fc2aace31
child 187 9f66f99ee56f
equal deleted inserted replaced
98:bf7481649c98 103:2717213c588a
     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-DsaSession-PublicApi
       
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 
       
    20 ///////////////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-DsaSession-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the RDirectScreenAccess 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 // RDirectScreenAccess related classes.
       
    28 // Negative testing is performed to confirm that correct errors are returned
       
    29 // when incorrect parameters are given.
       
    30 //
       
    31 // The tests are fully automated.
       
    32 ///////////////////////////////////////////////////////////////////////////////
       
    33 
       
    34 LOAD_SUITE T_GraphicsWservAPI
       
    35 
       
    36 // ****************************************************************************
       
    37 // RDirectScreenAccess
       
    38 // ****************************************************************************
       
    39 
       
    40 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0001
       
    41 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0001
       
    42 //! @SYMAPI                 RDirectScreenAccess::RDirectScreenAccess()
       
    43 //! @SYMAuthor              Jeffery Zhao
       
    44 //! @SYMCreationDate        19/12/2007
       
    45 //! @SYMTestCaseDesc        Create with default constructor but not initialise a RDirectScreenAccess object.
       
    46 //! @SYMTestActions         1.Create RDirectScreenAccess.
       
    47 //! @SYMTestStatus          Implemented
       
    48 //! @SYMTestPriority        High
       
    49 //! @SYMTestExpectedResults RDirectScreenAccess object was created without causing panic
       
    50 //! @SYMTestType            CIT
       
    51     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
    52         CREATE_OBJECT   RDirectScreenAccess   rdsa
       
    53         COMMAND         rdsa    new
       
    54         COMMAND         rdsa    Close
       
    55     END_TEST_BLOCK
       
    56 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0001
       
    57 
       
    58 
       
    59 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0002
       
    60 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0002
       
    61 //! @SYMAPI                 RDirectScreenAccess::RDirectScreenAccess(RWsSession{ref})
       
    62 //! @SYMAuthor              Jeffery Zhao
       
    63 //! @SYMCreationDate        19/12/2007
       
    64 //! @SYMTestCaseDesc        Create but not initialise a RDirectScreenAccess object attached with RWsSession.
       
    65 //! @SYMTestActions         1.  Create RWsSession.
       
    66 //!                         2.  Create RDirectScreenAccess.
       
    67 //!                         3.  Close RWsSession.
       
    68 //! @SYMTestStatus          Implemented
       
    69 //! @SYMTestPriority        High
       
    70 //! @SYMTestExpectedResults RDirectScreenAccess object was created without causing panic
       
    71 //! @SYMTestType            CIT
       
    72     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
    73         CREATE_OBJECT   RWsSession            ws
       
    74         CREATE_OBJECT   RDirectScreenAccess   rdsa
       
    75         COMMAND         ws     new
       
    76         COMMAND         ws     Connect
       
    77         COMMAND         rdsa   new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
    78         COMMAND         rdsa   Close
       
    79         COMMAND         ws     Close
       
    80     END_TEST_BLOCK
       
    81 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0002
       
    82 
       
    83 
       
    84 
       
    85 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0003
       
    86 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0003
       
    87 //! @SYMAPI                 RDirectScreenAccess::Construct()
       
    88 //! @SYMAuthor              Jeffery Zhao
       
    89 //! @SYMCreationDate        19/12/2007
       
    90 //! @SYMTestCaseDesc        Create and initialise a RDirectScreenAccess object with construct.
       
    91 //! @SYMTestActions         1. Create RWsSession.
       
    92 //!                         2. Create RDirectScreenAccess.
       
    93 //!                         3. Construct RDirectScreenAccess.
       
    94 //!                         4. Close RWsSession & RDirectScreenAccess.
       
    95 //! @SYMTestStatus          Implemented
       
    96 //! @SYMTestPriority        High
       
    97 //! @SYMTestExpectedResults RDirectScreenAccess object was created and constructed without causing panic
       
    98 //! @SYMTestType            CIT
       
    99     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   100         CREATE_OBJECT       RWsSession            ws
       
   101         CREATE_OBJECT       RDirectScreenAccess   rdsa
       
   102         COMMAND         ws     new
       
   103         COMMAND         ws     Connect
       
   104         COMMAND         rdsa   new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   105         COMMAND         rdsa   Construct
       
   106         COMMAND         rdsa   Close
       
   107         COMMAND         ws     Close
       
   108     END_TEST_BLOCK
       
   109 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0003
       
   110 
       
   111 
       
   112 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0004
       
   113 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0004
       
   114 //! @SYMAPI                 RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref})
       
   115 //! @SYMAuthor              Jeffery Zhao
       
   116 //! @SYMCreationDate        19/12/2007
       
   117 //! @SYMTestCaseDesc        Create a RDirectScreenAccess object and issue a request.                        
       
   118 //! @SYMTestActions         1. Create RWsSession,RWindow,CWindowGc,CWsScreenDevice.
       
   119 //!                         2. Create RDirectScreenAccess.
       
   120 //!                         3. Call CWsScreenDevice::CreateContext()
       
   121 //!                         4. Construct RWindow and call RWindow::SetShape & Activate
       
   122 //!                         5. Create RDirectScreenAccess and call RDirectScreenAccess::Construct().
       
   123 //!                         6. Call RDirectScreenAccess::Request and outstanding.
       
   124 //!                         7. Destruct and close all object created. 
       
   125 //! @SYMTestStatus          Implemented
       
   126 //! @SYMTestPriority        High
       
   127 //! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully 2. Issue a DSA request successfully.
       
   128 //!                         3. Check all the return value as expected.
       
   129 //! @SYMTestType            CIT
       
   130     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   131         CREATE_OBJECT   RWsSession                ws
       
   132         CREATE_OBJECT   RWindowGroup              wingrp
       
   133         CREATE_OBJECT   RWindow                   win           
       
   134         CREATE_OBJECT   CWsScreenDevice           scrdev
       
   135         CREATE_OBJECT   CWindowGc                 wingc
       
   136         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   137         COMMAND         ws            new
       
   138         COMMAND         ws            Connect
       
   139         COMMAND         scrdev        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   140         COMMAND         scrdev        Construct        
       
   141         COMMAND         scrdev        CreateContext  GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005
       
   142         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   143         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   144         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   145         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   146         COMMAND         win           SetShape       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010
       
   147         COMMAND         win           Activate
       
   148         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   149         COMMAND         rdsa          Construct
       
   150         COMMAND         !AsyncError=-3          rdsa          Request        GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014
       
   151         COMMAND         rdsa          Completed
       
   152         COMMAND         rdsa          Close
       
   153         OUTSTANDING
       
   154         COMMAND         wingc        ~
       
   155         COMMAND         win           Close
       
   156         COMMAND         wingrp        Close
       
   157         COMMAND         scrdev        ~
       
   158         COMMAND         ws            Close
       
   159     END_TEST_BLOCK
       
   160 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0004
       
   161 
       
   162 
       
   163 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0005
       
   164 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0005
       
   165 //! @SYMAPI                 RDirectScreenAccess::Completed()
       
   166 //! @SYMAuthor              Jeffery Zhao
       
   167 //! @SYMCreationDate        19/12/2007
       
   168 //! @SYMTestCaseDesc        Create a RDirectScreenAccess object and request,and complete without panic.
       
   169 //! @SYMTestActions         1. Create RWsSession,RWindow,CWindowGc,CWsScreenDevice.
       
   170 //!                         2. Create RDirectScreenAccess.
       
   171 //!                         3. Call CWsScreenDevice::CreateContext()
       
   172 //!                         4. Construct RWindow and call RWindow::SetShape & Activate
       
   173 //!                         5. Create RDirectScreenAccess and call RDirectScreenAccess::Construct().
       
   174 //!                         6. Call RDirectScreenAccess::Request and outstanding.
       
   175 //!                         7. Call CWindowGc::Activate,RWindow::BeginRedraw,CWindowGc::DrawLine,RWindow::EndRedraw,CWindowGc::Deactivate
       
   176 //!                         8. Call RDirectScreenAccess::Completed().
       
   177 //!                         9. Destruct and close all created object.
       
   178 //! @SYMTestStatus          Implemented
       
   179 //! @SYMTestPriority        High
       
   180 //! @SYMTestExpectedResults 1.RDirectScreenAccess Completed successfully. 2. Request return value should be KErrCancel(-3).
       
   181 //! @SYMTestType            CIT
       
   182     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   183         CREATE_OBJECT   RWsSession                ws
       
   184         CREATE_OBJECT   RWindowGroup              wingrp
       
   185         CREATE_OBJECT   RWindow                   win           
       
   186         CREATE_OBJECT   CWsScreenDevice           scrdev      
       
   187         CREATE_OBJECT   CWindowGc                 wingc
       
   188         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   189         COMMAND         ws            new
       
   190         COMMAND         ws            Connect
       
   191         COMMAND         scrdev        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   192         COMMAND         scrdev        Construct        
       
   193         COMMAND         scrdev        CreateContext  GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005
       
   194         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   195         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   196         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   197         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   198         COMMAND         win           SetShape       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010
       
   199         COMMAND         win           Activate
       
   200         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   201         COMMAND         rdsa          Construct
       
   202         COMMAND         !AsyncError=-3          rdsa          Request        GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014
       
   203         COMMAND         wingc         Activate       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command015
       
   204         COMMAND         win           BeginRedraw
       
   205         COMMAND         wingc         DrawLine       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017
       
   206         COMMAND         win           EndRedraw
       
   207         COMMAND         wingc         Deactivate
       
   208         COMMAND         wingc         ~
       
   209         COMMAND         rdsa          Completed
       
   210         COMMAND         rdsa          Close
       
   211         OUTSTANDING
       
   212         COMMAND         win           Close
       
   213         COMMAND         wingrp        Close
       
   214         COMMAND         scrdev        ~
       
   215         COMMAND         ws            Close
       
   216     END_TEST_BLOCK
       
   217 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0005
       
   218 
       
   219 
       
   220 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0006
       
   221 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0006
       
   222 //! @SYMAPI                 RDirectScreenAccess::Cancel()
       
   223 //! @SYMAuthor              Jeffery Zhao
       
   224 //! @SYMCreationDate        19/12/2007
       
   225 //! @SYMTestCaseDesc        Create a RDirectScreenAccess object and request,and then Cancel without panic.
       
   226 //! @SYMTestActions         1.  Create RWsSession,RWindow,CWindowGc,CWsScreenDevice.
       
   227 //!                         2.  Create RDirectScreenAccess.
       
   228 //!                         3.  Call CWsScreenDevice::CreateContext()
       
   229 //!                         4.  Construct RWindow and call RWindow::SetShape & Activate
       
   230 //!                         5.  Create RDirectScreenAccess and call RDirectScreenAccess::Construct().
       
   231 //!                         6.  Call RDirectScreenAccess::Request and outstanding.
       
   232 //!                         7.  Call CWindowGc::Activate,RWindow::BeginRedraw,CWindowGc::DrawLine,RWindow::EndRedraw,CWindowGc::Deactivate
       
   233 //!                         8.  Call RDirectScreenAccess::Cancel().
       
   234 //!                         9.  Destruct and close all created object.
       
   235 //! @SYMTestStatus            Implemented
       
   236 //! @SYMTestPriority        High
       
   237 //! @SYMTestExpectedResults  1. RDirectScreenAccess object was canceled successfully. 2. Request return value should be KErrCancel(-3) after cancled.
       
   238 //! @SYMTestType            CIT
       
   239     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   240         CREATE_OBJECT   RWsSession                ws
       
   241         CREATE_OBJECT   RWindowGroup              wingrp
       
   242         CREATE_OBJECT   RWindow                   win           
       
   243         CREATE_OBJECT   CWsScreenDevice           scrdev      
       
   244         CREATE_OBJECT   CWindowGc                 wingc
       
   245         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   246         COMMAND         ws            new
       
   247         COMMAND         ws            Connect
       
   248         COMMAND         scrdev        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   249         COMMAND         scrdev        Construct        
       
   250         COMMAND         scrdev        CreateContext  GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005
       
   251         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   252         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   253         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   254         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   255         COMMAND         win           SetShape       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010
       
   256         COMMAND         win           Activate
       
   257         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   258         COMMAND         rdsa          Construct
       
   259         COMMAND         !AsyncError=-3          rdsa          Request        GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014
       
   260         COMMAND         wingc         Activate       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command015
       
   261         COMMAND         win           BeginRedraw
       
   262         COMMAND         wingc         DrawLine       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017
       
   263         COMMAND         win           EndRedraw
       
   264         COMMAND         wingc         Deactivate
       
   265         COMMAND         wingc         ~
       
   266         COMMAND         scrdev        ~
       
   267         COMMAND         rdsa          Cancel
       
   268         OUTSTANDING
       
   269         COMMAND         rdsa          Close
       
   270         COMMAND         win           Close
       
   271         COMMAND         wingrp        Close
       
   272         COMMAND         scrdev         ~
       
   273         COMMAND         ws            Close
       
   274     END_TEST_BLOCK
       
   275 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0006
       
   276 
       
   277 
       
   278 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0007
       
   279 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0007
       
   280 //! @SYMAPI                 RDirectScreenAccess::Cancel()
       
   281 //! @SYMAuthor              Jeffery Zhao
       
   282 //! @SYMCreationDate        19/12/2007
       
   283 //! @SYMTestCaseDesc        Create a RDirectScreenAccess object and request then cancel; after cancel, we request again, negative test.
       
   284 //! @SYMTestActions         1. Create RWsSession,RWindow,CWindowGc,CWsScreenDevice.
       
   285 //!                         2. Create RDirectScreenAccess.
       
   286 //!                         3. Call CWsScreenDevice::CreateContext()
       
   287 //!                         4. Construct RWindow and call RWindow::SetShape & Activate
       
   288 //!                         5. Create RDirectScreenAccess and call RDirectScreenAccess::Construct().
       
   289 //!                         6. Call RDirectScreenAccess::Request and outstanding.
       
   290 //!                         7. Call CWindowGc::Activate,RWindow::BeginRedraw,CWindowGc::DrawLine,RWindow::EndRedraw,CWindowGc::Deactivate
       
   291 //!                         8. Call RDirectScreenAccess::Cancel() and Request again,then outstanding.
       
   292 //!                         9. Destruct and close all created object.
       
   293 //! @SYMTestStatus          Implemented
       
   294 //! @SYMTestPriority        High
       
   295 //! @SYMTestExpectedResults RDirectScreenAccess object Request return value should be KErrCancel(-3) after it was canceled.
       
   296 //! @SYMTestType            CIT
       
   297     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   298         CREATE_OBJECT   RWsSession                ws
       
   299         CREATE_OBJECT   RWindowGroup              wingrp
       
   300         CREATE_OBJECT   RWindow                   win           
       
   301         CREATE_OBJECT   CWsScreenDevice           scrdev      
       
   302         CREATE_OBJECT   CWindowGc                 wingc
       
   303         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   304         COMMAND         ws            new
       
   305         COMMAND         ws            Connect
       
   306         COMMAND         scrdev        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   307         COMMAND         scrdev        Construct        
       
   308         COMMAND         scrdev        CreateContext  GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005
       
   309         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   310         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   311         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   312         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   313         COMMAND         win           SetShape       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010
       
   314         COMMAND         win           Activate
       
   315         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   316         COMMAND         rdsa          Construct
       
   317         COMMAND         !AsyncError=-3          rdsa          Request        GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014
       
   318         COMMAND         wingc         Activate       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command015
       
   319         COMMAND         win           BeginRedraw
       
   320         COMMAND         wingc         DrawLine       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017
       
   321         COMMAND         win           EndRedraw
       
   322         COMMAND         wingc         Deactivate
       
   323         COMMAND         wingc         ~
       
   324         COMMAND         rdsa          Cancel
       
   325         OUTSTANDING
       
   326         COMMAND         rdsa          Request        GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014
       
   327         COMMAND         rdsa          Completed
       
   328         COMMAND         rdsa          Close
       
   329         COMMAND         win           Close
       
   330         COMMAND         wingrp        Close
       
   331         COMMAND         scrdev        ~
       
   332         COMMAND         ws            Close
       
   333     END_TEST_BLOCK
       
   334 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0007
       
   335 
       
   336 
       
   337 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0008
       
   338 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0008
       
   339 //! @SYMAPI                 RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref})
       
   340 //! @SYMAuthor              Jeffery Zhao
       
   341 //! @SYMCreationDate        02/01/2008
       
   342 //! @SYMTestCaseDesc        Negative test, creates a RDirectScreenAccess object and issues a request on an invisible window.
       
   343 //! @SYMTestActions         1. Create and connect RWsSession;
       
   344 //!                         2. Create and construct RWindowGroup;
       
   345 //!                         3. Create and Construct RWindow
       
   346 //!                         4. Active RWindow and call SetVisible to make the RWindow object invisible. 
       
   347 //!                         5. Create RDirectScreenAccess.
       
   348 //!                         6. Construct RDirectScreenAccess.
       
   349 //!                         7. Issue DSA request.
       
   350 //!                         8. Complete DSA.
       
   351 //!                         9. Destruct and close all object created. 
       
   352 //! @SYMTestStatus          Implemented
       
   353 //! @SYMTestPriority        High
       
   354 //! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully 2. Issue a DSA request and return KErrNotReady(-18).
       
   355 //! @SYMTestType            CIT
       
   356     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   357         CREATE_OBJECT   RWsSession                ws
       
   358         CREATE_OBJECT   RWindowGroup              wingrp
       
   359         CREATE_OBJECT   RWindow                   win           
       
   360         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   361         COMMAND         ws            new
       
   362         COMMAND         ws            Connect
       
   363         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   364         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   365         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   366         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   367         COMMAND         win           Activate
       
   368         COMMAND         win           SetVisible     GRAPHICS-WSERV-DsaSession-PublicApi-0008-0001-SetVisible_command008
       
   369         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   370         COMMAND         rdsa          Construct
       
   371         COMMAND !Error=-18 rdsa       Request        GRAPHICS-WSERV-DsaSession-PublicApi-0008-0001-Request_command011
       
   372         COMMAND         rdsa          Completed
       
   373         COMMAND         rdsa          Close
       
   374         COMMAND         win           Close
       
   375         COMMAND         wingrp        Close
       
   376         COMMAND         ws            Close
       
   377     END_TEST_BLOCK
       
   378 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0008
       
   379 
       
   380 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0009
       
   381 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0009
       
   382 //! @SYMAPI                 RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref})
       
   383 //! @SYMAuthor              Jeffery Zhao
       
   384 //! @SYMCreationDate        02/01/2008
       
   385 //! @SYMTestCaseDesc        Negative test,create a RDirectScreenAccess object and generate a memory allocate fail when issue request.
       
   386 //! @SYMTestActions         1. Create RWsSession,RWindowGroup,RWindow.
       
   387 //!                         2. Construct RWindowGroup & RWindow and call RWindow::SetShape & Activate;
       
   388 //!                         3. Create RDirectScreenAccess.
       
   389 //!                         4. Construct RDirectScreenAccess.
       
   390 //!                         5. Eat system memory until lefted memory less thans 20 byte and issue DSA request,it will return KErrNoMemory(-4).
       
   391 //!                         6. Free eaten memory.
       
   392 //!                         7. Destruct and close all object created. 
       
   393 //! @SYMTestStatus          Implemented
       
   394 //! @SYMTestPriority        High
       
   395 //! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully 2. Issue a DSA request and return KErrNoMemory(-4).
       
   396 //! @SYMTestType            CIT
       
   397     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   398         CREATE_OBJECT   RWsSession                ws
       
   399         CREATE_OBJECT   RWindowGroup              wingrp
       
   400         CREATE_OBJECT   RWindow                   win           
       
   401         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   402         COMMAND         ws            new
       
   403         COMMAND         ws            Connect
       
   404         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   405         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   406         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   407         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   408         COMMAND         win           SetShape       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010
       
   409         COMMAND         win           Activate
       
   410         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   411         COMMAND         rdsa          Construct
       
   412         COMMAND         rdsa          Util_EatupMemory GRAPHICS-WSERV-DsaSession-PublicApi-0009-0001-Util_EatupMemory_command011
       
   413         COMMAND !Error=-4 rdsa        Request        GRAPHICS-WSERV-DsaSession-PublicApi-0009-0001-Request_command012
       
   414         COMMAND         rdsa          Util_FreeEatenMemory
       
   415         COMMAND         rdsa          Close
       
   416         COMMAND         win           Close
       
   417         COMMAND         wingrp        Close
       
   418         COMMAND         ws            Close
       
   419     END_TEST_BLOCK
       
   420 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0009
       
   421 
       
   422 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0010
       
   423 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0010
       
   424 //! @SYMAPI                 RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref})
       
   425 //! @SYMAuthor              Jeffery Zhao
       
   426 //! @SYMCreationDate        02/01/2008
       
   427 //! @SYMTestCaseDesc        Negative test, creates a RDirectScreenAccess object and  issues a request with uninitialized RWindow argument.
       
   428 //! @SYMTestActions         1. Create and connect RWsSession.
       
   429 //!                         2. Create RWindow;
       
   430 //!                         3. Create RDirectScreenAccess.
       
   431 //!                         4. Construct RDirectScreenAccess.
       
   432 //!                         5. Issue DSA request with uninitialized RWindow object
       
   433 //!                         6. Complete DSA.
       
   434 //!                         7. Destruct and close all object created. 
       
   435 //! @SYMTestStatus          Implemented
       
   436 //! @SYMTestPriority        High
       
   437 //! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully 
       
   438 //!                         2.WSERV 6 panic received at Test Action 5.
       
   439 //! @SYMTestType            CIT
       
   440     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   441         CREATE_OBJECT   RWsSession                ws
       
   442         CREATE_OBJECT   RWindow                   win           
       
   443         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   444         COMMAND         ws            new
       
   445         COMMAND         ws            Connect
       
   446         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   447         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   448         COMMAND         rdsa          Construct
       
   449         COMMAND         rdsa          Request        GRAPHICS-WSERV-DsaSession-PublicApi-0010-0001-Request_command006
       
   450         COMMAND         rdsa          Completed
       
   451         COMMAND         rdsa          Close
       
   452         COMMAND         win           Close
       
   453         COMMAND         ws            Close
       
   454     END_TEST_BLOCK !PanicString=WSERV !PanicCode=6
       
   455     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg
       
   456 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0010
       
   457 
       
   458 
       
   459 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0011
       
   460 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0011
       
   461 //! @SYMAPI                 RDirectScreenAccess::Completed()
       
   462 //! @SYMAuthor              Jeffery Zhao
       
   463 //! @SYMCreationDate        07/01/2008
       
   464 //! @SYMTestCaseDesc        Negative test, completes DSA without request.
       
   465 //! @SYMTestActions         1. Create and connect RWsSession.
       
   466 //!                         2. Create RDirectScreenAccess.
       
   467 //!                         3. Construct RDirectScreenAccess.
       
   468 //!                         4. Complete DSA without request.
       
   469 //!                         5. Destruct and close all object created. 
       
   470 //! @SYMTestStatus          Implemented
       
   471 //! @SYMTestPriority        High
       
   472 //! @SYMTestExpectedResults W32 8 panic received at Test Action 4.
       
   473 //! @SYMTestType            CIT
       
   474     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   475         CREATE_OBJECT   RWsSession                ws           
       
   476         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   477         COMMAND         ws            new
       
   478         COMMAND         ws            Connect
       
   479         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   480         COMMAND         rdsa          Construct
       
   481         COMMAND         rdsa          Completed
       
   482         COMMAND         rdsa          Close
       
   483         COMMAND         ws            Close
       
   484     END_TEST_BLOCK !PanicString=W32 !PanicCode=8
       
   485     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg
       
   486 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0011
       
   487 
       
   488 //!START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0012
       
   489 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0012
       
   490 //! @SYMAPI                 RDirectScreenAccess::Cancel()
       
   491 //! @SYMAuthor              Jeffery Zhao
       
   492 //! @SYMCreationDate        07/01/2008
       
   493 //! @SYMTestCaseDesc        Negative test, calls other function after closing DSA.
       
   494 //! @SYMTestActions         1. Create and connect RWsSession.
       
   495 //!                         2. Create RDirectScreenAccess.
       
   496 //!                         3. Construct RDirectScreenAccess.
       
   497 //!                         4. Close DSA.
       
   498 //!                         5. Call Cancel() to verify close DSA successfully.
       
   499 //!                         6. Destruct and close all object created. 
       
   500 //! @SYMTestStatus          Implemented
       
   501 //! @SYMTestPriority        High
       
   502 //! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 5.
       
   503 //! @SYMTestType            CIT
       
   504 //!    START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   505 //!        CREATE_OBJECT   RWsSession                ws          
       
   506 //!        CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   507 //!        COMMAND         ws            new
       
   508 //!        COMMAND         ws            Connect
       
   509 //!        COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   510 //!        COMMAND         rdsa          Construct
       
   511 //!        COMMAND         rdsa          Close
       
   512 //!        COMMAND         rdsa          Cancel
       
   513 //!        COMMAND         ws            Close
       
   514 //!    END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3
       
   515 //!    RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg
       
   516 //!END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0012
       
   517 
       
   518 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0013
       
   519 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0013
       
   520 //! @SYMAPI                 RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref})
       
   521 //! @SYMAuthor              Jeffery Zhao
       
   522 //! @SYMCreationDate        16/01/2008
       
   523 //! @SYMTestCaseDesc        Negative test,create two RDirectScreenAccess object and issue request at same window.
       
   524 //! @SYMTestActions         1. Create RWsSession and connect.
       
   525 //!                         2. Create and construct RWindowGroup,RWindow. 
       
   526 //!                         3. Set window shape and activate the window.
       
   527 //!                         4. Create the first RDirectScreenAccess.
       
   528 //!                         5. Construct the first RDirectScreenAccess.
       
   529 //!                         6. Issue a request using first DSA object.
       
   530 //!                         7. Create and construct the second DSA object. 
       
   531 //!                         8. Issue a request using the second DSA object at the same window.
       
   532 //!                         9. Destruct and close all object created.
       
   533 //! @SYMTestStatus          Implemented
       
   534 //! @SYMTestPriority        High
       
   535 //! @SYMTestExpectedResults DSA request will take an AsyncError(-3).
       
   536 //! @SYMTestType            CIT
       
   537     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   538         CREATE_OBJECT   RWsSession                ws
       
   539         CREATE_OBJECT   RWindowGroup              wingrp
       
   540         CREATE_OBJECT   RWindow                   win           
       
   541         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   542         CREATE_OBJECT   RDirectScreenAccess       rdsa2
       
   543         COMMAND         ws            new
       
   544         COMMAND         ws            Connect
       
   545         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   546         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   547         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   548         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   549         COMMAND         win           SetShape       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010
       
   550         COMMAND         win           Activate
       
   551         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   552         COMMAND         rdsa          Construct
       
   553         COMMAND !AsyncError=-3 rdsa   Request        GRAPHICS-WSERV-DsaSession-PublicApi-0013-0001-Request_command011
       
   554         COMMAND         rdsa          Cancel
       
   555         COMMAND         rdsa2         new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   556         COMMAND         rdsa2         Construct
       
   557         COMMAND !AsyncError=-3 rdsa2  Request        GRAPHICS-WSERV-DsaSession-PublicApi-0013-0001-Request_command014
       
   558         COMMAND         rdsa2         Cancel
       
   559         OUTSTANDING
       
   560         COMMAND         rdsa2         Close
       
   561         COMMAND         rdsa          Close
       
   562         COMMAND         win           Close
       
   563         COMMAND         wingrp        Close
       
   564         COMMAND         ws            Close
       
   565     END_TEST_BLOCK
       
   566 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0013
       
   567 
       
   568 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0014
       
   569 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0014
       
   570 //! @SYMAPI                 RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref})
       
   571 //! @SYMAuthor              Jeffery Zhao
       
   572 //! @SYMCreationDate        16/01/2008
       
   573 //! @SYMTestCaseDesc        Negative test,creates a RDirectScreenAccess object and issues DSA request, then creates another window and draws line on the window where there DSA is taking place.
       
   574 //! @SYMTestActions         1. Create RWsSession and connect.
       
   575 //!                         2. Create and construct CWsScreenDevice object. 
       
   576 //!                         3. Create and construct RWindowGroup,RWindow. 
       
   577 //!                         4. Set window shape and activate the window.
       
   578 //!                         5. Create and construct RDirectScreenAccess object.
       
   579 //!                         6. Issue DSA request.
       
   580 //!                         7. Create and construct the second window.
       
   581 //!                         7. Activate the second window. 
       
   582 //!                         8. Activate the CWindowGc object which get from CWsScreenDevice::CreateContext.
       
   583 //!                         9. BeginRedraw with the seconde window and draw a line on the window,then EndRedraw.
       
   584 //!                         10. Destruct and close all object created.
       
   585 //! @SYMTestStatus          Implemented
       
   586 //! @SYMTestPriority        High
       
   587 //! @SYMTestExpectedResults DSA request will be terminated(TerminationReasons:ETerminateRegion 1) when draw line on the second window.
       
   588 //! @SYMTestType            CIT
       
   589      START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   590         CREATE_OBJECT   RWsSession                ws
       
   591         CREATE_OBJECT   RWindowGroup              wingrp
       
   592         CREATE_OBJECT   RWindow                   win           
       
   593         CREATE_OBJECT   RWindow                   win2
       
   594         CREATE_OBJECT   CWsScreenDevice           scrdev
       
   595         CREATE_OBJECT   CWindowGc                 wingc
       
   596         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   597         COMMAND         ws            new
       
   598         COMMAND         ws            Connect
       
   599         COMMAND         scrdev        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   600         COMMAND         scrdev        Construct        
       
   601         COMMAND         scrdev        CreateContext  GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005
       
   602         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   603         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   604         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   605         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   606         COMMAND         win           SetShape       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010
       
   607         COMMAND         win           Activate
       
   608         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   609         COMMAND         rdsa          Construct
       
   610         COMMAND !AsyncError=1 rdsa    Request        GRAPHICS-WSERV-DsaSession-PublicApi-0014-0001-Request_command014
       
   611         COMMAND         win2          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   612         COMMAND         win2          Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command111
       
   613         COMMAND         win2          Activate
       
   614         COMMAND         wingc         Activate       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command111
       
   615         COMMAND         win2          BeginRedraw
       
   616         COMMAND         wingc         DrawLine       GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017
       
   617         COMMAND         win2          EndRedraw
       
   618         COMMAND         wingc         Deactivate
       
   619         COMMAND         wingc         ~
       
   620         OUTSTANDING
       
   621         COMMAND         rdsa          Close
       
   622         COMMAND         wingc         ~
       
   623         COMMAND         win           Close
       
   624         COMMAND         win2          Close
       
   625         COMMAND         wingrp        Close
       
   626         COMMAND         scrdev        ~
       
   627         COMMAND         ws            Close
       
   628     END_TEST_BLOCK
       
   629 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0014
       
   630 
       
   631 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0015
       
   632 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0015
       
   633 //! @SYMAPI                 RDirectScreenAccess::Completed()
       
   634 //! @SYMAuthor              Jeffery Zhao
       
   635 //! @SYMCreationDate        16-05-2008
       
   636 //! @SYMTestCaseDesc        Creates a RDirectScreenAccess object and  issues a request, then complete twice.
       
   637 //! @SYMTestActions         1. Create and connect RWsSession.
       
   638 //!                         2. Create RWindow;
       
   639 //!                         3. Create RDirectScreenAccess.
       
   640 //!                         4. Construct RDirectScreenAccess.
       
   641 //!                         5. Issue DSA request.
       
   642 //!                         6. Complete DSA twice.
       
   643 //!                         7. Destruct and close all object created. 
       
   644 //! @SYMTestStatus          Implemented
       
   645 //! @SYMTestPriority        High
       
   646 //! @SYMTestExpectedResults RDirectScreenAccess object was Completed successfully.
       
   647 //! @SYMTestType            CIT
       
   648     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   649         CREATE_OBJECT   RWsSession                ws
       
   650         CREATE_OBJECT   RWindowGroup              wingrp
       
   651         CREATE_OBJECT   RWindow                   win           
       
   652         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   653         COMMAND         ws            new
       
   654         COMMAND         ws            Connect
       
   655         COMMAND         wingrp        new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   656         COMMAND         wingrp        Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007
       
   657         COMMAND         win           new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   658         COMMAND         win           Construct      GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009
       
   659         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   660         COMMAND         rdsa          Construct
       
   661         COMMAND         rdsa          Request        GRAPHICS-WSERV-DsaSession-PublicApi-0015-0001-Request_command009
       
   662         COMMAND         rdsa          Completed
       
   663         COMMAND         rdsa          Completed
       
   664     END_TEST_BLOCK !PanicString=W32 !PanicCode=8
       
   665     RUN_TEST_STEP	100	T_GraphicsWservAPI	utilityClearPanicDlg
       
   666 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0015
       
   667 
       
   668 START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0016
       
   669 //! @SYMTestCaseID          GRAPHICS-WSERV-DsaSession-PublicApi-0016
       
   670 //! @SYMAPI                 RDirectScreenAccess::Cancel()
       
   671 //! @SYMAuthor              Jeffery Zhao
       
   672 //! @SYMCreationDate        16-05-2008
       
   673 //! @SYMTestCaseDesc        Negative test, cancel DSA without starting.
       
   674 //! @SYMTestActions         1. Create and connect RWsSession.
       
   675 //!                         2. Create RDirectScreenAccess.
       
   676 //!                         3. Construct RDirectScreenAccess.
       
   677 //!                         4. Cancel DSA.
       
   678 //!                         5. Close all object created. 
       
   679 //! @SYMTestStatus          Implemented
       
   680 //! @SYMTestPriority        High
       
   681 //! @SYMTestExpectedResults RDirectScreenAccess object was canceled successfully.
       
   682 //! @SYMTestType            CIT
       
   683     START_TEST_BLOCK    10        T_GraphicsWservAPI    \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini
       
   684         CREATE_OBJECT   RWsSession                ws          
       
   685         CREATE_OBJECT   RDirectScreenAccess       rdsa
       
   686         COMMAND         ws            new
       
   687         COMMAND         ws            Connect
       
   688         COMMAND         rdsa          new            GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003
       
   689         COMMAND         rdsa          Construct
       
   690         COMMAND         rdsa          Cancel
       
   691         COMMAND         rdsa          Close
       
   692         COMMAND         ws            Close
       
   693     END_TEST_BLOCK
       
   694 END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0016