|
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\VCXServiceManagementApiTest.inc |
|
14 INCLUDE c:\testframework\VCXServiceUpdating.inc |
|
15 INCLUDE c:\testframework\VCXServiceNames.inc |
|
16 INCLUDE c:\testframework\VCXErrors.inc |
|
17 [Enddefine] |
|
18 |
|
19 #------------------------------------------------------------------------------------ |
|
20 # |
|
21 # Test adding a service. |
|
22 # |
|
23 # CaseClass: core |
|
24 #------------------------------------------------------------------------------------ |
|
25 [Test] |
|
26 title ET08002 Setup Add valid hardcoded service 0 SYNC |
|
27 create VCXTestUtilModule Util |
|
28 Util IptvLogCaseStart ET08002 |
|
29 pause PAUSE |
|
30 create VCXServiceManagementApiTest IptvTest |
|
31 IptvTest Create |
|
32 IptvTest DeleteAllServices SYNC |
|
33 IptvTest AddHardCodedService SYNC SERVICE_0 2 1 0 |
|
34 IptvTest Destroy |
|
35 delete IptvTest |
|
36 Util IptvLogCaseEnd ET08002 |
|
37 delete Util |
|
38 [Endtest] |
|
39 |
|
40 #------------------------------------------------------------------------------------ |
|
41 # |
|
42 # Test that updating a service fields works. |
|
43 # |
|
44 # CaseClass: core |
|
45 #------------------------------------------------------------------------------------ |
|
46 [Test] |
|
47 title ET08003 Update service fields SYNC |
|
48 create VCXTestUtilModule Util |
|
49 Util IptvLogCaseStart ET08003 |
|
50 pause PAUSE |
|
51 create VCXServiceManagementApiTest IptvTest |
|
52 IptvTest Create |
|
53 IptvTest UpdateServiceField SYNC SERVICE_0 EFlags ESelected EReadOnly EMainService EConnectionApproved EReadOnlyIaps |
|
54 IptvTest UpdateServiceField SYNC SERVICE_0 EName "Updated Service Name" |
|
55 IptvTest UpdateServiceField SYNC "Updated Service Name" EName SERVICE_0 |
|
56 IptvTest UpdateServiceField SYNC SERVICE_0 EAddress "http:\/\/www.UpdatedServiceaddress.com" |
|
57 IptvTest UpdateServiceField SYNC SERVICE_0 EIconPath "c:\\UpdatedIconPath" |
|
58 IptvTest UpdateServiceField SYNC SERVICE_0 EEpgPluginUid 12345 |
|
59 IptvTest UpdateServiceField SYNC SERVICE_0 EVodPluginUid 23456 |
|
60 IptvTest UpdateServiceField SYNC SERVICE_0 EIptvPluginUid 34567 |
|
61 IptvTest UpdateServiceField SYNC SERVICE_0 EServiceType EVodCast |
|
62 IptvTest UpdateServiceField SYNC SERVICE_0 ESetIapList 3 |
|
63 IptvTest UpdateServiceField SYNC SERVICE_0 EUserName "Updated USER Name" |
|
64 IptvTest UpdateServiceField SYNC SERVICE_0 EPassword "Updated PASSWORD" |
|
65 IptvTest UpdateServiceField SYNC SERVICE_0 EDesc "Updated Service description" |
|
66 IptvTest UpdateServiceField SYNC SERVICE_0 EFlags ESelected EReadOnly EMainService EConnectionApproved EReadOnlyIaps |
|
67 IptvTest UpdateServiceField SYNC SERVICE_0 EApplicationUid 12 |
|
68 IptvTest UpdateServiceField SYNC SERVICE_0 EDisplayOrder 111 |
|
69 IptvTest UpdateServiceField SYNC SERVICE_0 EProviderId "UPDPROVID" |
|
70 IptvTest UpdateServiceField SYNC SERVICE_0 EAccountManagementUrl "http:\/\/updatedaccountmanagmenturl.com" |
|
71 IptvTest Destroy |
|
72 delete IptvTest |
|
73 Util IptvLogCaseEnd ET08003 |
|
74 delete Util |
|
75 [Endtest] |
|
76 |
|
77 #------------------------------------------------------------------------------------ |
|
78 # |
|
79 # Add few valid hardcoded services for later use. |
|
80 # |
|
81 # CaseClass: core |
|
82 #------------------------------------------------------------------------------------ |
|
83 [Test] |
|
84 title ET08005 Add valid hardcoded services SYNC setup |
|
85 create VCXTestUtilModule Util |
|
86 Util IptvLogCaseStart ET08005 |
|
87 pause PAUSE |
|
88 create VCXServiceManagementApiTest IptvTest |
|
89 IptvTest Create |
|
90 IptvTest AddHardCodedService SYNC SERVICE_1 2 1 1 |
|
91 IptvTest AddHardCodedService SYNC SERVICE_2 2 1 2 |
|
92 IptvTest AddHardCodedService SYNC SERVICE_3 2 1 3 |
|
93 IptvTest AddHardCodedService SYNC SERVICE_4 2 1 4 |
|
94 IptvTest AddHardCodedService SYNC SERVICE_0 10 1 5 |
|
95 IptvTest AddHardCodedService SYNC SERVICE_1 10 1 6 |
|
96 IptvTest AddHardCodedService SYNC SERVICE_2 10 1 7 |
|
97 IptvTest Destroy |
|
98 delete IptvTest |
|
99 Util IptvLogCaseEnd ET08005 |
|
100 delete Util |
|
101 [Endtest] |
|
102 |
|
103 #------------------------------------------------------------------------------------ |
|
104 # |
|
105 # Test that updating service works. |
|
106 # |
|
107 #------------------------------------------------------------------------------------ |
|
108 [Test] |
|
109 title ET08006 Update valid service SYNC |
|
110 create VCXTestUtilModule Util |
|
111 print a |
|
112 Util IptvLogCaseStart ET08006 |
|
113 print b |
|
114 pause PAUSE |
|
115 print c |
|
116 create VCXServiceManagementApiTest IptvTest |
|
117 print d |
|
118 IptvTest Create |
|
119 IptvTest UpdateService SYNC SERVICE_0 SERVICE_1 |
|
120 IptvTest UpdateService SYNC SERVICE_1 SERVICE_2 |
|
121 IptvTest Destroy |
|
122 delete IptvTest |
|
123 Util IptvLogCaseEnd ET08006 |
|
124 delete Util |
|
125 [Endtest] |
|
126 |
|
127 #------------------------------------------------------------------------------------ |
|
128 # |
|
129 # Test that updating service with same data functions correctly. |
|
130 # |
|
131 #------------------------------------------------------------------------------------ |
|
132 [Test] |
|
133 title ET08008 Update same valid service SYNC |
|
134 create VCXTestUtilModule Util |
|
135 Util IptvLogCaseStart ET08008 |
|
136 pause PAUSE |
|
137 create VCXServiceManagementApiTest IptvTest |
|
138 IptvTest Create |
|
139 IptvTest UpdateService SYNC SERVICE_2 SERVICE_2 |
|
140 IptvTest Destroy |
|
141 delete IptvTest |
|
142 Util IptvLogCaseEnd ET08008 |
|
143 delete Util |
|
144 [Endtest] |
|
145 |
|
146 #------------------------------------------------------------------------------------ |
|
147 # |
|
148 # Test that getting services by index works. |
|
149 # |
|
150 # CaseClass: core |
|
151 #------------------------------------------------------------------------------------ |
|
152 [Test] |
|
153 title ET08010 Get services by index SYNC |
|
154 create VCXTestUtilModule Util |
|
155 Util IptvLogCaseStart ET08010 |
|
156 pause PAUSE |
|
157 create VCXServiceManagementApiTest IptvTest |
|
158 IptvTest Create |
|
159 IptvTest GetServices SYNC 0 5000 |
|
160 IptvTest GetServices SYNC 0 2 |
|
161 IptvTest GetServices SYNC 1 1 |
|
162 IptvTest Destroy |
|
163 delete IptvTest |
|
164 Util IptvLogCaseEnd ET08010 |
|
165 delete Util |
|
166 [Endtest] |
|
167 |
|
168 #------------------------------------------------------------------------------------ |
|
169 # |
|
170 # Test that deleting a service works. |
|
171 # |
|
172 # CaseClass: core |
|
173 #------------------------------------------------------------------------------------ |
|
174 [Test] |
|
175 title ET08014 Delete service SYNC |
|
176 create VCXTestUtilModule Util |
|
177 Util IptvLogCaseStart ET08014 |
|
178 pause PAUSE |
|
179 create VCXServiceManagementApiTest IptvTest |
|
180 IptvTest Create |
|
181 IptvTest DeleteService SYNC SERVICE_1 |
|
182 IptvTest Destroy |
|
183 delete IptvTest |
|
184 Util IptvLogCaseEnd ET08014 |
|
185 delete Util |
|
186 [Endtest] |
|
187 |
|
188 #------------------------------------------------------------------------------------ |
|
189 # |
|
190 # Test SetUsedIap method with all available iaps. |
|
191 # |
|
192 #------------------------------------------------------------------------------------ |
|
193 [Test] |
|
194 title ET08016 SetUsedIap TestAllIaps SYNC |
|
195 create VCXTestUtilModule Util |
|
196 Util IptvLogCaseStart ET08016 |
|
197 pause PAUSE |
|
198 create VCXServiceManagementApiTest IptvTest |
|
199 IptvTest Create |
|
200 IptvTest SetUsedIap SERVICE_2 0 TEST_IF_IAP_EXISTS |
|
201 IptvTest SetUsedIap SERVICE_2 1 TEST_IF_IAP_EXISTS |
|
202 IptvTest SetUsedIap SERVICE_2 2 TEST_IF_IAP_EXISTS |
|
203 IptvTest SetUsedIap SERVICE_2 3 TEST_IF_IAP_EXISTS |
|
204 IptvTest SetUsedIap SERVICE_2 4 TEST_IF_IAP_EXISTS |
|
205 IptvTest SetUsedIap SERVICE_2 5 TEST_IF_IAP_EXISTS |
|
206 IptvTest SetUsedIap SERVICE_2 6 TEST_IF_IAP_EXISTS |
|
207 IptvTest SetUsedIap SERVICE_2 7 TEST_IF_IAP_EXISTS |
|
208 IptvTest SetUsedIap SERVICE_2 8 TEST_IF_IAP_EXISTS |
|
209 IptvTest SetUsedIap SERVICE_2 9 TEST_IF_IAP_EXISTS |
|
210 IptvTest SetUsedIap SERVICE_2 10 TEST_IF_IAP_EXISTS |
|
211 IptvTest SetUsedIap SERVICE_2 11 TEST_IF_IAP_EXISTS |
|
212 IptvTest SetUsedIap SERVICE_2 12 TEST_IF_IAP_EXISTS |
|
213 IptvTest SetUsedIap SERVICE_2 13 TEST_IF_IAP_EXISTS |
|
214 IptvTest SetUsedIap SERVICE_2 14 TEST_IF_IAP_EXISTS |
|
215 IptvTest SetUsedIap SERVICE_2 15 TEST_IF_IAP_EXISTS |
|
216 IptvTest SetUsedIap SERVICE_2 16 TEST_IF_IAP_EXISTS |
|
217 IptvTest SetUsedIap SERVICE_2 17 TEST_IF_IAP_EXISTS |
|
218 IptvTest SetUsedIap SERVICE_2 18 TEST_IF_IAP_EXISTS |
|
219 IptvTest SetUsedIap SERVICE_2 19 TEST_IF_IAP_EXISTS |
|
220 IptvTest Destroy |
|
221 delete IptvTest |
|
222 Util IptvLogCaseEnd ET08016 |
|
223 delete Util |
|
224 [Endtest] |
|
225 |
|
226 #------------------------------------------------------------------------------------ |
|
227 # |
|
228 # Test that adding service with 15 iaps works. Maximum iap limit in CIptvIapList is 10 but it can be overridden. |
|
229 # |
|
230 #------------------------------------------------------------------------------------ |
|
231 [Test] |
|
232 title ET08017 Add service with 15 iaps SYNC |
|
233 create VCXTestUtilModule Util |
|
234 Util IptvLogCaseStart ET08017 |
|
235 pause PAUSE |
|
236 create VCXServiceManagementApiTest IptvTest |
|
237 IptvTest Create |
|
238 allownextresult KERRARGUMENT |
|
239 allownextresult KERRGENERAL |
|
240 IptvTest AddHardCodedService SYNC SERVICE_15IAPS 2 1 -1 |
|
241 IptvTest Destroy |
|
242 delete IptvTest |
|
243 Util IptvLogCaseEnd ET08017 |
|
244 delete Util |
|
245 [Endtest] |
|
246 |
|
247 #------------------------------------------------------------------------------------ |
|
248 # |
|
249 # Test deleting all the services. |
|
250 # |
|
251 # CaseClass: core |
|
252 #------------------------------------------------------------------------------------ |
|
253 [Test] |
|
254 title ET08018 Delete all services SYNC |
|
255 create VCXTestUtilModule Util |
|
256 Util IptvLogCaseStart ET08018 |
|
257 pause PAUSE |
|
258 create VCXServiceManagementApiTest IptvTest |
|
259 IptvTest Create |
|
260 IptvTest DeleteAllServices SYNC |
|
261 IptvTest Destroy |
|
262 delete IptvTest |
|
263 Util IptvLogCaseEnd ET08018 |
|
264 delete Util |
|
265 [Endtest] |
|
266 |
|
267 #------------------------------------------------------------------------------------ |
|
268 # |
|
269 # Add services to be used in later cases. |
|
270 # |
|
271 # CaseClass: core |
|
272 #------------------------------------------------------------------------------------ |
|
273 [Test] |
|
274 title ET08019 Add valid services 2 SYNC |
|
275 create VCXTestUtilModule Util |
|
276 Util IptvLogCaseStart ET08019 |
|
277 pause PAUSE |
|
278 create VCXServiceManagementApiTest IptvTest |
|
279 IptvTest Create |
|
280 IptvTest AddHardCodedService SYNC SERVICE_0 3 1 0 |
|
281 IptvTest AddHardCodedService SYNC SERVICE_1 8 1 1 |
|
282 IptvTest AddHardCodedService SYNC SERVICE_2 3 1 2 |
|
283 IptvTest AddHardCodedService SYNC SERVICE_3 3 1 3 |
|
284 IptvTest AddHardCodedService SYNC SERVICE_4 3 1 4 |
|
285 IptvTest AddHardCodedService SYNC SERVICE_5 3 1 5 |
|
286 IptvTest AddHardCodedService SYNC SERVICE_6 3 1 6 |
|
287 IptvTest AddHardCodedService SYNC SERVICE_7 3 1 7 |
|
288 IptvTest AddHardCodedService SYNC SERVICE_8 3 1 8 |
|
289 IptvTest AddHardCodedService SYNC SERVICE_9 3 1 9 |
|
290 IptvTest Destroy |
|
291 delete IptvTest |
|
292 Util IptvLogCaseEnd ET08019 |
|
293 delete Util |
|
294 [Endtest] |
|
295 |
|
296 #------------------------------------------------------------------------------------ |
|
297 # |
|
298 # Test that getting services by filter works. |
|
299 # |
|
300 # CaseClass: core |
|
301 #------------------------------------------------------------------------------------ |
|
302 [Test] |
|
303 title ET08020 Get filtered services SYNC |
|
304 create VCXTestUtilModule Util |
|
305 Util IptvLogCaseStart ET08020 |
|
306 pause PAUSE |
|
307 create VCXServiceManagementApiTest IptvTest |
|
308 IptvTest Create |
|
309 IptvTest UpdateServiceField SYNC SERVICE_0 EFlags EConnectionApproved ESelected |
|
310 IptvTest UpdateServiceField SYNC SERVICE_1 EFlags EConnectionApproved ESelected |
|
311 IptvTest UpdateServiceField SYNC SERVICE_2 EFlags EConnectionApproved ESelected |
|
312 IptvTest UpdateServiceField SYNC SERVICE_3 EFlags EConnectionApproved ESelected |
|
313 IptvTest UpdateServiceField SYNC SERVICE_4 EFlags EConnectionApproved ESelected |
|
314 IptvTest UpdateServiceField SYNC SERVICE_5 EFlags EConnectionApproved ESelected |
|
315 IptvTest UpdateServiceField SYNC SERVICE_6 EFlags EConnectionApproved ESelected |
|
316 IptvTest UpdateServiceField SYNC SERVICE_7 EFlags EConnectionApproved ESelected |
|
317 IptvTest UpdateServiceField SYNC SERVICE_8 EFlags EConnectionApproved ESelected |
|
318 IptvTest UpdateServiceField SYNC SERVICE_9 EFlags EConnectionApproved ESelected |
|
319 IptvTest UpdateServiceField SYNC SERVICE_0 EServiceType EVod |
|
320 IptvTest UpdateServiceField SYNC SERVICE_1 EServiceType EVod |
|
321 IptvTest UpdateServiceField SYNC SERVICE_2 EServiceType EVod |
|
322 IptvTest UpdateServiceField SYNC SERVICE_3 EServiceType EVod |
|
323 IptvTest UpdateServiceField SYNC SERVICE_4 EServiceType EVod |
|
324 IptvTest UpdateServiceField SYNC SERVICE_5 EServiceType EVod |
|
325 IptvTest UpdateServiceField SYNC SERVICE_6 EServiceType EVod |
|
326 IptvTest UpdateServiceField SYNC SERVICE_7 EServiceType EVod |
|
327 IptvTest UpdateServiceField SYNC SERVICE_8 EServiceType EVod |
|
328 IptvTest UpdateServiceField SYNC SERVICE_9 EServiceType EVod |
|
329 IptvTest UpdateServiceField SYNC SERVICE_1 EFlags EReadOnly EReadOnlyIaps |
|
330 IptvTest UpdateServiceField SYNC SERVICE_2 EFlags EReadOnly EReadOnlyIaps |
|
331 IptvTest UpdateServiceField SYNC SERVICE_4 EFlags EReadOnly EReadOnlyIaps |
|
332 IptvTest UpdateServiceField SYNC SERVICE_6 EFlags EReadOnly EReadOnlyIaps |
|
333 IptvTest GetServicesFiltered SYNC 6 EDisplayOrderAscending ESearchSelectedServices |
|
334 IptvTest UpdateServiceField SYNC SERVICE_1 EFlags EMainService |
|
335 IptvTest UpdateServiceField SYNC SERVICE_2 EFlags EMainService EReadOnlyIaps |
|
336 IptvTest UpdateServiceField SYNC SERVICE_4 EFlags EMainService |
|
337 IptvTest UpdateServiceField SYNC SERVICE_6 EFlags EMainService EConnectionApproved |
|
338 IptvTest UpdateServiceField SYNC SERVICE_8 EFlags EMainService |
|
339 IptvTest GetServicesFiltered SYNC 5 EDisplayOrderAscending ESearchMainServices |
|
340 IptvTest GetServicesFiltered SYNC 5 EDisplayOrderAscending ESearchSubServices |
|
341 IptvTest GetServicesFiltered SYNC 10 EDisplayOrderAscending ESearchNoFlags |
|
342 IptvTest UpdateServiceField SYNC SERVICE_0 EServiceType EVod |
|
343 IptvTest UpdateServiceField SYNC SERVICE_1 EServiceType ELiveTv |
|
344 IptvTest UpdateServiceField SYNC SERVICE_2 EServiceType EVod |
|
345 IptvTest UpdateServiceField SYNC SERVICE_3 EServiceType ELiveTv |
|
346 IptvTest UpdateServiceField SYNC SERVICE_4 EServiceType ELiveTv |
|
347 IptvTest UpdateServiceField SYNC SERVICE_5 EServiceType ELiveTv |
|
348 IptvTest UpdateServiceField SYNC SERVICE_6 EServiceType EVod |
|
349 IptvTest UpdateServiceField SYNC SERVICE_7 EServiceType EVod |
|
350 IptvTest UpdateServiceField SYNC SERVICE_8 EServiceType ELiveTv |
|
351 IptvTest UpdateServiceField SYNC SERVICE_9 EServiceType EVod |
|
352 IptvTest GetServicesFiltered SYNC 5 EDisplayOrderAscending ESearchVod |
|
353 IptvTest GetServicesFiltered SYNC 5 EDisplayOrderAscending ESearchLiveTv |
|
354 IptvTest UpdateServiceField SYNC SERVICE_0 EServiceType EOther |
|
355 IptvTest UpdateServiceField SYNC SERVICE_3 EServiceType EOther |
|
356 IptvTest UpdateServiceField SYNC SERVICE_4 EServiceType EOther |
|
357 IptvTest UpdateServiceField SYNC SERVICE_6 EServiceType EVodCast |
|
358 IptvTest UpdateServiceField SYNC SERVICE_1 EServiceType EVodCast |
|
359 IptvTest UpdateServiceField SYNC SERVICE_3 EServiceType EVodCast |
|
360 IptvTest GetServicesFiltered SYNC 2 EDisplayOrderAscending ESearchOther |
|
361 IptvTest GetServicesFiltered SYNC 3 EDisplayOrderAscending ESearchVodCast |
|
362 IptvTest Destroy |
|
363 delete IptvTest |
|
364 Util IptvLogCaseEnd ET08020 |
|
365 delete Util |
|
366 [Endtest] |
|
367 |
|
368 #------------------------------------------------------------------------------------ |
|
369 # |
|
370 # Call GetServicesFiltered with different sort argument. |
|
371 # |
|
372 # CaseClass: core |
|
373 #------------------------------------------------------------------------------------ |
|
374 [Test] |
|
375 title ET08062 Get filtered services sorted SYNC |
|
376 create VCXTestUtilModule Util |
|
377 Util IptvLogCaseStart ET08062 |
|
378 pause PAUSE |
|
379 create VCXServiceManagementApiTest IptvTest |
|
380 IptvTest Create |
|
381 IptvTest GetServicesFiltered SYNC 3 EDateAscending ESearchVodCast |
|
382 IptvTest GetServicesFiltered SYNC 3 EDateDescending ESearchVodCast |
|
383 IptvTest GetServicesFiltered SYNC 3 EDisplayOrderAscending ESearchVodCast |
|
384 IptvTest GetServicesFiltered SYNC 3 EDisplayOrderDescending ESearchVodCast |
|
385 allownextresult EGeneralError |
|
386 IptvTest GetServicesFiltered SYNC 3 7 ESearchVodCast |
|
387 IptvTest Destroy |
|
388 delete IptvTest |
|
389 Util IptvLogCaseEnd ET08062 |
|
390 delete Util |
|
391 [Endtest] |
|
392 |
|
393 #------------------------------------------------------------------------------------ |
|
394 # |
|
395 # Test that getting services by provider id works. |
|
396 # |
|
397 # CaseClass: core |
|
398 #------------------------------------------------------------------------------------ |
|
399 [Test] |
|
400 title ET08021 Get services by provider id SYNC |
|
401 create VCXTestUtilModule Util |
|
402 Util IptvLogCaseStart ET08021 |
|
403 pause PAUSE |
|
404 create VCXServiceManagementApiTest IptvTest |
|
405 IptvTest Create |
|
406 IptvTest GetServicesByProviderId Provider_ylemediasali |
|
407 IptvTest GetServicesByProviderId Provider_oops6 |
|
408 IptvTest Destroy |
|
409 delete IptvTest |
|
410 Util IptvLogCaseEnd ET08021 |
|
411 delete Util |
|
412 [Endtest] |
|
413 |
|
414 #------------------------------------------------------------------------------------ |
|
415 # |
|
416 # Test that SetUsedIap method works. |
|
417 # |
|
418 #------------------------------------------------------------------------------------ |
|
419 [Test] |
|
420 title ET08024 SetUsedIap SYNC |
|
421 create VCXTestUtilModule Util |
|
422 Util IptvLogCaseStart ET08024 |
|
423 pause PAUSE |
|
424 create VCXServiceManagementApiTest IptvTest |
|
425 IptvTest Create |
|
426 IptvTest SetUsedIap SERVICE_1 0 |
|
427 IptvTest SetUsedIap SERVICE_0 0 |
|
428 IptvTest SetUsedIap SERVICE_4 1 |
|
429 IptvTest Destroy |
|
430 delete IptvTest |
|
431 Util IptvLogCaseEnd ET08024 |
|
432 delete Util |
|
433 [Endtest] |
|
434 |
|
435 #------------------------------------------------------------------------------------ |
|
436 # |
|
437 # Test that GetUsedIap method works. |
|
438 # |
|
439 #------------------------------------------------------------------------------------ |
|
440 [Test] |
|
441 title ET08025 GetUsedIap SYNC |
|
442 create VCXTestUtilModule Util |
|
443 Util IptvLogCaseStart ET08025 |
|
444 pause PAUSE |
|
445 create VCXServiceManagementApiTest IptvTest |
|
446 IptvTest Create |
|
447 IptvTest SetUsedIap SERVICE_1 3G_AP |
|
448 IptvTest GetServices SYNC 0 5000 |
|
449 IptvTest GetUsedIap SYNC SERVICE_1 3G_AP |
|
450 IptvTest Destroy |
|
451 delete IptvTest |
|
452 Util IptvLogCaseEnd ET08025 |
|
453 delete Util |
|
454 [Endtest] |
|
455 |
|
456 #------------------------------------------------------------------------------------ |
|
457 # |
|
458 # Test that ClearUsedIap method works. |
|
459 # |
|
460 #------------------------------------------------------------------------------------ |
|
461 [Test] |
|
462 title ET08026 ClearUsedIap SYNC |
|
463 create VCXTestUtilModule Util |
|
464 Util IptvLogCaseStart ET08026 |
|
465 pause PAUSE |
|
466 create VCXServiceManagementApiTest IptvTest |
|
467 IptvTest Create |
|
468 IptvTest SetUsedIap SERVICE_1 1 |
|
469 IptvTest ClearUsedIap |
|
470 IptvTest Destroy |
|
471 delete IptvTest |
|
472 Util IptvLogCaseEnd ET08026 |
|
473 delete Util |
|
474 [Endtest] |
|
475 |
|
476 #------------------------------------------------------------------------------------ |
|
477 # |
|
478 # Test that SetAllIaps method works. |
|
479 # |
|
480 #------------------------------------------------------------------------------------ |
|
481 #[Test] |
|
482 #title ET08027 SetAllIaps SYNC |
|
483 #create VCXTestUtilModule Util |
|
484 #Util IptvLogCaseStart ET08027 |
|
485 #pause PAUSE |
|
486 #create VCXServiceManagementApiTest IptvTest |
|
487 #IptvTest Create |
|
488 #IptvTest SetAllIaps SYNC 4 1 |
|
489 #IptvTest Destroy |
|
490 #delete IptvTest |
|
491 #Util IptvLogCaseEnd ET08027 |
|
492 #delete Util |
|
493 #[Endtest] |
|
494 |
|
495 #------------------------------------------------------------------------------------ |
|
496 # |
|
497 # Test that setting and getting connection permissions work. |
|
498 # |
|
499 #------------------------------------------------------------------------------------ |
|
500 [Test] |
|
501 title ET08028 Set connection permission SYNC |
|
502 create VCXTestUtilModule Util |
|
503 Util IptvLogCaseStart ET08028 |
|
504 pause PAUSE |
|
505 create VCXServiceManagementApiTest IptvTest |
|
506 IptvTest Create |
|
507 IptvTest IsConnectionAllowed 3G_AP PERMISSION_CONFIRM |
|
508 IptvTest SetConnectionAllowed 3G_AP 1 |
|
509 IptvTest IsConnectionAllowed 3G_AP PERMISSION_ALLOWED |
|
510 IptvTest SetConnectionAllowed 3G_AP 0 |
|
511 IptvTest IsConnectionAllowed 3G_AP PERMISSION_NOT_ALLOWED |
|
512 IptvTest Destroy |
|
513 delete IptvTest |
|
514 Util IptvLogCaseEnd ET08028 |
|
515 delete Util |
|
516 [Endtest] |
|
517 |
|
518 #------------------------------------------------------------------------------------ |
|
519 # |
|
520 # Test sending two add service requests to the server. |
|
521 # |
|
522 #------------------------------------------------------------------------------------ |
|
523 [Test] |
|
524 title ET08029 Repeat add service SYNC |
|
525 create VCXTestUtilModule Util |
|
526 Util IptvLogCaseStart ET08029 |
|
527 pause PAUSE |
|
528 create VCXServiceManagementApiTest IptvTest |
|
529 IptvTest Create |
|
530 IptvTest AddHardCodedService SYNC SERVICE_0 2 1 -1 |
|
531 IptvTest AddHardCodedService SYNC SERVICE_1 2 1 -1 |
|
532 IptvTest AddHardCodedService SYNC SERVICE_2 2 1 -1 |
|
533 IptvTest AddHardCodedService SYNC SERVICE_3 2 1 -1 |
|
534 IptvTest RepeatNextRequest 2 |
|
535 IptvTest AddHardCodedService SYNC SERVICE_4 2 1 -1 |
|
536 IptvTest Destroy |
|
537 delete IptvTest |
|
538 Util IptvLogCaseEnd ET08029 |
|
539 delete Util |
|
540 [Endtest] |
|
541 |
|
542 #------------------------------------------------------------------------------------ |
|
543 # |
|
544 # Test sending two update service requests to the server. |
|
545 # |
|
546 #------------------------------------------------------------------------------------ |
|
547 [Test] |
|
548 title ET08030 Repeat update service request SYNC |
|
549 create VCXTestUtilModule Util |
|
550 Util IptvLogCaseStart ET08030 |
|
551 pause PAUSE |
|
552 create VCXServiceManagementApiTest IptvTest |
|
553 IptvTest Create |
|
554 IptvTest RepeatNextRequest 2 |
|
555 IptvTest UpdateServiceField SYNC SERVICE_0 EUserName "Updated User Name" |
|
556 IptvTest Destroy |
|
557 delete IptvTest |
|
558 Util IptvLogCaseEnd ET08030 |
|
559 delete Util |
|
560 [Endtest] |
|
561 |
|
562 #------------------------------------------------------------------------------------ |
|
563 # |
|
564 # Test sending two get services requests to the server. |
|
565 # |
|
566 #------------------------------------------------------------------------------------ |
|
567 [Test] |
|
568 title ET08031 Repeat get services by index SYNC |
|
569 create VCXTestUtilModule Util |
|
570 Util IptvLogCaseStart ET08031 |
|
571 pause PAUSE |
|
572 create VCXServiceManagementApiTest IptvTest |
|
573 IptvTest Create |
|
574 IptvTest RepeatNextRequest 2 |
|
575 IptvTest GetServices SYNC 0 5000 |
|
576 IptvTest Destroy |
|
577 delete IptvTest |
|
578 Util IptvLogCaseEnd ET08031 |
|
579 delete Util |
|
580 [Endtest] |
|
581 |
|
582 #------------------------------------------------------------------------------------ |
|
583 # |
|
584 # Repeat SetUsedIap request to the server. |
|
585 # |
|
586 #------------------------------------------------------------------------------------ |
|
587 [Test] |
|
588 title ET08033 Repeat SetUsedIap SYNC |
|
589 create VCXTestUtilModule Util |
|
590 Util IptvLogCaseStart ET08033 |
|
591 pause PAUSE |
|
592 create VCXServiceManagementApiTest IptvTest |
|
593 IptvTest Create |
|
594 IptvTest UpdateServiceField SYNC SERVICE_0 ESetIapList WLAN_AP 2 3G_AP 0 |
|
595 IptvTest RepeatNextRequest 2 |
|
596 IptvTest SetUsedIap SERVICE_0 3G_AP |
|
597 IptvTest RepeatNextRequest 2 |
|
598 IptvTest SetUsedIap SERVICE_0 WLAN_AP |
|
599 IptvTest Destroy |
|
600 delete IptvTest |
|
601 Util IptvLogCaseEnd ET08033 |
|
602 delete Util |
|
603 [Endtest] |
|
604 |
|
605 #------------------------------------------------------------------------------------ |
|
606 # |
|
607 # Repeat getting services by filter request to the server. |
|
608 # |
|
609 #------------------------------------------------------------------------------------ |
|
610 [Test] |
|
611 title ET08035 Repeat get filtered services SYNC |
|
612 create VCXTestUtilModule Util |
|
613 Util IptvLogCaseStart ET08035 |
|
614 pause PAUSE |
|
615 create VCXServiceManagementApiTest IptvTest |
|
616 IptvTest Create |
|
617 IptvTest UpdateServiceField SYNC SERVICE_0 EFlags EConnectionApproved ESelected |
|
618 IptvTest UpdateServiceField SYNC SERVICE_1 EFlags EConnectionApproved ESelected |
|
619 IptvTest UpdateServiceField SYNC SERVICE_2 EFlags EConnectionApproved ESelected |
|
620 IptvTest UpdateServiceField SYNC SERVICE_0 EServiceType EVod |
|
621 IptvTest UpdateServiceField SYNC SERVICE_1 EServiceType EVod |
|
622 IptvTest UpdateServiceField SYNC SERVICE_2 EServiceType EVod |
|
623 IptvTest UpdateServiceField SYNC SERVICE_2 EFlags EReadOnly EReadOnlyIaps |
|
624 IptvTest UpdateServiceField SYNC SERVICE_0 EFlags EMainService |
|
625 IptvTest UpdateServiceField SYNC SERVICE_2 EFlags EMainService EReadOnlyIaps |
|
626 IptvTest RepeatNextRequest 2 |
|
627 IptvTest GetServicesFiltered SYNC 7 EDisplayOrderAscending ESearchSelectedServices |
|
628 IptvTest Destroy |
|
629 delete IptvTest |
|
630 Util IptvLogCaseEnd ET08035 |
|
631 delete Util |
|
632 [Endtest] |
|
633 |
|
634 #------------------------------------------------------------------------------------ |
|
635 # |
|
636 # Test repeating getServicesByProviderIid requests to the server. |
|
637 # |
|
638 #------------------------------------------------------------------------------------ |
|
639 [Test] |
|
640 title ET08036 Repeat get services by provider id SYNC |
|
641 create VCXTestUtilModule Util |
|
642 Util IptvLogCaseStart ET08036 |
|
643 pause PAUSE |
|
644 create VCXServiceManagementApiTest IptvTest |
|
645 IptvTest Create |
|
646 IptvTest RepeatNextRequest 2 |
|
647 IptvTest GetServicesByProviderId Provider1 |
|
648 IptvTest GetServicesByProviderId Provider2 |
|
649 IptvTest Destroy |
|
650 delete IptvTest |
|
651 Util IptvLogCaseEnd ET08036 |
|
652 delete Util |
|
653 [Endtest] |
|
654 |
|
655 #------------------------------------------------------------------------------------ |
|
656 # |
|
657 # Test repeating ClearUsedIap request to the server. |
|
658 # |
|
659 #------------------------------------------------------------------------------------ |
|
660 [Test] |
|
661 title ET08037 Repeat ClearUsedIap SYNC |
|
662 create VCXTestUtilModule Util |
|
663 Util IptvLogCaseStart ET08037 |
|
664 pause PAUSE |
|
665 create VCXServiceManagementApiTest IptvTest |
|
666 IptvTest Create |
|
667 IptvTest SetUsedIap SERVICE_1 1 |
|
668 IptvTest RepeatNextRequest 2 |
|
669 IptvTest ClearUsedIap |
|
670 IptvTest Destroy |
|
671 delete IptvTest |
|
672 Util IptvLogCaseEnd ET08037 |
|
673 delete Util |
|
674 [Endtest] |
|
675 |
|
676 |
|
677 #------------------------------------------------------------------------------------ |
|
678 # |
|
679 # Test repeating the requests to the server. |
|
680 # |
|
681 #------------------------------------------------------------------------------------ |
|
682 [Test] |
|
683 title ET08039 Repeat set connection permission and IsConnectionAllowed requests SYNC |
|
684 create VCXTestUtilModule Util |
|
685 Util IptvLogCaseStart ET08039 |
|
686 pause PAUSE |
|
687 create VCXServiceManagementApiTest IptvTest |
|
688 IptvTest Create |
|
689 IptvTest AddHardCodedService SYNC SERVICE_1 2 1 |
|
690 IptvTest RepeatNextRequest 2 |
|
691 IptvTest IsConnectionAllowed 3G_AP PERMISSION_CONFIRM |
|
692 IptvTest RepeatNextRequest 2 |
|
693 IptvTest SetConnectionAllowed 3G_AP 1 |
|
694 IptvTest RepeatNextRequest 1 |
|
695 IptvTest IsConnectionAllowed 3G_AP PERMISSION_ALLOWED |
|
696 IptvTest Destroy |
|
697 delete IptvTest |
|
698 Util IptvLogCaseEnd ET08039 |
|
699 delete Util |
|
700 [Endtest] |
|
701 |
|
702 #------------------------------------------------------------------------------------ |
|
703 # |
|
704 # Test sending two delete service requests to the server. |
|
705 # |
|
706 #------------------------------------------------------------------------------------ |
|
707 [Test] |
|
708 title ET08032 Repeat delete service SYNC |
|
709 create VCXTestUtilModule Util |
|
710 Util IptvLogCaseStart ET08032 |
|
711 pause PAUSE |
|
712 create VCXServiceManagementApiTest IptvTest |
|
713 IptvTest Create |
|
714 IptvTest AddHardCodedService SYNC SERVICE_1 2 1 |
|
715 IptvTest AddHardCodedService SYNC SERVICE_1 2 1 |
|
716 IptvTest RepeatNextRequest 2 |
|
717 IptvTest DeleteService SYNC SERVICE_1 |
|
718 IptvTest Destroy |
|
719 delete IptvTest |
|
720 Util IptvLogCaseEnd ET08032 |
|
721 delete Util |
|
722 [Endtest] |
|
723 |
|
724 #------------------------------------------------------------------------------------ |
|
725 # |
|
726 # Verify that server is shutdown when it has no active clients. |
|
727 # |
|
728 #------------------------------------------------------------------------------------ |
|
729 [Test] |
|
730 title ET08040 Verify server is shutdown SYNC |
|
731 create VCXServiceManagementApiTest IptvTest |
|
732 IptvTest Create |
|
733 IptvTest GetServices SYNC 0 5000 |
|
734 pause 10000 |
|
735 pause 10000 |
|
736 IptvTest Destroy |
|
737 delete IptvTest |
|
738 pause 10000 |
|
739 create VCXServiceManagementApiTest IptvTest |
|
740 IptvTest VerifyServerIsShutdown |
|
741 delete IptvTest |
|
742 [Endtest] |
|
743 |
|
744 #------------------------------------------------------------------------------------ |
|
745 # |
|
746 # Test setting service url with too long url. |
|
747 # |
|
748 # CaseClass: core |
|
749 #------------------------------------------------------------------------------------ |
|
750 [Test] |
|
751 title ET08041 Too long service URL |
|
752 pause PAUSE |
|
753 create VCXServiceManagementApiTest SMTest |
|
754 SMTest Create |
|
755 SMTest AddHardCodedService SYNC SERVICE_9 3G_AP 1 10 // OOPS9 |
|
756 allownextresult -4 // too long url, not enough memory, |
|
757 SMTest UpdateServiceField SYNC SERVICE_9 EAddress EAddress_2kLongUrl |
|
758 SMTest Destroy |
|
759 delete SMTest |
|
760 [Endtest] |
|
761 |
|
762 #------------------------------------------------------------------------------------ |
|
763 # |
|
764 # Send shutdown request to the server. |
|
765 # |
|
766 # This fails because it's not supported. |
|
767 # |
|
768 #------------------------------------------------------------------------------------ |
|
769 [Test] |
|
770 title ET08042 Repeat get filtered services SYNC |
|
771 pause PAUSE |
|
772 create VCXServiceManagementApiTest IptvTest |
|
773 IptvTest Create |
|
774 allownextresult 2 |
|
775 IptvTest ShutdownServer SYNC |
|
776 IptvTest Destroy |
|
777 delete IptvTest |
|
778 [Endtest] |