1 #*********************************************************************************** |
|
2 # |
|
3 # STIF test script file for testing service management client API. |
|
4 # |
|
5 #*********************************************************************************** |
|
6 |
|
7 [StifSettings] |
|
8 CapsModifier= IptvTestClientApiCapsMod.exe |
|
9 [EndStifSettings] |
|
10 |
|
11 [Define] |
|
12 INCLUDE c:\testframework\VCXConsts.inc |
|
13 INCLUDE c:\testframework\VCXDrives.inc |
|
14 INCLUDE c:\testframework\VCXServiceManagementApiTest.inc |
|
15 INCLUDE c:\testframework\epgenginetest.inc |
|
16 INCLUDE c:\testframework\VCXServiceUpdating.inc |
|
17 INCLUDE c:\testframework\VCXServiceNames.inc |
|
18 INCLUDE c:\testframework\VCXErrors.inc |
|
19 [Enddefine] |
|
20 |
|
21 #------------------------------------------------------------------------------------ |
|
22 # |
|
23 # Setup service and internet destinations for tests. |
|
24 # |
|
25 #------------------------------------------------------------------------------------ |
|
26 [Test] |
|
27 title ET08150 <not a test> Setup |
|
28 create VCXTestUtilModule Util |
|
29 allowerrorcodes -1 |
|
30 Util DeleteDestination "testdest" |
|
31 pause 1000 |
|
32 Util CreateDestination "testdest" |
|
33 Util CopyMethod 3G_AP "Method3G_1" "testdest" |
|
34 Util CopyMethod 3G_AP "Method3G_2" "testdest" |
|
35 Util CopyMethod WLAN_AP "MethodWlan_1" "testdest" |
|
36 Util CopyMethod WLAN_AP "MethodWlan_2" "testdest" |
|
37 Util SetMethodPriority "testdest" "Method3G_1" 0 |
|
38 Util SetMethodPriority "testdest" "Method3G_2" 1 |
|
39 Util SetMethodPriority "testdest" "MethodWlan_1" 2 |
|
40 Util SetMethodPriority "testdest" "MethodWlan_2" 3 |
|
41 Util SetUsedDestination "testdest" |
|
42 delete Util |
|
43 |
|
44 create VCXServiceManagementApiTest IptvTest |
|
45 IptvTest Create |
|
46 IptvTest DeleteAllServices SYNC |
|
47 IptvTest AddHardCodedService SYNC SERVICE_0 3G_AP 2 WLAN_AP 2 |
|
48 IptvTest Destroy |
|
49 delete IptvTest |
|
50 [Endtest] |
|
51 |
|
52 #------------------------------------------------------------------------------------ |
|
53 # |
|
54 # Test Iap selection via SNAP in different situations. |
|
55 # |
|
56 #------------------------------------------------------------------------------------ |
|
57 [Test] |
|
58 title ET08151 Get used AP 3G |
|
59 create VCXServiceManagementApiTest IptvTest |
|
60 IptvTest Create |
|
61 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_1" |
|
62 IptvTest Destroy |
|
63 delete IptvTest |
|
64 |
|
65 [Endtest] |
|
66 |
|
67 #------------------------------------------------------------------------------------ |
|
68 # |
|
69 # Test Iap selection via SNAP in different situations. |
|
70 # |
|
71 #------------------------------------------------------------------------------------ |
|
72 [Test] |
|
73 title ET08152 Get used AP WLAN |
|
74 create VCXTestUtilModule Util |
|
75 create VCXServiceManagementApiTest IptvTest |
|
76 IptvTest Create |
|
77 allownextresult KERRCORRUPT |
|
78 IptvTest GetUsedIap SYNC SERVICE_0 "MethodWlan_1" |
|
79 IptvTest Destroy |
|
80 delete IptvTest |
|
81 delete Util |
|
82 [Endtest] |
|
83 |
|
84 #------------------------------------------------------------------------------------ |
|
85 # |
|
86 # Test Iap selection via SNAP in different situations. |
|
87 # |
|
88 #------------------------------------------------------------------------------------ |
|
89 [Test] |
|
90 title ET08153 Priorize 3G and Get used AP |
|
91 create VCXTestUtilModule Util |
|
92 Util SetMethodPriority "testdest" "Method3G_1" 1 |
|
93 Util SetMethodPriority "testdest" "Method3G_2" 0 |
|
94 |
|
95 create VCXServiceManagementApiTest IptvTest |
|
96 IptvTest Create |
|
97 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_2" |
|
98 IptvTest Destroy |
|
99 delete IptvTest |
|
100 |
|
101 Util SetMethodPriority "testdest" "Method3G_1" 0 |
|
102 Util SetMethodPriority "testdest" "Method3G_2" 1 |
|
103 delete Util |
|
104 [Endtest] |
|
105 |
|
106 #------------------------------------------------------------------------------------ |
|
107 # |
|
108 # Test Iap selection via SNAP in different situations. |
|
109 # |
|
110 #------------------------------------------------------------------------------------ |
|
111 [Test] |
|
112 title ET08154 Priorize Wlan and Get used AP |
|
113 create VCXTestUtilModule Util |
|
114 Util SetMethodPriority "testdest" "MethodWlan_1" 1 |
|
115 Util SetMethodPriority "testdest" "MethodWlan_2" 0 |
|
116 |
|
117 create VCXServiceManagementApiTest IptvTest |
|
118 IptvTest Create |
|
119 IptvTest GetUsedIap SYNC SERVICE_0 "MethodWlan_2" |
|
120 IptvTest Destroy |
|
121 delete IptvTest |
|
122 |
|
123 Util SetMethodPriority "testdest" "MethodWlan_1" 0 |
|
124 Util SetMethodPriority "testdest" "MethodWlan_2" 1 |
|
125 delete Util |
|
126 [Endtest] |
|
127 |
|
128 #------------------------------------------------------------------------------------ |
|
129 # |
|
130 # Test Iap selection via SNAP in different situations. |
|
131 # |
|
132 #------------------------------------------------------------------------------------ |
|
133 [Test] |
|
134 title ET08155 Connect via 3G AP |
|
135 create VCXTestUtilModule Util |
|
136 Util SetMethodPriority "testdest" "Method3G_1" 0 |
|
137 Util SetMethodPriority "testdest" "Method3G_2" 1 |
|
138 |
|
139 Util Connect 3G_AP |
|
140 waittestclass Util |
|
141 |
|
142 create VCXServiceManagementApiTest IptvTest |
|
143 IptvTest Create |
|
144 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_1" |
|
145 IptvTest Destroy |
|
146 delete IptvTest |
|
147 |
|
148 Util Terminate |
|
149 delete Util |
|
150 [Endtest] |
|
151 |
|
152 #------------------------------------------------------------------------------------ |
|
153 # |
|
154 # Test Iap selection via SNAP in different situations. |
|
155 # |
|
156 #------------------------------------------------------------------------------------ |
|
157 [Test] |
|
158 title ET08159 Connect via WLAN AP, Get used AP |
|
159 pause PAUSE |
|
160 create VCXTestUtilModule Util |
|
161 Util SetMethodPriority "testdest" "MethodWlan_1" 0 |
|
162 Util SetMethodPriority "testdest" "MethodWlan_2" 1 |
|
163 |
|
164 Util Connect WLAN_AP |
|
165 waittestclass Util |
|
166 |
|
167 create VCXServiceManagementApiTest IptvTest |
|
168 IptvTest Create |
|
169 IptvTest GetUsedIap SYNC SERVICE_0 "MethodWlan_1" |
|
170 IptvTest Destroy |
|
171 delete IptvTest |
|
172 |
|
173 Util Terminate |
|
174 delete Util |
|
175 [Endtest] |
|
176 |
|
177 #------------------------------------------------------------------------------------ |
|
178 # |
|
179 # Test Iap selection via SNAP in different situations. |
|
180 # |
|
181 #------------------------------------------------------------------------------------ |
|
182 [Test] |
|
183 title ET08157 Connect via 3G AP, add AP with prio 0 |
|
184 pause PAUSE |
|
185 create VCXTestUtilModule Util |
|
186 Util SetMethodPriority "testdest" "Method3G_1" 0 |
|
187 Util SetMethodPriority "testdest" "Method3G_2" 1 |
|
188 Util SetMethodPriority "testdest" "MethodWlan_1" 2 |
|
189 Util SetMethodPriority "testdest" "MethodWlan_2" 3 |
|
190 create VCXServiceManagementApiTest IptvTest |
|
191 IptvTest Create |
|
192 |
|
193 Util Connect 3G_AP |
|
194 waittestclass Util |
|
195 |
|
196 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_1" |
|
197 |
|
198 Util CopyMethod 3G_AP "Method3G_3" "testdest" |
|
199 Util SetMethodPriority "testdest" "Method3G_3" 0 |
|
200 |
|
201 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_3" |
|
202 |
|
203 IptvTest Destroy |
|
204 delete IptvTest |
|
205 |
|
206 Util DeleteMethod "testdest" "Method3G_3" |
|
207 Util Terminate |
|
208 delete Util |
|
209 [Endtest] |
|
210 |
|
211 #------------------------------------------------------------------------------------ |
|
212 # |
|
213 # Test Iap selection via SNAP in different situations. |
|
214 # |
|
215 #------------------------------------------------------------------------------------ |
|
216 [Test] |
|
217 title ET08158 Connect via 3G AP, delete AP |
|
218 create VCXTestUtilModule Util |
|
219 Util SetMethodPriority "testdest" "Method3G_1" 0 |
|
220 Util SetMethodPriority "testdest" "Method3G_2" 1 |
|
221 |
|
222 create VCXServiceManagementApiTest IptvTest |
|
223 IptvTest Create |
|
224 |
|
225 Util Connect 3G_AP |
|
226 waittestclass Util |
|
227 |
|
228 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_1" |
|
229 Util DeleteMethod "testdest" "Method3G_1" |
|
230 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_2" |
|
231 IptvTest Destroy |
|
232 delete IptvTest |
|
233 |
|
234 Util Terminate |
|
235 Util CopyMethod 3G_AP "Method3G_1" "testdest" |
|
236 delete Util |
|
237 [Endtest] |
|
238 |
|
239 #------------------------------------------------------------------------------------ |
|
240 # |
|
241 # Test Iap selection via SNAP in different situations. |
|
242 # |
|
243 #------------------------------------------------------------------------------------ |
|
244 [Test] |
|
245 title ET08161 Connect 3G AP, delete all APs, get used AP |
|
246 pause PAUSE |
|
247 create VCXTestUtilModule Util |
|
248 Util SetMethodPriority "testdest" "Method3G_1" 0 |
|
249 Util SetMethodPriority "testdest" "Method3G_2" 1 |
|
250 Util SetMethodPriority "testdest" "MethodWlan_1" 2 |
|
251 Util SetMethodPriority "testdest" "MethodWlan_2" 3 |
|
252 |
|
253 Util Connect 3G_AP |
|
254 waittestclass Util |
|
255 |
|
256 Util DeleteMethod "testdest" "Method3G_1" |
|
257 Util DeleteMethod "testdest" "Method3G_2" |
|
258 Util DeleteMethod "testdest" "MethodWlan_1" |
|
259 Util DeleteMethod "testdest" "MethodWlan_2" |
|
260 |
|
261 create VCXServiceManagementApiTest IptvTest |
|
262 IptvTest Create |
|
263 allownextresult -6 |
|
264 IptvTest GetUsedIap SYNC SERVICE_0 "Method3G_1" |
|
265 IptvTest Destroy |
|
266 delete IptvTest |
|
267 |
|
268 pause 2000 |
|
269 Util CopyMethod 3G_AP "Method3G_1" "testdest" |
|
270 Util CopyMethod 3G_AP "Method3G_2" "testdest" |
|
271 Util CopyMethod WLAN_AP "MethodWlan_1" "testdest" |
|
272 Util CopyMethod WLAN_AP "MethodWlan_2" "testdest" |
|
273 delete Util |
|
274 [Endtest] |
|
275 |
|
276 #------------------------------------------------------------------------------------ |
|
277 # |
|
278 # Test Iap selection via SNAP in different situations. |
|
279 # |
|
280 #------------------------------------------------------------------------------------ |
|
281 [Test] |
|
282 title ET08162 Connect via WLAN with empty AP list |
|
283 pause PAUSE |
|
284 create VCXTestUtilModule Util |
|
285 allownextresult KERRNOTFOUND |
|
286 Util DeleteDestination "tempdest" |
|
287 Util CreateDestination "tempdest" |
|
288 Util SetUsedDestination "tempdest" |
|
289 |
|
290 Util Connect WLAN_AP |
|
291 waittestclass Util |
|
292 |
|
293 create VCXServiceManagementApiTest IptvTest |
|
294 IptvTest Create |
|
295 allownextresult EGeneralError |
|
296 allownextresult -6 |
|
297 allownextresult -20 |
|
298 IptvTest GetUsedIap SYNC SERVICE_0 WLAN_AP |
|
299 IptvTest Destroy |
|
300 delete IptvTest |
|
301 |
|
302 Util Terminate |
|
303 pause 2000 |
|
304 Util DeleteDestination "tempdest" |
|
305 delete Util |
|
306 [Endtest] |
|
307 |
|
308 #------------------------------------------------------------------------------------ |
|
309 # |
|
310 # Delete temporary destinations used in tests. |
|
311 # |
|
312 #------------------------------------------------------------------------------------ |
|
313 [Test] |
|
314 title ET08173 <not a test> Cleanup destinations |
|
315 pause 5000 |
|
316 create VCXTestUtilModule Util |
|
317 allownextresult -1 |
|
318 allownextresult 0 |
|
319 Util DeleteDestination "tempdest" |
|
320 allownextresult -1 |
|
321 allownextresult 0 |
|
322 Util DeleteDestination "testdest" |
|
323 Util SetUsedDestination "Internet" |
|
324 delete Util |
|
325 [Endtest] |
|