|
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 ET19099 <not a test> Setup search test services 2 |
|
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 SMTest |
|
38 SMTest Create |
|
39 SMTest DeleteAllServices SYNC |
|
40 |
|
41 // nseries test search |
|
42 SMTest AddHardCodedService ASYNC SERVICE_9 3G_AP 1 10 // OOPS9 |
|
43 SMTest UpdateServiceField ASYNC SERVICE_9 EAddress "http:\/\/193.65.182.78/nseries.xml" |
|
44 SMTest UpdateServiceField ASYNC SERVICE_9 ESearchUrl "http:\/\/193.65.182.78/search.php?file=nseries.xml&q=#search#" |
|
45 SMTest UpdateServiceField ASYNC SERVICE_9 EName EXTRA_SERVICE_1 |
|
46 |
|
47 // google test search |
|
48 SMTest AddHardCodedService ASYNC SERVICE_9 3G_AP 1 10 // OOPS9 |
|
49 SMTest UpdateServiceField ASYNC SERVICE_9 EAddress "http:\/\/video.google.com/videofeed?type=top100new&num=20&output=rss" |
|
50 SMTest UpdateServiceField ASYNC SERVICE_9 ESearchUrl "http:\/\/video.google.com/videofeed?type=search&q=#search#&so=0&num=20&output=rss" |
|
51 SMTest UpdateServiceField ASYNC SERVICE_9 EName EXTRA_SERVICE_2 |
|
52 |
|
53 // blip test search |
|
54 SMTest AddHardCodedService ASYNC SERVICE_9 3G_AP 1 10 // OOPS9 |
|
55 SMTest UpdateServiceField ASYNC SERVICE_9 EAddress "http:\/\/blip.tv/?1=1&s=posts&skin=rss" |
|
56 SMTest UpdateServiceField ASYNC SERVICE_9 ESearchUrl "http:\/\/blip.tv/?1=1&file_type=mpeg1%2Cmpeg2%2Cmpeg4;search=#search#;page=1;s=posts&skin=rss" |
|
57 SMTest UpdateServiceField ASYNC SERVICE_9 EName EXTRA_SERVICE_3 |
|
58 |
|
59 // yahoo test search |
|
60 SMTest AddHardCodedService ASYNC SERVICE_9 3G_AP 1 10 // OOPS9 |
|
61 SMTest UpdateServiceField ASYNC SERVICE_9 EAddress "http:\/\/rss.ent.yahoo.com/movies/thisweek.xml" |
|
62 SMTest UpdateServiceField ASYNC SERVICE_9 ESearchUrl "http:\/\/api.search.yahoo.com/VideoSearchService/rss/videoSearch.xml?appid=ysearchblog&adult_ok=0&results=50&format=mpeg&query=#search#" |
|
63 SMTest UpdateServiceField ASYNC SERVICE_9 EName EXTRA_SERVICE_4 |
|
64 |
|
65 // dailymotion test search |
|
66 SMTest AddHardCodedService ASYNC SERVICE_9 3G_AP 1 10 // OOPS9 |
|
67 SMTest UpdateServiceField ASYNC SERVICE_9 EAddress "http:\/\/www.dailymotion.com/rss/featured/1" |
|
68 SMTest UpdateServiceField ASYNC SERVICE_9 ESearchUrl "http:\/\/www.dailymotion.com/rss/relevance/search/#search#/1" |
|
69 |
|
70 SMTest UpdateServiceField ASYNC SERVICE_9 EName EXTRA_SERVICE_5 |
|
71 |
|
72 SMTest GetServices SYNC 0 250 |
|
73 |
|
74 SMTest Destroy |
|
75 delete SMTest |
|
76 |
|
77 create VCXVodContentApiTest test |
|
78 test DeleteEpgDb |
|
79 delete test |
|
80 |
|
81 [Endtest] |
|
82 |
|
83 #------------------------------------------------------------------------------------ |
|
84 # |
|
85 # Get ECG list for search category when database is empty. |
|
86 # |
|
87 #------------------------------------------------------------------------------------ |
|
88 [Test] |
|
89 title ET19001 Empty DB - GetEcgList |
|
90 create VCXTestUtilModule Util |
|
91 Util CreateMobilecrashWatcher |
|
92 pause PAUSE |
|
93 create VCXVodContentApiTest test |
|
94 test Create EXTRA_SERVICE_1 |
|
95 test SelectIap 3G_AP |
|
96 test GetEcgList KIptvTestSearchCategoryId "" 0 10 |
|
97 test Destroy |
|
98 delete test |
|
99 Util CheckMobilecrashes |
|
100 delete Util |
|
101 [Endtest] |
|
102 |
|
103 #------------------------------------------------------------------------------------ |
|
104 # |
|
105 # Get category list for search when ECG DB is empty. |
|
106 # |
|
107 #------------------------------------------------------------------------------------ |
|
108 [Test] |
|
109 title ET19002 Empty DB - EcgCategoryList |
|
110 create VCXTestUtilModule Util |
|
111 Util CreateMobilecrashWatcher |
|
112 pause PAUSE |
|
113 create VCXVodContentApiTest test |
|
114 test Create EXTRA_SERVICE_1 |
|
115 test SelectIap 3G_AP |
|
116 test EcgCategoryList KIptvTestSearchCategoryId |
|
117 test Destroy |
|
118 delete test |
|
119 Util CheckMobilecrashes |
|
120 delete Util |
|
121 [Endtest] |
|
122 |
|
123 #------------------------------------------------------------------------------------ |
|
124 # |
|
125 # Get category details for search category when database is empty. |
|
126 # |
|
127 #------------------------------------------------------------------------------------ |
|
128 [Test] |
|
129 title ET19003 Empty DB - CategoryDetails |
|
130 create VCXTestUtilModule Util |
|
131 Util CreateMobilecrashWatcher |
|
132 pause PAUSE |
|
133 create VCXVodContentApiTest test |
|
134 test Create EXTRA_SERVICE_1 |
|
135 test SelectIap 3G_AP |
|
136 test CategoryDetails KIptvTestSearchCategoryId |
|
137 test Destroy |
|
138 delete test |
|
139 Util CheckMobilecrashes |
|
140 delete Util |
|
141 [Endtest] |
|
142 |
|
143 #------------------------------------------------------------------------------------ |
|
144 # |
|
145 # Check that CIptvVodContentClient returns parentCategoryId correctly. |
|
146 # |
|
147 #------------------------------------------------------------------------------------ |
|
148 [Test] |
|
149 title ET19004 Empty DB - ParentCategory |
|
150 create VCXTestUtilModule Util |
|
151 Util CreateMobilecrashWatcher |
|
152 pause PAUSE |
|
153 create VCXVodContentApiTest test |
|
154 test Create EXTRA_SERVICE_1 |
|
155 test SelectIap 3G_AP |
|
156 test ParentCategory 0 //KIptvTestSearchCategoryId |
|
157 test Destroy |
|
158 delete test |
|
159 Util CheckMobilecrashes |
|
160 delete Util |
|
161 [Endtest] |
|
162 |
|
163 #------------------------------------------------------------------------------------ |
|
164 # |
|
165 # Get content details list for search category when database is empty. |
|
166 # |
|
167 #------------------------------------------------------------------------------------ |
|
168 [Test] |
|
169 title ET19005 Empty DB - ContentDetailsList |
|
170 create VCXTestUtilModule Util |
|
171 Util CreateMobilecrashWatcher |
|
172 pause PAUSE |
|
173 create VCXVodContentApiTest test |
|
174 test Create EXTRA_SERVICE_1 |
|
175 test SelectIap 3G_AP |
|
176 test ContentDetailsList SEARCH_CONTENT_1 |
|
177 test Destroy |
|
178 delete test |
|
179 Util CheckMobilecrashes |
|
180 delete Util |
|
181 [Endtest] |
|
182 |
|
183 #------------------------------------------------------------------------------------ |
|
184 # |
|
185 # Test CIptvVodContentClient::SetLastPositionL for Search content. |
|
186 # |
|
187 #------------------------------------------------------------------------------------ |
|
188 [Test] |
|
189 title ET19006 Empty DB - SetLastPosition |
|
190 create VCXTestUtilModule Util |
|
191 Util CreateMobilecrashWatcher |
|
192 pause PAUSE |
|
193 create VCXVodContentApiTest test |
|
194 test Create EXTRA_SERVICE_1 |
|
195 test SetLastPosition KIptvRssSearchContentId1 0 0 |
|
196 test SetLastPosition KIptvRssSearchContentId1 0 500 |
|
197 test Destroy |
|
198 delete test |
|
199 Util CheckMobilecrashes |
|
200 delete Util |
|
201 [Endtest] |
|
202 |
|
203 #------------------------------------------------------------------------------------ |
|
204 # |
|
205 # Test CIptvVodContentClient::Search |
|
206 # |
|
207 #------------------------------------------------------------------------------------ |
|
208 [Test] |
|
209 title ET19008 Search Blip 3G |
|
210 create VCXTestUtilModule Util |
|
211 Util CreateMobilecrashWatcher |
|
212 pause PAUSE |
|
213 create VCXVodContentApiTest test |
|
214 test EnableThumbnails |
|
215 test DeleteEpgDb |
|
216 test Create EXTRA_SERVICE_3 |
|
217 test SelectIap 3G_AP |
|
218 test Search super |
|
219 waittestclass test |
|
220 test UpdateEcg |
|
221 waittestclass test |
|
222 test EnableVerifying ET19008 |
|
223 test VerifyAllCategoryContent KIptvTestSearchCategoryId |
|
224 //test Verify ET19008 |
|
225 test Destroy |
|
226 delete test |
|
227 Util CheckMobilecrashes |
|
228 delete Util |
|
229 [Endtest] |
|
230 |
|
231 #------------------------------------------------------------------------------------ |
|
232 # |
|
233 # Test CIptvVodContentClient::Search |
|
234 # |
|
235 #------------------------------------------------------------------------------------ |
|
236 [Test] |
|
237 title ET19010 Search Dailymotion 3G |
|
238 create VCXTestUtilModule Util |
|
239 Util CreateMobilecrashWatcher |
|
240 pause PAUSE |
|
241 create VCXVodContentApiTest test |
|
242 test EnableThumbnails |
|
243 test DeleteEpgDb |
|
244 test Create EXTRA_SERVICE_5 |
|
245 test SelectIap 3G_AP |
|
246 test Search survivors |
|
247 waittestclass test |
|
248 test UpdateEcg |
|
249 waittestclass test |
|
250 test EnableVerifying ET19010 |
|
251 test VerifyAllCategoryContent KIptvTestSearchCategoryId |
|
252 //test Verify ET19010 |
|
253 test Destroy |
|
254 delete test |
|
255 Util CheckMobilecrashes |
|
256 delete Util |
|
257 [Endtest] |