|
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 [Define] |
|
12 INCLUDE c:\testframework\VCXConsts.inc |
|
13 INCLUDE c:\testframework\VCXErrors.inc |
|
14 INCLUDE c:\testframework\VCXVodContentApiTest.inc |
|
15 INCLUDE c:\testframework\VCXServiceNames.inc |
|
16 INCLUDE c:\testframework\VCXServiceUpdating.inc |
|
17 [Enddefine] |
|
18 |
|
19 #------------------------------------------------------------------------------------ |
|
20 # |
|
21 # Setup services in service database and delete the EPG db. |
|
22 # |
|
23 #------------------------------------------------------------------------------------ |
|
24 [Test] |
|
25 title ET11899 <not a test> Setup parental control test services |
|
26 |
|
27 create VCXTestUtilModule Util |
|
28 // Copies some known 3G AP to "Internet" destination with "Internet" name for the AP. |
|
29 Util CopyMethod "Internet" "Internet" "Internet" |
|
30 Util SetMethodPriority DEFAULT_DEST 3G_AP 0 |
|
31 Util SetUsedDestination DEFAULT_DEST |
|
32 // Disable connection dialog for "Internet" destination. |
|
33 Util SetConnectionMethodIntAttribute "Internet" "Internet" 507 2 // 507 is ECmSeamlessnessLevel |
|
34 delete Util |
|
35 |
|
36 pause PAUSE |
|
37 create VCXServiceManagementApiTest ServUtil |
|
38 ServUtil Create |
|
39 ServUtil DeleteAllServices SYNC |
|
40 |
|
41 ServUtil AddHardCodedService ASYNC SERVICE_9 3G_AP 1 10 |
|
42 ServUtil UpdateServiceField ASYNC SERVICE_9 EAddress "http:\/\/193.65.182.78/ecg_parental_control.xml" |
|
43 //ServUtil UpdateServiceField ASYNC SERVICE_9 EAddress "http:\/\/193.65.182.78/EpgRatingTst.xml" |
|
44 |
|
45 ServUtil UpdateServiceField ASYNC SERVICE_9 EName EXTRA_SERVICE_4 |
|
46 |
|
47 ServUtil GetServices SYNC 0 250 |
|
48 |
|
49 ServUtil Destroy |
|
50 delete ServUtil |
|
51 pause 3000 |
|
52 [Endtest] |
|
53 |
|
54 #------------------------------------------------------------------------------------ |
|
55 # |
|
56 # Test parental control. |
|
57 # |
|
58 #------------------------------------------------------------------------------------ |
|
59 [Test] |
|
60 title ET11801 UpdateEcg, service with media rating |
|
61 pause PAUSE |
|
62 create VCXTestUtilModule Util |
|
63 Util CreateMobilecrashWatcher |
|
64 create VCXVodContentApiTest test |
|
65 test SetParentalControlAge 0 |
|
66 test Create EXTRA_SERVICE_4 |
|
67 test SelectIap 3G_AP |
|
68 test UpdateEcg |
|
69 waittestclass test |
|
70 test Destroy |
|
71 delete test |
|
72 Util CheckMobilecrashes |
|
73 delete Util |
|
74 [Endtest] |
|
75 |
|
76 #------------------------------------------------------------------------------------ |
|
77 # |
|
78 # Test parental control. |
|
79 # |
|
80 #------------------------------------------------------------------------------------ |
|
81 [Test] |
|
82 title ET11802 Parental control age 0, get content |
|
83 create VCXTestUtilModule Util |
|
84 Util CreateMobilecrashWatcher |
|
85 pause PAUSE |
|
86 create VCXVodContentApiTest test |
|
87 test SetParentalControlAge 0 |
|
88 test Create EXTRA_SERVICE_4 |
|
89 test EnableVerifying ET11802 |
|
90 test EcgEcgAllList "" 0 120 |
|
91 test ContentCount 35 |
|
92 //test Verify ET11802 |
|
93 test Destroy |
|
94 delete test |
|
95 Util CheckMobilecrashes |
|
96 delete Util |
|
97 [Endtest] |
|
98 |
|
99 #------------------------------------------------------------------------------------ |
|
100 # |
|
101 # Test parental control. |
|
102 # |
|
103 #------------------------------------------------------------------------------------ |
|
104 [Test] |
|
105 title ET11803 Parental control age -2, get content |
|
106 create VCXTestUtilModule Util |
|
107 Util CreateMobilecrashWatcher |
|
108 pause PAUSE |
|
109 create VCXVodContentApiTest test |
|
110 test SetParentalControlAge -2 |
|
111 test Create EXTRA_SERVICE_4 |
|
112 test EnableVerifying ET11803 |
|
113 test EcgEcgAllList "" 0 120 |
|
114 test ContentCount 35 |
|
115 //test Verify ET11803 |
|
116 test Destroy |
|
117 delete test |
|
118 Util CheckMobilecrashes |
|
119 delete Util |
|
120 [Endtest] |
|
121 |
|
122 #------------------------------------------------------------------------------------ |
|
123 # |
|
124 # Test parental control. |
|
125 # |
|
126 #------------------------------------------------------------------------------------ |
|
127 [Test] |
|
128 title ET11804 Parental control age 18, get content |
|
129 create VCXTestUtilModule Util |
|
130 Util CreateMobilecrashWatcher |
|
131 pause PAUSE |
|
132 create VCXVodContentApiTest test |
|
133 test SetParentalControlAge 18 |
|
134 test Create EXTRA_SERVICE_4 |
|
135 test EnableVerifying ET11804 |
|
136 test EcgEcgAllList "" 0 120 |
|
137 test ContentCount 28 |
|
138 //test Verify ET11804 |
|
139 test Destroy |
|
140 delete test |
|
141 Util CheckMobilecrashes |
|
142 delete Util |
|
143 [Endtest] |
|
144 |
|
145 #------------------------------------------------------------------------------------ |
|
146 # |
|
147 # Test parental control. |
|
148 # |
|
149 #------------------------------------------------------------------------------------ |
|
150 [Test] |
|
151 title ET11805 Parental control age 30, get content |
|
152 create VCXTestUtilModule Util |
|
153 Util CreateMobilecrashWatcher |
|
154 pause PAUSE |
|
155 create VCXVodContentApiTest test |
|
156 test SetParentalControlAge 30 |
|
157 test Create EXTRA_SERVICE_4 |
|
158 test EnableVerifying ET11805 |
|
159 test EcgEcgAllList "" 0 120 |
|
160 test ContentCount 35 |
|
161 //test Verify ET11805 |
|
162 test Destroy |
|
163 delete test |
|
164 Util CheckMobilecrashes |
|
165 delete Util |
|
166 [Endtest] |
|
167 |
|
168 #------------------------------------------------------------------------------------ |
|
169 # |
|
170 # Test parental control. |
|
171 # |
|
172 #------------------------------------------------------------------------------------ |
|
173 [Test] |
|
174 title ET11806 Parental control age 999999, get content |
|
175 create VCXTestUtilModule Util |
|
176 Util CreateMobilecrashWatcher |
|
177 pause PAUSE |
|
178 create VCXVodContentApiTest test |
|
179 test SetParentalControlAge 30 |
|
180 test Create EXTRA_SERVICE_4 |
|
181 test EnableVerifying ET11806 |
|
182 test EcgEcgAllList "" 0 120 |
|
183 test ContentCount 35 |
|
184 //test Verify ET11806 |
|
185 test Destroy |
|
186 delete test |
|
187 Util CheckMobilecrashes |
|
188 delete Util |
|
189 [Endtest] |
|
190 |
|
191 #------------------------------------------------------------------------------------ |
|
192 # |
|
193 # Test parental control. |
|
194 # see IPTV_Engine\internal\docs\AutomaticDataVerifying.txt how to verify is automated with the log. |
|
195 # |
|
196 #------------------------------------------------------------------------------------ |
|
197 [Test] |
|
198 title ET11807 Parental control age 16, get content |
|
199 create VCXTestUtilModule Util |
|
200 Util CreateMobilecrashWatcher |
|
201 pause PAUSE |
|
202 create VCXVodContentApiTest test |
|
203 test SetParentalControlAge 16 |
|
204 test Create EXTRA_SERVICE_4 |
|
205 test EnableVerifying ET11807 |
|
206 test EcgEcgAllList "" 0 120 |
|
207 test ContentCount 26 |
|
208 //test Verify ET11807 |
|
209 test SetParentalControlAge 0 |
|
210 test Destroy |
|
211 delete test |
|
212 Util CheckMobilecrashes |
|
213 delete Util |
|
214 [Endtest] |
|
215 |
|
216 #------------------------------------------------------------------------------------ |
|
217 # |
|
218 # Test parental control. |
|
219 # |
|
220 #------------------------------------------------------------------------------------ |
|
221 [Test] |
|
222 title ET11808 Parental control age 14, get content |
|
223 pause PAUSE |
|
224 create VCXVodContentApiTest test |
|
225 test SetParentalControlAge 14 |
|
226 test Create EXTRA_SERVICE_4 |
|
227 test EnableVerifying ET11808 |
|
228 test EcgEcgAllList "" 0 120 |
|
229 test ContentCount 24 |
|
230 //test Verify ET11808 |
|
231 test SetParentalControlAge 0 |
|
232 test Destroy |
|
233 delete test |
|
234 [Endtest] |
|
235 |
|
236 #------------------------------------------------------------------------------------ |
|
237 # |
|
238 # Test parental control. |
|
239 # |
|
240 #------------------------------------------------------------------------------------ |
|
241 [Test] |
|
242 title ET11809 Change parental control during ECG update |
|
243 pause PAUSE |
|
244 create VCXTestUtilModule Util |
|
245 Util CreateMobilecrashWatcher |
|
246 create VCXVodContentApiTest test |
|
247 test SetParentalControlAge 0 |
|
248 test Create EXTRA_SERVICE_4 |
|
249 test SelectIap 3G_AP |
|
250 test UpdateEcg |
|
251 pause 1000 |
|
252 test SetParentalControlAge 30 |
|
253 pause 1000 |
|
254 test SetParentalControlAge 0 |
|
255 waittestclass test |
|
256 test Destroy |
|
257 delete test |
|
258 Util CheckMobilecrashes |
|
259 delete Util |
|
260 [Endtest] |