|
1 #*********************************************************************************** |
|
2 # |
|
3 # STIF test script file for testing VOD content client API. |
|
4 # |
|
5 #*********************************************************************************** |
|
6 |
|
7 [StifSettings] |
|
8 CapsModifier= IptvTestClientApiCapsMod.exe |
|
9 [EndStifSettings] |
|
10 |
|
11 [StifSettings] |
|
12 CapsModifier= IptvTestClientApiCapsMod.exe |
|
13 [EndStifSettings] |
|
14 |
|
15 [Define] |
|
16 INCLUDE c:\testframework\VCXConsts.inc |
|
17 INCLUDE c:\testframework\VCXErrors.inc |
|
18 INCLUDE c:\testframework\VCXVodContentApiTest.inc |
|
19 INCLUDE c:\testframework\VCXServiceNames.inc |
|
20 INCLUDE c:\testframework\VCXServiceUpdating.inc |
|
21 [Enddefine] |
|
22 |
|
23 [Sub SyncTime] |
|
24 print >>>SyncTime |
|
25 observer Download "http:\/\/193.65.182.78/time.php" "c:\testing\data\iptvtestsynctime.txt" "mediacharger" "Buran_9o" 3G_AP |
|
26 waittestclass observer |
|
27 observer SyncTimeWithServer "c:\testing\data\iptvtestsynctime.txt" |
|
28 pause 2000 |
|
29 [EndSub] |
|
30 |
|
31 [Sub TouchFeed] |
|
32 print >>TouchFeed |
|
33 observer Download "KIptvTestUrlUpdateAll" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
34 waittestclass observer |
|
35 pause 2000 |
|
36 [EndSub] |
|
37 |
|
38 [Sub EcgForcedUpdate] |
|
39 print >>>EcgForcedUpdate |
|
40 create VCXVodContentApiTest test |
|
41 test Create SERVICE_TN |
|
42 test SelectIap 3G_AP |
|
43 test UpdateEcg |
|
44 waittestclass test |
|
45 test Destroy |
|
46 delete test |
|
47 pause 2000 |
|
48 [EndSub] |
|
49 |
|
50 [Sub EcgUpdate] |
|
51 print >>>EcgUpdate |
|
52 create VCXVodContentApiTest test |
|
53 test Create SERVICE_TN |
|
54 test SelectIap 3G_AP |
|
55 test GetEcgList 1 "" 0 10 |
|
56 waittestclass test |
|
57 test Destroy |
|
58 delete test |
|
59 pause 2000 |
|
60 [EndSub] |
|
61 |
|
62 [Sub EcgUpdateNotNeeded] |
|
63 print >>>EcgUpdate |
|
64 create VCXVodContentApiTest test |
|
65 test Create SERVICE_TN |
|
66 test SelectIap 3G_AP |
|
67 test GetEcgList 1 "" 0 10 |
|
68 allownextresult KIptvVodUpdateNotStarted |
|
69 waittestclass test |
|
70 test Destroy |
|
71 delete test |
|
72 pause 2000 |
|
73 [EndSub] |
|
74 |
|
75 #------------------------------------------------------------------------------------ |
|
76 # |
|
77 # Set internet as default destination and setup services. |
|
78 # |
|
79 #------------------------------------------------------------------------------------ |
|
80 [Test] |
|
81 title ET19150 <not a test> Setup content modification test services |
|
82 |
|
83 create VCXTestUtilModule Util |
|
84 // Copies some known 3G AP to "Internet" destination with "Internet" name for the AP. |
|
85 Util CopyMethod "Internet" "Internet" "Internet" |
|
86 // Disable connection dialog for "Internet" destination. |
|
87 Util SetConnectionMethodIntAttribute "Internet" "Internet" 507 2 // 507 is ECmSeamlessnessLevel |
|
88 delete Util |
|
89 |
|
90 create VCXTestUtilModule Util |
|
91 Util SetUsedDestination "Internet" |
|
92 delete Util |
|
93 |
|
94 create VCXServiceManagementApiTest smtest |
|
95 smtest Create |
|
96 smtest DeleteAllServices SYNC |
|
97 smtest AddHardCodedService ASYNC SERVICE_3 3G_AP 1 |
|
98 smtest UpdateServiceField ASYNC SERVICE_3 EAddress "http:\/\/193.65.182.78/misc/nfpthumbnailtest/test_engine.xml" |
|
99 smtest UpdateServiceField ASYNC SERVICE_3 EName SERVICE_TN |
|
100 |
|
101 smtest UpdateServiceField SYNC SERVICE_TN ESetIapList 3G_AP 1 |
|
102 smtest UpdateServiceField SYNC SERVICE_TN EFlags 13 |
|
103 smtest UpdateServiceField SYNC SERVICE_TN EScheduleDlNetwork EAlways |
|
104 delete smtest |
|
105 [Endtest] |
|
106 |
|
107 #------------------------------------------------------------------------------------ |
|
108 # |
|
109 # Check that content modification check works. |
|
110 # |
|
111 #------------------------------------------------------------------------------------ |
|
112 [Test] |
|
113 title ET19151 Automatic update, No changes in content |
|
114 |
|
115 create VCXTestUtilModule Util |
|
116 Util IptvLogCaseStart ET19151 |
|
117 |
|
118 create VCXTestEcgFileObserver observer |
|
119 |
|
120 callsub SyncTime |
|
121 callsub TouchFeed |
|
122 callsub EcgForcedUpdate |
|
123 |
|
124 observer SetObservedServicePath SERVICE_TN |
|
125 observer AddObservedFilename TN_0 |
|
126 observer AddObservedFilename TN_1 |
|
127 observer AddObservedFilename TN_2 |
|
128 observer AddObservedFilename TN_3 |
|
129 observer AddObservedFilename TN_4 |
|
130 |
|
131 observer CheckFileState |
|
132 observer GetFileDate |
|
133 |
|
134 Util AdvanceSystemTimeHours 2 |
|
135 |
|
136 callsub EcgUpdate |
|
137 |
|
138 observer CheckFileState |
|
139 observer CheckFileDate |
|
140 delete observer |
|
141 |
|
142 Util AdvanceSystemTimeHours -2 |
|
143 Util IptvLogCaseEnd |
|
144 delete Util |
|
145 [Endtest] |
|
146 |
|
147 #------------------------------------------------------------------------------------ |
|
148 # |
|
149 # Check that content modification check works. |
|
150 # |
|
151 #------------------------------------------------------------------------------------ |
|
152 [Test] |
|
153 title ET19152 Automatic update, Changes in content |
|
154 |
|
155 create VCXTestUtilModule Util |
|
156 Util IptvLogCaseStart ET19152 |
|
157 |
|
158 create VCXTestEcgFileObserver observer |
|
159 callsub SyncTime |
|
160 callsub TouchFeed |
|
161 |
|
162 observer Download "KIptvTestUrl2" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
163 waittestclass observer |
|
164 |
|
165 callsub EcgForcedUpdate |
|
166 |
|
167 observer SetObservedServicePath SERVICE_TN |
|
168 observer AddObservedFilename TN_0 |
|
169 observer AddObservedFilename TN_1 |
|
170 observer AddObservedFilename TN_2 |
|
171 observer AddObservedFilename TN_3 |
|
172 observer AddObservedFilename TN_4 |
|
173 observer CheckFileState |
|
174 observer GetFileDate |
|
175 |
|
176 observer Download "KIptvTestUrl2" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
177 waittestclass observer |
|
178 |
|
179 Util AdvanceSystemTimeHours 2 |
|
180 |
|
181 callsub EcgUpdate |
|
182 |
|
183 observer CheckFileState |
|
184 observer CheckFileDate 1 0 1 0 1 |
|
185 delete observer |
|
186 |
|
187 Util AdvanceSystemTimeHours -2 |
|
188 Util IptvLogCaseEnd |
|
189 delete Util |
|
190 [Endtest] |
|
191 |
|
192 #------------------------------------------------------------------------------------ |
|
193 # |
|
194 # Check that content modification check works. |
|
195 # |
|
196 #------------------------------------------------------------------------------------ |
|
197 [Test] |
|
198 title ET19153 Automatic update, Content added |
|
199 |
|
200 create VCXTestUtilModule Util |
|
201 Util IptvLogCaseStart ET19153 |
|
202 |
|
203 create VCXTestEcgFileObserver observer |
|
204 callsub SyncTime |
|
205 callsub TouchFeed |
|
206 |
|
207 observer Download "KIptvTestUrl4" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
208 waittestclass observer |
|
209 |
|
210 callsub EcgForcedUpdate |
|
211 |
|
212 observer SetObservedServicePath SERVICE_TN |
|
213 observer AddObservedFilename TN_0 |
|
214 observer AddObservedFilename TN_1 |
|
215 observer AddObservedFilename TN_2 |
|
216 observer AddObservedFilename TN_3 |
|
217 observer AddObservedFilename TN_4 |
|
218 observer CheckFileState 1 1 1 1 0 |
|
219 observer GetFileDate |
|
220 |
|
221 Util AdvanceSystemTimeHours 2 |
|
222 |
|
223 observer Download "KIptvTestUrl1" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
224 waittestclass observer |
|
225 |
|
226 callsub EcgUpdate |
|
227 |
|
228 observer CheckFileState |
|
229 observer CheckFileDate 0 0 0 0 1 |
|
230 delete observer |
|
231 |
|
232 Util IptvLogCaseEnd |
|
233 delete Util |
|
234 [Endtest] |
|
235 |
|
236 #------------------------------------------------------------------------------------ |
|
237 # |
|
238 # Check that content modification check works. |
|
239 # |
|
240 #------------------------------------------------------------------------------------ |
|
241 [Test] |
|
242 title ET19154 Automatic update, Content removed |
|
243 |
|
244 create VCXTestUtilModule Util |
|
245 Util IptvLogCaseStart ET19154 |
|
246 |
|
247 create VCXTestEcgFileObserver observer |
|
248 |
|
249 callsub SyncTime |
|
250 |
|
251 callsub TouchFeed |
|
252 |
|
253 observer Download "KIptvTestUrl1" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
254 waittestclass observer |
|
255 |
|
256 callsub EcgForcedUpdate |
|
257 |
|
258 observer SetObservedServicePath SERVICE_TN |
|
259 observer AddObservedFilename TN_0 |
|
260 observer AddObservedFilename TN_1 |
|
261 observer AddObservedFilename TN_2 |
|
262 observer AddObservedFilename TN_3 |
|
263 observer AddObservedFilename TN_4 |
|
264 observer CheckFileState |
|
265 observer GetFileDate |
|
266 |
|
267 Util AdvanceSystemTimeHours 2 |
|
268 |
|
269 observer Download "KIptvTestUrl9" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
270 waittestclass observer |
|
271 |
|
272 callsub EcgUpdate |
|
273 |
|
274 observer CheckFileState 1 1 0 0 0 |
|
275 observer CheckFileDate 0 1 |
|
276 delete observer |
|
277 |
|
278 Util IptvLogCaseEnd |
|
279 delete Util |
|
280 [Endtest] |
|
281 |
|
282 #------------------------------------------------------------------------------------ |
|
283 # |
|
284 # Check that content modification check works. |
|
285 # |
|
286 #------------------------------------------------------------------------------------ |
|
287 [Test] |
|
288 title ET19155 Automatic update, feed updated |
|
289 |
|
290 create VCXTestUtilModule Util |
|
291 Util IptvLogCaseStart ET19155 |
|
292 |
|
293 create VCXTestEcgFileObserver observer |
|
294 callsub SyncTime |
|
295 |
|
296 callsub TouchFeed |
|
297 |
|
298 observer Download "KIptvTestUrl1" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
299 waittestclass observer |
|
300 |
|
301 callsub EcgForcedUpdate |
|
302 |
|
303 observer SetObservedServicePath SERVICE_TN |
|
304 observer AddObservedFilename TN_0 |
|
305 observer AddObservedFilename TN_1 |
|
306 observer AddObservedFilename TN_2 |
|
307 observer AddObservedFilename TN_3 |
|
308 observer AddObservedFilename TN_4 |
|
309 observer CheckFileState |
|
310 observer GetFileDate |
|
311 |
|
312 observer Download "KIptvTestUrl3" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
313 waittestclass observer |
|
314 |
|
315 Util AdvanceSystemTimeHours 2 |
|
316 |
|
317 callsub EcgUpdate |
|
318 |
|
319 observer CheckFileState |
|
320 observer CheckFileDate |
|
321 delete observer |
|
322 |
|
323 Util IptvLogCaseEnd |
|
324 delete Util |
|
325 pause 2000 |
|
326 [Endtest] |
|
327 |
|
328 #------------------------------------------------------------------------------------ |
|
329 # |
|
330 # Check that content modification check works. |
|
331 # |
|
332 #------------------------------------------------------------------------------------ |
|
333 [Test] |
|
334 title ET19156 Automatic update without Epg DB |
|
335 |
|
336 create VCXTestUtilModule Util |
|
337 Util IptvLogCaseStart ET19156 |
|
338 |
|
339 create VCXTestEcgFileObserver observer |
|
340 callsub SyncTime |
|
341 |
|
342 callsub TouchFeed |
|
343 |
|
344 observer Download "KIptvTestUrl1" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
345 waittestclass observer |
|
346 |
|
347 observer SetObservedServicePath SERVICE_TN |
|
348 observer AddObservedFilename TN_0 |
|
349 observer AddObservedFilename TN_1 |
|
350 observer AddObservedFilename TN_2 |
|
351 observer AddObservedFilename TN_3 |
|
352 observer AddObservedFilename TN_4 |
|
353 |
|
354 create VCXVodContentApiTest test |
|
355 test DeleteEpgDb |
|
356 test Create SERVICE_TN |
|
357 test SelectIap 3G_AP |
|
358 |
|
359 observer CheckFileState 0 0 0 0 0 |
|
360 |
|
361 test GetEcgList 1 "" 0 10 |
|
362 waittestclass test |
|
363 test Destroy |
|
364 delete test |
|
365 |
|
366 pause 2000 |
|
367 |
|
368 observer CheckFileState |
|
369 delete observer |
|
370 |
|
371 Util IptvLogCaseEnd |
|
372 delete Util |
|
373 [Endtest] |
|
374 |
|
375 #------------------------------------------------------------------------------------ |
|
376 # |
|
377 # Check that content modification check works. |
|
378 # |
|
379 #------------------------------------------------------------------------------------ |
|
380 [Test] |
|
381 title ET19157 Attempt update too soon, feed updated |
|
382 |
|
383 create VCXTestUtilModule Util |
|
384 Util IptvLogCaseStart ET19157 |
|
385 |
|
386 create VCXTestEcgFileObserver observer |
|
387 callsub SyncTime |
|
388 |
|
389 callsub TouchFeed |
|
390 |
|
391 observer Download "KIptvTestUrl1" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
392 waittestclass observer |
|
393 |
|
394 callsub EcgForcedUpdate |
|
395 |
|
396 observer SetObservedServicePath SERVICE_TN |
|
397 observer AddObservedFilename TN_0 |
|
398 observer AddObservedFilename TN_1 |
|
399 observer AddObservedFilename TN_2 |
|
400 observer AddObservedFilename TN_3 |
|
401 observer AddObservedFilename TN_4 |
|
402 observer CheckFileState |
|
403 observer GetFileDate |
|
404 |
|
405 observer Download "KIptvTestUrl2" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
406 waittestclass observer |
|
407 |
|
408 callsub EcgUpdateNotNeeded |
|
409 |
|
410 observer CheckFileState |
|
411 observer CheckFileDate |
|
412 delete observer |
|
413 |
|
414 Util IptvLogCaseEnd |
|
415 delete Util |
|
416 pause 2000 |
|
417 [Endtest] |
|
418 |
|
419 #------------------------------------------------------------------------------------ |
|
420 # |
|
421 # Check that content modification check works. |
|
422 # |
|
423 #------------------------------------------------------------------------------------ |
|
424 [Test] |
|
425 title ET19158 Automatic update, videos with same thumbnail |
|
426 |
|
427 create VCXTestUtilModule Util |
|
428 Util IptvLogCaseStart ET19158 |
|
429 |
|
430 create VCXTestEcgFileObserver observer |
|
431 callsub SyncTime |
|
432 |
|
433 callsub TouchFeed |
|
434 |
|
435 observer Download "KIptvTestUrl5" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
436 waittestclass observer |
|
437 |
|
438 callsub EcgForcedUpdate |
|
439 |
|
440 observer SetObservedServicePath SERVICE_TN |
|
441 observer AddObservedFilename TN_0 |
|
442 observer AddObservedFilename TN_1 |
|
443 observer AddObservedFilename TN_2 |
|
444 observer AddObservedFilename TN_3 |
|
445 |
|
446 observer CheckFileState 1 0 1 0 |
|
447 observer GetFileDate |
|
448 |
|
449 Util AdvanceSystemTimeHours 2 |
|
450 |
|
451 observer Download "KIptvTestUrl5" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
452 waittestclass observer |
|
453 |
|
454 callsub EcgUpdate |
|
455 |
|
456 observer CheckFileState 1 0 1 0 |
|
457 observer CheckFileDate 1 0 1 0 |
|
458 delete observer |
|
459 |
|
460 Util IptvLogCaseEnd |
|
461 delete Util |
|
462 [Endtest] |
|
463 |
|
464 #------------------------------------------------------------------------------------ |
|
465 # |
|
466 # Check that content modification check works. |
|
467 # |
|
468 #------------------------------------------------------------------------------------ |
|
469 [Test] |
|
470 title ET19160 Automatic update, Changes in content |
|
471 |
|
472 create VCXTestUtilModule Util |
|
473 Util IptvLogCaseStart ET19160 |
|
474 |
|
475 create VCXTestEcgFileObserver observer |
|
476 callsub SyncTime |
|
477 callsub TouchFeed |
|
478 |
|
479 observer Download "KIptvTestUrl2" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
480 waittestclass observer |
|
481 |
|
482 callsub EcgForcedUpdate |
|
483 |
|
484 pause 2000 |
|
485 |
|
486 observer SetObservedServicePath SERVICE_TN |
|
487 observer AddObservedFilename TN_0 |
|
488 observer AddObservedFilename TN_1 |
|
489 observer AddObservedFilename TN_2 |
|
490 observer AddObservedFilename TN_3 |
|
491 observer AddObservedFilename TN_4 |
|
492 observer CheckFileState |
|
493 observer GetFileDate |
|
494 |
|
495 observer Download "KIptvTestUrl2" "c:\testing\data\vcxenginetesttemp.txt" "mediacharger" "Buran_9o" 3G_AP |
|
496 waittestclass observer |
|
497 |
|
498 Util AdvanceSystemTimeHours 2 |
|
499 |
|
500 callsub EcgUpdate |
|
501 |
|
502 observer CheckFileState |
|
503 observer CheckFileDate 1 0 1 0 1 |
|
504 delete observer |
|
505 |
|
506 Util AdvanceSystemTimeHours -2 |
|
507 Util IptvLogCaseEnd |
|
508 delete Util |
|
509 [Endtest] |