telephonyprotocols/pdplayer/umts/test/te_spudNetworkSide/scripts/version1/TE_spudNetworkSide_ppp.script
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Secondary PDP-context UMTS Driver integration tests using PPP as the NIF.
       
    15 //
       
    16 
       
    17 //! @file TE_SpudNetworkSide_ppp.script
       
    18 
       
    19 
       
    20 RUN_UTILS  MkDir c:\simtsy\
       
    21 RUN_UTILS  MkDir c:\private\
       
    22 RUN_UTILS  MkDir c:\private\101F7989\
       
    23 RUN_UTILS  MkDir c:\private\101F7989\esock\
       
    24 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
    25 RUN_UTILS  MakeReadWrite c:\config.txt
       
    26 RUN_UTILS  MakeReadWrite c:\loopback.ini
       
    27 RUN_UTILS  MakeReadWrite c:\qospolicies.ini
       
    28 RUN_UTILS  MakeReadWrite c:\private\101F7989\esock\qospolicies.ini
       
    29 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
    30 RUN_UTILS  DeleteFile c:\config.txt
       
    31 RUN_UTILS  DeleteFile c:\loopback.ini
       
    32 RUN_UTILS  DeleteFile c:\qospolicies.ini
       
    33 RUN_UTILS  DeleteFile c:\private\101F7989\esock\qospolicies.ini
       
    34 RUN_UTILS  CopyFile z:\TestData\Configs\qospolicies.ini c:\qospolicies.ini
       
    35 RUN_UTILS  CopyFile z:\TestData\Configs\qospolicies.ini c:\private\101F7989\esock\qospolicies.ini
       
    36 
       
    37 LOAD_SUITE TE_SpudNetworkSide
       
    38 
       
    39 // TestSection suffix numbers correspond to SIM TSY's test section numbers. i.e. PrimaryActivationFails201 uses SIM TSYs test201 
       
    40 
       
    41 //
       
    42 // Configure CommDB for the tests using PPP as lower NIF
       
    43 //
       
    44 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    45 ced -i z:\TestData\Configs\TE_SpudNetworkSide_ppp.xml
       
    46 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
    47 
       
    48 
       
    49 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSide_nifman_config.txt c:\simtsy\config.txt
       
    50 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSide_nifman_config.txt c:\config.txt
       
    51 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSideLoopbackCSY.ini c:\loopback.ini
       
    52 
       
    53 START_TESTCASE          NET-Spud-NetworkSide-0501
       
    54 //! @SYMTestCaseID      NET-Spud-NetworkSide-0501
       
    55 //! @SYMTestCaseDesc Stop the interface when SPUD is starting lower NIF for the primary context.
       
    56 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
    57 //! @SYMTestActions SPUD starts the lower NIF, which "takes a long time to start", i.e. no LinkLayerUp / Down. Stop SPUD using RConnection::Stop(EStopNormal)
       
    58 //! @SYMTestExpectedResults KLinkLayerClosed / KErrCancel progress.
       
    59 //! @SYMTestPriority Critical
       
    60 //! @SYMTestStatus Implemented
       
    61 //! @SYMTestType IT 
       
    62 // Note: this test case uses CSpudSecondaryStartingStop by design, because the sequence of events is identical, the only difference is timing.
       
    63 RUN_TEST_STEP 120 TE_SpudNetworkSide CSpudSecondaryStartingStop z:\testdata\configs\te_spudNetworkSide_nifman.ini NormalStopPrimaryStartingLowerNif1
       
    64 DELAY 3000
       
    65 END_TESTCASE            NET-Spud-NetworkSide-0501
       
    66 
       
    67 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
    68 RUN_UTILS  MakeReadWrite c:\config.txt
       
    69 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
    70 RUN_UTILS  DeleteFile c:\config.txt
       
    71 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSide_config.txt c:\simtsy\config.txt
       
    72 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSide_config.txt c:\config.txt
       
    73 
       
    74 
       
    75 
       
    76 START_TESTCASE          NET-Spud-NetworkSide-0502
       
    77 //! @SYMTestCaseID      NET-Spud-NetworkSide-0502
       
    78 //! @SYMTestCaseDesc Error on Start of a lower NIF for primary context.  
       
    79 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
    80 //! @SYMTestActions Explicitly start Spud. Spud starts a lower NIF for the primary context, which returns an error.
       
    81 //! @SYMTestExpectedResults starting Spud fails. RConnection::Start returns an error.
       
    82 //! @SYMTestPriority Critical
       
    83 //! @SYMTestStatus Implemented
       
    84 //! @SYMTestType CIT
       
    85 RUN_TEST_STEP 30 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide_platsec.ini PrimaryLowerNifStartError210
       
    86 DELAY 3000
       
    87 END_TESTCASE            NET-Spud-NetworkSide-0502
       
    88 
       
    89 
       
    90 # Wait for Nifman Idle timeout to kill the interface
       
    91 DELAY 10000
       
    92 
       
    93 START_TESTCASE          NET-Spud-NetworkSide-0503
       
    94 //! @SYMTestCaseID      NET-Spud-NetworkSide-0503
       
    95 //! @SYMTestCaseDesc Network Deletes primary context when lower NIF was started, and SPUD waits for LinkLayerUp.  
       
    96 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
    97 //! @SYMTestActions Explicitly start Spud. Spud starts the lower NIF for the primary, which "takes a long time to start, i.e. no LinkLayerUp/Down. SIM TSY deletes the primary context.
       
    98 //! @SYMTestExpectedResults Start on Spud fails. Nifman progress 8000 with KErrDisconnected is received by the test app.
       
    99 //! @SYMTestPriority Critical
       
   100 //! @SYMTestStatus Implemented
       
   101 //! @SYMTestType CIT
       
   102 RUN_TEST_STEP 30 TE_SpudNetworkSide CSpudPrimaryEventOnLowerNifStarting z:\testdata\configs\te_spudNetworkSide.ini PrimaryDeleteOnLowerNifStart212
       
   103 DELAY 3000
       
   104 END_TESTCASE            NET-Spud-NetworkSide-0503
       
   105 
       
   106 
       
   107 // The following tests use different CommDB entries
       
   108 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   109 ced -i z:\TestData\Configs\TE_SpudNetworkSide_PppLoopback.xml
       
   110 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   111 RUN_UTILS  MakeReadWrite c:\loopback.ini
       
   112 RUN_UTILS  DeleteFile c:\loopback.ini
       
   113 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSideLoopbackCSY_serial.ini c:\loopback.ini
       
   114 
       
   115 
       
   116 START_TESTCASE          NET-Spud-NetworkSide-0504
       
   117 //! @SYMTestCaseID      NET-Spud-NetworkSide-0504
       
   118 //! @SYMTestCaseDesc Sanity check: successfully activate Primary context using PPP as a lower NIF
       
   119 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
   120 //! @SYMTestActions Explicitly start the SPUD interface using PPP. Also start a PPP server connected to the port from the SPUD. SIM TSY, etc successfully activate the primary context.
       
   121 //! @SYMTestExpectedResults  Primary PDP context is activated, SPUD is started: RConnection::Start on SPUD returns KErrNone.
       
   122 //! @SYMTestPriority Critical
       
   123 //! @SYMTestStatus Implemented
       
   124 //! @SYMTestType CIT
       
   125 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPppPrimary z:\testdata\configs\te_spudNetworkSide.ini PppPrimaryOk
       
   126 DELAY 3000
       
   127 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   128 END_TESTCASE            NET-Spud-NetworkSide-0504
       
   129 
       
   130 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   131 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   132 
       
   133 
       
   134 START_TESTCASE          NET-Spud-NetworkSide-0505
       
   135 //! @SYMTestCaseID      NET-Spud-NetworkSide-0505
       
   136 //! @SYMTestCaseDesc Successfully activate a secondary context and send data using the secondary context, using PPP as the lower NIF
       
   137 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   138 //! @SYMTestActions Open a socket with QoS parameters. Also start 2 PPP server instances on loopback ports opposite the primary and secondary contexts of the SPUD. Send data to and from the secondary context of SPUD.
       
   139 //! @SYMTestExpectedResults  Primary PDP context is activated, SPUD is started: RConnection::Start on SPUD returns KErrNone. Send as well as RecvFrom complete successfully.
       
   140 //! @SYMTestPriority Critical
       
   141 //! @SYMTestStatus Implemented
       
   142 //! @SYMTestType CIT
       
   143 RUN_TEST_STEP 600 TE_SpudNetworkSide CSpudPppSecondarySend z:\testdata\configs\te_spudNetworkSide.ini PppSecondarySend
       
   144 DELAY 3000
       
   145 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   146 END_TESTCASE            NET-Spud-NetworkSide-0505
       
   147 
       
   148 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   149 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   150 
       
   151 
       
   152 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
   153 RUN_UTILS  MakeReadWrite c:\config.txt
       
   154 RUN_UTILS  MakeReadWrite c:\qospolicies.ini
       
   155 RUN_UTILS  MakeReadWrite c:\private\101F7989\esock\qospolicies.ini
       
   156 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
   157 RUN_UTILS  DeleteFile c:\config.txt
       
   158 RUN_UTILS  DeleteFile c:\loopback.ini
       
   159 RUN_UTILS  DeleteFile c:\qospolicies.ini
       
   160 RUN_UTILS  DeleteFile c:\private\101F7989\esock\qospolicies.ini
       
   161 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   162