testexecmdw/tef/tef/test/regressiontest/clienttest/testdata/scripts/dt-tef-testclient-0005.script
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     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 
       
    17 LOAD_SUITE	TEF_ClientTestUnit
       
    18 
       
    19 START_TESTCASE DT-TEF-TestClient-0005
       
    20 //! @SYMTestCaseID          DT-TEF-TestClient-0005
       
    21 //! @SYMCreationDate        26-08-2008
       
    22 //! @SYMAuthor              extShuoHuang
       
    23 //! @SYMTestPriority        High
       
    24 //! @SYMTestCaseDesc        This test a long TEFBlock command, the command is a very long string. The test server does not support the long command. this test case just to test testclient handle the long command.
       
    25 //!                         /*      RunTestBlock() should not send the long command to server
       
    26 //!                         *      if(aCommandString.Length() > KMaxTestExecuteCommandLength)
       
    27 //!                         {
       
    28 //!                         TRequestStatus* status = &aStatus;
       
    29 //!                         User::RequestComplete(status,KErrTooBig);
       
    30 //!                         return;
       
    31 //!                         }
       
    32 //!                         SendReceive(....,aStatus);
       
    33 //!                         *      In current we don't want change TEF beheivour, so we just let
       
    34 //!                         * server send command out.
       
    35 //!                         * Because aStatus has be over wirted, KErrTooBig can't be return.
       
    36 //!                         * the ASSERT_TRUE can't be execute.
       
    37 //!                         */
       
    38 //! @SYMTestExpectedResults The command to long test client should return KErrTooBig. The test case should pass.
       
    39 RUN_TEST_STEP 100 TEF_ClientTestUnit TEFUnit.CTEFClientSuiteUT.TestRunLongTestBlockCommandL
       
    40 END_TESTCASE DT-TEF-TestClient-0005