telephonyprotocols/pdplayer/umts/test/te_spudNetworkSide/scripts/te_pdplayer_ip6.script
branchRCL_3
changeset 7 fe8b59ab9fa0
child 12 cca59d85ca31
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/telephonyprotocols/pdplayer/umts/test/te_spudNetworkSide/scripts/te_pdplayer_ip6.script	Wed Mar 31 23:24:02 2010 +0300
@@ -0,0 +1,483 @@
+// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// IPv6 integration tests of network-initiated conditions.
+// NOTE: this test suite is the same as te_spudnetworkside, in that it runs the same tests
+//       however all tests run with an IPv6 configuration.  May seem like overkill however
+//       as the flow is created before activation, its important to make sure that it
+//       is cleaned up properly in the event of an error.
+
+//! @file te_pdplayer_ip6.script
+
+RUN_UTILS  MkDir c:\simtsy\
+RUN_UTILS  MkDir c:\private\
+RUN_UTILS  MkDir c:\private\101F7989\
+RUN_UTILS  MkDir c:\private\101F7989\esock\
+RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
+RUN_UTILS  MakeReadWrite c:\config.txt
+RUN_UTILS  MakeReadWrite c:\loopback.ini
+RUN_UTILS  DeleteFile c:\simtsy\config.txt
+RUN_UTILS  DeleteFile c:\config.txt
+RUN_UTILS  DeleteFile c:\loopback.ini
+
+RUN_UTILS  CopyFile z:\testdata\configs\te_pdplayer_ip6_simtsy_config.txt c:\simtsy\config.txt
+RUN_UTILS  CopyFile z:\TestData\Configs\te_pdplayer_ip6_simtsy_config.txt c:\config.txt
+RUN_UTILS  CopyFile z:\TestData\Configs\te_pdplayer_ip6_loopbackcsy.ini c:\loopback.ini
+
+// Configure CommDB for the tests
+run_script z:\testdata\scripts\te_esock_test_unloadesockforced.script
+ced -i z:\testdata\configs\te_pdplayer_ip6.cfg
+run_script z:\testdata\scripts\te_esock_test_loadesock.script
+
+LOAD_SUITE te_spudnetworkside
+
+
+// TestSection suffix numbers correspond to SIM TSY's test section numbers. i.e. PrimaryActivationFails201 uses SIM TSYs test201 
+
+//
+// Sanity check tests: before testing the error cases, we test the success cases to make sure the system is OK.
+//
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0001
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0001
+//! @SYMTestCaseDesc Sanity check: successfully activate Primary context. 
+//! @SYMFssID PDP Layer / Primary PDP Context Creation
+//! @SYMTestActions Explicitly Start() a socket. SIM TSY, etc successfully activate the primary context.
+//! @SYMTestExpectedResults  Primary PDP context is activated: RConnection::Start on SPUD returns KErrNone.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimary z:\testdata\configs\te_pdplayer_ip6.ini PrimaryActivationOk1
+DELAY 3000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0001
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0002
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0002
+//! @SYMTestCaseDesc Sanity check: successfully activate Secondary context. 
+//! @SYMFssID PDP Layer / Secondary PDP Context Creation
+//! @SYMTestActions Implicitly Start() a socket bound to its secondary context. Set QoS on the socket, prompting GUQoS to activate secondary context.
+//! @SYMTestExpectedResults Both the primary & secondary contexts are activated. EQoSEventAddPolicy and EQoSEventConfirm are received by the test app.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudSecondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryActivationOk1
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0002
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+//
+// Operation errors: Creation, TFT, QoS, Activation, Deactivation, Deletion errors.
+//
+START_TESTCASE          CBS-PDPLAYER-IP6-0003
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0003
+//! @SYMTestCaseDesc Activation of Primary fails. 
+//! @SYMFssID PDP Layer / Primary PDP Context Creation
+//! @SYMTestActions Explicitly start Spud. SIM TSY returns an error on activation of the primary context. 
+//! @SYMTestExpectedResults Spud cannot be started: RConnection::Start returns an error.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimary z:\testdata\configs\te_pdplayer_ip6.ini PrimaryActivationFails201
+DELAY 3000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0003
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0004
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0004
+//! @SYMTestCaseDesc Activation of Secondary fails.
+//! @SYMFssID PDP Layer / Secondary PDP Context Creation
+//! @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. 
+//! @SYMTestExpectedResults  EQoSEventAddPolicy and EQoSEventFailure are received by the test app.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudSecondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryActivationFails301
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0004
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0005
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0005
+//! @SYMTestCaseDesc Network deletes Activated Primary.
+//! @SYMFssID PDP Layer / PDP Context Deactivation
+//! @SYMTestActions Activate the primary context only by explicitly starting Spud. After a pause, SIM.TSY deletes the primary context. 
+//! @SYMTestExpectedResults Spud is started successfully - the RConnection is started with KErrNone. KLinkLayerClosed / KErrDisconnected notification is received by the test app.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimaryEvent z:\testdata\configs\te_pdplayer_ip6.ini PrimaryQoSEventDelete1
+DELAY 3000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0005
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0006
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0006
+//! @SYMTestCaseDesc  The QoS parameter changes on the Primary PDP Context.
+//! @SYMFssID PDP Layer / Network initiated PDP Context Modification
+//! @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.
+//! @SYMTestExpectedResults SPUD starts successfully. SPUD receives the QoS parameter change event successfully. RConnection times out and returns the error code KErrTimedOut.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimaryEvent z:\testdata\configs\te_pdplayer_ip6.ini ENetworkQoSChangePrimary
+DELAY 3000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0006
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0007
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0007
+//! @SYMTestCaseDesc Triggers the Primary PDP Context deletion before the lower NIF is up.
+//! @SYMFssID PDP Layer / PDP Context Deactivation
+//! @SYMTestActions Explicitly start the SPUD interface to activate the primary context, it fails then deletes the Primary Context. 
+//! @SYMTestExpectedResults Spud start fails. RConnection::Start returns the error.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimary z:\testdata\configs\te_pdplayer_ip6.ini PrimaryDeleteBeforeLowerNif
+DELAY 3000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0007
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0008
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0008
+//! @SYMTestCaseDesc Triggers the Secondary PDP Context deletion before the lower NIF is up.
+//! @SYMFssID PDP Layer / PDP Context Deactivation
+//! @SYMTestActions Activate the primary and the secondary contexts by opening a socket & setting QoS on it,fails to creat the secondary context.
+//! @SYMTestExpectedResults EQoSEventAddPolicy, EQoSEventFailure are received by the test app.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudSecondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryDeleteBeforeLowerNif
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0008
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0009
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0009
+//! @SYMTestCaseDesc Failure to Start a lower NIF for primary context (LinkLayerDown from lower NIF) 
+//! @SYMFssID PDP Layer /Primary PDP Context Creation
+//! @SYMTestActions Explicitly start SPUD. Spud starts the lower NIF for the primary context. Lower NIF reports LinkLayerDown with an error. 
+//! @SYMTestExpectedResults Spud start fails. RConnection::Start returns the error.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 120 te_spudnetworkside CSpudPrimary z:\testdata\configs\te_spudnetworkside_platsec.ini PrimaryLowerNifStartFails210
+DELAY 3000
+RUN_TEST_STEP 30 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0009
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0010
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0010
+//! @SYMTestCaseDesc Failure to Start a lower NIF for secondary context (LinkLayerDown from lower NIF) 
+//! @SYMFssID PDP Layer /Secondary PDP Context Creation
+//! @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. 
+//! @SYMTestExpectedResults The primary context is activated, secondary is not. EQoSEventAddPolicy and EQoSEventFailure with the error code are received by the test app.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudSecondary z:\testdata\configs\te_spudnetworkside_platsec.ini SecondaryLowerNifStartFails310
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0010
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0011
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0011
+//! @SYMTestCaseDesc Test Etel suspension of primary context
+//! @SYMFssID PDP Layer /Network initiated PDP Context Modification
+//! @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.
+//! @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.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 120 te_spudnetworkside CSpudSuspendContext z:\testdata\configs\te_pdplayer_ip6.ini PrimaryContextSuspendAndResume
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+DELAY 3000
+END_TESTCASE            CBS-PDPLAYER-IP6-0011
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0012
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0012
+//! @SYMTestCaseDesc Test Etel suspension of secondary context
+//! @SYMFssID PDP Layer /Network initiated PDP Context Modification
+//! @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.
+//! @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.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 120 te_spudnetworkside CSpudSuspendContext z:\testdata\configs\te_pdplayer_ip6.ini SecondaryContextSuspendAndResume
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//DELAY 3000
+//END_TESTCASE            CBS-PDPLAYER-IP6-0012
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0013
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0013
+//! @SYMTestCaseDesc Primary PDP context activation fails
+//! @SYMFssID PDP Layer /Primary PDP Context Creation
+//! @SYMTestActions Primary PDP context activation fails by modifying the TFT values
+//! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimary z:\testdata\configs\te_pdplayer_ip6.ini PrimaryActivationFails18
+DELAY 3000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0013
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0014
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0014
+//! @SYMTestCaseDesc Secondary PDP context: Setting TFT fails
+//! @SYMFssID PDP Layer /Secondary PDP Context Creation
+//! @SYMTestActions Setting TFT values on secondary PDP context fails due to using incorrect TFT values
+//! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudSecondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryActivationFails19
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0014
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0015
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0015
+//! @SYMTestCaseDesc Secondary PDP context: Setting requested QoS parameters fails
+//! @SYMFssID PDP Layer /Secondary PDP Context Creation
+//! @SYMTestActions Setting QoS parameters on secondary PDP context fails due to using incorrect QoS parameter values
+//! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudSecondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryActivationFails20
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0015
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0016
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0016
+//! @SYMTestCaseDesc Primary PDP context deletion fails
+//! @SYMFssID PDP Layer / PDP Context Deactivation
+//! @SYMTestActions Primary PDP context deletion fails by modifying the TFT values
+//! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimary z:\testdata\configs\te_pdplayer_ip6.ini PrimaryDeletionFails21
+DELAY 8000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0016
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0017
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0017
+//! @SYMTestCaseDesc Secondary PDP context deletion fails
+//! @SYMFssID PDP Layer / PDP Context Deactivation
+//! @SYMTestActions Secondary PDP context deletion fails by modifying the TFT values
+//! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudSecondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryDeletionFails22
+//DELAY 8000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0017
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0018
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0018
+//! @SYMTestCaseDesc  Network deletes a primary context
+//! @SYMFssID PDP Layer / PDP Context Deactivation
+//! @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.
+//! @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.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 600 te_spudnetworkside CSpudDeletePrimary z:\testdata\configs\te_pdplayer_ip6.ini PrimaryQoSEventDeleteWithSecondary
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0018
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0019
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0019
+//! @SYMTestCaseDesc Call RConnection::Stop while SPUDFSM is initialising the phone  
+//! @SYMFssId PDP Layer /Secondary PDP Context Creation
+//! @SYMTestActions  Cause RPhone::Initialise to take a very long time to complete, and call RConnection::Stop while it is running
+//! @SYMTestExpectedResults Connection stops successfully.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 120 te_spudnetworkside CSpudPrimayStartingStop z:\testdata\configs\te_pdplayer_ip6.ini PrimarySlowInitialisePhone
+DELAY 3000
+END_TESTCASE            CBS-PDPLAYER-IP6-0019
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0020
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0020
+//! @SYMTestCaseDesc Sanity check: successfully activate many primary contexts. 
+//! @SYMFssID PDP Layer /Primary PDP Context Creation
+//! @SYMTestActions Explicitly start the SPUD interfaces. SIM TSY, etc successfully activate the primary contexts.
+//! @SYMTestExpectedResults  The Primary PDP contexts are activated, SPUD started: RConnection::Start on the SPUDs returns KErrNone.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 100 te_spudnetworkside CSpudMultiPrimary z:\testdata\configs\te_pdplayer_ip6.ini MultiPrimaryActivationOk1
+DELAY 3000
+RUN_TEST_STEP 100 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0020
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0021
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0021
+//! @SYMTestCaseDesc Set requested Qos (SSD, IM CN SI) on a Secondary PDP context.
+//! @SYMFssID PDP Layer /Secondary PDP Context Creation
+//! @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
+//! @SYMTestExpectedResults Both the primary & secondary contexts are activated. EQoSEventAddPolicy and EQoSEventConfirm are received by the test app.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudQosR5Secondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryR5ActivationOk1
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0021
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0022
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0022
+//! @SYMTestCaseDesc Secondary PDP context: Setting requested QoS parameters fails
+//! @SYMFssID PDP Layer /Secondary PDP Context Creation
+//! @SYMTestActions Setting QoS parameters on secondary PDP context fails due to using incorrect QoS parameter values
+//! @SYMTestExpectedResults The SpudMan code should respond to this event correctly without Leave and Panic.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//RUN_TEST_STEP 60 te_spudnetworkside CSpudQosR5Secondary z:\testdata\configs\te_pdplayer_ip6.ini SecondaryR5ActivationFails20
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0022
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+// Uncomment when IPv6 on Secondary PDP contexts is sorted. 
+//START_TESTCASE          CBS-PDPLAYER-IP6-0023
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0023
+//! @SYMTestCaseDesc  Network deletes a primary context where SI is set on Secondary PDP context.
+//! @SYMFssID PDP Layer / PDP Context Deactivation
+//! @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.
+//! @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.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+//RUN_TEST_STEP 600 te_spudnetworkside CSpudDeletePrimaryR5Qos z:\testdata\configs\te_pdplayer_ip6.ini PrimaryQoSR5EventDeleteWithSecondary
+//DELAY 3000
+//RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+//END_TESTCASE            CBS-PDPLAYER-IP6-0023
+
+//run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+//run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+START_TESTCASE          CBS-PDPLAYER-IP6-0024
+//! @SYMTestCaseID      CBS-PDPLAYER-IP6-0024
+//! @SYMTestCaseDesc Sanity check: Primary context Progress Test 
+//! @SYMFssID PDP Layer /Primary PDP Context Creation
+//! @SYMTestActions Explicitly start the SPUD interface. SIM TSY, etc successfully activate the primary context. Check the Progress.
+//! @SYMTestExpectedResults  Primary PDP context is activated, SPUD is started: RConnection::Start on SPUD returns KErrNone. Check the Progress of connection.
+//! @SYMTestPriority Critical
+//! @SYMTestStatus Implemented
+//! @SYMTestType CIT
+RUN_TEST_STEP 60 te_spudnetworkside CSpudPrimaryContextEventProgress z:\testdata\configs\te_pdplayer_ip6.ini PrimaryActivationOk1
+DELAY 3000
+RUN_TEST_STEP 60 te_spudnetworkside CESockCheck z:\testdata\configs\te_pdplayer_ip6.ini ESockCheck
+END_TESTCASE            CBS-PDPLAYER-IP6-0024
+
+run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
+run_script z:\TestData\scripts\te_esock_test_loadesock.script
+
+RUN_UTILS  MakeReadWrite c:\simtsy\config.txt
+RUN_UTILS  MakeReadWrite c:\config.txt
+RUN_UTILS  DeleteFile c:\simtsy\config.txt
+RUN_UTILS  DeleteFile c:\config.txt
+RUN_UTILS  DeleteFile c:\loopback.ini