|
1 /*[Test] |
|
2 title Example |
|
3 create mpxharvestertest foobar |
|
4 foobar Example pa ra me ters |
|
5 delete foobar |
|
6 [Endtest] |
|
7 */ |
|
8 |
|
9 [Test] |
|
10 title Create Harvester Utility |
|
11 create mpxharvestertest utility |
|
12 utility CreateUtility |
|
13 delete utility |
|
14 pause 1000 |
|
15 [Endtest] |
|
16 |
|
17 [Test] |
|
18 title Scan for new files |
|
19 create mpxharvestertest utility |
|
20 utility CreateUtility |
|
21 utility Scan |
|
22 pause 20000 |
|
23 utility VerifyEvents |
|
24 delete utility |
|
25 pause 1000 |
|
26 [Endtest] |
|
27 |
|
28 [Test] |
|
29 title Cancel scan |
|
30 create mpxharvestertest utility |
|
31 utility CreateUtility |
|
32 utility Scan |
|
33 pause 1000 |
|
34 utility CancelScan |
|
35 utility VerifyEvents |
|
36 delete utility |
|
37 pause 1000 |
|
38 [Endtest] |
|
39 |
|
40 [Test] |
|
41 title Add file |
|
42 create mpxharvestertest utility |
|
43 utility CopyTestFile mpxtest1.mp3 |
|
44 utility CreateUtility |
|
45 utility AddFileByPath mpxtest1.mp3 |
|
46 waittestclass utility |
|
47 utility DeleteTestFile mpxtest1.mp3 |
|
48 utility VerifyEvents |
|
49 delete utility |
|
50 pause 1000 |
|
51 [Endtest] |
|
52 |
|
53 [Test] |
|
54 title Remove file |
|
55 create mpxharvestertest utility |
|
56 utility CopyTestFile mpxtest1.mp3 |
|
57 utility CreateUtility |
|
58 utility AddFileByPath mpxtest1.mp3 |
|
59 waittestclass utility |
|
60 utility RemoveFile mpxtest1.mp3 |
|
61 utility DeleteTestFile mpxtest1.mp3 |
|
62 utility VerifyEvents |
|
63 delete utility |
|
64 pause 1000 |
|
65 [Endtest] |
|
66 |
|
67 [Test] |
|
68 title Remove files |
|
69 create mpxharvestertest utility |
|
70 utility CopyTestFile mpxtest1.mp3 mpxtest2.mp3 |
|
71 utility CreateUtility |
|
72 utility AddFileByPath mpxtest1.mp3 |
|
73 waittestclass utility |
|
74 utility AddFileByPath mpxtest2.mp3 |
|
75 waittestclass utility |
|
76 utility RemoveFiles mpxtest1.mp3 mpxtest2.mp3 |
|
77 utility DeleteTestFile mpxtest1.mp3 mpxtest2.mp3 |
|
78 utility VerifyEvents |
|
79 delete utility |
|
80 pause 1000 |
|
81 [Endtest] |
|
82 |
|
83 [Test] |
|
84 title Remove all files |
|
85 create mpxharvestertest utility |
|
86 utility CopyTestFile mpxtest1.mp3 mpxtest2.mp3 |
|
87 utility CreateUtility |
|
88 utility AddFileByPath mpxtest1.mp3 |
|
89 waittestclass utility |
|
90 utility AddFileByPath mpxtest2.mp3 |
|
91 waittestclass utility |
|
92 utility RemoveFiles all |
|
93 utility DeleteTestFile mpxtest1.mp3 mpxtest2.mp3 |
|
94 utility VerifyEvents |
|
95 delete utility |
|
96 pause 1000 |
|
97 [Endtest] |
|
98 |
|
99 [Test] |
|
100 title Recreate databases |
|
101 create mpxharvestertest utility |
|
102 utility CreateUtility |
|
103 utility RecreateDatabases |
|
104 pause 5000 |
|
105 utility VerifyEvents |
|
106 delete utility |
|
107 pause 1000 |
|
108 [Endtest] |
|
109 |
|
110 [Test] |
|
111 title Delete file |
|
112 create mpxharvestertest utility |
|
113 utility CopyTestFile mpxtest1.mp3 |
|
114 pause 2000 |
|
115 utility CreateUtility |
|
116 utility AddFileByPath mpxtest1.mp3 |
|
117 waittestclass utility |
|
118 utility DeleteFile mpxtest1.mp3 |
|
119 waittestclass utility |
|
120 utility VerifyEvents |
|
121 delete utility |
|
122 pause 1000 |
|
123 [Endtest] |
|
124 |
|
125 [Test] |
|
126 title Delete files asynchronously |
|
127 create mpxharvestertest utility |
|
128 utility CopyTestFile mpxtest1.mp3 mpxtest2.mp3 |
|
129 pause 2000 |
|
130 utility CreateUtility |
|
131 utility AddFileByPath mpxtest1.mp3 |
|
132 waittestclass utility |
|
133 utility AddFileByPath mpxtest2.mp3 |
|
134 waittestclass utility |
|
135 utility DeleteFiles async mpxtest1.mp3 mpxtest2.mp3 |
|
136 waittestclass utility |
|
137 utility VerifyEvents |
|
138 delete utility |
|
139 pause 1000 |
|
140 [Endtest] |
|
141 |
|
142 [Test] |
|
143 title Delete files synchronously |
|
144 create mpxharvestertest utility |
|
145 pause 2000 |
|
146 utility CopyTestFile mpxtest1.mp3 mpxtest2.mp3 |
|
147 utility CreateUtility |
|
148 utility AddFileByPath mpxtest1.mp3 |
|
149 waittestclass utility |
|
150 utility AddFileByPath mpxtest2.mp3 |
|
151 waittestclass utility |
|
152 utility DeleteFiles sync mpxtest1.mp3 mpxtest2.mp3 |
|
153 utility VerifyEvents |
|
154 delete utility |
|
155 pause 1000 |
|
156 [Endtest] |
|
157 |
|
158 [Test] |
|
159 title Find collection id |
|
160 create mpxharvestertest utility |
|
161 utility CopyTestFile mpxtest1.mp3 |
|
162 utility CreateUtility |
|
163 utility AddFileByPath mpxtest1.mp3 |
|
164 waittestclass utility |
|
165 utility FindCollectionId mpxtest1.mp3 |
|
166 utility RemoveFile mpxtest1.mp3 |
|
167 utility DeleteTestFile mpxtest1.mp3 |
|
168 utility VerifyEvents |
|
169 delete utility |
|
170 pause 1000 |
|
171 [Endtest] |
|
172 |
|
173 [Test] |
|
174 title Rename file |
|
175 create mpxharvestertest utility |
|
176 utility CopyTestFile mpxtest1.mp3 |
|
177 utility CreateUtility |
|
178 utility AddFileByPath mpxtest1.mp3 |
|
179 waittestclass utility |
|
180 utility RenameFileByPath mpxtest1.mp3 mpxtest3.mp3 |
|
181 pause 2000 |
|
182 utility RemoveFile mpxtest3.mp3 |
|
183 utility DeleteTestFile mpxtest1.mp3 |
|
184 utility VerifyEvents |
|
185 delete utility |
|
186 pause 1000 |
|
187 [Endtest] |
|
188 |
|
189 [Test] |
|
190 title It is a playlist |
|
191 create mpxharvestertest utility |
|
192 utility CopyTestFile mpxtestplaylist.m3u |
|
193 utility CreateUtility |
|
194 utility IsPlaylist mpxtestplaylist.m3u true |
|
195 pause 2000 |
|
196 utility DeleteTestFile mpxtestplaylist.m3u |
|
197 utility VerifyEvents |
|
198 delete utility |
|
199 pause 1000 |
|
200 [Endtest] |
|
201 |
|
202 [Test] |
|
203 title It is not a playlist |
|
204 create mpxharvestertest utility |
|
205 utility CopyTestFile mpxtest1.mp3 |
|
206 utility CreateUtility |
|
207 utility IsPlaylist mpxtest1.mp3 false |
|
208 pause 2000 |
|
209 utility DeleteTestFile mpxtest1.mp3 |
|
210 utility VerifyEvents |
|
211 delete utility |
|
212 pause 1000 |
|
213 [Endtest] |
|
214 |
|
215 [Test] |
|
216 title Import playlist successfully |
|
217 create mpxharvestertest utility |
|
218 utility CopyTestFile mpxtestplaylist.m3u |
|
219 utility CreateUtility |
|
220 utility ImportPlaylist mpxtestplaylist.m3u true |
|
221 waittestclass utility |
|
222 utility DeleteTestFile mpxtestplaylist.m3u |
|
223 utility VerifyEvents |
|
224 delete utility |
|
225 pause 1000 |
|
226 [Endtest] |
|
227 |
|
228 [Test] |
|
229 title Import playlist (mp3) |
|
230 create mpxharvestertest utility |
|
231 utility CopyTestFile mpxtest1.mp3 |
|
232 utility CreateUtility |
|
233 utility ImportPlaylist mpxtest1.mp3 false |
|
234 waittestclass utility |
|
235 utility DeleteTestFile mpxtest1.mp3 |
|
236 utility VerifyEvents |
|
237 delete utility |
|
238 pause 1000 |
|
239 [Endtest] |
|
240 |
|
241 [Test] |
|
242 title Import playlist (doesn't exist) |
|
243 create mpxharvestertest utility |
|
244 utility CreateUtility |
|
245 utility ImportPlaylist mpxtestplaylist.m3u false |
|
246 waittestclass utility |
|
247 utility VerifyEvents |
|
248 delete utility |
|
249 pause 1000 |
|
250 [Endtest] |
|
251 |
|
252 [Test] |
|
253 title Import file (playlist) successfully |
|
254 create mpxharvestertest utility |
|
255 utility CopyTestFile mpxtestplaylist.m3u |
|
256 utility CreateUtility |
|
257 utility ImportFile mpxtestplaylist.m3u true |
|
258 waittestclass utility |
|
259 utility DeleteTestFile mpxtestplaylist.m3u |
|
260 utility VerifyEvents |
|
261 delete utility |
|
262 pause 1000 |
|
263 [Endtest] |
|
264 |
|
265 [Test] |
|
266 title Import file (mp3) successfully |
|
267 create mpxharvestertest utility |
|
268 utility CopyTestFile mpxtest1.mp3 |
|
269 utility CreateUtility |
|
270 utility ImportFile mpxtest1.mp3 true |
|
271 waittestclass utility |
|
272 utility DeleteTestFile mpxtest1.mp3 |
|
273 utility VerifyEvents |
|
274 delete utility |
|
275 pause 1000 |
|
276 [Endtest] |
|
277 |
|
278 [Test] |
|
279 title Import file (doesn't exist) |
|
280 create mpxharvestertest utility |
|
281 utility CreateUtility |
|
282 utility ImportFile mpxtest1.mp3 false |
|
283 waittestclass utility |
|
284 utility VerifyEvents |
|
285 delete utility |
|
286 pause 1000 |
|
287 [Endtest] |
|
288 |
|
289 [Test] |
|
290 title Required attributes M3U |
|
291 create mpxharvestertest utility |
|
292 utility CreateUtility |
|
293 utility RequiredAttributes M3U |
|
294 delete utility |
|
295 pause 1000 |
|
296 [Endtest] |
|
297 |
|
298 [Test] |
|
299 title Optional attributes M3U |
|
300 create mpxharvestertest utility |
|
301 utility CreateUtility |
|
302 utility OptionalAttributes M3U |
|
303 delete utility |
|
304 pause 1000 |
|
305 [Endtest] |
|
306 |
|
307 [Test] |
|
308 title PlaylistFileExtension M3U |
|
309 create mpxharvestertest utility |
|
310 utility CreateUtility |
|
311 utility PlaylistFileExtension M3U |
|
312 delete utility |
|
313 pause 1000 |
|
314 [Endtest] |
|
315 |
|
316 /* |
|
317 // PLA is not supported yet |
|
318 [Test] |
|
319 title PlaylistFileExtension PLA |
|
320 create mpxharvestertest utility |
|
321 utility CreateUtility |
|
322 utility PlaylistFileExtension PLA |
|
323 delete utility |
|
324 pause 1000 |
|
325 [Endtest] |
|
326 */ |
|
327 |
|
328 [Test] |
|
329 title CheckForSystemEvents |
|
330 create mpxharvestertest utility |
|
331 utility CreateUtility |
|
332 utility CheckForSystemEvents |
|
333 delete utility |
|
334 pause 1000 |
|
335 [Endtest] |
|
336 |