|
1 #*********************************************************************************** |
|
2 # |
|
3 # STIF test script file for testing services. |
|
4 # |
|
5 #*********************************************************************************** |
|
6 |
|
7 # |
|
8 # ****************************** |
|
9 # **** CIptvServices BLOCKS **** |
|
10 # ****************************** |
|
11 # |
|
12 # CreateServices |
|
13 # |
|
14 # DestroyServices |
|
15 # |
|
16 # ServicesAdd |
|
17 # Adds the current instance of CIptvService service into instance of CIptvServices |
|
18 # and adds a backup copy into member array |
|
19 # Returns system wide error code |
|
20 # |
|
21 # ServicesCount a |
|
22 # a = expected count |
|
23 # Compares the count of services to the expected count |
|
24 # Returns system wide error code |
|
25 # |
|
26 # ServicesInternalize |
|
27 # Internalizes CIptvServices and stores result binary data into a member pointer |
|
28 # Returns system wide error code |
|
29 # |
|
30 # ServicesExternalize |
|
31 # Externalizes CIptvServices from a member pointer |
|
32 # Returns system wide error code |
|
33 # |
|
34 # ServicesGetService a |
|
35 # a = index |
|
36 # Gets a service from CIptvServices and compares it to a backup copy |
|
37 # Returns system wide error code |
|
38 # |
|
39 # ServicesGetServiceByRef a |
|
40 # a = index |
|
41 # Gets a service from CIptvServices and compares it to a backup copy |
|
42 # Returns system wide error code |
|
43 # |
|
44 # ****************************** |
|
45 # **** CIptvService BLOCKS ***** |
|
46 # ****************************** |
|
47 # |
|
48 # CreateService |
|
49 # |
|
50 # DestroyService |
|
51 # |
|
52 # SetId a |
|
53 # a = id |
|
54 # returns 0 or error code |
|
55 # |
|
56 # SetName a |
|
57 # a = name, can contain spaces |
|
58 # returns 0 or error code |
|
59 # |
|
60 # SetAddress a |
|
61 # a = url address |
|
62 # returns 0 or error code |
|
63 # |
|
64 # SetIconPath a |
|
65 # a = path |
|
66 # returns 0 or error code |
|
67 # |
|
68 # SetEpgPluginUid a |
|
69 # a = uid |
|
70 # returns 0 or error code |
|
71 # |
|
72 # SetVodPluginUid a |
|
73 # a = uid |
|
74 # returns 0 or error code |
|
75 # |
|
76 # SetIptvPluginUid a |
|
77 # a = uid |
|
78 # returns 0 or error code |
|
79 # |
|
80 # SetType a |
|
81 # a = service type |
|
82 # returns 0 or error code |
|
83 # |
|
84 # CreateIapList a |
|
85 # a = count of iaps to add in the list |
|
86 # returns 0 or error code |
|
87 # |
|
88 # CheckIapList a |
|
89 # a = expected count of iaps in the list |
|
90 # returns 0 or error code |
|
91 # |
|
92 # SetUserName a |
|
93 # a = user name, can contain spaces |
|
94 # returns 0 or error code |
|
95 # |
|
96 # SetPassword a |
|
97 # a = password |
|
98 # returns 0 or error code |
|
99 # |
|
100 # SetDesc a |
|
101 # a = desc, can contain spaces |
|
102 # returns 0 or error code |
|
103 # |
|
104 # SetFlags a |
|
105 # a = flags separated by spaces |
|
106 # returns 0 or error code |
|
107 # |
|
108 # SetApplicationUid a |
|
109 # a = uid |
|
110 # returns 0 or error code |
|
111 # |
|
112 # SetDisplayOrder a |
|
113 # a = display order |
|
114 # returns 0 or error code |
|
115 # |
|
116 # SetProviderId a |
|
117 # a = provider id |
|
118 # returns 0 or error code |
|
119 # |
|
120 # SetAccountManagementUrl a |
|
121 # a = url |
|
122 # returns 0 or error code |
|
123 # |
|
124 # DoExternalize a |
|
125 # a = BUFFER_SIZE1 (optional), buffer of size 1 will be used to to test error handling |
|
126 # Externalizes data to class member buffer |
|
127 # returns 0 or error code |
|
128 # |
|
129 # DoInternalize a |
|
130 # a = BUFFER_SIZE1 (optional), buffer of size 1 will be used to to test error handling |
|
131 # Internalizes data from class member buffer, deletes the buffer afterwards |
|
132 # Assumes that IptvService has not been changed between this call and DoExternalize |
|
133 # returns 0 or error code |
|
134 # |
|
135 # SetL a |
|
136 # a = INVALIDBUFFER (optional), to test error handling |
|
137 # returns 0 or error code |
|
138 # |
|
139 # ****************************************************** |
|
140 # ****************** DEFINATIONS: ********************** |
|
141 # ****************************************************** |
|
142 |
|
143 [StifSettings] |
|
144 CapsModifier= IptvTestClientApiCapsMod.exe |
|
145 [EndStifSettings] |
|
146 |
|
147 [Define] |
|
148 |
|
149 MAX_UID 2147483647 |
|
150 BUFFER_SIZE1 1 |
|
151 INVALIDBUFFER 1 |
|
152 BAD_DATA 1 |
|
153 |
|
154 # Service types |
|
155 EVod 0 |
|
156 ELiveTv 1 |
|
157 EVodCast 2 |
|
158 EBrowser 3 |
|
159 EVideoRemote 4 |
|
160 EApplication 5 |
|
161 EOther 6 |
|
162 |
|
163 # Service flags |
|
164 NOFLAGS 0 |
|
165 ESelected 1 |
|
166 EReadOnly 2 |
|
167 EMainService 4 |
|
168 EConnectionApproved 8 |
|
169 EReadOnlyIaps 16 |
|
170 |
|
171 KERRNONE 0 |
|
172 KERRNOTFOUND -1 |
|
173 KERRGENERAL -2 |
|
174 KERRNOMEMORY -4 |
|
175 KERRARGUMENT -6 |
|
176 KERRBADHANDLE -8 |
|
177 KERROVERFLOW -9 |
|
178 KERRUNDERFLOW -10 |
|
179 KERRNOTREADY -18 |
|
180 KERRUNKNOWN -19 |
|
181 KERRCORRUPT -20 |
|
182 KERRTIMEDOUT -33 |
|
183 KERRTOOBIG -40 |
|
184 [Enddefine] |
|
185 |
|
186 # ****************************************************** |
|
187 # ****************** TEST CASES: *********************** |
|
188 # ****************************************************** |
|
189 |
|
190 #------------------------------------------------------------------------------------ |
|
191 # |
|
192 # Test adding instance of CIptvService into instance of CIptvServices. |
|
193 # |
|
194 # CaseClass: core |
|
195 #------------------------------------------------------------------------------------ |
|
196 [Test] |
|
197 title ET9000 Services - Add and count |
|
198 create VCXServiceTest ServiceTest |
|
199 ServiceTest CreateService |
|
200 ServiceTest SetId 45 |
|
201 ServiceTest SetName Service name |
|
202 ServiceTest SetAddress http:\/\/www.nokia.fi/service_address |
|
203 ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg |
|
204 ServiceTest SetEpgPluginUid 234 |
|
205 ServiceTest SetVodPluginUid 67236 |
|
206 ServiceTest SetIptvPluginUid 1234 |
|
207 ServiceTest SetType EVodCast |
|
208 ServiceTest CreateIapList 10 |
|
209 ServiceTest SetUserName Johannes |
|
210 ServiceTest SetPassword SalasaNa234 |
|
211 ServiceTest SetDesc Service description |
|
212 ServiceTest SetFlags EReadOnly EConnectionApproved |
|
213 ServiceTest SetApplicationUid 43549 |
|
214 ServiceTest SetDisplayOrder 8 |
|
215 ServiceTest SetProviderId nokia1videos |
|
216 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments |
|
217 ServiceTest CreateServices |
|
218 ServiceTest ServicesAdd |
|
219 ServiceTest SetId 3 |
|
220 ServiceTest SetName Toinen Service |
|
221 ServiceTest ServicesAdd |
|
222 ServiceTest SetId 9 |
|
223 ServiceTest SetName MTV KOLOME |
|
224 ServiceTest ServicesAdd |
|
225 ServiceTest ServicesCount 3 |
|
226 ServiceTest DestroyServices |
|
227 ServiceTest DestroyService |
|
228 delete ServiceTest |
|
229 [Endtest] |
|
230 |
|
231 #------------------------------------------------------------------------------------ |
|
232 # |
|
233 # Test externalizing and internalizing an instance of CIptvServices. |
|
234 # |
|
235 # CaseClass: core |
|
236 #------------------------------------------------------------------------------------ |
|
237 [Test] |
|
238 title ET9001 Services - Externalize and Internalize |
|
239 create VCXServiceTest ServiceTest |
|
240 ServiceTest CreateService |
|
241 ServiceTest SetId 45 |
|
242 ServiceTest SetName Service name |
|
243 ServiceTest SetAddress http:\/\/www.nokia.fi/service_address |
|
244 ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg |
|
245 ServiceTest SetEpgPluginUid 234 |
|
246 ServiceTest SetVodPluginUid 67236 |
|
247 ServiceTest SetIptvPluginUid 1234 |
|
248 ServiceTest SetType EVodCast |
|
249 ServiceTest CreateIapList 10 |
|
250 ServiceTest SetUserName Johannes |
|
251 ServiceTest SetPassword SalasaNa234 |
|
252 ServiceTest SetDesc Service description |
|
253 ServiceTest SetFlags EReadOnly EConnectionApproved |
|
254 ServiceTest SetApplicationUid 43549 |
|
255 ServiceTest SetDisplayOrder 8 |
|
256 ServiceTest SetProviderId nokia1videos |
|
257 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments |
|
258 ServiceTest CreateServices |
|
259 ServiceTest ServicesAdd |
|
260 ServiceTest SetId 3 |
|
261 ServiceTest SetName Toinen Service |
|
262 ServiceTest ServicesAdd |
|
263 ServiceTest SetId 9 |
|
264 ServiceTest SetName MTV KOLOME |
|
265 ServiceTest ServicesAdd |
|
266 ServiceTest ServicesExternalize |
|
267 ServiceTest ServicesInternalize |
|
268 ServiceTest DestroyServices |
|
269 ServiceTest DestroyService |
|
270 delete ServiceTest |
|
271 [Endtest] |
|
272 |
|
273 #------------------------------------------------------------------------------------ |
|
274 # |
|
275 # Test GetService method. |
|
276 # |
|
277 # CaseClass: core |
|
278 #------------------------------------------------------------------------------------ |
|
279 [Test] |
|
280 title ET9002 Services - GetService |
|
281 create VCXServiceTest ServiceTest |
|
282 ServiceTest CreateService |
|
283 ServiceTest SetId 45 |
|
284 ServiceTest SetName Service name |
|
285 ServiceTest SetAddress http:\/\/www.nokia.fi/service_address |
|
286 ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg |
|
287 ServiceTest SetEpgPluginUid 234 |
|
288 ServiceTest SetVodPluginUid 67236 |
|
289 ServiceTest SetIptvPluginUid 1234 |
|
290 ServiceTest SetType EVodCast |
|
291 ServiceTest CreateIapList 10 |
|
292 ServiceTest SetUserName Johannes |
|
293 ServiceTest SetPassword SalasaNa234 |
|
294 ServiceTest SetDesc Service description |
|
295 ServiceTest SetFlags EReadOnly EConnectionApproved |
|
296 ServiceTest SetApplicationUid 43549 |
|
297 ServiceTest SetDisplayOrder 8 |
|
298 ServiceTest SetProviderId nokia1videos |
|
299 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments |
|
300 ServiceTest CreateServices |
|
301 ServiceTest ServicesAdd |
|
302 ServiceTest SetId 3 |
|
303 ServiceTest SetName Toinen Service |
|
304 ServiceTest ServicesAdd |
|
305 ServiceTest SetId 9 |
|
306 ServiceTest SetName MTV KOLOME |
|
307 ServiceTest ServicesAdd |
|
308 ServiceTest ServicesGetService 0 |
|
309 ServiceTest DestroyServices |
|
310 ServiceTest DestroyService |
|
311 delete ServiceTest |
|
312 [Endtest] |
|
313 |
|
314 #------------------------------------------------------------------------------------ |
|
315 # |
|
316 # Test GetServiceByRef method. |
|
317 # |
|
318 # CaseClass: core |
|
319 #------------------------------------------------------------------------------------ |
|
320 [Test] |
|
321 title ET9003 Services - GetServiceByRef |
|
322 create VCXServiceTest ServiceTest |
|
323 ServiceTest CreateService |
|
324 ServiceTest SetId 45 |
|
325 ServiceTest SetName Service name |
|
326 ServiceTest SetAddress http:\/\/www.nokia.fi/service_address |
|
327 ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg |
|
328 ServiceTest SetEpgPluginUid 234 |
|
329 ServiceTest SetVodPluginUid 67236 |
|
330 ServiceTest SetIptvPluginUid 1234 |
|
331 ServiceTest SetType EVodCast |
|
332 ServiceTest CreateIapList 10 |
|
333 ServiceTest SetUserName Johannes |
|
334 ServiceTest SetPassword SalasaNa234 |
|
335 ServiceTest SetDesc Service description |
|
336 ServiceTest SetFlags EReadOnly EConnectionApproved |
|
337 ServiceTest SetApplicationUid 43549 |
|
338 ServiceTest SetDisplayOrder 8 |
|
339 ServiceTest SetProviderId nokia1videos |
|
340 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments |
|
341 ServiceTest CreateServices |
|
342 ServiceTest ServicesAdd |
|
343 ServiceTest SetId 3 |
|
344 ServiceTest SetName Toinen Service |
|
345 ServiceTest ServicesAdd |
|
346 ServiceTest SetId 9 |
|
347 ServiceTest SetName MTV KOLOME |
|
348 ServiceTest ServicesAdd |
|
349 ServiceTest ServicesGetServiceByRef 1 |
|
350 ServiceTest ServicesGetServiceByRef 2 |
|
351 ServiceTest DestroyServices |
|
352 ServiceTest DestroyService |
|
353 delete ServiceTest |
|
354 [Endtest] |
|
355 |
|
356 #------------------------------------------------------------------------------------ |
|
357 # |
|
358 # Test getting count of services of CIptvServices when it has no services. |
|
359 # |
|
360 # CaseClass: core |
|
361 #------------------------------------------------------------------------------------ |
|
362 [Test] |
|
363 title ET9004 Services empty - Count |
|
364 create VCXServiceTest ServiceTest |
|
365 ServiceTest CreateServices |
|
366 ServiceTest ServicesCount 0 |
|
367 ServiceTest DestroyServices |
|
368 delete ServiceTest |
|
369 [Endtest] |
|
370 |
|
371 #------------------------------------------------------------------------------------ |
|
372 # |
|
373 # Test externalizing and internalizing CIptvServices when it has no services. |
|
374 # |
|
375 # CaseClass: core |
|
376 #------------------------------------------------------------------------------------ |
|
377 [Test] |
|
378 title ET9005 Services empty - Externalize and Internalize |
|
379 create VCXServiceTest ServiceTest |
|
380 ServiceTest CreateServices |
|
381 ServiceTest ServicesExternalize |
|
382 ServiceTest ServicesInternalize |
|
383 ServiceTest DestroyServices |
|
384 delete ServiceTest |
|
385 [Endtest] |
|
386 |
|
387 #------------------------------------------------------------------------------------ |
|
388 # |
|
389 # Test Getting a service from CIptvServices when it has no services. |
|
390 # |
|
391 # CaseClass: core |
|
392 #------------------------------------------------------------------------------------ |
|
393 [Test] |
|
394 title ET9006 Services empty - GetService |
|
395 create VCXServiceTest ServiceTest |
|
396 ServiceTest CreateServices |
|
397 allownextresult KERRBADHANDLE |
|
398 ServiceTest ServicesGetService 1 |
|
399 ServiceTest DestroyServices |
|
400 delete ServiceTest |
|
401 [Endtest] |
|
402 |
|
403 #------------------------------------------------------------------------------------ |
|
404 # |
|
405 # Test getting service by reference from CIptvServices when it has no services. |
|
406 # |
|
407 # CaseClass: core |
|
408 #------------------------------------------------------------------------------------ |
|
409 [Test] |
|
410 title ET9007 Services empty - GetServiceByRef |
|
411 create VCXServiceTest ServiceTest |
|
412 ServiceTest CreateServices |
|
413 allownextresult KERRGENERAL |
|
414 ServiceTest ServicesGetServiceByRef 1 |
|
415 ServiceTest DestroyServices |
|
416 delete ServiceTest |
|
417 [Endtest] |
|
418 |
|
419 #------------------------------------------------------------------------------------ |
|
420 # |
|
421 # Test CIptvServices methods 50 times. |
|
422 # |
|
423 # CaseClass: core |
|
424 #------------------------------------------------------------------------------------ |
|
425 [Test] |
|
426 title ET9008 Services - Stress test with 50 services |
|
427 create VCXServiceTest ServiceTest |
|
428 ServiceTest CreateService |
|
429 ServiceTest CreateServices |
|
430 loop 50 |
|
431 ServiceTest SetId LOOP_COUNTER |
|
432 ServiceTest SetName Service number LOOP_COUNTER |
|
433 ServiceTest SetAddress http:\/\/www.nokia.fi/service_address |
|
434 ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg |
|
435 ServiceTest SetEpgPluginUid 234 |
|
436 ServiceTest SetVodPluginUid 67236 |
|
437 ServiceTest SetIptvPluginUid 1234 |
|
438 ServiceTest SetType EVodCast |
|
439 ServiceTest CreateIapList 10 |
|
440 ServiceTest SetUserName Johannes |
|
441 ServiceTest SetPassword SalasaNa234 |
|
442 ServiceTest SetDesc Service description |
|
443 ServiceTest SetFlags EReadOnly EConnectionApproved |
|
444 ServiceTest SetApplicationUid 43549 |
|
445 ServiceTest SetDisplayOrder 8 |
|
446 ServiceTest SetProviderId nokia1videos |
|
447 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments |
|
448 ServiceTest ServicesAdd |
|
449 ServiceTest ServicesGetService LOOP_COUNTER |
|
450 ServiceTest ServicesExternalize |
|
451 ServiceTest ServicesInternalize |
|
452 endloop |
|
453 ServiceTest ServicesCount 50 |
|
454 ServiceTest ServicesGetService 1 |
|
455 ServiceTest ServicesGetService 20 |
|
456 ServiceTest ServicesGetService 48 |
|
457 ServiceTest ServicesGetServiceByRef 22 |
|
458 ServiceTest ServicesGetServiceByRef 45 |
|
459 ServiceTest DestroyServices |
|
460 ServiceTest DestroyService |
|
461 delete ServiceTest |
|
462 [Endtest] |
|
463 |
|
464 #------------------------------------------------------------------------------------ |
|
465 # |
|
466 # Test setting id of CIptvService. |
|
467 # |
|
468 # CaseClass: core |
|
469 #------------------------------------------------------------------------------------ |
|
470 [Test] |
|
471 title ET9009 Set id |
|
472 create VCXServiceTest ServiceTest |
|
473 ServiceTest CreateService |
|
474 ServiceTest SetId 2147483647 |
|
475 ServiceTest SetId 0 |
|
476 ServiceTest SetId 5454363 |
|
477 ServiceTest DestroyService |
|
478 delete ServiceTest |
|
479 [Endtest] |
|
480 |
|
481 #------------------------------------------------------------------------------------ |
|
482 # |
|
483 # Test setting name of CIptvService. |
|
484 # |
|
485 # CaseClass: core |
|
486 #------------------------------------------------------------------------------------ |
|
487 [Test] |
|
488 title ET9010 Set name |
|
489 create VCXServiceTest ServiceTest |
|
490 ServiceTest CreateService |
|
491 ServiceTest SetName Service name with spaces |
|
492 ServiceTest SetName Service_Name |
|
493 ServiceTest SetName A_Little_Longer_Service_Name |
|
494 ServiceTest SetName Even_Longer_Service_Name_Actually_this_is_the_maximum_length_of_service_name_1 |
|
495 ServiceTest DestroyService |
|
496 delete ServiceTest |
|
497 [Endtest] |
|
498 |
|
499 #------------------------------------------------------------------------------------ |
|
500 # |
|
501 # Test setting address of CIptvService. |
|
502 # |
|
503 # CaseClass: core |
|
504 #------------------------------------------------------------------------------------ |
|
505 [Test] |
|
506 title ET9011 Set address |
|
507 create VCXServiceTest ServiceTest |
|
508 ServiceTest CreateService |
|
509 ServiceTest SetAddress http:\/\/www.nokia.fi/services |
|
510 ServiceTest SetAddress http:\/\/www.nokia.fi/services/the_longest_allowed_service_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_service_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_service_address_is_very_long_we_need_some_repeat |
|
511 ServiceTest DestroyService |
|
512 delete ServiceTest |
|
513 [Endtest] |
|
514 |
|
515 #------------------------------------------------------------------------------------ |
|
516 # |
|
517 # Test setting icon path of CIptvService. |
|
518 # |
|
519 # CaseClass: core |
|
520 #------------------------------------------------------------------------------------ |
|
521 [Test] |
|
522 title ET9012 Set icon path |
|
523 create VCXServiceTest ServiceTest |
|
524 ServiceTest CreateService |
|
525 ServiceTest SetIconPath c:\system\Apps |
|
526 ServiceTest SetIconPath c:\system\Apps\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path |
|
527 ServiceTest DestroyService |
|
528 delete ServiceTest |
|
529 [Endtest] |
|
530 |
|
531 #------------------------------------------------------------------------------------ |
|
532 # |
|
533 # Test setting EPG plugin UID of CIptvService. |
|
534 # |
|
535 # CaseClass: core |
|
536 #------------------------------------------------------------------------------------ |
|
537 [Test] |
|
538 title ET9013 Set EPG plugin UID |
|
539 create VCXServiceTest ServiceTest |
|
540 ServiceTest CreateService |
|
541 ServiceTest SetEpgPluginUid MAX_UID |
|
542 ServiceTest SetEpgPluginUid 0 |
|
543 ServiceTest SetEpgPluginUid 145326 |
|
544 ServiceTest DestroyService |
|
545 delete ServiceTest |
|
546 [Endtest] |
|
547 |
|
548 #------------------------------------------------------------------------------------ |
|
549 # |
|
550 # Test setting VOD plugin UID of CIptvService. |
|
551 # |
|
552 # CaseClass: core |
|
553 #------------------------------------------------------------------------------------ |
|
554 [Test] |
|
555 title ET9014 Set VOD plugin UID |
|
556 create VCXServiceTest ServiceTest |
|
557 ServiceTest CreateService |
|
558 ServiceTest SetVodPluginUid MAX_UID |
|
559 ServiceTest SetVodPluginUid 0 |
|
560 ServiceTest SetVodPluginUid 145326 |
|
561 ServiceTest DestroyService |
|
562 delete ServiceTest |
|
563 [Endtest] |
|
564 |
|
565 #------------------------------------------------------------------------------------ |
|
566 # |
|
567 # Test setting IPTV plugin UID of CIptvService. |
|
568 # |
|
569 # CaseClass: core |
|
570 #------------------------------------------------------------------------------------ |
|
571 [Test] |
|
572 title ET9015 Set IPTV Plugin UID |
|
573 create VCXServiceTest ServiceTest |
|
574 ServiceTest CreateService |
|
575 ServiceTest SetIptvPluginUid MAX_UID |
|
576 ServiceTest SetIptvPluginUid 0 |
|
577 ServiceTest SetIptvPluginUid 145326 |
|
578 ServiceTest DestroyService |
|
579 delete ServiceTest |
|
580 [Endtest] |
|
581 |
|
582 #------------------------------------------------------------------------------------ |
|
583 # |
|
584 # Test setting type of CIptvService. |
|
585 # |
|
586 # CaseClass: core |
|
587 #------------------------------------------------------------------------------------ |
|
588 [Test] |
|
589 title ET9016 Set type |
|
590 create VCXServiceTest ServiceTest |
|
591 ServiceTest CreateService |
|
592 ServiceTest SetType EVod |
|
593 ServiceTest SetType EBrowser |
|
594 ServiceTest SetType EOther |
|
595 ServiceTest DestroyService |
|
596 delete ServiceTest |
|
597 [Endtest] |
|
598 |
|
599 #------------------------------------------------------------------------------------ |
|
600 # |
|
601 # Test creating IAP list and adding the list to CIptvService. |
|
602 # |
|
603 # CaseClass: core |
|
604 #------------------------------------------------------------------------------------ |
|
605 [Test] |
|
606 title ET9017 Create Iap list |
|
607 create VCXServiceTest ServiceTest |
|
608 ServiceTest CreateService |
|
609 ServiceTest CreateIapList 10 |
|
610 ServiceTest CheckIapList 10 |
|
611 ServiceTest DestroyService |
|
612 delete ServiceTest |
|
613 create VCXServiceTest ServiceTest |
|
614 ServiceTest CreateService |
|
615 ServiceTest CreateIapList 0 |
|
616 ServiceTest CheckIapList 0 |
|
617 ServiceTest DestroyService |
|
618 delete ServiceTest |
|
619 [Endtest] |
|
620 |
|
621 #------------------------------------------------------------------------------------ |
|
622 # |
|
623 # Test creating IAP list with too many iaps and adding the list to CIptvService. |
|
624 # |
|
625 # CaseClass: core |
|
626 #------------------------------------------------------------------------------------ |
|
627 [Test] |
|
628 title ET9041 SetIapList with too many iaps |
|
629 create VCXServiceTest ServiceTest |
|
630 ServiceTest CreateService |
|
631 allownextresult KERRGENERAL |
|
632 ServiceTest CreateIapList 20 |
|
633 ServiceTest DestroyService |
|
634 delete ServiceTest |
|
635 [Endtest] |
|
636 |
|
637 #------------------------------------------------------------------------------------ |
|
638 # |
|
639 # Test setting user name of CIptvService. |
|
640 # |
|
641 # CaseClass: core |
|
642 #------------------------------------------------------------------------------------ |
|
643 [Test] |
|
644 title ET9018 Set user name |
|
645 create VCXServiceTest ServiceTest |
|
646 ServiceTest CreateService |
|
647 ServiceTest SetUserName User Name |
|
648 ServiceTest SetUserName User Name Maximum length test1 |
|
649 ServiceTest DestroyService |
|
650 delete ServiceTest |
|
651 [Endtest] |
|
652 |
|
653 #------------------------------------------------------------------------------------ |
|
654 # |
|
655 # Test setting password of CIptvService. |
|
656 # |
|
657 # CaseClass: core |
|
658 #------------------------------------------------------------------------------------ |
|
659 [Test] |
|
660 title ET9019 Set password |
|
661 create VCXServiceTest ServiceTest |
|
662 ServiceTest CreateService |
|
663 ServiceTest SetPassword 1PassWorD12345a |
|
664 ServiceTest SetPassword PassWordMaximumLength123451234 |
|
665 ServiceTest DestroyService |
|
666 delete ServiceTest |
|
667 [Endtest] |
|
668 |
|
669 #------------------------------------------------------------------------------------ |
|
670 # |
|
671 # Test setting description of CIptvService. |
|
672 # |
|
673 # CaseClass: core |
|
674 #------------------------------------------------------------------------------------ |
|
675 [Test] |
|
676 title ET9020 Set desc |
|
677 create VCXServiceTest ServiceTest |
|
678 ServiceTest CreateService |
|
679 ServiceTest SetDesc Description of the service |
|
680 ServiceTest SetDesc Maximum length of description Maximum length of description Maximum length Maximum length of description Maximum length of description Maximum length of description Maximum length of description 12 |
|
681 ServiceTest DestroyService |
|
682 delete ServiceTest |
|
683 [Endtest] |
|
684 |
|
685 #------------------------------------------------------------------------------------ |
|
686 # |
|
687 # Test setting flags of CIptvService. |
|
688 # |
|
689 # CaseClass: core |
|
690 #------------------------------------------------------------------------------------ |
|
691 [Test] |
|
692 title ET9021 Set flags |
|
693 create VCXServiceTest ServiceTest |
|
694 ServiceTest CreateService |
|
695 ServiceTest SetFlags 0 |
|
696 ServiceTest SetFlags ESelected |
|
697 ServiceTest SetFlags ESelected EReadOnly EMainService EConnectionApproved EReadOnlyIaps |
|
698 ServiceTest DestroyService |
|
699 delete ServiceTest |
|
700 [Endtest] |
|
701 |
|
702 #------------------------------------------------------------------------------------ |
|
703 # |
|
704 # Test setting application UID of CIptvService. |
|
705 # |
|
706 # CaseClass: core |
|
707 #------------------------------------------------------------------------------------ |
|
708 [Test] |
|
709 title ET9022 Set application uid |
|
710 create VCXServiceTest ServiceTest |
|
711 ServiceTest CreateService |
|
712 ServiceTest SetApplicationUid MAX_UID |
|
713 ServiceTest SetApplicationUid 0 |
|
714 ServiceTest SetApplicationUid 145326 |
|
715 ServiceTest DestroyService |
|
716 delete ServiceTest |
|
717 [Endtest] |
|
718 |
|
719 #------------------------------------------------------------------------------------ |
|
720 # |
|
721 # Test setting display order of CIptvService. |
|
722 # |
|
723 # CaseClass: core |
|
724 #------------------------------------------------------------------------------------ |
|
725 [Test] |
|
726 title ET9023 Set display order |
|
727 create VCXServiceTest ServiceTest |
|
728 ServiceTest CreateService |
|
729 ServiceTest SetDisplayOrder 0 |
|
730 ServiceTest SetDisplayOrder 435435 |
|
731 ServiceTest SetDisplayOrder 2147483647 |
|
732 ServiceTest DestroyService |
|
733 delete ServiceTest |
|
734 [Endtest] |
|
735 |
|
736 #------------------------------------------------------------------------------------ |
|
737 # |
|
738 # Test setting provider id of CIptvService. |
|
739 # |
|
740 # CaseClass: core |
|
741 #------------------------------------------------------------------------------------ |
|
742 [Test] |
|
743 title ET9024 Set provider id |
|
744 create VCXServiceTest ServiceTest |
|
745 ServiceTest CreateService |
|
746 ServiceTest SetProviderId providerid1234 |
|
747 ServiceTest SetProviderId maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_12354 |
|
748 ServiceTest DestroyService |
|
749 delete ServiceTest |
|
750 [Endtest] |
|
751 |
|
752 #------------------------------------------------------------------------------------ |
|
753 # |
|
754 # Test setting account management URL of CIptvService. |
|
755 # |
|
756 # CaseClass: core |
|
757 #------------------------------------------------------------------------------------ |
|
758 [Test] |
|
759 title ET9025 Set account management URL |
|
760 create VCXServiceTest ServiceTest |
|
761 ServiceTest CreateService |
|
762 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments |
|
763 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment1 |
|
764 ServiceTest DestroyService |
|
765 delete ServiceTest |
|
766 [Endtest] |
|
767 |
|
768 #------------------------------------------------------------------------------------ |
|
769 # |
|
770 # Test SetL method id of CIptvService. |
|
771 # |
|
772 # CaseClass: core |
|
773 #------------------------------------------------------------------------------------ |
|
774 [Test] |
|
775 title ET9026 SetL |
|
776 create VCXServiceTest ServiceTest |
|
777 ServiceTest CreateService |
|
778 ServiceTest SetL |
|
779 ServiceTest DestroyService |
|
780 delete ServiceTest |
|
781 [Endtest] |
|
782 |
|
783 #------------------------------------------------------------------------------------ |
|
784 # |
|
785 # Test internalizing and externalizing CIptvService. |
|
786 # |
|
787 # CaseClass: core |
|
788 #------------------------------------------------------------------------------------ |
|
789 [Test] |
|
790 title ET9027 Do externalize and internalize |
|
791 create VCXServiceTest ServiceTest |
|
792 ServiceTest CreateService |
|
793 ServiceTest SetId 45 |
|
794 ServiceTest SetName Service name |
|
795 ServiceTest SetAddress http:\/\/www.nokia.fi/service_address |
|
796 ServiceTest SetIconPath c:\System\Apps\Iptvservice\icon.jpg |
|
797 ServiceTest SetEpgPluginUid 234 |
|
798 ServiceTest SetVodPluginUid 67236 |
|
799 ServiceTest SetIptvPluginUid 1234 |
|
800 ServiceTest SetType EVodCast |
|
801 ServiceTest CreateIapList 10 |
|
802 ServiceTest SetUserName Johannes |
|
803 ServiceTest SetPassword SalasaNa234 |
|
804 ServiceTest SetDesc Service description |
|
805 ServiceTest SetFlags EReadOnly EConnectionApproved |
|
806 ServiceTest SetApplicationUid 43549 |
|
807 ServiceTest SetDisplayOrder 8 |
|
808 ServiceTest SetProviderId nokia1videos |
|
809 ServiceTest SetAccountManagementUrl http:\/\/www.nokia.fi/account_managments |
|
810 ServiceTest DoExternalize |
|
811 ServiceTest DoInternalize |
|
812 ServiceTest CheckIapList 10 |
|
813 ServiceTest DestroyService |
|
814 delete ServiceTest |
|
815 [Endtest] |
|
816 |
|
817 #------------------------------------------------------------------------------------ |
|
818 # |
|
819 # Test setting name of CIptvService with too long text. |
|
820 # |
|
821 # CaseClass: core |
|
822 #------------------------------------------------------------------------------------ |
|
823 [Test] |
|
824 title ET9028 Set too long name |
|
825 create VCXServiceTest ServiceTest |
|
826 ServiceTest CreateService |
|
827 allownextresult KERRNOMEMORY |
|
828 ServiceTest SetName THIS_IS_TOO_LONG_TEXT_Even_Longer_Service_Name_Actually_this_is_the_maximum_length_of_service_name_1 |
|
829 ServiceTest DestroyService |
|
830 delete ServiceTest |
|
831 [Endtest] |
|
832 |
|
833 #------------------------------------------------------------------------------------ |
|
834 # |
|
835 # Test setting address of CIptvService with too long text. |
|
836 # |
|
837 # CaseClass: core |
|
838 #------------------------------------------------------------------------------------ |
|
839 [Test] |
|
840 title ET9029 Set too long address |
|
841 create VCXServiceTest ServiceTest |
|
842 ServiceTest CreateService |
|
843 allownextresult KERRNOMEMORY |
|
844 ServiceTest SetAddress http:\/\/TOO/LONG_/URL_TESTING/www.nokia.fi/account_managments/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment1 |
|
845 ServiceTest DestroyService |
|
846 delete ServiceTest |
|
847 [Endtest] |
|
848 |
|
849 #------------------------------------------------------------------------------------ |
|
850 # |
|
851 # Test setting too long icon path of CIptvService with too long text. |
|
852 # |
|
853 # CaseClass: core |
|
854 #------------------------------------------------------------------------------------ |
|
855 [Test] |
|
856 title ET9030 Set too long icon path |
|
857 create VCXServiceTest ServiceTest |
|
858 ServiceTest CreateService |
|
859 allownextresult KERRNOMEMORY |
|
860 ServiceTest SetIconPath c:\TOO\LONG\PATH\THIS\IS\CAPITAL\LETTERS\system\Apps\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path\repeat\iptv_service_test\long_path |
|
861 ServiceTest DestroyService |
|
862 delete ServiceTest |
|
863 [Endtest] |
|
864 |
|
865 #------------------------------------------------------------------------------------ |
|
866 # |
|
867 # Test setting invalid type of CIptvService. |
|
868 # |
|
869 # CaseClass: core |
|
870 #------------------------------------------------------------------------------------ |
|
871 [Test] |
|
872 title ET9031 Set invalid type |
|
873 create VCXServiceTest ServiceTest |
|
874 ServiceTest CreateService |
|
875 allownextresult KERRTOOBIG |
|
876 ServiceTest SetType 20 |
|
877 allownextresult KERRTOOBIG |
|
878 ServiceTest SetType -20 |
|
879 ServiceTest DestroyService |
|
880 delete ServiceTest |
|
881 [Endtest] |
|
882 |
|
883 #------------------------------------------------------------------------------------ |
|
884 # |
|
885 # Test setting user name of CIptvService with too long text. |
|
886 # |
|
887 # CaseClass: core |
|
888 #------------------------------------------------------------------------------------ |
|
889 [Test] |
|
890 title ET9032 Set too long user name |
|
891 create VCXServiceTest ServiceTest |
|
892 ServiceTest CreateService |
|
893 allownextresult KERRNOMEMORY |
|
894 ServiceTest SetUserName THIS IS TOO LONG TEXT User Name Maximum length test1 |
|
895 ServiceTest DestroyService |
|
896 delete ServiceTest |
|
897 [Endtest] |
|
898 |
|
899 #------------------------------------------------------------------------------------ |
|
900 # |
|
901 # Test setting password of CIptvService with too long text. |
|
902 # |
|
903 # CaseClass: core |
|
904 #------------------------------------------------------------------------------------ |
|
905 [Test] |
|
906 title ET9033 Set too long password |
|
907 create VCXServiceTest ServiceTest |
|
908 ServiceTest CreateService |
|
909 allownextresult KERRNOMEMORY |
|
910 ServiceTest SetPassword THIS_IS_TOO_LONG_TEXT_PassWordMaximumLength123451234 |
|
911 ServiceTest DestroyService |
|
912 delete ServiceTest |
|
913 [Endtest] |
|
914 |
|
915 #------------------------------------------------------------------------------------ |
|
916 # |
|
917 # Test setting description of CIptvService with too long text. |
|
918 # |
|
919 # CaseClass: core |
|
920 #------------------------------------------------------------------------------------ |
|
921 [Test] |
|
922 title ET9034 Set too long desc |
|
923 create VCXServiceTest ServiceTest |
|
924 ServiceTest CreateService |
|
925 allownextresult KERRNOMEMORY |
|
926 ServiceTest SetDesc THIS IS TOO LONG TEXT Maximum length of description Maximum length of description Maximum length Maximum length of description Maximum length of description Maximum length of description Maximum length of description 12 |
|
927 ServiceTest DestroyService |
|
928 delete ServiceTest |
|
929 [Endtest] |
|
930 |
|
931 #------------------------------------------------------------------------------------ |
|
932 # |
|
933 # Test setting flags of CIptvService with invalid values. |
|
934 # |
|
935 # CaseClass: core |
|
936 #------------------------------------------------------------------------------------ |
|
937 [Test] |
|
938 title ET9035 Set invalid flags |
|
939 create VCXServiceTest ServiceTest |
|
940 ServiceTest CreateService |
|
941 ServiceTest SetFlags 20 21555 |
|
942 ServiceTest SetFlags -8 |
|
943 ServiceTest DestroyService |
|
944 delete ServiceTest |
|
945 [Endtest] |
|
946 |
|
947 #------------------------------------------------------------------------------------ |
|
948 # |
|
949 # Test provider id of CIptvService with too long text. |
|
950 # |
|
951 # CaseClass: core |
|
952 #------------------------------------------------------------------------------------ |
|
953 [Test] |
|
954 title ET9036 Set invalid provider id |
|
955 create VCXServiceTest ServiceTest |
|
956 ServiceTest CreateService |
|
957 allownextresult KERROVERFLOW |
|
958 ServiceTest SetProviderId THIS_IS_TOO_LONG_TEXT_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_maximum_length_for_provider_id_12354 |
|
959 ServiceTest DestroyService |
|
960 delete ServiceTest |
|
961 [Endtest] |
|
962 |
|
963 #------------------------------------------------------------------------------------ |
|
964 # |
|
965 # Test setting account management URL of CIptvService with too long text. |
|
966 # |
|
967 # CaseClass: core |
|
968 #------------------------------------------------------------------------------------ |
|
969 [Test] |
|
970 title ET9037 Too long account management url |
|
971 create VCXServiceTest ServiceTest |
|
972 ServiceTest CreateService |
|
973 allownextresult KERROVERFLOW |
|
974 ServiceTest SetAccountManagementUrl http:\/\/TOO/LONG_/TEXT/www.nokia.fi/account_managments/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment_address_is_very_long_we_need_some_repeating_here_/the_longest_allowed_account_managment1 |
|
975 ServiceTest DestroyService |
|
976 delete ServiceTest |
|
977 [Endtest] |
|
978 |
|
979 #------------------------------------------------------------------------------------ |
|
980 # |
|
981 # Test SetL method of CIptvService with invalid data. |
|
982 # |
|
983 # CaseClass: core |
|
984 #------------------------------------------------------------------------------------ |
|
985 [Test] |
|
986 title ET9038 SetL with invalid data |
|
987 create VCXServiceTest ServiceTest |
|
988 ServiceTest CreateService |
|
989 allownextresult KERRGENERAL |
|
990 ServiceTest SetL INVALIDBUFFER |
|
991 ServiceTest DestroyService |
|
992 delete ServiceTest |
|
993 [Endtest] |
|
994 |
|
995 #------------------------------------------------------------------------------------ |
|
996 # |
|
997 # Test externalizing CIptvService with too small buffer. |
|
998 # |
|
999 # CaseClass: core |
|
1000 #------------------------------------------------------------------------------------ |
|
1001 [Test] |
|
1002 title ET9039 Do externalize with too small buffer |
|
1003 create VCXServiceTest ServiceTest |
|
1004 ServiceTest CreateService |
|
1005 allownextresult KERRGENERAL |
|
1006 ServiceTest DoExternalize BUFFER_SIZE1 |
|
1007 ServiceTest DestroyService |
|
1008 delete ServiceTest |
|
1009 [Endtest] |
|
1010 |
|
1011 #------------------------------------------------------------------------------------ |
|
1012 # |
|
1013 # Test internalizing CIptvService with invalid data. |
|
1014 # |
|
1015 # CaseClass: core |
|
1016 #------------------------------------------------------------------------------------ |
|
1017 [Test] |
|
1018 title ET9040 Do internalize only with invalid data in buffer |
|
1019 create VCXServiceTest ServiceTest |
|
1020 ServiceTest CreateService |
|
1021 allownextresult KERRGENERAL |
|
1022 ServiceTest DoInternalize BAD_DATA |
|
1023 ServiceTest DestroyService |
|
1024 delete ServiceTest |
|
1025 [Endtest] |