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