|
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 with RSubConnection |
|
15 // |
|
16 |
|
17 //! @file |
|
18 |
|
19 // Configure CommDB for the tests |
|
20 run_script z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
21 ced -i z:\TestData\Configs\spudRSubConnPpp_loopback.xml |
|
22 run_script z:\TestData\scripts\te_esock_test_loadesock.script |
|
23 |
|
24 LOAD_SUITE TE_SpudRSubConnSvr |
|
25 |
|
26 |
|
27 |
|
28 RUN_UTILS MkDir c:\simtsy\ |
|
29 RUN_UTILS MkDir c:\private\ |
|
30 RUN_UTILS MkDir c:\private\101F7989\ |
|
31 RUN_UTILS MkDir c:\private\101F7989\esock\ |
|
32 |
|
33 RUN_UTILS MakeReadWrite c:\simtsy\config.txt |
|
34 RUN_UTILS MakeReadWrite c:\config.txt |
|
35 RUN_UTILS MakeReadWrite c:\loopback.ini |
|
36 RUN_UTILS MakeReadWrite c:\qospolicies.ini |
|
37 RUN_UTILS MakeReadWrite c:\private\101F7989\esock\qospolicies.ini |
|
38 |
|
39 RUN_UTILS DeleteFile c:\simtsy\config.txt |
|
40 RUN_UTILS DeleteFile c:\config.txt |
|
41 RUN_UTILS DeleteFile c:\loopback.ini |
|
42 RUN_UTILS DeleteFile c:\qospolicies.ini |
|
43 RUN_UTILS DeleteFile c:\private\101F7989\esock\qospolicies.ini |
|
44 |
|
45 RUN_UTILS CopyFile z:\TestData\Configs\spudRSubConnPPP_config.txt c:\simtsy\config.txt |
|
46 RUN_UTILS CopyFile z:\TestData\Configs\spudRSubConnPPP_config.txt c:\config.txt |
|
47 RUN_UTILS CopyFile z:\TestData\Configs\spudRSubConnPPP_pcktloopback.ini c:\loopback.ini |
|
48 RUN_UTILS CopyFile z:\TestData\Configs\spudRSubConnPPP_qospolicies.ini c:\qospolicies.ini |
|
49 RUN_UTILS CopyFile z:\TestData\Configs\spudRSubConnPPP_qospolicies.ini c:\private\101F7989\esock\qospolicies.ini |
|
50 |
|
51 |
|
52 |
|
53 START_TESTCASE NET-Spud-RSubConn-0101 |
|
54 //! @SYMTestCaseID NET-Spud-RSubConn-0101 |
|
55 //! @SYMTestCaseDesc Send Use RSubConnection API to send UDP packets over the primary and the secondary PDP contexts. |
|
56 //! @SYMFssID |
|
57 //! @SYMTestActions Explicity start SPUD. Open RSubConnection to activate a secondary ctx. Send data over primary & secondary. |
|
58 //! @SYMTestActions Connected socket is added to secondary ctx. |
|
59 //! @SYMTestExpectedResults All operations succeed with KErrNone. |
|
60 //! @SYMTestPriority Critical |
|
61 //! @SYMTestStatus Implemented |
|
62 //! @SYMTestType CIT |
|
63 CONCURRENT |
|
64 RUN_TEST_STEP 69 TE_SpudRSubConnSvr CLoopbackPpp1 z:\testdata\configs\spudRSubConnPPP_loopback.ini LoopbackPppUdp1 |
|
65 RUN_TEST_STEP 69 TE_SpudRSubConnSvr CLoopbackPpp1 z:\testdata\configs\spudRSubConnPPP_loopback.ini LoopbackPppUdp3 |
|
66 RUN_TEST_STEP 60 TE_SpudRSubConnSvr CUdp1 z:\testdata\configs\spudRSubConnPPP.ini UdpEcho1 |
|
67 END_TESTCASE NET-Spud-RSubConn-0101 |
|
68 |
|
69 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script |
|
70 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
71 |
|
72 |
|
73 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
74 |
|
75 START_TESTCASE NET-Spud-RSubConn-0102 |
|
76 //! @SYMTestCaseID NET-Spud-RSubConn-0102 |
|
77 //! @SYMTestCaseDesc Same as TE_SpudRSubConn_01, but QoS Parameters are set explicitly on the secondary pdp context. |
|
78 //! QoS parameters are passed via the QoS framework, GUQoS and SPUD to SIM TSY unchanged. |
|
79 //! @SYMFssID |
|
80 //! @SYMTestActions same as TE_SpudRSubConn_01, but set QoS parameters explicitly. |
|
81 //! SIM TSY verifies the QoS parameters requested are correct (i.e. not modified in transit) |
|
82 //! @SYMTestExpectedResults All operations succeed with KErrNone. |
|
83 //! @SYMTestPriority Critical |
|
84 //! @SYMTestStatus Implemented |
|
85 //! @SYMTestType CIT |
|
86 CONCURRENT |
|
87 RUN_TEST_STEP 69 TE_SpudRSubConnSvr CLoopbackPpp1 z:\testdata\configs\spudRSubConnPPP_loopback.ini LoopbackPppUdp1 |
|
88 RUN_TEST_STEP 69 TE_SpudRSubConnSvr CLoopbackPpp1 z:\testdata\configs\spudRSubConnPPP_loopback.ini LoopbackPppUdp3 |
|
89 RUN_TEST_STEP 60 TE_SpudRSubConnSvr CUdp1 z:\testdata\configs\spudRSubConnPPP.ini UdpEcho2 |
|
90 END_TESTCASE NET-Spud-RSubConn-0102 |
|
91 |
|
92 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script |
|
93 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
94 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
95 |
|
96 |
|
97 START_TESTCASE NET-Spud-RSubConn-0103 |
|
98 //! @SYMTestCaseID NET-Spud-RSubConn-0103 |
|
99 //! @SYMTestCaseDesc Verify that SPUD correctly handles a scenario where GUQoS attempts to send on a context when |
|
100 //! the Context's lower NIF is Down. |
|
101 //! @SYMFssID |
|
102 //! @SYMTestActions 1. Create Primary PDP Context, and bring up the lower NIF. 2. Make the lower NIF for the context to |
|
103 //! report LinkLayerDown (by causing the peer PPP to send TerminateRequest). SIM TSY is configured to pause |
|
104 //! on deletion long enough to allow GUQoS sufficient time to attempt a send before the context is deleted. |
|
105 //! 3. Send a packet on the context. Verify the packet was sent OK. |
|
106 //! @SYMTestExpectedResults All operations succeed with KErrNone. There is no panics (Spudman panics when GUQoS sends on down lower NIF) |
|
107 //! @SYMTestPriority Critical |
|
108 //! @SYMTestStatus Implemented |
|
109 //! @SYMTestType CIT |
|
110 RUN_TEST_STEP 90 TE_SpudRSubConnSvr CUpperFlowOnLowerNifDown z:\testdata\configs\spudRSubConnPPP.ini UpperFlowLowerNifDown1 |
|
111 END_TESTCASE NET-Spud-RSubConn-0103 |
|
112 |
|
113 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script |
|
114 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
115 |
|
116 |
|
117 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
118 |
|
119 |
|
120 START_TESTCASE NET-Spud-RSubConn-0104 |
|
121 //! @SYMTestCaseID NET-Spud-RSubConn-0104 |
|
122 //! @SYMTestCaseDesc Verify that SPUD with PPP lower NIF correctly RConnection::Stop with EStopNormal, and can be restarted. |
|
123 //! @SYMFssID |
|
124 //! @SYMTestActions 1. Create Primary PDP Context, and bring up the lower NIF. Stop Spud with EStopNormal. Restart Spud. |
|
125 //! @SYMTestExpectedResults All operations succeed with KErrNone. There is no panics. Spud can be re-started. |
|
126 //! @SYMTestPriority Critical |
|
127 //! @SYMTestStatus Implemented |
|
128 //! @SYMTestType CIT |
|
129 CONSECUTIVE |
|
130 RUN_TEST_STEP 90 TE_SpudRSubConnSvr CSpudPppPrimaryStop z:\testdata\configs\spudRSubConnPPP.ini SpudRestartAfterNormalStop |
|
131 DELAY 4000 |
|
132 RUN_TEST_STEP 90 TE_SpudRSubConnSvr CSpudPppPrimaryStop z:\testdata\configs\spudRSubConnPPP.ini SpudRestartAfterNormalStop |
|
133 DELAY 4000 |
|
134 RUN_TEST_STEP 90 TE_SpudRSubConnSvr CSpudPppPrimaryStop z:\testdata\configs\spudRSubConnPPP.ini SpudRestartAfterNormalStop |
|
135 DELAY 4000 |
|
136 END_TESTCASE NET-Spud-RSubConn-0104 |
|
137 |
|
138 |
|
139 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script |
|
140 |
|
141 |
|
142 START_TESTCASE NET-Spud-RSubConn-0105 |
|
143 //! @SYMTestCaseID NET-Spud-RSubConn-0105 |
|
144 //! @SYMTestCaseDesc Verify that SPUD with PPP lower NIF correctly RConnection::Stop with EStopAuthoritative, and can be restarted. |
|
145 //! @SYMFssID |
|
146 //! @SYMTestActions 1. Create Primary PDP Context, and bring up the lower NIF. Stop Spud with EStopAuthoritative. Restart Spud. |
|
147 //! @SYMTestExpectedResults All operations succeed with KErrNone. There is no panics. Spud can be re-started. |
|
148 //! @SYMTestPriority Critical |
|
149 //! @SYMTestStatus Implemented |
|
150 //! @SYMTestType CIT |
|
151 CONSECUTIVE |
|
152 DELAY 24000 |
|
153 RUN_TEST_STEP 90 TE_SpudRSubConnSvr CSpudPppPrimaryStop z:\testdata\configs\spudRSubConnPPP.ini SpudRestartAfterAuthStop |
|
154 DELAY 4000 |
|
155 RUN_TEST_STEP 90 TE_SpudRSubConnSvr CSpudPppPrimaryStop z:\testdata\configs\spudRSubConnPPP.ini SpudRestartAfterAuthStop |
|
156 DELAY 4000 |
|
157 RUN_TEST_STEP 90 TE_SpudRSubConnSvr CSpudPppPrimaryStop z:\testdata\configs\spudRSubConnPPP.ini SpudRestartAfterAuthStop |
|
158 DELAY 4000 |
|
159 END_TESTCASE NET-Spud-RSubConn-0105 |
|
160 |
|
161 |
|
162 |
|
163 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script |
|
164 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script |
|
165 RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script |
|
166 |
|
167 |
|
168 START_TESTCASE NET-Spud-RSubConn-0106 |
|
169 //! @SYMTestCaseID NET-Spud-RSubConn-0106 |
|
170 //! @SYMTestCaseDesc Send Use RSubConnection API to send UDP packets over the primary and the secondary PDP contexts. |
|
171 //! @SYMFssID |
|
172 //! @SYMTestActions Explicity start SPUD. Open RSubConnection to activate a secondary ctx. Send data over primary & secondary. |
|
173 //! @SYMTestActions Socket is open explicitly on secondary ctx. |
|
174 //! @SYMTestExpectedResults All operations succeed with KErrNone. |
|
175 //! @SYMTestPriority Critical |
|
176 //! @SYMTestStatus Implemented |
|
177 //! @SYMTestType CIT |
|
178 CONCURRENT |
|
179 RUN_TEST_STEP 69 TE_SpudRSubConnSvr CLoopbackPpp1 z:\testdata\configs\spudRSubConnPPP_loopback.ini LoopbackPppUdp1 |
|
180 RUN_TEST_STEP 69 TE_SpudRSubConnSvr CLoopbackPpp1 z:\testdata\configs\spudRSubConnPPP_loopback.ini LoopbackPppUdp3 |
|
181 RUN_TEST_STEP 60 TE_SpudRSubConnSvr CUdp2 z:\testdata\configs\spudRSubConnPPP.ini UdpEcho1 |
|
182 END_TESTCASE NET-Spud-RSubConn-0106 |
|
183 |
|
184 RUN_SCRIPT Z:\TestData\Scripts\te_esock_test_stopallinterfaces.script |
|
185 RUN_SCRIPT Z:\TestData\scripts\te_esock_test_unloadesockForced.script |