datacommsserver/esockserver/test/TE_DummyProvider/scripts/te_dummyprovider_011.script
branchRCL_3
changeset 26 b564fb5fd78b
parent 23 cbb19216b74d
equal deleted inserted replaced
25:9d7ce34704c8 26:b564fb5fd78b
       
     1 //
       
     2 // Copyright (c) 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 PRINT Running CASE011
       
    18 PRINT Two dummy layers able to start successfully
       
    19 PRINT Execute the crazy start/wait/close loop increasing wait with every iteration.
       
    20 PRINT See how the stack manages cancelations at distinct stages.
       
    21 
       
    22 
       
    23 //
       
    24 LOAD_SUITE te_esockteststepsSuite -SharedData
       
    25 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script
       
    26 
       
    27 START_TESTCASE COMINF-ESOCK-DummyProviders-011
       
    28 //! @SYMTestCaseID COMINF-ESOCK-DummyProviders-011
       
    29 //! @SYMTestCaseDesc  Tests the resiliance of the RConnection::Start to cancelations (induced by RConnection::Stop).
       
    30 //! @SYMTestActions   Execute the crazy start/wait/close loop increasing wait with every iteration.
       
    31 //! @SYMTestExpectedResults    No crashes, all operations complete (typically with KErrCancel, but that's not cared for)
       
    32 //! @SYMTestPriority  Critical 
       
    33 //! @SYMTestType CT
       
    34 //! @SYMComponent   comms-infras_esock
       
    35 
       
    36 RUN_TEST_STEP 100 te_esockteststepsSuite creatersocketservStep z:\testdata\configs\te_dummyprovider_011.ini CreateSockSvr1
       
    37 RUN_TEST_STEP 100 te_esockteststepsSuite createrconnectionStep z:\testdata\configs\te_dummyprovider_011.ini CreateConn1
       
    38 RUN_TEST_STEP 100 te_esockteststepsSuite connectrsocketservStep z:\testdata\configs\te_dummyprovider_011.ini ConnectSockSvr1
       
    39 RUN_TEST_STEP 100 te_esockteststepsSuite openrconnectionStep z:\testdata\configs\te_dummyprovider_011.ini OpenConn1
       
    40 RUN_TEST_STEP 100 te_esockteststepsSuite StartCloseCrazyLoopRConnectionStep z:\testdata\configs\te_dummyprovider_011.ini StartConn1
       
    41 RUN_TEST_STEP 100 te_esockteststepsSuite closerconnectionStep z:\testdata\configs\te_dummyprovider_011.ini CloseConn1
       
    42 RUN_TEST_STEP 100 te_esockteststepsSuite closersocketservStep z:\testdata\configs\te_dummyprovider_011.ini CloseSockSvr1
       
    43 RUN_TEST_STEP 100 te_esockteststepsSuite cleanallStep
       
    44 END_TESTCASE COMINF-ESOCK-DummyProviders-011
       
    45 
       
    46 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    47 
       
    48 PRINT Completed CASE011