graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-SoundPlugin-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-SoundPlugin-PublicApi
       
    18 //! @SYMScriptTestEnvironment	This test script requires a basic ROM.
       
    19 
       
    20 /////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-WSERV-SoundPlugin-PublicAPI.script
       
    22 //
       
    23 // Tests all public elements of the RSoundPlugIn
       
    24 // classes as a means of confidence that the APIs work as expected.
       
    25 //
       
    26 // The purpose is to provide a regression test suite of PublishedAll APIs for RSoundPlugIn
       
    27 // The tests are fully automated.
       
    28 /////////////////////////////////////////////////////////////////////
       
    29 
       
    30 LOAD_SUITE      T_GraphicsWservAPI
       
    31 DELAY           1000
       
    32 
       
    33 //! @file
       
    34 //! @SYMTestSuiteName           GRAPHICS-WSERV-SoundPlugin-PublicAPI
       
    35 //! @SYMScriptTestEnvironment   This test script requires a basic ROM.
       
    36 
       
    37 /////////////////////////////////////////////////////////////////////
       
    38 // RSoundPlugIn class
       
    39 /////////////////////////////////////////////////////////////////////
       
    40 
       
    41 
       
    42 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0001
       
    43 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0001
       
    44 //! @SYMAPI                     RSoundPlugIn::RSoundPlugIn();
       
    45 //!                             RSoundPlugIn::Close()
       
    46 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
    47 //! @SYMCreationDate            31/10/2007
       
    48 //! @SYMTestCaseDesc            Create a RSoundPlugIn object by C++ Default constructor and end with Close
       
    49 //! @SYMTestActions             execute new() a RSoundPlugIn to create the object and Close.  
       
    50 //! @SYMTestStatus              Implemented
       
    51 //! @SYMTestPriority            High
       
    52 //! @SYMTestExpectedResults     RSoundPlugin object was created and Close without causing panic. 
       
    53 //! @SYMTestType                CIT
       
    54     START_TEST_BLOCK            10    T_GraphicsWservAPI      c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
    55         CREATE_OBJECT           RSoundPlugIn           soundPlugIn
       
    56         COMMAND                 soundPlugIn            new       
       
    57         COMMAND                 soundPlugIn            Close        
       
    58     END_TEST_BLOCK    
       
    59 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0001
       
    60 
       
    61 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0002
       
    62 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0002
       
    63 //! @SYMAPI                     RSoundPlugIn::RSoundPlugIn();
       
    64 //!                             RSoundPlugIn::Destroy()
       
    65 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
    66 //! @SYMCreationDate            31/10/2007
       
    67 //! @SYMTestCaseDesc            Create a RSoundPlugIn object by C++ Default constructor and end with Destroy()
       
    68 //! @SYMTestActions             execute new() a RSoundPlugIn to create the object and Destroy. 
       
    69 //! @SYMTestStatus              Implemented
       
    70 //! @SYMTestPriority            High
       
    71 //! @SYMTestExpectedResults     RSoundPlugin object was created and Destroy without causing panic. 
       
    72 //! @SYMTestType                CIT
       
    73     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
    74         CREATE_OBJECT           RSoundPlugIn       soundPlugIn
       
    75         COMMAND                 soundPlugIn        new       
       
    76         COMMAND                 soundPlugIn        Destroy        
       
    77     END_TEST_BLOCK    
       
    78 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0002
       
    79 
       
    80 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004
       
    81 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004
       
    82 //! @SYMAPI                     RSoundPlugIn::RSoundPlugIn(RWsSession {ref});
       
    83 //!                             RSoundPlugIn::Close()
       
    84 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
    85 //! @SYMCreationDate            31/10/2007
       
    86 //! @SYMTestCaseDesc            Create a RSoundPlugin object within the specified RWsSession and end with Close.
       
    87 //! @SYMTestActions             1.Create and connect a RWsSession, and within the RWsSession 
       
    88 //!                             2.Create and construct a RSoundPlugin 
       
    89 //!                             3.Close all used objects 
       
    90 //! @SYMTestStatus              Implemented
       
    91 //! @SYMTestPriority            High
       
    92 //! @SYMTestExpectedResults     RSoubdPlugin object was created without causing panic.
       
    93 //! @SYMTestType                CIT
       
    94     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
    95         CREATE_OBJECT           RWsSession                 ws
       
    96         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
    97         COMMAND                 ws                         new
       
    98         COMMAND                 ws                         Connect
       
    99         COMMAND                 soundPlugIn                new               GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004-001-new_Command01
       
   100         COMMAND                 soundPlugIn                Construct
       
   101         COMMAND                 soundPlugIn                Close
       
   102         COMMAND                 ws                         Close
       
   103     END_TEST_BLOCK    
       
   104 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004
       
   105 
       
   106 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005
       
   107 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005
       
   108 //! @SYMAPI                     RSoundPlugIn::RSoundPlugIn(RWsSession {ref});
       
   109 //!                             RSoundPlugIn::Destroy()
       
   110 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
   111 //! @SYMCreationDate            31/10/2007
       
   112 //! @SYMTestCaseDesc            Create a RSoundPlugin object within the specified RWsSession and end with Destroy.
       
   113 //! @SYMTestActions             1.  Create and connect a RWsSession, and within the RWsSession 
       
   114 //!                             2.  Create and construct a RSoundPlugin 
       
   115 //!                             3.  Destroy constructed RSoundPlugin 
       
   116 //!                             4.  Close RWsSession 
       
   117 //! @SYMTestStatus              Implemented
       
   118 //! @SYMTestPriority            High
       
   119 //! @SYMTestExpectedResults     Destroy with no panic.
       
   120 //! @SYMTestType                CIT
       
   121     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   122         CREATE_OBJECT           RWsSession                 ws
       
   123         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   124         COMMAND                 ws                         new
       
   125         COMMAND                 ws                         Connect
       
   126         COMMAND                 soundPlugIn                new                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005-001-new_Command01
       
   127         COMMAND                 soundPlugIn                Construct
       
   128         COMMAND                 soundPlugIn                Destroy    
       
   129         COMMAND                 ws                         Close
       
   130     END_TEST_BLOCK    
       
   131 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005
       
   132 
       
   133 
       
   134 
       
   135 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007
       
   136 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007
       
   137 //! @SYMAPI                     RSoundPlugIn::Load(const TDesC {ref});
       
   138 //!                             RSoundPlugIn::IsLoaded(TBool {ref})
       
   139 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
   140 //! @SYMCreationDate            31/10/2007
       
   141 //! @SYMTestCaseDesc            Load the plugin, then check wether plugin is loaded.
       
   142 //! @SYMTestActions             1.  Create and connect a RWsSession, and within the RWsSession 
       
   143 //!                             2.  Create and construct a RSoundPlugin 
       
   144 //!                             3.  Load constructed RSoundPlugin by using Load()
       
   145 //!                             4.  Check if plugin is loaded successfully by using IsLoaded() 
       
   146 //!                             5.  Destroy the loaded plugin by using Destroy() 
       
   147 //!                             4.  Close RWsSession 
       
   148 //! @SYMTestStatus              Implemented
       
   149 //! @SYMTestPriority            High
       
   150 //! @SYMTestExpectedResults     1.Load the plugin without causing panic
       
   151 //!                             2.Verify the plugin is loaded successfully
       
   152 //! @SYMTestType                CIT
       
   153     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   154         CREATE_OBJECT           RWsSession                 ws
       
   155         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   156         COMMAND                 ws                         new
       
   157         COMMAND                 ws                         Connect
       
   158         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-new_Command01
       
   159         COMMAND                 soundPlugIn                Construct           GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-Construct_Command02
       
   160         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-Load_Command03
       
   161         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-IsLoaded_Command04
       
   162         COMMAND                 soundPlugIn                Destroy    
       
   163         COMMAND                 ws                         Close
       
   164     END_TEST_BLOCK    
       
   165 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007
       
   166 
       
   167 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008
       
   168 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008
       
   169 //! @SYMAPI                     RSoundPlugIn::SetKeyClick(TBool);
       
   170 //!                             RSoundPlugIn::KeyClickEnabled()
       
   171 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
   172 //! @SYMCreationDate            31/10/2007
       
   173 //! @SYMTestCaseDesc            Check SetKeyClick() & KeyClickEnabled().
       
   174 //! @SYMTestActions             1.  Create and connect a RWsSession, and within the RWsSession 
       
   175 //!                             2.  Create and construct a RSoundPlugin 
       
   176 //!                             3.  Enable key click by using SetKeyClick()
       
   177 //!                             4.  Check if the key click is enabled by using KeyClickEnabled()
       
   178 //!                             5.  Destroy the plugin and close window session
       
   179 //! @SYMTestStatus              Implemented
       
   180 //! @SYMTestPriority            High
       
   181 //! @SYMTestExpectedResults     1. SetKeyClick() to ETrue without causing panic 
       
   182 //!                             2. Verify key click is enabled by KeyClickEnabled() returns ETrue 
       
   183 //! @SYMTestType                CIT
       
   184     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   185         CREATE_OBJECT           RWsSession                 ws
       
   186         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   187         COMMAND                 ws                         new
       
   188         COMMAND                 ws                         Connect
       
   189         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-new_Command01
       
   190         COMMAND                 soundPlugIn                Construct
       
   191         COMMAND                 soundPlugIn                SetKeyClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-SetKeyClick_Command03
       
   192         COMMAND                 soundPlugIn                KeyClickEnabled      GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-KeyClickEnabled_Command04
       
   193         COMMAND                 soundPlugIn                Destroy    
       
   194         COMMAND                 ws                         Close
       
   195     END_TEST_BLOCK    
       
   196 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008
       
   197 
       
   198 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009
       
   199 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009
       
   200 //! @SYMAPI                     RSoundPlugIn::SetKeyClick(TBool);
       
   201 //!                             RSoundPlugIn::KeyClickEnabled()
       
   202 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
   203 //! @SYMCreationDate            31/10/2007
       
   204 //! @SYMTestCaseDesc            Check SetKeyClick() & KeyClickEnabled().
       
   205 //! @SYMTestActions             1.  Create and connect a RWsSession, and within the RWsSession 
       
   206 //!                             2.  Create and construct a RSoundPlugin 
       
   207 //!                             3.  Disable key click by using SetKeyClick()
       
   208 //!                             4.  Check if the key click is diabled by using KeyClickEnabled()
       
   209 //!                             5.  Destroy the plugin and close window session
       
   210 //! @SYMTestStatus              Implemented
       
   211 //! @SYMTestPriority            High
       
   212 //! @SYMTestExpectedResults     1. SetKeyClick() to EFalse without causing panic 
       
   213 //!                             2. Verify key click is diabled by KeyClickEnabled() returns EFalse 
       
   214 //! @SYMTestType                CIT
       
   215     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   216         CREATE_OBJECT           RWsSession                 ws
       
   217         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   218         COMMAND                 ws                         new
       
   219         COMMAND                 ws                         Connect
       
   220         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-new_Command01
       
   221         COMMAND                 soundPlugIn                Construct
       
   222         COMMAND                 soundPlugIn                SetKeyClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-SetKeyClick_Command03
       
   223         COMMAND                 soundPlugIn                KeyClickEnabled      GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-KeyClickEnabled_Command04
       
   224         COMMAND                 soundPlugIn                Destroy    
       
   225         COMMAND                 ws                         Close
       
   226     END_TEST_BLOCK    
       
   227 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009
       
   228 
       
   229 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010
       
   230 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010
       
   231 //! @SYMAPI                     RSoundPlugIn::SetPenClick(TBool);
       
   232 //!                             RSoundPlugIn::PenClickEnabled()
       
   233 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
   234 //! @SYMCreationDate            31/10/2007
       
   235 //! @SYMTestCaseDesc            SetPenClick() & PenClickEnabled().
       
   236 //! @SYMTestActions             1.  Create and connect a RWsSession, and within the RWsSession 
       
   237 //!                             2.  Create and construct a RSoundPlugin 
       
   238 //!                             3.  Enable pen click by using SetPenClick()
       
   239 //!                             4.  Check if the pen click is enabled by using PenClickEnabled()
       
   240 //!                             5.  Destroy the plugin and close window session
       
   241 //! @SYMTestStatus              Implemented
       
   242 //! @SYMTestPriority            High
       
   243 //! @SYMTestExpectedResults     1. SetPenClick() to ETrue without causing panic 
       
   244 //!                             2. Verify key click is enabled by PenClickEnabled() returns ETrue 
       
   245 //! @SYMTestType                CIT
       
   246     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   247         CREATE_OBJECT           RWsSession                 ws
       
   248         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   249         COMMAND                 ws                         new
       
   250         COMMAND                 ws                         Connect
       
   251         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-new_Command01
       
   252         COMMAND                 soundPlugIn                Construct
       
   253         COMMAND                 soundPlugIn                SetPenClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-SetPenClick_Command03
       
   254         COMMAND                 soundPlugIn                PenClickEnabled      GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-PenClickEnabled_Command04
       
   255         COMMAND                 soundPlugIn                Destroy    
       
   256         COMMAND                 ws                         Close
       
   257     END_TEST_BLOCK    
       
   258 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010
       
   259 
       
   260 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011
       
   261 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011
       
   262 //! @SYMAPI                     RSoundPlugIn::SetPenClick(TBool);
       
   263 //!                             RSoundPlugIn::PenClickEnabled()
       
   264 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
   265 //! @SYMCreationDate            31/10/2007
       
   266 //! @SYMTestCaseDesc            Check SetPenClick() & PenClickEnabled().
       
   267 //! @SYMTestActions             1.  Create and connect a RWsSession, and within the RWsSession 
       
   268 //!                             2.  Create and construct a RSoundPlugin 
       
   269 //!                             3.  Enable pen click by using SetPenClick()
       
   270 //!                             4.  Check if the pen click is enabled by using PenClickEnabled()
       
   271 //!                             5.  Destroy the plugin and close window session
       
   272 //! @SYMTestStatus              Implemented
       
   273 //! @SYMTestPriority            High
       
   274 //! @SYMTestExpectedResults     1. SetKeyClick() to EFalse 
       
   275 //!                             2. Verify key click is diabled by KeyClickEnabled() returns EFalse 
       
   276 //! @SYMTestType                CIT
       
   277     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   278         CREATE_OBJECT           RWsSession                 ws
       
   279         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   280         COMMAND                 ws                         new
       
   281         COMMAND                 ws                         Connect
       
   282         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-new_Command01
       
   283         COMMAND                 soundPlugIn                Construct
       
   284         COMMAND                 soundPlugIn                SetPenClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-SetPenClick_Command03
       
   285         COMMAND                 soundPlugIn                PenClickEnabled      GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-PenClickEnabled_Command04
       
   286         COMMAND                 soundPlugIn                Destroy    
       
   287         COMMAND                 ws                         Close
       
   288     END_TEST_BLOCK    
       
   289 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011
       
   290 
       
   291 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012
       
   292 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012
       
   293 //! @SYMAPI                     RSoundPlugIn::Unload()
       
   294 //! @SYMAuthor                  Kevin Zeng, Ray Liang, Wekey Weng.
       
   295 //! @SYMCreationDate            31/10/2007
       
   296 //! @SYMTestCaseDesc            Load a pulgin and then unload it.
       
   297 //! @SYMTestActions             1.  Create and connect a RWsSession, and within the RWsSession 
       
   298 //!                             2.  Create and construct a RSoundPlugin 
       
   299 //!                             3.  Load the plugin 
       
   300 //!                             4.  Unload the plugin 
       
   301 //!                             5.  Check if the plugin is unloaded by using IsLoaded() 
       
   302 //!                             6.  Destroy the plugin and close window session 
       
   303 //! @SYMTestStatus              Implemented
       
   304 //! @SYMTestPriority            High
       
   305 //! @SYMTestExpectedResults     1. Load and Unload retrived with no errors
       
   306 //!                             2. IsLoaded() returns EFalse after Unload the plugin //dwzhang
       
   307 //! @SYMTestType                CIT
       
   308     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   309         CREATE_OBJECT           RWsSession                 ws
       
   310         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   311         COMMAND                 ws                         new
       
   312         COMMAND                 ws                         Connect
       
   313         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-new_Command01
       
   314         COMMAND                 soundPlugIn                Construct           GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-Construct_Command02
       
   315         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-Load_Command03
       
   316         COMMAND                 soundPlugIn                Unload              
       
   317         COMMAND                 soundPlugIn                Destroy    
       
   318         COMMAND                 ws                         Close
       
   319     END_TEST_BLOCK    
       
   320 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012
       
   321 
       
   322 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013
       
   323 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013
       
   324 //! @SYMAPI                     RSoundPlugIn::CommandReply(TInt, const TPtrC8 {ref})
       
   325 //! @SYMAuthor                  Kevin Zeng
       
   326 //! @SYMCreationDate            29/12/2007
       
   327 //! @SYMTestCaseDesc            Try to Construct without a UID, then load the default dll, call CommandReply and unload it. 
       
   328 //! @SYMTestActions             1. Create and connect a RWsSession 
       
   329 //!                             2. Create a RSoundPlugIn attached to RWsSession
       
   330 //!                             3. Complete the construction without UID 
       
   331 //!                             4. Load the defaut plugin dll.(keyclickref.dll) and verifty.
       
   332 //!                             5. Send command and get reply. 
       
   333 //!                             6. Unload the plugin.
       
   334 //!                             7. Verify it is unloaded.
       
   335 //!                             8. Destruct and close all objects used.
       
   336 //! @SYMTestStatus              Implemented
       
   337 //! @SYMTestPriority            High
       
   338 //! @SYMTestExpectedResults     1. Construct and Load complete successfully.
       
   339 //!                             2. Because Construct without UID, CommandReply returns ESoundWrongPlugIn(-2147483648) and no panic.
       
   340 //!                             3. Unload Completes successfully.
       
   341 //! @SYMTestType                CIT
       
   342     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   343         CREATE_OBJECT           RWsSession                 ws
       
   344         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   345         COMMAND                 ws                         new
       
   346         COMMAND                 ws                         Connect
       
   347         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-new_Command01
       
   348         COMMAND                 soundPlugIn                Construct
       
   349         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-Load_Command03
       
   350         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-IsLoaded_Command04
       
   351         COMMAND !Error=-2147483648 soundPlugIn             CommandReply        GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-CommandReply_Command05
       
   352         COMMAND                 soundPlugIn                Unload
       
   353         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-IsLoaded_Command07
       
   354         COMMAND                 soundPlugIn                Destroy    
       
   355         COMMAND                 ws                         Close
       
   356     END_TEST_BLOCK    
       
   357 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013
       
   358 
       
   359 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014
       
   360 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014
       
   361 //! @SYMAPI                     RSoundPlugIn::SetKeyClick(TBool);
       
   362 //!                             RSoundPlugIn::SetPenClick(TBool);
       
   363 //!                             RSoundPlugIn::KeyClickEnabled();
       
   364 //!                             RSoundPlugIn::PenClilckEnabled()
       
   365 //! @SYMAuthor                  Dorothy Zhang
       
   366 //! @SYMCreationDate            02/01/2008
       
   367 //! @SYMTestCaseDesc            SetKeyClick and SetPenClick and then check the value after unload and re-load. 
       
   368 //! @SYMTestActions             1. Create and connect a RWsSession 
       
   369 //!                             2. Create a RSoundPlugIn attached to RWsSession
       
   370 //!                             3. Complete the construction without UID
       
   371 //!                             4. Load the defaut plugin dll.(keyclickref.dll) and verifty.
       
   372 //!                             5. SetKeyClick disabled and then check the KeyClickEnabled status.
       
   373 //!                             6. SetPenClick enabled and then check the PenClickEnalbed status.
       
   374 //!                             7. Unload the plugin and then check the KeyClickEnabled and PenClickEnabled status.
       
   375 //!                             8. Destruct and close all objects used.
       
   376 //! @SYMTestStatus              Implemented
       
   377 //! @SYMTestPriority            High
       
   378 //! @SYMTestExpectedResults     1. KeyClickEnabled status should always be disabled.
       
   379 //!                             2. PenClickEnabled status should always be enabled.
       
   380 //! @SYMTestType                CIT
       
   381     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   382         CREATE_OBJECT           RWsSession                 ws
       
   383         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   384         COMMAND                 ws                         new
       
   385         COMMAND                 ws                         Connect
       
   386         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-new_Command01
       
   387         COMMAND                 soundPlugIn                Construct
       
   388         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-Load_Command03
       
   389         COMMAND                 soundPlugIn                SetKeyClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-SetKeyClick_Command04
       
   390         COMMAND                 soundPlugIn                KeyClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-KeyClickEnabled_Command05
       
   391         COMMAND                 soundPlugIn                SetPenClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-SetPenClick_Command06
       
   392         COMMAND                 soundPlugIn                PenClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-PenClickEnabled_Command07
       
   393         COMMAND                 soundPlugIn                Unload              
       
   394         COMMAND                 soundPlugIn                KeyClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-KeyClickEnabled_Command09
       
   395         COMMAND                 soundPlugIn                PenClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-PenClickEnabled_Command10
       
   396         COMMAND                 soundPlugIn                Destroy    
       
   397         COMMAND                 ws                         Close
       
   398     END_TEST_BLOCK    
       
   399 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014
       
   400 
       
   401 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015
       
   402 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015
       
   403 //! @SYMAPI                     RSoundPlugIn::Load(const TDesC {ref})
       
   404 //! @SYMAuthor                  Kevin Zeng
       
   405 //! @SYMCreationDate            29/12/2007
       
   406 //! @SYMTestCaseDesc            Negative test for load non-existed file, non-dll file and non-plugin dll file.
       
   407 //!                             Try to load three files: a non-existed file, a non-dll file and a non-plugin file respectively. 
       
   408 //! @SYMTestActions             1. Create and connect a RWsSession 
       
   409 //!                             2. Create a RSoundPlugIn attached to RWsSession
       
   410 //!                             3. Complete the construction without UID
       
   411 //!                             4. Unload existing plugin.
       
   412 //!                             5. Load a plugin dll.which is not existed and verify weather is loaded.
       
   413 //!                             6. Load a file which is not a dll and verify weather is loaded.
       
   414 //!                             7. Load a file which is a dll but not a plugin and verify weather is loaded.
       
   415 //!                             8. Destruct and close all objects used.
       
   416 //! @SYMTestStatus              Implemented
       
   417 //! @SYMTestPriority            High
       
   418 //! @SYMTestExpectedResults     1. The first load should return -1(KErrNotFound) and IsLoaded returned false.
       
   419 //!                             2. The second load should return -5(KErrNotSupported)and IsLoaded returned false.
       
   420 //!                             3. The third load should return -5(KErrNotSupported)and IsLoaded returned false.
       
   421 //! @SYMTestType                CIT
       
   422     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   423         CREATE_OBJECT           RWsSession                 ws
       
   424         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   425         COMMAND                 ws                         new
       
   426         COMMAND                 ws                         Connect
       
   427         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-new_Command01
       
   428         COMMAND                 soundPlugIn                Construct
       
   429         COMMAND                 soundPlugIn                Unload
       
   430         COMMAND !Error=-1       soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command04
       
   431         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command05
       
   432         COMMAND !Error=-5      soundPlugIn                 Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command06
       
   433         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command07
       
   434         COMMAND !Error=-5      soundPlugIn                 Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command08
       
   435         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command09
       
   436         COMMAND                 soundPlugIn                Destroy    
       
   437         COMMAND                 ws                         Close
       
   438     END_TEST_BLOCK    
       
   439 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015
       
   440 
       
   441 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016
       
   442 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016
       
   443 //! @SYMAPI                     RSoundPlugIn::Load(const TDesC {ref})
       
   444 //! @SYMAuthor                  Kevin Zeng
       
   445 //! @SYMCreationDate            29/12/2007
       
   446 //! @SYMTestCaseDesc            Try to load plugin dlls multi-times. 
       
   447 //! @SYMTestActions             1. Create and connect a RWsSession.
       
   448 //!                             2. Create a RSoundPlugIn attached to RWsSession.
       
   449 //!                             3. Complete the construction with keyclickref.dll's UID.
       
   450 //!                             4. Load a plugin dll(keyclickref.dll).
       
   451 //!                             5. Load again(keyclickref.dll).
       
   452 //!                             6. Check is loaded.
       
   453 //!                             7. Send command and get reply.
       
   454 //!                             8. Destruct and close all objects used.
       
   455 //! @SYMTestStatus              Implemented
       
   456 //! @SYMTestPriority            High
       
   457 //! @SYMTestExpectedResults     1. All the Load methods returns KErrNone and no panic.
       
   458 //!                             2. IsLoaded returns True as expected.
       
   459 //!                             3. CommandReply returns KErrNone and no panic.
       
   460 //! @SYMTestType                CIT
       
   461     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   462         CREATE_OBJECT           RWsSession                 ws
       
   463         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   464         COMMAND                 ws                         new
       
   465         COMMAND                 ws                         Connect
       
   466         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-new_Command01
       
   467         COMMAND                 soundPlugIn                Construct           GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Construct_Command02
       
   468         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Load_Command03
       
   469         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Load_Command04
       
   470         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-IsLoaded_Command05
       
   471         COMMAND                 soundPlugIn                CommandReply        GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-CommandReply_Command06
       
   472         COMMAND                 soundPlugIn                Destroy    
       
   473         COMMAND                 ws                         Close
       
   474     END_TEST_BLOCK    
       
   475 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016
       
   476 
       
   477 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017
       
   478 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017
       
   479 //! @SYMAPI                     RSoundPlugIn::Unload()
       
   480 //! @SYMAuthor                  Kevin Zeng
       
   481 //! @SYMCreationDate            29/12/2007
       
   482 //! @SYMTestCaseDesc            Try to Unload multi-times. 
       
   483 //! @SYMTestActions             1. Create and connect a RWsSession.
       
   484 //!                             2. Create a RSoundPlugIn attached to RWsSession.
       
   485 //!                             3. Complete the construction with keyclickref.dll's UID.
       
   486 //!                             4. Load a plugin dll(keyclickref.dll).
       
   487 //!                             5. Unload the plugin multi-times.
       
   488 //!                             6. Check is unloaded.
       
   489 //!                             7. Send command and get reply.
       
   490 //!                             8. Destruct and close all objects used.
       
   491 //! @SYMTestStatus              Implemented
       
   492 //! @SYMTestPriority            High
       
   493 //! @SYMTestExpectedResults     1. All the Unload methods complete and no panic.
       
   494 //!                             2. IsLoaded returns False as expected.
       
   495 //!                             3. Because no plugin is loaded, CommandReply returns ESoundWrongPlugIn(-2147483648) and no panic.
       
   496 //! @SYMTestType                CIT
       
   497     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   498         CREATE_OBJECT           RWsSession                 ws
       
   499         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   500         COMMAND                 ws                         new
       
   501         COMMAND                 ws                         Connect
       
   502         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-new_Command01
       
   503         COMMAND                 soundPlugIn                Construct           GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-Construct_Command02
       
   504         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-Load_Command03
       
   505         COMMAND                 soundPlugIn                Unload              
       
   506         COMMAND                 soundPlugIn                Unload              
       
   507         COMMAND                 soundPlugIn                Unload              
       
   508         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-IsLoaded_Command07
       
   509         COMMAND !Error=-2147483648 soundPlugIn             CommandReply        GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-CommandReply_Command08
       
   510         COMMAND                 soundPlugIn                Destroy    
       
   511         COMMAND                 ws                         Close
       
   512     END_TEST_BLOCK    
       
   513 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017
       
   514 
       
   515 
       
   516 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018
       
   517 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018
       
   518 //! @SYMAPI                     RSoundPlugIn::RSoundPlugIn(RWsSession &aWs);
       
   519 //!                             RSoundPlugIn::Close()
       
   520 //! @SYMAuthor                  Ray Liang
       
   521 //! @SYMCreationDate            02/02/2008
       
   522 //! @SYMTestCaseDesc            Create a RSoundPlugIn object within the specified RWsSession and end with Close
       
   523 //! @SYMTestActions             execute RSoundPlugIn(RWsSession &) a RSoundPlugIn to create the object and Close.  
       
   524 //! @SYMTestStatus              Implemented
       
   525 //! @SYMTestPriority            High
       
   526 //! @SYMTestExpectedResults     RSoundPlugin object was created and Close without causing panic. 
       
   527 //! @SYMTestType                CIT
       
   528     START_TEST_BLOCK            10    T_GraphicsWservAPI      c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   529         CREATE_OBJECT           RWsSession                 ws
       
   530         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   531         COMMAND                 ws                         new
       
   532         COMMAND                 ws                         Connect
       
   533         COMMAND                 soundPlugIn                new          GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018-001-new_Command03
       
   534         COMMAND                 soundPlugIn                Close        
       
   535     END_TEST_BLOCK    
       
   536 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018
       
   537 
       
   538 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019
       
   539 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019
       
   540 //! @SYMAPI                     RSoundPlugIn::RSoundPlugIn(RWsSession &aWs);
       
   541 //!                             RSoundPlugIn::Destroy()
       
   542 //! @SYMAuthor                  Ray Liang
       
   543 //! @SYMCreationDate            02/02/2008
       
   544 //! @SYMTestCaseDesc            Create a RSoundPlugIn object within the specified RWsSession and end with Destroy()
       
   545 //! @SYMTestActions             execute RSoundPlugIn(RWsSession &) a RSoundPlugIn to create the object and Destroy. 
       
   546 //! @SYMTestStatus              Implemented
       
   547 //! @SYMTestPriority            High
       
   548 //! @SYMTestExpectedResults     RSoundPlugin object was created and Destroy without causing panic. 
       
   549 //! @SYMTestType                CIT
       
   550     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   551         CREATE_OBJECT           RWsSession                 ws
       
   552         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   553         COMMAND                 ws                         new
       
   554         COMMAND                 ws                         Connect
       
   555         COMMAND                 soundPlugIn                new          GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019-001-new_Command03
       
   556         COMMAND                 soundPlugIn                Destroy        
       
   557     END_TEST_BLOCK    
       
   558 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019
       
   559 
       
   560 
       
   561 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021
       
   562 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021
       
   563 //! @SYMAPI                     RSoundPlugIn::CommandReply(TInt, const TPtrC8 {ref})
       
   564 //! @SYMAuthor                  Kevin Zeng
       
   565 //! @SYMCreationDate            1/2/2008
       
   566 //! @SYMTestCaseDesc            Negative test for a wrong uid.
       
   567 //!                             Try to Construct with a wrong uid.
       
   568 //! @SYMTestActions             1. Create and connect a RWsSession.
       
   569 //!                             2. Create a RSoundPlugIn attached to RWsSession.
       
   570 //!                             3. Complete the construction with an error UID. 
       
   571 //!                             4. Load a plugin dll(keyclickref.dll).
       
   572 //!                             5. Check is loaded.
       
   573 //!                             6. Send command and get reply.
       
   574 //!                             7. Destruct and close all objects used.
       
   575 //! @SYMTestStatus              Implemented
       
   576 //! @SYMTestPriority            High
       
   577 //! @SYMTestExpectedResults     1. Construct completes and no panic. 
       
   578 //!                             2. Because Construct with wrong uid, CommandReply returns ESoundWrongPlugIn(-2147483648) and no panic.
       
   579 //! @SYMTestType                CIT
       
   580     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   581         CREATE_OBJECT           RWsSession                 ws
       
   582         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   583         COMMAND                 ws                         new
       
   584         COMMAND                 ws                         Connect
       
   585         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-new_Command01
       
   586         COMMAND                 soundPlugIn                Construct           GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-Construct_Command02
       
   587         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-Load_Command03
       
   588         COMMAND                 soundPlugIn                IsLoaded            GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-IsLoaded_Command04
       
   589         COMMAND !Error=-2147483648 soundPlugIn             CommandReply        GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-CommandReply_Command5
       
   590         COMMAND                 soundPlugIn                Destroy    
       
   591         COMMAND                 ws                         Close
       
   592     END_TEST_BLOCK
       
   593 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021
       
   594 
       
   595 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023
       
   596 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023
       
   597 //! @SYMAPI                     RSoundPlugIn::SetKeyClick(TBool);
       
   598 //!                             RSoundPlugIn::KeyClickEnabled()
       
   599 //! @SYMAuthor                  Kevin Zeng
       
   600 //! @SYMCreationDate            02/01/2008
       
   601 //! @SYMTestCaseDesc            Unload the plugin and then set and get the KeyClick status.
       
   602 //! @SYMTestActions             1. Create and connect a RWsSession.
       
   603 //!                             2. Create a RSoundPlugIn attached to RWsSession.
       
   604 //!                             3. Complete the construction without a UID. 
       
   605 //!                             4. Load a plugin dll(keyclickref.dll).
       
   606 //!                             5. Unload the plugin.
       
   607 //!                             6. Set keyclick to True and get it.
       
   608 //!                             7. Set Keyclick to False and get it.
       
   609 //!                             8. Destruct and close all objects used.
       
   610 //! @SYMTestStatus              Implemented
       
   611 //! @SYMTestPriority            High
       
   612 //! @SYMTestExpectedResults     1. SetKeyClick completes and no panic.
       
   613 //!                             2. KeyClickEnabled returns as expected.
       
   614 //! @SYMTestType                CIT
       
   615     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   616         CREATE_OBJECT           RWsSession                 ws
       
   617         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   618         COMMAND                 ws                         new
       
   619         COMMAND                 ws                         Connect
       
   620         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-new_Command01
       
   621         COMMAND                 soundPlugIn                Construct
       
   622         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-Load_Command03
       
   623         COMMAND                 soundPlugIn                Unload
       
   624         COMMAND                 soundPlugIn                SetKeyClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-SetKeyClick_Command05
       
   625         COMMAND                 soundPlugIn                KeyClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-KeyClickEnabled_Command06
       
   626         COMMAND                 soundPlugIn                SetKeyClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-SetKeyClick_Command07
       
   627         COMMAND                 soundPlugIn                KeyClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-KeyClickEnabled_Command08
       
   628         COMMAND                 soundPlugIn                Destroy    
       
   629         COMMAND                 ws                         Close
       
   630     END_TEST_BLOCK
       
   631 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023
       
   632 
       
   633 START_TESTCASE                  GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024
       
   634 //! @SYMTestCaseID              GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024
       
   635 //! @SYMAPI                     RSoundPlugIn::SetPenClick(TBool);
       
   636 //!                             RSoundPlugIn::PenClickEnabled()
       
   637 //! @SYMAuthor                  Kevin Zeng
       
   638 //! @SYMCreationDate            02/01/2008
       
   639 //! @SYMTestCaseDesc            SetPenClick after the plugin is unloaded.
       
   640 //! @SYMTestActions             1. Create and connect a RWsSession.
       
   641 //!                             2. Create a RSoundPlugIn attached to RWsSession.
       
   642 //!                             3. Complete the construction without a UID. 
       
   643 //!                             4. Load a plugin dll(keyclickref.dll).
       
   644 //!                             5. Unload the plugin.
       
   645 //!                             6. Set and get PenClick.
       
   646 //!                             7. Destruct and close all objects used.
       
   647 //! @SYMTestStatus              Implemented
       
   648 //! @SYMTestPriority            High
       
   649 //! @SYMTestExpectedResults     1. SetPenClick completes and no panic.
       
   650 //!                             2. PenClickEnabled returns as expected.
       
   651 //! @SYMTestType                CIT
       
   652     START_TEST_BLOCK            10    T_GraphicsWservAPI    c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini
       
   653         CREATE_OBJECT           RWsSession                 ws
       
   654         CREATE_OBJECT           RSoundPlugIn               soundPlugIn
       
   655         COMMAND                 ws                         new
       
   656         COMMAND                 ws                         Connect
       
   657         COMMAND                 soundPlugIn                new                 GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-new_Command01
       
   658         COMMAND                 soundPlugIn                Construct
       
   659         COMMAND                 soundPlugIn                Load                GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-Load_Command03
       
   660         COMMAND                 soundPlugIn                Unload
       
   661         COMMAND                 soundPlugIn                SetPenClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-SetPenClick_Command05
       
   662         COMMAND                 soundPlugIn                PenClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-PenClickEnabled_Command06
       
   663         COMMAND                 soundPlugIn                SetPenClick         GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-SetPenClick_Command07
       
   664         COMMAND                 soundPlugIn                PenClickEnabled     GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-PenClickEnabled_Command08
       
   665         COMMAND                 soundPlugIn                Destroy    
       
   666         COMMAND                 ws                         Close
       
   667     END_TEST_BLOCK
       
   668 END_TESTCASE                    GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024
       
   669 
       
   670 
       
   671 
       
   672 
       
   673 
       
   674 
       
   675 
       
   676 
       
   677 
       
   678 
       
   679 
       
   680 
       
   681 
       
   682