|
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 # Initialize environment for the error handling SYNC tests. |
|
22 # |
|
23 #------------------------------------------------------------------------------------ |
|
24 [Test] |
|
25 title ET08402 Setup SM SYNC test |
|
26 pause PAUSE |
|
27 create VCXServiceManagementApiTest IptvTest |
|
28 IptvTest Create |
|
29 IptvTest DeleteAllServices SYNC |
|
30 IptvTest AddHardCodedService SYNC SERVICE_0 2 1 0 |
|
31 IptvTest AddHardCodedService SYNC SERVICE_1 2 1 0 |
|
32 IptvTest AddHardCodedService SYNC SERVICE_2 2 1 0 |
|
33 IptvTest AddHardCodedService SYNC SERVICE_3 2 1 0 |
|
34 IptvTest AddHardCodedService SYNC SERVICE_4 2 1 0 |
|
35 IptvTest GetServices SYNC 0 100 |
|
36 IptvTest Destroy |
|
37 delete IptvTest |
|
38 [Endtest] |
|
39 |
|
40 #------------------------------------------------------------------------------------ |
|
41 # |
|
42 # Test adding an invalid service. |
|
43 # |
|
44 #------------------------------------------------------------------------------------ |
|
45 [Test] |
|
46 title ET08403 Add invalid hardcoded service_4 SYNC |
|
47 pause PAUSE |
|
48 create VCXServiceManagementApiTest IptvTest |
|
49 IptvTest Create |
|
50 IptvTest AddHardCodedService SYNC INVALID_SERVICE_1 2 1 -1 |
|
51 IptvTest Destroy |
|
52 delete IptvTest |
|
53 [Endtest] |
|
54 |
|
55 #------------------------------------------------------------------------------------ |
|
56 # |
|
57 # Test adding a service with empty iaplist. |
|
58 # |
|
59 #------------------------------------------------------------------------------------ |
|
60 [Test] |
|
61 title ET08404 Add invalid (empty iaplist) hardcoded service SYNC |
|
62 pause PAUSE |
|
63 create VCXServiceManagementApiTest IptvTest |
|
64 IptvTest Create |
|
65 IptvTest AddHardCodedService SYNC SERVICE_NOIAPS 0 1 -1 |
|
66 IptvTest Destroy |
|
67 delete IptvTest |
|
68 [Endtest] |
|
69 |
|
70 #------------------------------------------------------------------------------------ |
|
71 # |
|
72 # Test adding an uninitialized service. |
|
73 # |
|
74 #------------------------------------------------------------------------------------ |
|
75 [Test] |
|
76 title ET08405 Add invalid (uninitialized) hardcoded service SYNC |
|
77 pause PAUSE |
|
78 create VCXServiceManagementApiTest IptvTest |
|
79 IptvTest Create |
|
80 IptvTest AddHardCodedService SYNC SERVICE_UNINITIALIZED 0 1 -1 |
|
81 IptvTest GetServices 0 1 400 |
|
82 IptvTest Destroy |
|
83 delete IptvTest |
|
84 [Endtest] |
|
85 |
|
86 #------------------------------------------------------------------------------------ |
|
87 # |
|
88 # Test updating a non existing service. |
|
89 # |
|
90 #------------------------------------------------------------------------------------ |
|
91 [Test] |
|
92 title ET08406 Update non existing service SYNC |
|
93 pause PAUSE |
|
94 create VCXServiceManagementApiTest IptvTest |
|
95 IptvTest Create |
|
96 IptvTest UpdateService SYNC 99999 SERVICE_1 |
|
97 IptvTest Destroy |
|
98 delete IptvTest |
|
99 [Endtest] |
|
100 |
|
101 #------------------------------------------------------------------------------------ |
|
102 # |
|
103 # Test updating a service with uninitialized service data. |
|
104 # |
|
105 #------------------------------------------------------------------------------------ |
|
106 [Test] |
|
107 title ET08407 Update with uninitialized service SYNC |
|
108 pause PAUSE |
|
109 create VCXServiceManagementApiTest IptvTest |
|
110 IptvTest Create |
|
111 IptvTest GetServices SYNC 0 100 |
|
112 IptvTest UpdateService SYNC SERVICE_0 LAST_SERVICE_IN_DB |
|
113 IptvTest Destroy |
|
114 delete IptvTest |
|
115 [Endtest] |
|
116 |
|
117 #------------------------------------------------------------------------------------ |
|
118 # |
|
119 # Test getting services by invalid indexes. |
|
120 # |
|
121 #------------------------------------------------------------------------------------ |
|
122 [Test] |
|
123 title ET08408 GetServices invalid indexes SYNC |
|
124 pause PAUSE |
|
125 create VCXServiceManagementApiTest IptvTest |
|
126 IptvTest Create |
|
127 IptvTest GetServices SYNC 5 0 |
|
128 IptvTest Destroy |
|
129 delete IptvTest |
|
130 [Endtest] |
|
131 |
|
132 #------------------------------------------------------------------------------------ |
|
133 # |
|
134 # Test deleting a non-existing service. |
|
135 # |
|
136 #------------------------------------------------------------------------------------ |
|
137 [Test] |
|
138 title ET08409 Delete non-existing service SYNC |
|
139 pause PAUSE |
|
140 create VCXServiceManagementApiTest IptvTest |
|
141 IptvTest Create |
|
142 allownextresult SMEServiceNotFound |
|
143 IptvTest DeleteService SYNC 99999 |
|
144 IptvTest Destroy |
|
145 delete IptvTest |
|
146 [Endtest] |
|
147 |
|
148 #------------------------------------------------------------------------------------ |
|
149 # |
|
150 # Test getting services by a empty provider id. |
|
151 # |
|
152 #------------------------------------------------------------------------------------ |
|
153 [Test] |
|
154 title ET08411 GetServicesByProviderId empty provider id |
|
155 pause PAUSE |
|
156 create VCXServiceManagementApiTest IptvTest |
|
157 IptvTest Create |
|
158 IptvTest GetServicesByProviderId "" |
|
159 IptvTest Destroy |
|
160 delete IptvTest |
|
161 [Endtest] |
|
162 |
|
163 #------------------------------------------------------------------------------------ |
|
164 # |
|
165 # Test deleting a service when there's no services in DB. |
|
166 # |
|
167 #------------------------------------------------------------------------------------ |
|
168 [Test] |
|
169 title ET08412 Delete when no services 0 SYNC |
|
170 pause PAUSE |
|
171 create VCXServiceManagementApiTest IptvTest |
|
172 IptvTest Create |
|
173 IptvTest DeleteAllServices SYNC |
|
174 allownextresult SMEServiceNotFound |
|
175 IptvTest DeleteService SYNC 1 |
|
176 IptvTest Destroy |
|
177 delete IptvTest |
|
178 [Endtest] |
|
179 |
|
180 #------------------------------------------------------------------------------------ |
|
181 # |
|
182 # Test getting services when there's no services in DB. |
|
183 # |
|
184 #------------------------------------------------------------------------------------ |
|
185 [Test] |
|
186 title ET08413 GetAllServices when no services SYNC |
|
187 pause PAUSE |
|
188 create VCXServiceManagementApiTest IptvTest |
|
189 IptvTest Create |
|
190 IptvTest DeleteAllServices SYNC |
|
191 IptvTest GetServices SYNC 0 5000 |
|
192 IptvTest Destroy |
|
193 delete IptvTest |
|
194 [Endtest] |
|
195 |
|
196 #------------------------------------------------------------------------------------ |
|
197 # |
|
198 # Test updating a service when there's no services in DB. |
|
199 # |
|
200 #------------------------------------------------------------------------------------ |
|
201 [Test] |
|
202 title ET08414 Update when no services SYNC |
|
203 pause PAUSE |
|
204 create VCXServiceManagementApiTest IptvTest |
|
205 IptvTest Create |
|
206 IptvTest UpdateService SYNC 0 1 |
|
207 IptvTest Destroy |
|
208 delete IptvTest |
|
209 [Endtest] |
|
210 |
|
211 #------------------------------------------------------------------------------------ |
|
212 # |
|
213 # Test getting services by provider id when there's no services in DB. |
|
214 # |
|
215 #------------------------------------------------------------------------------------ |
|
216 [Test] |
|
217 title ET08415 GetServicesByProviderId when no services |
|
218 pause PAUSE |
|
219 create VCXServiceManagementApiTest IptvTest |
|
220 IptvTest Create |
|
221 IptvTest GetServicesByProviderId Provider1 |
|
222 IptvTest Destroy |
|
223 delete IptvTest |
|
224 [Endtest] |
|
225 |
|
226 #------------------------------------------------------------------------------------ |
|
227 # |
|
228 # Test GetUsedIap method when there's no services in db. |
|
229 # |
|
230 #------------------------------------------------------------------------------------ |
|
231 [Test] |
|
232 title ET08416 GetUsedIap no services SYNC |
|
233 pause PAUSE |
|
234 create VCXServiceManagementApiTest IptvTest |
|
235 IptvTest Create |
|
236 allownextresult SMEGeneralError |
|
237 IptvTest GetUsedIap SYNC 2 3G_AP |
|
238 IptvTest Destroy |
|
239 delete IptvTest |
|
240 [Endtest] |
|
241 |
|
242 #------------------------------------------------------------------------------------ |
|
243 # |
|
244 # Test getting used iap when service's iaplist is empty. |
|
245 # |
|
246 #------------------------------------------------------------------------------------ |
|
247 [Test] |
|
248 title ET08417 GetUsedIap when IapList is empty SYNC |
|
249 pause PAUSE |
|
250 create VCXServiceManagementApiTest IptvTest |
|
251 IptvTest Create |
|
252 IptvTest AddHardCodedService SYNC SERVICE_NOIAPS 0 1 0 |
|
253 IptvTest GetUsedIap SYNC SERVICE_NOIAPS 3G_AP |
|
254 IptvTest Destroy |
|
255 delete IptvTest |
|
256 [Endtest] |
|
257 |
|
258 #------------------------------------------------------------------------------------ |
|
259 # |
|
260 # Test setting used iap when there's no services in DB. |
|
261 # |
|
262 #------------------------------------------------------------------------------------ |
|
263 [Test] |
|
264 title ET08419 SetUsedIap no services SYNC |
|
265 pause PAUSE |
|
266 create VCXServiceManagementApiTest IptvTest |
|
267 IptvTest Create |
|
268 IptvTest DeleteAllServices SYNC |
|
269 allownextresult EGeneralError |
|
270 IptvTest SetUsedIap 0 1 |
|
271 IptvTest Destroy |
|
272 delete IptvTest |
|
273 [Endtest] |
|
274 |
|
275 #------------------------------------------------------------------------------------ |
|
276 # |
|
277 # Test setting used iap for a service which has an empty iaplist. |
|
278 # |
|
279 #------------------------------------------------------------------------------------ |
|
280 [Test] |
|
281 title ET08420 SetUsedIap for service without iaps SYNC |
|
282 pause PAUSE |
|
283 create VCXServiceManagementApiTest IptvTest |
|
284 IptvTest Create |
|
285 IptvTest AddHardCodedService SYNC SERVICE_NOIAPS 0 1 1 |
|
286 IptvTest SetUsedIap SERVICE_NOIAPS 1 |
|
287 IptvTest Destroy |
|
288 delete IptvTest |
|
289 [Endtest] |
|
290 |
|
291 #------------------------------------------------------------------------------------ |
|
292 # |
|
293 # Test getting services by filter when there's no services in DB. |
|
294 # |
|
295 #------------------------------------------------------------------------------------ |
|
296 [Test] |
|
297 title ET08421 Get filtered services when no services |
|
298 pause PAUSE |
|
299 create VCXServiceManagementApiTest IptvTest |
|
300 IptvTest Create |
|
301 IptvTest DeleteAllServices SYNC |
|
302 IptvTest GetServicesFiltered SYNC 0 EDisplayOrderAscending ESearchSelectedServices |
|
303 IptvTest GetServicesFiltered SYNC 0 EDisplayOrderAscending ESearchMainServices |
|
304 IptvTest GetServicesFiltered SYNC 0 EDisplayOrderAscending ESearchSubServices |
|
305 IptvTest GetServicesFiltered SYNC 0 EDisplayOrderAscending ESearchVod |
|
306 IptvTest GetServicesFiltered SYNC 0 EDisplayOrderAscending ESearchLiveTv |
|
307 IptvTest GetServicesFiltered SYNC 0 EDisplayOrderAscending ESearchOther |
|
308 IptvTest GetServicesFiltered SYNC 0 EDisplayOrderAscending ESearchVodCast |
|
309 IptvTest GetAllSelectedServices SYNC |
|
310 IptvTest Destroy |
|
311 delete IptvTest |
|
312 [Endtest] |
|
313 |
|
314 #------------------------------------------------------------------------------------ |
|
315 # |
|
316 # Add valid services for later cases. |
|
317 # |
|
318 #------------------------------------------------------------------------------------ |
|
319 [Test] |
|
320 title ET08422 Add valid services SYNC |
|
321 pause PAUSE |
|
322 create VCXServiceManagementApiTest IptvTest |
|
323 IptvTest Create |
|
324 IptvTest AddHardCodedService SYNC SERVICE_0 3 1 0 |
|
325 IptvTest AddHardCodedService SYNC SERVICE_1 8 1 1 |
|
326 IptvTest AddHardCodedService SYNC SERVICE_2 3 1 2 |
|
327 IptvTest AddHardCodedService SYNC SERVICE_3 3 1 3 |
|
328 IptvTest AddHardCodedService SYNC SERVICE_4 3 1 4 |
|
329 IptvTest AddHardCodedService SYNC SERVICE_5 3 1 5 |
|
330 IptvTest AddHardCodedService SYNC SERVICE_6 3 1 6 |
|
331 IptvTest AddHardCodedService SYNC SERVICE_7 3 1 7 |
|
332 IptvTest AddHardCodedService SYNC SERVICE_8 3 1 8 |
|
333 IptvTest AddHardCodedService SYNC SERVICE_9 3 1 9 |
|
334 IptvTest Destroy |
|
335 delete IptvTest |
|
336 [Endtest] |
|
337 |
|
338 #------------------------------------------------------------------------------------ |
|
339 # |
|
340 # Test getting services by provider id which has no services. |
|
341 # |
|
342 #------------------------------------------------------------------------------------ |
|
343 [Test] |
|
344 title ET08423 Get services by invalid provider id |
|
345 pause PAUSE |
|
346 create VCXServiceManagementApiTest IptvTest |
|
347 IptvTest Create |
|
348 IptvTest GetServicesByProviderId Provider123457 |
|
349 IptvTest Destroy |
|
350 delete IptvTest |
|
351 [Endtest] |
|
352 |
|
353 #------------------------------------------------------------------------------------ |
|
354 # |
|
355 # Test setting used iap for service which does not exist in DB. |
|
356 # |
|
357 #------------------------------------------------------------------------------------ |
|
358 [Test] |
|
359 title ET08424 SetUsedIap invalid service |
|
360 pause PAUSE |
|
361 create VCXServiceManagementApiTest IptvTest |
|
362 IptvTest Create |
|
363 allownextresult EGeneralError |
|
364 IptvTest SetUsedIap 999 1 |
|
365 IptvTest Destroy |
|
366 delete IptvTest |
|
367 [Endtest] |
|
368 |
|
369 #------------------------------------------------------------------------------------ |
|
370 # |
|
371 # Test setting used iap with iap id which doesn't exist. |
|
372 # |
|
373 #------------------------------------------------------------------------------------ |
|
374 [Test] |
|
375 title ET08425 SetUsedIap invalid Iap |
|
376 pause PAUSE |
|
377 create VCXServiceManagementApiTest IptvTest |
|
378 IptvTest Create |
|
379 //allownextresult KERRGENERAL |
|
380 IptvTest SetUsedIap SERVICE_1 -1 |
|
381 IptvTest Destroy |
|
382 delete IptvTest |
|
383 [Endtest] |
|
384 |
|
385 #------------------------------------------------------------------------------------ |
|
386 # |
|
387 # Test getting used iap for a service which does not exist. |
|
388 # |
|
389 #------------------------------------------------------------------------------------ |
|
390 [Test] |
|
391 title ET08426 GetUsedIap SYNC invalid service |
|
392 pause PAUSE |
|
393 create VCXServiceManagementApiTest IptvTest |
|
394 IptvTest Create |
|
395 allownextresult SMEGeneralError |
|
396 IptvTest GetUsedIap SYNC 999 3G_AP |
|
397 IptvTest Destroy |
|
398 delete IptvTest |
|
399 [Endtest] |
|
400 |
|
401 #------------------------------------------------------------------------------------ |
|
402 # |
|
403 # Set connection permission for a IAP which does not exist. |
|
404 # |
|
405 #------------------------------------------------------------------------------------ |
|
406 [Test] |
|
407 title ET08427 Set Connection Permission for invalid IAP |
|
408 pause PAUSE |
|
409 create VCXServiceManagementApiTest IptvTest |
|
410 IptvTest Create |
|
411 IptvTest IsConnectionAllowed "INVALIDIAPID" PERMISSION_CONFIRM |
|
412 IptvTest SetConnectionAllowed "INVALIDIAPID" 1 |
|
413 IptvTest IsConnectionAllowed "INVALIDIAPID" PERMISSION_ALLOWED |
|
414 IptvTest SetConnectionAllowed "INVALIDIAPID" 0 |
|
415 IptvTest IsConnectionAllowed "INVALIDIAPID" PERMISSION_NOT_ALLOWED |
|
416 IptvTest Destroy |
|
417 delete IptvTest |
|
418 [Endtest] |