48
|
1 |
#***********************************************************************************
|
|
2 |
#
|
|
3 |
# STIF test script file for testing vcxconnectionutility.dll.
|
|
4 |
#
|
|
5 |
#***********************************************************************************
|
|
6 |
|
|
7 |
[StifSettings]
|
|
8 |
CapsModifier= IptvTestClientApiCapsMod.exe
|
|
9 |
[EndStifSettings]
|
|
10 |
|
|
11 |
[Define]
|
|
12 |
INCLUDE c:\testframework\VCXConnUtilTest.inc
|
|
13 |
INCLUDE c:\testframework\VCXDrives.inc
|
|
14 |
INCLUDE c:\testframework\VCXConsts.inc
|
|
15 |
INCLUDE c:\testframework\VCXErrors.inc
|
|
16 |
[Enddefine]
|
|
17 |
|
|
18 |
#------------------------------------------------------------------------------------
|
|
19 |
#
|
|
20 |
# Setup the environment.
|
|
21 |
#
|
|
22 |
#------------------------------------------------------------------------------------
|
|
23 |
[Test]
|
|
24 |
title ET31180 <not a test> Setup and cleanup
|
|
25 |
create VCXTestUtilModule Util
|
|
26 |
|
|
27 |
Util CopyMethod "Internet" "Internet" "Internet"
|
|
28 |
// Disable connection dialog for "Internet" destination.
|
|
29 |
Util SetConnectionMethodIntAttribute "Internet" "Internet" ECmSeamlessnessLevel 2
|
|
30 |
|
|
31 |
allowerrorcodes KERRNOTFOUND
|
|
32 |
Util DeleteDestination DEST_TEST
|
|
33 |
allowerrorcodes KERRNOTFOUND
|
|
34 |
Util DeleteDestination DEST_TEST2
|
|
35 |
|
|
36 |
delete VCXCONN
|
|
37 |
delete Util
|
|
38 |
[Endtest]
|
|
39 |
|
|
40 |
#------------------------------------------------------------------------------------
|
|
41 |
#
|
|
42 |
# Test CVcxConnUtilEngine class.
|
|
43 |
#
|
|
44 |
#------------------------------------------------------------------------------------
|
|
45 |
[Test]
|
|
46 |
title ET31181 Initial state
|
|
47 |
create VCXTestUtilModule Util
|
|
48 |
|
|
49 |
create VCXConnUtilTest VCXCONN
|
|
50 |
VCXCONN Create
|
|
51 |
|
|
52 |
VCXCONN CheckProperty EVCxPSConnectionStatus EVCxNotConnected
|
|
53 |
|
|
54 |
print OK!
|
|
55 |
delete VCXCONN
|
|
56 |
pause 3000
|
|
57 |
delete Util
|
|
58 |
[Endtest]
|
|
59 |
|
|
60 |
#------------------------------------------------------------------------------------
|
|
61 |
#
|
|
62 |
# Test CVcxConnUtilEngine class.
|
|
63 |
#
|
|
64 |
#------------------------------------------------------------------------------------
|
|
65 |
[Test]
|
|
66 |
title ET31182 Connect, state
|
|
67 |
create VCXTestUtilModule Util
|
|
68 |
|
|
69 |
// Destination with 2 working IAPs
|
|
70 |
allowerrorcodes KERRNOTFOUND
|
|
71 |
Util DeleteDestination DEST_TEST
|
|
72 |
pause 1000
|
|
73 |
Util CreateDestination DEST_TEST
|
|
74 |
Util SetUsedDestination DEST_TEST
|
|
75 |
Util DeleteDestinationAfterwards DEST_TEST
|
|
76 |
Util CopyMethod 3G_AP AP1 DEST_TEST
|
|
77 |
Util CopyMethod 3G_AP AP2 DEST_TEST
|
|
78 |
Util SetMethodPriority DEST_TEST AP1 0
|
|
79 |
Util SetMethodPriority DEST_TEST AP2 1
|
|
80 |
|
|
81 |
create VCXConnUtilTest VCXCONN
|
|
82 |
VCXCONN Create
|
|
83 |
VCXCONN GetIap DEST_TEST
|
|
84 |
waittestclass VCXCONN
|
|
85 |
Util WaitForConnectionActivity AP1
|
|
86 |
waittestclass Util
|
|
87 |
VCXCONN CheckProperty EVCxPSConnectionStatus EVCxConnected
|
|
88 |
|
|
89 |
print OK!
|
|
90 |
delete VCXCONN
|
|
91 |
pause 3000
|
|
92 |
delete Util
|
|
93 |
[Endtest]
|
|
94 |
|
|
95 |
#------------------------------------------------------------------------------------
|
|
96 |
#
|
|
97 |
# Test CVcxConnUtilEngine class.
|
|
98 |
#
|
|
99 |
#------------------------------------------------------------------------------------
|
|
100 |
[Test]
|
|
101 |
title ET31183 Connect, disconnect, state
|
|
102 |
create VCXTestUtilModule Util
|
|
103 |
|
|
104 |
// Destination with 2 working IAPs
|
|
105 |
allowerrorcodes KERRNOTFOUND
|
|
106 |
Util DeleteDestination DEST_TEST
|
|
107 |
pause 1000
|
|
108 |
Util CreateDestination DEST_TEST
|
|
109 |
Util SetUsedDestination DEST_TEST
|
|
110 |
Util DeleteDestinationAfterwards DEST_TEST
|
|
111 |
Util CopyMethod 3G_AP AP1 DEST_TEST
|
|
112 |
Util CopyMethod 3G_AP AP2 DEST_TEST
|
|
113 |
Util SetMethodPriority DEST_TEST AP1 0
|
|
114 |
Util SetMethodPriority DEST_TEST AP2 1
|
|
115 |
|
|
116 |
create VCXConnUtilTest VCXCONN
|
|
117 |
VCXCONN Create
|
|
118 |
VCXCONN GetIap DEST_TEST
|
|
119 |
waittestclass VCXCONN
|
|
120 |
Util WaitForConnectionActivity AP1
|
|
121 |
waittestclass Util
|
|
122 |
|
|
123 |
VCXCONN Disconnect
|
|
124 |
waittestclass VCXCONN
|
|
125 |
|
|
126 |
VCXCONN CheckProperty EVCxPSConnectionStatus EVCxNotConnected
|
|
127 |
Util WaitUntilConnectionIsClosed AP1
|
|
128 |
|
|
129 |
print OK!
|
|
130 |
delete VCXCONN
|
|
131 |
pause 3000
|
|
132 |
delete Util
|
|
133 |
[Endtest]
|
|
134 |
|
|
135 |
#------------------------------------------------------------------------------------
|
|
136 |
#
|
|
137 |
# Test CVcxConnUtilEngine class.
|
|
138 |
#
|
|
139 |
#------------------------------------------------------------------------------------
|
|
140 |
[Test]
|
|
141 |
title ET31184 Disconnect wo connection, state
|
|
142 |
create VCXTestUtilModule Util
|
|
143 |
|
|
144 |
create VCXConnUtilTest VCXCONN
|
|
145 |
VCXCONN Create
|
|
146 |
|
|
147 |
VCXCONN Disconnect
|
|
148 |
waittestclass VCXCONN
|
|
149 |
Util WaitUntilConnectionIsClosed AP1
|
|
150 |
waittestclass Util
|
|
151 |
|
|
152 |
VCXCONN CheckProperty EVCxPSConnectionStatus EVCxNotConnected
|
|
153 |
|
|
154 |
print OK!
|
|
155 |
delete VCXCONN
|
|
156 |
pause 3000
|
|
157 |
delete Util
|
|
158 |
[Endtest]
|
|
159 |
|
|
160 |
#------------------------------------------------------------------------------------
|
|
161 |
#
|
|
162 |
# Test CVcxConnUtilEngine class.
|
|
163 |
#
|
|
164 |
#------------------------------------------------------------------------------------
|
|
165 |
#[Test]
|
|
166 |
#title ET31186 Connection terminated by another app, state
|
|
167 |
#create VCXTestUtilModule Util
|
|
168 |
#
|
|
169 |
#// Destination with 2 working IAPs
|
|
170 |
#allowerrorcodes KERRNOTFOUND
|
|
171 |
#Util DeleteDestination DEST_TEST
|
|
172 |
#pause 1000
|
|
173 |
#Util CreateDestination DEST_TEST
|
|
174 |
#Util SetUsedDestination DEST_TEST
|
|
175 |
#Util DeleteDestinationAfterwards DEST_TEST
|
|
176 |
#Util CopyMethod 3G_AP AP1 DEST_TEST
|
|
177 |
#Util CopyMethod 3G_AP AP2 DEST_TEST
|
|
178 |
#Util SetMethodPriority DEST_TEST AP1 0
|
|
179 |
#Util SetMethodPriority DEST_TEST AP2 1
|
|
180 |
#
|
|
181 |
#create VCXConnUtilTest VCXCONN
|
|
182 |
#VCXCONN Create
|
|
183 |
#VCXCONN GetIap DEST_TEST
|
|
184 |
#waittestclass VCXCONN
|
|
185 |
#Util WaitForConnectionActivity AP1
|
|
186 |
#waittestclass Util
|
|
187 |
#
|
|
188 |
#Util Attach AP1
|
|
189 |
#Util Terminate AP1
|
|
190 |
#Util WaitUntilConnectionIsClosed AP1
|
|
191 |
#waittestclass Util
|
|
192 |
#
|
|
193 |
#pause 5000
|
|
194 |
#VCXCONN CheckProperty EVCxPSConnectionStatus EVCxNotConnected
|
|
195 |
#
|
|
196 |
#print OK!
|
|
197 |
#delete VCXCONN
|
|
198 |
#pause 3000
|
|
199 |
#delete Util
|
|
200 |
#[Endtest]
|
|
201 |
|
|
202 |
#------------------------------------------------------------------------------------
|
|
203 |
#
|
|
204 |
# Test CVcxConnUtilEngine class.
|
|
205 |
#
|
|
206 |
#------------------------------------------------------------------------------------
|
|
207 |
[Test]
|
|
208 |
title ET31187 Connect, connect again, state
|
|
209 |
create VCXTestUtilModule Util
|
|
210 |
|
|
211 |
// Destination with 2 working IAPs
|
|
212 |
allowerrorcodes KERRNOTFOUND
|
|
213 |
Util DeleteDestination DEST_TEST
|
|
214 |
pause 1000
|
|
215 |
Util CreateDestination DEST_TEST
|
|
216 |
Util SetUsedDestination DEST_TEST
|
|
217 |
Util DeleteDestinationAfterwards DEST_TEST
|
|
218 |
Util CopyMethod 3G_AP AP1 DEST_TEST
|
|
219 |
Util CopyMethod 3G_AP AP2 DEST_TEST
|
|
220 |
Util SetMethodPriority DEST_TEST AP1 0
|
|
221 |
Util SetMethodPriority DEST_TEST AP2 1
|
|
222 |
|
|
223 |
create VCXConnUtilTest VCXCONN
|
|
224 |
VCXCONN Create
|
|
225 |
VCXCONN GetIap DEST_TEST
|
|
226 |
waittestclass VCXCONN
|
|
227 |
Util WaitForConnectionActivity AP1
|
|
228 |
waittestclass Util
|
|
229 |
|
|
230 |
VCXCONN GetIap DEST_TEST
|
|
231 |
|
|
232 |
VCXCONN CheckProperty EVCxPSConnectionStatus EVCxConnected
|
|
233 |
|
|
234 |
print OK!
|
|
235 |
delete VCXCONN
|
|
236 |
pause 3000
|
|
237 |
delete Util
|
|
238 |
[Endtest]
|