24
|
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_9x.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 DeleteFile c:\simtsy\config.txt
|
|
28 |
RUN_UTILS DeleteFile c:\config.txt
|
|
29 |
RUN_UTILS DeleteFile c:\loopback.ini
|
|
30 |
|
|
31 |
LOAD_SUITE TE_SpudNetworkSide
|
|
32 |
|
|
33 |
// TestSection suffix numbers correspond to SIM TSY's test section numbers. i.e. PrimaryActivationFails201 uses SIM TSYs test201
|
|
34 |
|
|
35 |
//
|
|
36 |
// Configure CommDB for the tests using PPP as lower NIF
|
|
37 |
//
|
|
38 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
39 |
ced -i z:\TestData\Configs\TE_SpudNetworkSide_ppp.xml
|
|
40 |
run_script z:\TestData\scripts\te_esock_test_loadesock.script
|
|
41 |
|
|
42 |
|
|
43 |
RUN_UTILS CopyFile z:\TestData\Configs\TE_SpudNetworkSide_ppp_config.txt c:\simtsy\config.txt
|
|
44 |
RUN_UTILS CopyFile z:\TestData\Configs\TE_SpudNetworkSide_ppp_config.txt c:\config.txt
|
|
45 |
RUN_UTILS CopyFile z:\TestData\Configs\TE_SpudNetworkSideLoopbackCSY.ini c:\loopback.ini
|
|
46 |
|
|
47 |
START_TESTCASE NET-Spud-NetworkSide-1201
|
|
48 |
//! @SYMTestCaseID NET-Spud-NetworkSide-1201
|
|
49 |
//! @SYMTestCaseDesc Stop the interface when SPUD is starting lower NIF for the primary context.
|
|
50 |
//! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
|
|
51 |
//! @SYMTestActions SPUD starts the lower NIF, which "takes a long time to start", i.e. no LinkLayerUp / Down. Stop SPUD using RConnection::Stop(EStopNormal)
|
|
52 |
//! @SYMTestExpectedResults KLinkLayerClosed / KErrCancel progress.
|
|
53 |
//! @SYMTestPriority Critical
|
|
54 |
//! @SYMTestStatus Implemented
|
|
55 |
//! @SYMTestType IT
|
|
56 |
// Note: this test case uses CSpudSecondaryStartingStop by design, because the sequence of events is identical, the only difference is timing.
|
|
57 |
RUN_TEST_STEP 120 TE_SpudNetworkSide CSpudSecondaryStartingStop z:\testdata\configs\te_spudNetworkSide_nifman.ini NormalStopPrimaryStartingLowerNif1
|
|
58 |
DELAY 6000
|
|
59 |
RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
|
|
60 |
END_TESTCASE NET-Spud-NetworkSide-1201
|
|
61 |
|
|
62 |
|
|
63 |
// Unload and reload ESock TWICE. Once is not enough to correct the crash of the previous test
|
|
64 |
// case. Afeter TESTCASE 1 is fixed, this can (and should) be safely removed.
|
|
65 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
66 |
run_script z:\TestData\scripts\te_esock_test_loadesock.script
|
|
67 |
|
|
68 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
69 |
run_script z:\TestData\scripts\te_esock_test_loadesock.script
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
RUN_UTILS MakeReadWrite c:\simtsy\config.txt
|
|
74 |
RUN_UTILS MakeReadWrite c:\config.txt
|
|
75 |
RUN_UTILS DeleteFile c:\simtsy\config.txt
|
|
76 |
RUN_UTILS DeleteFile c:\config.txt
|
|
77 |
RUN_UTILS CopyFile z:\TestData\Configs\te_spudnetworkside_ppp_config2.txt c:\simtsy\config.txt
|
|
78 |
RUN_UTILS CopyFile z:\TestData\Configs\te_spudnetworkside_ppp_config2.txt c:\config.txt
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
START_TESTCASE NET-Spud-NetworkSide-1202
|
|
83 |
//! @SYMTestCaseID NET-Spud-NetworkSide-1202
|
|
84 |
//! @SYMTestCaseDesc Error on Start of a lower NIF for primary context.
|
|
85 |
//! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
|
|
86 |
//! @SYMTestActions Explicitly start Spud. Spud starts a lower NIF for the primary context, which returns an error.
|
|
87 |
//! @SYMTestExpectedResults starting Spud fails. RConnection::Start returns an error.
|
|
88 |
//! @SYMTestPriority Critical
|
|
89 |
//! @SYMTestStatus Implemented
|
|
90 |
//! @SYMTestType CIT
|
|
91 |
RUN_TEST_STEP 30 TE_SpudNetworkSide CSpudPrimary z:\testdata\configs\te_spudNetworkSide_platsec.ini PrimaryLowerNifStartError210
|
|
92 |
DELAY 3000
|
|
93 |
RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
|
|
94 |
END_TESTCASE NET-Spud-NetworkSide-1202
|
|
95 |
|
|
96 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
97 |
run_script z:\TestData\scripts\te_esock_test_loadesock.script
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
// Wait for Nifman Idle timeout to kill the interface
|
|
102 |
DELAY 10000
|
|
103 |
|
|
104 |
START_TESTCASE NET-Spud-NetworkSide-1203
|
|
105 |
//! @SYMTestCaseID NET-Spud-NetworkSide-1203
|
|
106 |
//! @SYMTestCaseDesc Network Deletes primary context when lower NIF was started, and SPUD waits for LinkLayerUp.
|
|
107 |
//! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
|
|
108 |
//! @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.
|
|
109 |
//! @SYMTestExpectedResults Start on Spud fails. Nifman progress 2000 with KErrDisconnected is received by the test app.
|
|
110 |
//! @SYMTestPriority Critical
|
|
111 |
//! @SYMTestStatus Implemented
|
|
112 |
//! @SYMTestType CIT
|
|
113 |
RUN_TEST_STEP 30 TE_SpudNetworkSide CSpudPrimaryEventOnLowerNifStarting z:\testdata\configs\te_spudNetworkSide.ini PrimaryDeleteOnLowerNifStart212
|
|
114 |
DELAY 3000
|
|
115 |
RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
|
|
116 |
END_TESTCASE NET-Spud-NetworkSide-1203
|
|
117 |
|
|
118 |
|
|
119 |
// The following tests use different CommDB entries
|
|
120 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
121 |
ced -i z:\TestData\Configs\TE_SpudNetworkSide_PppLoopback.xml
|
|
122 |
run_script z:\TestData\scripts\te_esock_test_loadesock.script
|
|
123 |
RUN_UTILS MakeReadWrite c:\loopback.ini
|
|
124 |
RUN_UTILS DeleteFile c:\loopback.ini
|
|
125 |
RUN_UTILS CopyFile z:\TestData\Configs\TE_SpudNetworkSideLoopbackCSY_serial.ini c:\loopback.ini
|
|
126 |
|
|
127 |
|
|
128 |
START_TESTCASE NET-Spud-NetworkSide-1204
|
|
129 |
//! @SYMTestCaseID NET-Spud-NetworkSide-1204
|
|
130 |
//! @SYMTestCaseDesc Sanity check: successfully activate Primary context using PPP as a lower NIF
|
|
131 |
//! @SYMFssID NETWORKING/Spud/Control Plane/Primary PDP Context Creation
|
|
132 |
//! @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.
|
|
133 |
//! @SYMTestExpectedResults Primary PDP context is activated, SPUD is started: RConnection::Start on SPUD returns KErrNone.
|
|
134 |
//! @SYMTestPriority Critical
|
|
135 |
//! @SYMTestStatus Implemented
|
|
136 |
//! @SYMTestType CIT
|
|
137 |
RUN_TEST_STEP 60 TE_SpudNetworkSide CSpudPppPrimary z:\testdata\configs\te_spudNetworkSide.ini PppPrimaryOk
|
|
138 |
DELAY 3000
|
|
139 |
RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
|
|
140 |
END_TESTCASE NET-Spud-NetworkSide-1204
|
|
141 |
|
|
142 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
143 |
run_script z:\TestData\scripts\te_esock_test_loadesock.script
|
|
144 |
|
|
145 |
|
|
146 |
START_TESTCASE NET-Spud-NetworkSide-1205
|
|
147 |
//! @SYMTestCaseID NET-Spud-NetworkSide-1205
|
|
148 |
//! @SYMTestCaseDesc Successfully activate a secondary context and send data using the secondary context, using PPP as the lower NIF
|
|
149 |
//! @SYMFssID NETWORKING/Spud/Control Plane/Secondary PDP Context Creation
|
|
150 |
//! @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.
|
|
151 |
//! @SYMTestExpectedResults Primary PDP context is activated, SPUD is started: RConnection::Start on SPUD returns KErrNone. Send as well as RecvFrom complete successfully.
|
|
152 |
//! @SYMTestPriority Critical
|
|
153 |
//! @SYMTestStatus Implemented
|
|
154 |
//! @SYMTestType CIT
|
|
155 |
RUN_TEST_STEP 600 TE_SpudNetworkSide CSpudPppSecondarySend z:\testdata\configs\te_spudNetworkSide.ini PppSecondarySend
|
|
156 |
DELAY 3000
|
|
157 |
RUN_TEST_STEP 60 TE_SpudNetworkSide CESockCheck z:\testdata\configs\te_spudNetworkSide.ini ESockCheck
|
|
158 |
END_TESTCASE NET-Spud-NetworkSide-1205
|
|
159 |
|
|
160 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
161 |
run_script z:\TestData\scripts\te_esock_test_loadesock.script
|
|
162 |
|
|
163 |
|
|
164 |
RUN_UTILS MakeReadWrite c:\simtsy\config.txt
|
|
165 |
RUN_UTILS MakeReadWrite c:\config.txt
|
|
166 |
RUN_UTILS DeleteFile c:\simtsy\config.txt
|
|
167 |
RUN_UTILS DeleteFile c:\config.txt
|
|
168 |
RUN_UTILS DeleteFile c:\loopback.ini
|
|
169 |
run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
170 |
|