telephonyprotocols/pdplayer/umts/test/te_spudNetworkSide/scripts/TE_spudNetworkSide.script
changeset 0 3553901f7fa8
child 3 962e6306d9d2
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 of network-initiated conditions.
       
    15 //
       
    16 
       
    17 //! @file TE_spudNetworkSide.script
       
    18 
       
    19 RUN_UTILS  MkDir c:\simtsy\
       
    20 RUN_UTILS  MkDir c:\private\
       
    21 RUN_UTILS  MkDir c:\private\101F7989\
       
    22 RUN_UTILS  MkDir c:\private\101F7989\esock\
       
    23 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
    24 RUN_UTILS  MakeReadWrite c:\config.txt
       
    25 RUN_UTILS  MakeReadWrite c:\loopback.ini
       
    26 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
    27 RUN_UTILS  DeleteFile c:\config.txt
       
    28 RUN_UTILS  DeleteFile c:\loopback.ini
       
    29 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSide_config.txt c:\simtsy\config.txt
       
    30 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSide_config.txt c:\config.txt
       
    31 RUN_UTILS  CopyFile z:\TestData\Configs\TE_SpudNetworkSideLoopbackCSY.ini c:\loopback.ini
       
    32 
       
    33 // Configure CommDB for the tests
       
    34 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    35 ced -i z:\TestData\Configs\te_spudnetworkside.xml
       
    36 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
    37 
       
    38 LOAD_SUITE TE_SpudNetworkSide
       
    39 
       
    40 
       
    41 // TestSection suffix numbers correspond to SIM TSY's test section numbers. i.e. PrimaryActivationFails201 uses SIM TSYs test201 
       
    42 
       
    43 //
       
    44 // Sanity check tests: before testing the error cases, we test the success cases to make sure the system is OK.
       
    45 //
       
    46 
       
    47 START_TESTCASE          NET-Spud-NetworkSide-0801
       
    48 //! @SYMTestCaseID      NET-Spud-NetworkSide-0801
       
    49 //! @SYMTestCaseDesc Sanity check: successfully activate Primary context. 
       
    50 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
    51 //! @SYMTestActions Explicitly start the SPUD interface. SIM TSY, etc successfully activate the primary context.
       
    52 //! @SYMTestExpectedResults  Primary PDP context is activated, SPUD is started: RConnection::Start on SPUD returns KErrNone.
       
    53 //! @SYMTestPriority Critical
       
    54 //! @SYMTestStatus Implemented
       
    55 //! @SYMTestType CIT
       
    56 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide.ini PrimaryActivationOk1
       
    57 DELAY 3000
       
    58 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
    59 END_TESTCASE            NET-Spud-NetworkSide-0801
       
    60 
       
    61 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    62 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
    63 
       
    64 START_TESTCASE          NET-Spud-NetworkSide-0802
       
    65 //! @SYMTestCaseID      NET-Spud-NetworkSide-0802
       
    66 //! @SYMTestCaseDesc Sanity check: successfully activate Secondary context. 
       
    67 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
    68 //! @SYMTestActions Implicitly start the SPUD interface by opening a socket bound to its secondary context. Set QoS on the socket, prompting GUQoS to activate secondary context.
       
    69 //! @SYMTestExpectedResults Both the primary & secondary contexts are activated. EQoSEventAddPolicy and EQoSEventConfirm are received by the test app.
       
    70 //! @SYMTestPriority Critical
       
    71 //! @SYMTestStatus Implemented
       
    72 //! @SYMTestType CIT
       
    73 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryActivationOk1
       
    74 DELAY 3000
       
    75 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
    76 END_TESTCASE            NET-Spud-NetworkSide-0802
       
    77 
       
    78 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    79 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
    80 
       
    81 //
       
    82 // Operation errors: Creation, TFT, QoS, Activation, Deactivation, Deletion errors.
       
    83 //
       
    84 START_TESTCASE          NET-Spud-NetworkSide-0803
       
    85 //! @SYMTestCaseID      NET-Spud-NetworkSide-0803
       
    86 //! @SYMTestCaseDesc Activation of Primary fails. 
       
    87 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
    88 //! @SYMTestActions Explicitly start Spud. SIM TSY returns an error on activation of the primary context. 
       
    89 //! @SYMTestExpectedResults Spud cannot be started: RConnection::Start returns an error.
       
    90 //! @SYMTestPriority Critical
       
    91 //! @SYMTestStatus Implemented
       
    92 //! @SYMTestType CIT
       
    93 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide.ini PrimaryActivationFails201
       
    94 DELAY 3000
       
    95 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
    96 END_TESTCASE            NET-Spud-NetworkSide-0803
       
    97 
       
    98 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
    99 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   100 
       
   101 START_TESTCASE          NET-Spud-NetworkSide-0804
       
   102 //! @SYMTestCaseID      NET-Spud-NetworkSide-0804
       
   103 //! @SYMTestCaseDesc Activation of Secondary fails.
       
   104 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   105 //! @SYMTestActions Implicitly start SPUD by opening a socket bound to the secondary context. Set QoS on the socket, prompting GUQoS to activate secondary context. SIM TSY errors secondary context activation request. 
       
   106 //! @SYMTestExpectedResults  EQoSEventAddPolicy and EQoSEventFailure are received by the test app.
       
   107 //! @SYMTestPriority Critical
       
   108 //! @SYMTestStatus Implemented
       
   109 //! @SYMTestType CIT
       
   110 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryActivationFails301
       
   111 DELAY 3000
       
   112 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   113 END_TESTCASE            NET-Spud-NetworkSide-0804
       
   114 
       
   115 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   116 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   117 
       
   118 
       
   119 START_TESTCASE          NET-Spud-NetworkSide-0805
       
   120 //! @SYMTestCaseID      NET-Spud-NetworkSide-0805
       
   121 //! @SYMTestCaseDesc Network deletes Activated Primary.
       
   122 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   123 //! @SYMTestActions Activate the primary context only by explicitly starting Spud. After a pause, SIM.TSY deletes the primary context. 
       
   124 //! @SYMTestExpectedResults Spud is started successfully - the RConnection is started with KErrNone. KLinkLayerClosed / KErrDisconnected notification is received by the test app.
       
   125 //! @SYMTestPriority Critical
       
   126 //! @SYMTestStatus Implemented
       
   127 //! @SYMTestType CIT
       
   128 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimaryEvent z:\testdata\configs\te_spudNetworkSide.ini PrimaryQoSEventDelete1
       
   129 DELAY 3000
       
   130 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   131 END_TESTCASE            NET-Spud-NetworkSide-0805
       
   132 
       
   133 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   134 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   135 
       
   136 
       
   137 START_TESTCASE          NET-Spud-NetworkSide-0806
       
   138 //! @SYMTestCaseID      NET-Spud-NetworkSide-0806
       
   139 //! @SYMTestCaseDesc  GUQoS triggers the KContextDelete on SPUDMAN after the Seondary PDP Context is created. -  This does not happen anymore in Guqos
       
   140 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   141 //! @SYMTestActions Activate the primary and the secondary contexts by opening a socket & setting QoS on it, GuQoS deletes the created secondary context.
       
   142 //! @SYMTestExpectedResults EQoSEventAddPolicy, EQoSEventFailure are received by the test app.
       
   143 //! @SYMTestPriority Critical
       
   144 //! @SYMTestStatus Implemented
       
   145 //! @SYMTestType CIT
       
   146 //! DUE TO BEHAVIOURAL CHANGES IN GUQOS - THIS CASE IS NO LONGER VALID AND THEREFORE NOT RUN
       
   147 //RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide.ini KContextDelete
       
   148 //DELAY 3000
       
   149 //RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   150 END_TESTCASE            NET-Spud-NetworkSide-0806
       
   151 
       
   152 //run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   153 //run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   154 
       
   155 
       
   156 START_TESTCASE          NET-Spud-NetworkSide-0807
       
   157 //! @SYMTestCaseID      NET-Spud-NetworkSide-0807
       
   158 //! @SYMTestCaseDesc  The QoS parameter changes on the Primary PDP Context.
       
   159 //! @SYMFssID NETWORKING/Spud/Control Plane/Network initiated PDP Context Modification
       
   160 //! @SYMTestActions Explicitly start the SPUD interface to activate the primary context, use sim.tsy to trigger the QoS parameter changes on the Primary PDP Context.
       
   161 //! @SYMTestExpectedResults SPUD starts successfully. SPUD receives the QoS parameter change event successfully. RConnection times out and returns the error code KErrTimedOut.
       
   162 //! @SYMTestPriority Critical
       
   163 //! @SYMTestStatus Implemented
       
   164 //! @SYMTestType CIT
       
   165 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimaryEvent z:\testdata\configs\te_spudNetworkSide.ini ENetworkQoSChangePrimary
       
   166 DELAY 3000
       
   167 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   168 END_TESTCASE            NET-Spud-NetworkSide-0807
       
   169 
       
   170 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   171 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   172 
       
   173 
       
   174 START_TESTCASE          NET-Spud-NetworkSide-0808
       
   175 //! @SYMTestCaseID      NET-Spud-NetworkSide-0808
       
   176 //! @SYMTestCaseDesc Triggers the Primary PDP Context deletion before the lower NIF is up.
       
   177 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   178 //! @SYMTestActions Explicitly start the SPUD interface to activate the primary context, it fails then deletes the Primary Context. 
       
   179 //! @SYMTestExpectedResults Spud start fails. RConnection::Start returns the error.
       
   180 //! @SYMTestPriority Critical
       
   181 //! @SYMTestStatus Implemented
       
   182 //! @SYMTestType CIT
       
   183 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide.ini PrimaryDeleteBeforeLowerNif
       
   184 DELAY 3000
       
   185 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   186 END_TESTCASE            NET-Spud-NetworkSide-0808
       
   187 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   188 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   189 
       
   190 
       
   191 START_TESTCASE          NET-Spud-NetworkSide-0809
       
   192 //! @SYMTestCaseID      NET-Spud-NetworkSide-0809
       
   193 //! @SYMTestCaseDesc Triggers the Secondary PDP Context deletion before the lower NIF is up.
       
   194 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   195 //! @SYMTestActions Activate the primary and the secondary contexts by opening a socket & setting QoS on it,fails to creat the secondary context.
       
   196 //! @SYMTestExpectedResults EQoSEventAddPolicy, EQoSEventFailure are received by the test app.
       
   197 //! @SYMTestPriority Critical
       
   198 //! @SYMTestStatus Implemented
       
   199 //! @SYMTestType CIT
       
   200 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryDeleteBeforeLowerNif
       
   201 DELAY 3000
       
   202 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   203 END_TESTCASE            NET-Spud-NetworkSide-0809
       
   204 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   205 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   206 
       
   207 
       
   208 START_TESTCASE          NET-Spud-NetworkSide-0810
       
   209 //! @SYMTestCaseID      NET-Spud-NetworkSide-0810
       
   210 //! @SYMTestCaseDesc Failure to Start a lower NIF for primary context (LinkLayerDown from lower NIF) 
       
   211 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
   212 //! @SYMTestActions Explicitly start SPUD. Spud starts the lower NIF for the primary context. Lower NIF reports LinkLayerDown with an error. 
       
   213 //! @SYMTestExpectedResults Spud start fails. RConnection::Start returns the error.
       
   214 //! @SYMTestPriority Critical
       
   215 //! @SYMTestStatus Implemented
       
   216 //! @SYMTestType CIT
       
   217 RUN_TEST_STEP 120 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide_platsec.ini PrimaryLowerNifStartFails210
       
   218 DELAY 3000
       
   219 RUN_TEST_STEP 30 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   220 END_TESTCASE            NET-Spud-NetworkSide-0810
       
   221 
       
   222 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   223 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   224 
       
   225 
       
   226 START_TESTCASE          NET-Spud-NetworkSide-0811
       
   227 //! @SYMTestCaseID      NET-Spud-NetworkSide-0811
       
   228 //! @SYMTestCaseDesc Failure to Start a lower NIF for secondary context (LinkLayerDown from lower NIF) 
       
   229 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   230 //! @SYMTestActions Request activation of the secondary PDP context by opening a socket & setting QoS on it. Spud start the lower NIF for the secondary context. Lower NIF reports LinkLayerDown with error. 
       
   231 //! @SYMTestExpectedResults The primary context is activated, secondary is not. EQoSEventAddPolicy and EQoSEventFailure with the error code are received by the test app.
       
   232 //! @SYMTestPriority Critical
       
   233 //! @SYMTestStatus Implemented
       
   234 //! @SYMTestType CIT
       
   235 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide_platsec.ini SecondaryLowerNifStartFails310
       
   236 DELAY 3000
       
   237 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   238 END_TESTCASE            NET-Spud-NetworkSide-0811
       
   239 
       
   240 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   241 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   242 
       
   243 
       
   244 START_TESTCASE          NET-Spud-NetworkSide-0812
       
   245 //! @SYMTestCaseID      NET-Spud-NetworkSide-0812
       
   246 //! @SYMTestCaseDesc Test Etel suspension of primary context
       
   247 //! @SYMFssID NETWORKING/Spud/Control Plane/Network initiated PDP Context Modification
       
   248 //! @SYMTestActions Create/send data on a socket with no QoS parameters (therefore a primary context), and read from the opposite loopback port. Suspend the context. Send more data and attempt to read from the opposite port. Resume the context. Send more data and attempt to read from the opposite port.
       
   249 //! @SYMTestExpectedResults The read on the loopback comm port should work before the context is suspended, and after it is resumed. It should time-out when the context is suspended.
       
   250 //! @SYMTestPriority Critical
       
   251 //! @SYMTestStatus Implemented
       
   252 //! @SYMTestType CIT
       
   253 RUN_TEST_STEP 120 TE_SpudNetworkSide CSpudSuspendContext z:\testdata\configs\te_spudNetworkSide.ini PrimaryContextSuspendAndResume
       
   254 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   255 DELAY 3000
       
   256 END_TESTCASE            NET-Spud-NetworkSide-0812
       
   257 
       
   258 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   259 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   260 
       
   261 
       
   262 START_TESTCASE          NET-Spud-NetworkSide-0813
       
   263 //! @SYMTestCaseID      NET-Spud-NetworkSide-0813
       
   264 //! @SYMTestCaseDesc Test Etel suspension of secondary context
       
   265 //! @SYMFssID NETWORKING/Spud/Control Plane/Network initiated PDP Context Modification
       
   266 //! @SYMTestActions Create/send data on a socket with QoS parameters (therefore a secondary context), and read from the opposite loopback port. Suspend the context. Send more data and attempt to read from the opposite port. Resume the context. Send more data and attempt to read from the opposite port.
       
   267 //! @SYMTestExpectedResults The read on the loopback comm port should work before the context is suspended, and after it is resumed. It should time-out when the context is suspended.
       
   268 //! @SYMTestPriority Critical
       
   269 //! @SYMTestStatus Implemented
       
   270 //! @SYMTestType CIT
       
   271 RUN_TEST_STEP 120 TE_SpudNetworkSide CSpudSuspendContext z:\testdata\configs\te_spudNetworkSide.ini SecondaryContextSuspendAndResume
       
   272 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   273 DELAY 3000
       
   274 END_TESTCASE            NET-Spud-NetworkSide-0813
       
   275 
       
   276 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   277 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   278 
       
   279 
       
   280 START_TESTCASE          NET-Spud-NetworkSide-0814
       
   281 //! @SYMTestCaseID      NET-Spud-NetworkSide-0814
       
   282 //! @SYMTestCaseDesc Primary PDP context activation fails
       
   283 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
   284 //! @SYMTestActions Primary PDP context activation fails by modifying the TFT values
       
   285 //! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
       
   286 //! @SYMTestPriority Critical
       
   287 //! @SYMTestStatus Implemented
       
   288 //! @SYMTestType CIT
       
   289 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide.ini PrimaryActivationFails18
       
   290 DELAY 3000
       
   291 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   292 END_TESTCASE            NET-Spud-NetworkSide-0814
       
   293 
       
   294 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   295 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   296 
       
   297 
       
   298 START_TESTCASE          NET-Spud-NetworkSide-0815
       
   299 //! @SYMTestCaseID      NET-Spud-NetworkSide-0815
       
   300 //! @SYMTestCaseDesc Secondary PDP context: Setting TFT fails
       
   301 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   302 //! @SYMTestActions Setting TFT values on secondary PDP context fails due to using incorrect TFT values
       
   303 //! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
       
   304 //! @SYMTestPriority Critical
       
   305 //! @SYMTestStatus Implemented
       
   306 //! @SYMTestType CIT
       
   307 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryActivationFails19
       
   308 DELAY 3000
       
   309 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   310 END_TESTCASE            NET-Spud-NetworkSide-0815
       
   311 
       
   312 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   313 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   314 
       
   315 
       
   316 START_TESTCASE          NET-Spud-NetworkSide-0816
       
   317 //! @SYMTestCaseID      NET-Spud-NetworkSide-0816
       
   318 //! @SYMTestCaseDesc Secondary PDP context: Setting requested QoS parameters fails
       
   319 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   320 //! @SYMTestActions Setting QoS parameters on secondary PDP context fails due to using incorrect QoS parameter values
       
   321 //! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
       
   322 //! @SYMTestPriority Critical
       
   323 //! @SYMTestStatus Implemented
       
   324 //! @SYMTestType CIT
       
   325 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryActivationFails20
       
   326 DELAY 3000
       
   327 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   328 END_TESTCASE            NET-Spud-NetworkSide-0816
       
   329 
       
   330 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   331 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   332 
       
   333 
       
   334 START_TESTCASE          NET-Spud-NetworkSide-0817
       
   335 //! @SYMTestCaseID      NET-Spud-NetworkSide-0817
       
   336 //! @SYMTestCaseDesc Primary PDP context deletion fails
       
   337 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   338 //! @SYMTestActions Primary PDP context deletion fails by modifying the TFT values
       
   339 //! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
       
   340 //! @SYMTestPriority Critical
       
   341 //! @SYMTestStatus Implemented
       
   342 //! @SYMTestType CIT
       
   343 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide.ini PrimaryDeletionFails21
       
   344 DELAY 8000
       
   345 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   346 END_TESTCASE            NET-Spud-NetworkSide-0817
       
   347 
       
   348 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   349 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   350 
       
   351 
       
   352 START_TESTCASE          NET-Spud-NetworkSide-0818
       
   353 //! @SYMTestCaseID      NET-Spud-NetworkSide-0818
       
   354 //! @SYMTestCaseDesc Secondary PDP context deletion fails
       
   355 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   356 //! @SYMTestActions Secondary PDP context deletion fails by modifying the TFT values
       
   357 //! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
       
   358 //! @SYMTestPriority Critical
       
   359 //! @SYMTestStatus Implemented
       
   360 //! @SYMTestType CIT
       
   361 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudSecondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryDeletionFails22
       
   362 DELAY 8000
       
   363 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   364 END_TESTCASE            NET-Spud-NetworkSide-0818
       
   365 
       
   366 
       
   367 START_TESTCASE          NET-Spud-NetworkSide-0819
       
   368 //! @SYMTestCaseID      NET-Spud-NetworkSide-0819
       
   369 //! @SYMTestCaseDesc  Network deletes a primary context
       
   370 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   371 //! @SYMTestActions  Starts a secondary context by creating a socket with QoS, starts a rawipnif instance opposite the secondary context, deletes the primary context then sends data on the primary context's socket.
       
   372 //! @SYMTestExpectedResults   Since the primary context is down, the data is sent on the secondary context, and is received by the rawipnif instance opposite the secondary context.
       
   373 //! @SYMTestPriority Critical
       
   374 //! @SYMTestStatus Implemented
       
   375 //! @SYMTestType CIT
       
   376 RUN_TEST_STEP 600 TE_SpudNetworkSide CSpudDeletePrimary z:\testdata\configs\te_spudNetworkSide.ini PrimaryQoSEventDeleteWithSecondary
       
   377 DELAY 3000
       
   378 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   379 END_TESTCASE            NET-Spud-NetworkSide-0819
       
   380 
       
   381 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   382 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   383 
       
   384 
       
   385 START_TESTCASE          NET-Spud-NetworkSide-0820
       
   386 //! @SYMTestCaseID      NET-Spud-NetworkSide-0820
       
   387 //! @SYMTestCaseDesc Call RConnection::Stop while SPUDFSM is initialising the phone  
       
   388 //! @SYMFssId NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   389 //! @SYMTestActions  Cause RPhone::Initialise to take a very long time to complete, and call RConnection::Stop while it is running
       
   390 //! @SYMTestExpectedResults Connection stops successfully.
       
   391 //! @SYMTestPriority Critical
       
   392 //! @SYMTestStatus Implemented
       
   393 //! @SYMTestType CIT
       
   394 RUN_TEST_STEP 120 TE_SpudNetworkSide CSpudPrimayStartingStop z:\testdata\configs\te_spudNetworkSide.ini PrimarySlowInitialisePhone
       
   395 DELAY 3000
       
   396 END_TESTCASE            NET-Spud-NetworkSide-0820
       
   397 
       
   398 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   399 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   400 
       
   401 START_TESTCASE          NET-Spud-NetworkSide-0821
       
   402 //! @SYMTestCaseID      NET-Spud-NetworkSide-0821
       
   403 //! @SYMTestCaseDesc Sanity check: successfully activate many primary contexts. 
       
   404 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
   405 //! @SYMTestActions Explicitly start the SPUD interfaces. SIM TSY, etc successfully activate the primary contexts.
       
   406 //! @SYMTestExpectedResults  The Primary PDP contexts are activated, SPUD started: RConnection::Start on the SPUDs returns KErrNone.
       
   407 //! @SYMTestPriority Critical
       
   408 //! @SYMTestStatus Implemented
       
   409 //! @SYMTestType CIT
       
   410 RUN_TEST_STEP 100 TE_SpudNetworkSide CSpudMultiPrimary z:\testdata\configs\te_spudNetworkSide.ini MultiPrimaryActivationOk1
       
   411 DELAY 3000
       
   412 RUN_TEST_STEP 100 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   413 END_TESTCASE            NET-Spud-NetworkSide-0821
       
   414 
       
   415 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   416 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   417 
       
   418 
       
   419 START_TESTCASE          NET-Spud-NetworkSide-0822
       
   420 //! @SYMTestCaseID      NET-Spud-NetworkSide-0822
       
   421 //! @SYMTestCaseDesc Set requested Qos (SSD, IM CN SI) on a Secondary PDP context.
       
   422 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   423 //! @SYMTestActions  Activate the primary and the secondary contexts by opening a socket & setting requested Qos (SSD = Speech, SI = True, IM CN SI = True) on secondary PDP context
       
   424 //! @SYMTestExpectedResults Both the primary & secondary contexts are activated. EQoSEventAddPolicy and EQoSEventConfirm are received by the test app.
       
   425 //! @SYMTestPriority Critical
       
   426 //! @SYMTestStatus Implemented
       
   427 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudQosR5Secondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryR5ActivationOk1
       
   428 DELAY 3000
       
   429 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   430 END_TESTCASE            NET-Spud-NetworkSide-0822
       
   431 
       
   432 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   433 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   434 
       
   435 
       
   436 START_TESTCASE          NET-Spud-NetworkSide-0823
       
   437 //! @SYMTestCaseID      NET-Spud-NetworkSide-0823
       
   438 //! @SYMTestCaseDesc Secondary PDP context: Setting requested QoS parameters fails
       
   439 //! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
       
   440 //! @SYMTestActions Setting QoS parameters on secondary PDP context fails due to using incorrect QoS parameter values
       
   441 //! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
       
   442 //! @SYMTestPriority Critical
       
   443 //! @SYMTestStatus Implemented
       
   444 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudQosR5Secondary z:\testdata\configs\te_spudNetworkSide.ini SecondaryR5ActivationFails20
       
   445 DELAY 3000
       
   446 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   447 END_TESTCASE            NET-Spud-NetworkSide-0823
       
   448 
       
   449 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   450 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   451 
       
   452 START_TESTCASE          NET-Spud-NetworkSide-0824
       
   453 //! @SYMTestCaseID      NET-Spud-NetworkSide-0824
       
   454 //! @SYMTestCaseDesc  Network deletes a primary context where SI is set on Secondary PDP context.
       
   455 //! @SYMFssID NETWORKING/Spud/Control Plane/ PDP Context Deactivation
       
   456 //! @SYMTestActions  Starts a secondary context by creating a socket with QoS, starts a rawipnif instance opposite the secondary context, deletes the primary context then sends data on the primary context's socket.
       
   457 //! @SYMTestExpectedResults   Since the primary context is down, the data is sent on the secondary context, and is received by the rawipnif instance opposite the secondary context.
       
   458 //! @SYMTestPriority Critical
       
   459 //! @SYMTestStatus Implemented
       
   460 //! @SYMTestType CIT
       
   461 RUN_TEST_STEP 600 TE_SpudNetworkSide CSpudDeletePrimaryR5Qos z:\testdata\configs\te_spudNetworkSide.ini PrimaryQoSR5EventDeleteWithSecondary
       
   462 DELAY 3000
       
   463 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   464 END_TESTCASE            NET-Spud-NetworkSide-0824
       
   465 
       
   466 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   467 run_script z:\TestData\scripts\te_esock_test_loadesock.script
       
   468 
       
   469 START_TESTCASE          NET-Spud-NetworkSide-0825
       
   470 //! @SYMTestCaseID      NET-Spud-NetworkSide-0825
       
   471 //! @SYMTestCaseDesc Sanity check: Primary context Progress Test 
       
   472 //! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
       
   473 //! @SYMTestActions Explicitly start the SPUD interface. SIM TSY, etc successfully activate the primary context. Check the Progress.
       
   474 //! @SYMTestExpectedResults  Primary PDP context is activated, SPUD is started: RConnection::Start on SPUD returns KErrNone. Check the Progress of connection.
       
   475 //! @SYMTestPriority Critical
       
   476 //! @SYMTestStatus Implemented
       
   477 //! @SYMTestType CIT
       
   478 RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPrimaryContextEventProgress z:\testdata\configs\te_spudNetworkSide.ini PrimaryActivationOk1
       
   479 DELAY 3000
       
   480 RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
       
   481 END_TESTCASE            NET-Spud-NetworkSide-0825
       
   482 
       
   483 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
       
   484 
       
   485 
       
   486 RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
       
   487 RUN_UTILS  MakeReadWrite c:\config.txt
       
   488 RUN_UTILS  DeleteFile c:\simtsy\config.txt
       
   489 RUN_UTILS  DeleteFile c:\config.txt
       
   490 RUN_UTILS  DeleteFile c:\loopback.ini
       
   491