author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 27 Aug 2009 07:43:07 +0300 | |
changeset 22 | fc9cf246af83 |
parent 19 | 989d2f495d90 |
permissions | -rw-r--r-- |
19 | 1 |
/* =========================================================================== |
2 |
* Copyright © 2006-2007 Nokia Corporation. |
|
3 |
* This material, including documentation and any related |
|
4 |
* computer programs, is protected by copyright controlled by |
|
5 |
* Nokia Corporation. All rights are reserved. Copying, |
|
6 |
* including reproducing, storing, adapting or translating, any |
|
7 |
* or all of this material requires the prior written consent of |
|
8 |
* Nokia Corporation. This material also contains confidential |
|
9 |
* information which may not be disclosed to others without the |
|
10 |
* prior written consent of Nokia Corporation. |
|
11 |
* ============================================================================ |
|
12 |
Expected aaaa aaaa aaaa aaaa aaaa aaaa aaaa Next Bbbb bbb bbb bbb bbb bbb bbb End |
|
13 |
||
14 |
*/ |
|
15 |
||
16 |
/*key startRange endRange sortKey sortOrder errorcode |
|
17 |
[Expected type fileName fileExtension drive fileSize fileDate fileNameAndPath mimeType |
|
18 |
[Next "next map data" End]]. |
|
19 |
*/ |
|
20 |
################################################## Image ################################################### |
|
21 |
/* |
|
22 |
NOTE: |
|
23 |
1. NULL input means not passing any value for the placeholder |
|
24 |
2. NULLVALUE means a NULL is passed as value to the placeholder |
|
25 |
3. "NULL" as input to a parameter means a Null string or a string of value "NULL" is passed as input |
|
26 |
4. All the fields in input is mandatory, if no value is to be passed for any field, a value NULL can be passed. And if NULL is to be passed as value, then |
|
27 |
value "NULLVALUE" needs to be passed. |
|
28 |
5. The key-value pair in Expected output can be in any order and all are optional. |
|
29 |
||
30 |
||
31 |
Requirements: |
|
32 |
The following image files are expected to be present at the mentioned locations. All the cases below are written based on this assumption. |
|
33 |
The expected output is as per this list. |
|
34 |
||
35 |
The Expected output is of the form where all fields of each map is written in between two keys StartMap and EndMap |
|
36 |
All the maps are written between two key words ExpectedStart and ExpectedEnd, as shown below |
|
37 |
||
38 |
FileNameAndPath: Expected o/p for the file in format mentioned below: |
|
39 |
c:\data\Images\a.jpg StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap |
|
40 |
c:\data\Images\ant.jpg StartMap Type Media FileName ant FileExtension .jpg Drive c: FileSize 8474 FileDate 20060819:102426 FileNameAndPath c:\data\Images\ant.jpg MimeType image/jpeg EndMap |
|
41 |
c:\data\Images\blue.png StartMap Type Media FileName blue FileExtension .png Drive c: FileSize 4796 FileDate 20070302:120443 FileNameAndPath c:\data\Images\blue.png MimeType image/png EndMap |
|
42 |
c:\data\Images\pictures\dreams.bmp StartMap Type Media FileName dreams FileExtension .bmp Drive c: FileSize 73105 FileDate 20070108:015537 FileNameAndPath c:\data\Images\pictures\dreams.bmp MimeType image/bmp EndMap |
|
43 |
e:\data\Images\stars.jpg StartMap Type Media FIleName stars FileExtension .jpg Drive e: FileSize 24790 FileDate 20081019:033638 FileNameAndPath e:\data\Images\stars.jpg MimeType image/jpeg EndMap |
|
44 |
||
45 |
||
46 |
||
47 |
//Testcase format: |
|
48 |
//Description of the testcase |
|
49 |
//Input: Input values |
|
50 |
//Expected:(+ve/-ve case) Expected output or behaviour |
|
51 |
[Test] |
|
52 |
title Sample |
|
53 |
create tmediaprovidertesting foobar |
|
54 |
//foobar GetFilesListL <Type> <FileType> <Key> <StartRange> <EndRange> <SortKey> <SortOrder> <expected error code> ExpectedStart StartMap Type <Type value> FileName <filename value FileExtension <FileExtension value> Drive <Drive value> FileSize <FileSize value> FileDate <FileDate value> FileNameAndPath <FileNameAndPath value> MimeType <MimeType value> EndMap ExpectedEnd |
|
55 |
foobar GetFilesListL FileInfo Image FileName a NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap ExpectedEnd |
|
56 |
delete foobar |
|
57 |
[Endtest] |
|
58 |
||
59 |
*/ |
|
60 |
############################################### Test cases starts ############################################### |
|
61 |
||
62 |
//GetList with value "FileInfo" for Type input and no other input parameters |
|
63 |
//Input: FileInfo as Type, other inputs are NULL |
|
64 |
//Expected: errorcode 1003- MissingArgumentType error as the mandatory FileType input is missing |
|
65 |
[Test] |
|
66 |
title ImgNeg_FileInfoType_NoFileType |
|
67 |
create tmediaprovidertesting foobar |
|
68 |
foobar GetFilesListL FileInfo NULL NULL NULL NULL NULL NULL 1003 |
|
69 |
delete foobar |
|
70 |
[Endtest] |
|
71 |
||
72 |
||
73 |
//GetList with value other than "FileInfo" for Type input |
|
74 |
//Input: FolderInfo inplace of Type input where valid value to be passed is FileInfo |
|
75 |
//Expected: errorcode 1004- ServiceNotSupported |
|
76 |
[Test] |
|
77 |
title ImgNeg_FolderInfoType |
|
78 |
create tmediaprovidertesting foobar |
|
79 |
foobar GetFilesListL FolderInfo Image FileName a NULL NULL NULL 1004 |
|
80 |
delete foobar |
|
81 |
[Endtest] |
|
82 |
||
83 |
||
84 |
//GetList with "FileInfo" as value for Type with a FileType input |
|
85 |
//Input: "FileInfo" as value for Type and Image as value for FileType, FileName as Key, "a" as startrange |
|
86 |
//Expected: list of details of all image files named 'a' are returned |
|
87 |
[Test] |
|
88 |
title Img_NoOptionalInputs |
|
89 |
create tmediaprovidertesting foobar |
|
90 |
foobar GetFilesListL FileInfo Image NULL NULL NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap StartMap FileName stars EndMap ExpectedEnd |
|
91 |
delete foobar |
|
92 |
[Endtest] |
|
93 |
||
94 |
||
95 |
//GetList with lower case "fileinfo" as value for Type input |
|
96 |
//Input: lowercase "fileinfo" as value for Type |
|
97 |
//Expected: image list based on the filter key and value |
|
98 |
[Test] |
|
99 |
title Img_fileinfoType |
|
100 |
create tmediaprovidertesting foobar |
|
101 |
foobar GetFilesListL fileinfo Image FileName a NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap ExpectedEnd |
|
102 |
delete foobar |
|
103 |
[Endtest] |
|
104 |
||
105 |
//GetList with NULL as Type input |
|
106 |
//Input: NULLVALUE as value for Type(Note: Passing NULLVALUE means that a value null is passed as input to Type), Image as FileType |
|
107 |
//Expected: errorcode 1004- ServiceNotSupported error is expected as the value FileInfo is expected as input for Type and not NULLVALUE |
|
108 |
[Test] |
|
109 |
title ImgNeg_NullType |
|
110 |
create tmediaprovidertesting foobar |
|
111 |
foobar GetFilesListL NULLVALUE Image NULL NULL NULL NULL NULL 1004 |
|
112 |
delete foobar |
|
113 |
[Endtest] |
|
114 |
||
115 |
||
116 |
//GetList with no input for Type |
|
117 |
//Input: NULL as value for Type(Note: Passing NULL means that no input is passed), Image as FileType |
|
118 |
//Expected: errorcode 1003- MissingArgument error is expected as the Type is mandatory input |
|
119 |
[Test] |
|
120 |
title ImgNeg_NoType |
|
121 |
create tmediaprovidertesting foobar |
|
122 |
foobar GetFilesListL NULL Image NULL NULL NULL NULL NULL 1003 |
|
123 |
delete foobar |
|
124 |
[Endtest] |
|
125 |
||
126 |
||
127 |
//GetList with integer value for Type input |
|
128 |
//Input: integer value 12 for Type, Image as FileType |
|
129 |
//Expected: errorcode 1004- ServiceNotSupported |
|
130 |
[Test] |
|
131 |
title ImgNeg_IntegerType |
|
132 |
create tmediaprovidertesting foobar |
|
133 |
foobar GetFilesListL 12 Image NULL NULL NULL NULL NULL 1004 |
|
134 |
delete foobar |
|
135 |
[Endtest] |
|
136 |
||
137 |
############################################################################################################################################################# |
|
138 |
||
139 |
################################################################### Testcases relating the FileType input ########################################################################################## |
|
140 |
||
141 |
||
142 |
//GetList with lowercase value "image" for FileType input |
|
143 |
//Input: "image"(1st letter lowercase) as value for FileType, FileName as Key and a as value for startrange |
|
144 |
//Expected: list of image files filtered based on Filter Key and Value. The list of all files with name a is returned. The expected result has all the details of the expected file named a |
|
145 |
//The output is in terms of a map starting and ending with keywords StartMap and EndMap respectively |
|
146 |
[Test] |
|
147 |
title Img_imageFileType |
|
148 |
create tmediaprovidertesting foobar |
|
149 |
foobar GetFilesListL FileInfo image FileName a NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg EndMap ExpectedEnd |
|
150 |
delete foobar |
|
151 |
[Endtest] |
|
152 |
||
153 |
//GetList with img as value to FileType input |
|
154 |
//Input: img as value for FileType and no values(NULL) for all other inputs |
|
155 |
//Expected errorcode 1002- BadArgumentType error |
|
156 |
[Test] |
|
157 |
title ImgNeg_imgFileType |
|
158 |
create tmediaprovidertesting foobar |
|
159 |
foobar GetFilesListL FileInfo img NULL NULL NULL NULL NULL 1002 |
|
160 |
delete foobar |
|
161 |
[Endtest] |
|
162 |
||
163 |
||
164 |
//GetList with Nokia as input to FileType input |
|
165 |
//Input: Nokia as value for FileType and no values(NULL) for all other inputs |
|
166 |
//Expected: errorcode 1002- BadArgumentType error |
|
167 |
[Test] |
|
168 |
title ImgNeg_NokiaFileType |
|
169 |
create tmediaprovidertesting foobar |
|
170 |
foobar GetFilesListL FileInfo Nokia NULL NULL NULL NULL NULL 1002 |
|
171 |
delete foobar |
|
172 |
[Endtest] |
|
173 |
||
174 |
||
175 |
//GetList with E:\Image as value to FileType input |
|
176 |
//Input: E:\Image as FIleType and no value (NULL) for all other values |
|
177 |
/Expected: errorcode 1002- BadArgumentType error |
|
178 |
[Test] |
|
179 |
title ImgNeg_E:\ImageFileType |
|
180 |
create tmediaprovidertesting foobar |
|
181 |
foobar GetFilesListL FileInfo E:\Image NULL NULL NULL NULL NULL 1002 |
|
182 |
delete foobar |
|
183 |
[Endtest] |
|
184 |
||
185 |
||
186 |
||
187 |
//GetList with empty string as FileType |
|
188 |
//Input: empty string as FileType and no values(NULL) for all other inputs |
|
189 |
/Expected: errorcode 1002- BadArgumentType error |
|
190 |
[Test] |
|
191 |
title ImgNeg_EmptyStringFileType |
|
192 |
create tmediaprovidertesting foobar |
|
193 |
foobar GetFilesListL FileInfo "" NULL NULL NULL NULL NULL 1002 |
|
194 |
delete foobar |
|
195 |
[Endtest] |
|
196 |
||
197 |
||
198 |
//GetList with NULL as FileType |
|
199 |
//Input: NULLVALUE as FileType(Note this means that we are passing NULL as input to FileType),all other inputs are not passed |
|
200 |
/Expected: errorcode 1002- BadArgumentType error |
|
201 |
[Test] |
|
202 |
title ImgNeg_NullFileType |
|
203 |
create tmediaprovidertesting foobar |
|
204 |
foobar GetFilesListL FileInfo NULLVALUE NULL NULL NULL NULL NULL 1002 |
|
205 |
delete foobar |
|
206 |
[Endtest] |
|
207 |
||
208 |
||
209 |
//GetList with integer value input to FileType |
|
210 |
//Input: 12 as value for FileType and no values for all other inputs |
|
211 |
/Expected: errorcode 1002- BadArgumentType error as invalid value is passed for FileType |
|
212 |
[Test] |
|
213 |
title ImgNeg_IntegerFileType |
|
214 |
create tmediaprovidertesting foobar |
|
215 |
foobar GetFilesListL FileInfo 12 NULL NULL NULL NULL NULL 1002 |
|
216 |
delete foobar |
|
217 |
[Endtest] |
|
218 |
||
219 |
############################################################################################################################################### |
|
220 |
||
221 |
###################################################################Type==“FileInfo” + Passing Filter Map with FileType==Image + [Key]############################################################################ |
|
222 |
||
223 |
//GetList with FileName as key, no StartRange |
|
224 |
//Input: FileName as key, all other values are not passed |
|
225 |
/Expected: errorcode 1003- MissingArgumentType |
|
226 |
[Test] |
|
227 |
title ImgNeg_FileNameKey |
|
228 |
create tmediaprovidertesting foobar |
|
229 |
foobar GetFilesListL FileInfo Image FileName NULL NULL NULL NULL 1003 |
|
230 |
delete foobar |
|
231 |
[Endtest] |
|
232 |
||
233 |
//GetList with no FilterKey |
|
234 |
//Input: NULL(means no value being passed) as Key ,all other inputs are not passed |
|
235 |
//Expected: list of all images present in the device, The expected output has the FileName of all files expected to be retrieved. |
|
236 |
[Test] |
|
237 |
title Img_NoOptionalFields |
|
238 |
create tmediaprovidertesting foobar |
|
239 |
foobar GetFilesListL FileInfo Image NULL NULL NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap StartMap FileName stars EndMap ExpectedEnd |
|
240 |
delete foobar |
|
241 |
[Endtest] |
|
242 |
||
243 |
//GetList with FileExtension as key, but no StartRange |
|
244 |
//Input: FileExtension as Key and no value for all other keys |
|
245 |
//Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned |
|
246 |
[Test] |
|
247 |
title ImgNeg_FileExtensionKey_NoStartRange |
|
248 |
create tmediaprovidertesting foobar |
|
249 |
foobar GetFilesListL FileInfo Image FileExtension NULL NULL NULL NULL 1003 |
|
250 |
delete foobar |
|
251 |
[Endtest] |
|
252 |
||
253 |
//GetList with Drive as key and no startrange |
|
254 |
//Input: Drive as Key and no input for all other input parameters |
|
255 |
//Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned |
|
256 |
[Test] |
|
257 |
title ImgNeg_DriveKey_NoStartRange |
|
258 |
create tmediaprovidertesting foobar |
|
259 |
foobar GetFilesListL FileInfo Image Drive NULL NULL NULL NULL 1003 |
|
260 |
delete foobar |
|
261 |
[Endtest] |
|
262 |
||
263 |
||
264 |
//GetList with FileSize as key and no startrange |
|
265 |
//Input: FileSize as Key and no input for all other input parameters |
|
266 |
//Expected: errorcode 1002- BadArgumentType as the StartRange is mandatory when Key is mentioned |
|
267 |
[Test] |
|
268 |
title ImgNeg_FileSizeKey_NoStartRange |
|
269 |
create tmediaprovidertesting foobar |
|
270 |
foobar GetFilesListL FileInfo Image FileSize NULL NULL NULL NULL 1002 |
|
271 |
delete foobar |
|
272 |
[Endtest] |
|
273 |
||
274 |
||
275 |
//GetList with FileDate as key and no startrange |
|
276 |
//Input: FileDate as Key and no input for all other input parameters |
|
277 |
//Expected: errorcode 1002- BadArgumentType as the StartRange is mandatory when Key is mentioned |
|
278 |
[Test] |
|
279 |
title ImgNeg_FileDateKey_NoStartRange |
|
280 |
create tmediaprovidertesting foobar |
|
281 |
foobar GetFilesListL FileInfo Image FileDate NULL NULL NULL NULL 1002 |
|
282 |
delete foobar |
|
283 |
[Endtest] |
|
284 |
||
285 |
||
286 |
//GetList with MimeType as key and no startrange |
|
287 |
//Input: MimeType as Key and no input for all other input parameters |
|
288 |
//Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned |
|
289 |
[Test] |
|
290 |
title ImgNeg_MimeTypeKey_NoStartRange |
|
291 |
create tmediaprovidertesting foobar |
|
292 |
foobar GetFilesListL FileInfo Image MimeType NULL NULL NULL NULL 1003 |
|
293 |
delete foobar |
|
294 |
[Endtest] |
|
295 |
||
296 |
||
297 |
//GetList with FileNameAndPath as key and no startrange |
|
298 |
//Input: FileNameAndPath as Key and no input for all other input parameters |
|
299 |
//Expected: errorcode 1003- MissingArgumentType as the StartRange is mandatory when Key is mentioned |
|
300 |
[Test] |
|
301 |
title ImgNeg_FileNameAndPathKey_NoStartRange |
|
302 |
create tmediaprovidertesting foobar |
|
303 |
foobar GetFilesListL FileInfo Image FileNameAndPath NULL NULL NULL NULL 1003 |
|
304 |
delete foobar |
|
305 |
[Endtest] |
|
306 |
||
307 |
||
308 |
//GetList with Nokia as key |
|
309 |
//Input: Nokia as key and a valid value c:\data\Images\a.jpg as value for startrange, and no input for all other parameters |
|
310 |
//Expected: errorcode 1002- BadArgumentType is expected as the value for key is invalid |
|
311 |
[Test] |
|
312 |
title ImgNeg_NokiaKey |
|
313 |
create tmediaprovidertesting foobar |
|
314 |
foobar GetFilesListL FileInfo Image Nokia c:\data\Images\a.jpg NULL NULL NULL 1002 |
|
315 |
delete foobar |
|
316 |
[Endtest] |
|
317 |
||
318 |
||
319 |
//GetList with NULL value as key |
|
320 |
//Input: NULLVALUE as input for Key(means a value NULL is input to Key),and a valid c:\data\Images\a.jpg as value for startrange and no value for other inputs |
|
321 |
//Expected: 1002-BadArgumentType errorcode is returned as NULL is invalid value for Key |
|
322 |
[Test] |
|
323 |
title Img_NullKey |
|
324 |
create tmediaprovidertesting foobar |
|
325 |
foobar GetFilesListL FileInfo Image NULLVALUE c:\data\Images\a.jpg NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap StartMap FileName stars EndMap ExpectedEnd |
|
326 |
delete foobar |
|
327 |
[Endtest] |
|
328 |
||
329 |
||
330 |
//GetList with Empty string as key |
|
331 |
//Input: empty string "" as value for Key and a valid value "c:\data\Images\a.jpg" as value for startrange and other inputs are not passed |
|
332 |
//Expected: errorcode 1002- BadArgumentType |
|
333 |
[Test] |
|
334 |
title ImgNeg_EmptyStringKey |
|
335 |
create tmediaprovidertesting foobar |
|
336 |
foobar GetFilesListL FileInfo Image "" c:\data\Images\a.jpg NULL NULL NULL 1002 |
|
337 |
delete foobar |
|
338 |
[Endtest] |
|
339 |
||
340 |
||
341 |
//GetList with invalid case as key |
|
342 |
//Input: filename(1st letter lowercase) as Key and a as value for startrange |
|
343 |
//returns list of images based on the filter key and value. details of files named a is expected as output |
|
344 |
[Test] |
|
345 |
title Img_filenameKey |
|
346 |
create tmediaprovidertesting foobar |
|
347 |
foobar GetFilesListL FileInfo Image filename a NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap ExpectedEnd |
|
348 |
delete foobar |
|
349 |
[Endtest] |
|
350 |
||
351 |
||
352 |
//GetList with Sapi as value for filter key |
|
353 |
//Input: Sapi as Key and a valid c:\data\Images\a.jpg as value for startrange |
|
354 |
//Expected: errorcode 1002- BadArgumentType as Sapi is invalid key |
|
355 |
[Test] |
|
356 |
title ImgNeg_SapiKey |
|
357 |
create tmediaprovidertesting foobar |
|
358 |
foobar GetFilesListL FileInfo Image Sapi c:\data\Images\a.jpg NULL NULL NULL 1002 |
|
359 |
delete foobar |
|
360 |
[Endtest] |
|
361 |
||
362 |
||
363 |
//GetList with integer value for Filter key |
|
364 |
//Input: 12 as Key, and a valid value "c:\data\Images\a.jpg" as value for startrange |
|
365 |
//Expected: errorcode 1002- BadArgumentType as the value expected is out of type string and integer is input |
|
366 |
[Test] |
|
367 |
title ImgNeg_IntegerKey |
|
368 |
create tmediaprovidertesting foobar |
|
369 |
foobar GetFilesListL FileInfo Image 12 c:\data\Images\a.jpg NULL NULL NULL 1002 |
|
370 |
delete foobar |
|
371 |
[Endtest] |
|
372 |
||
373 |
##########################Type==“FileInfo” + Passing Filter Map with FileType==Image + Key+Start Range############################### |
|
374 |
//GetList with NULL StartRange |
|
375 |
//Input: FileName as Key and NULLVALUE as startrange(means we are passing NULL as value for startrange) |
|
376 |
//Expected: errorcode- 1003 MissingArgumenterror, as the startrange is mandatory when key is input |
|
377 |
[Test] |
|
378 |
title ImgNeg_NoStartRange |
|
379 |
create tmediaprovidertesting foobar |
|
380 |
foobar GetFilesListL FileInfo Image FileName NULLVALUE NULL NULL NULL 1003 |
|
381 |
delete foobar |
|
382 |
[Endtest] |
|
383 |
||
384 |
//GetList with FileName StartRange |
|
385 |
//Input: FileName as Key and value a as startrange |
|
386 |
//Expected list of images filtered based on FileName. Details of all files named a is expected output |
|
387 |
[Test] |
|
388 |
title Img_FileNameKeyWithStartRange |
|
389 |
create tmediaprovidertesting foobar |
|
390 |
foobar GetFilesListL FileInfo Image FileName a NULL NULL NULL 0 ExpectedStart StartMap FileName a EndMap ExpectedEnd |
|
391 |
delete foobar |
|
392 |
[Endtest] |
|
393 |
||
394 |
//GetList with FileExtension StartRange |
|
395 |
//Input: FileExtension as Key and .jpg as value for startrange |
|
396 |
//Expected list of images filtered based on FileExtension. details of all files with extension .jpg is the expected output |
|
397 |
[Test] |
|
398 |
title Img_FileExtensionKeyWithStartRange |
|
399 |
create tmediaprovidertesting foobar |
|
400 |
foobar GetFilesListL FileInfo Image FileExtension .jpg NULL NULL NULL 0 ExpectedStart StartMap FileName a FileExtension .jpg EndMap StartMap FileName ant FileExtension .jpg EndMap StartMap FileName stars FileExtension .jpg EndMap ExpectedEnd |
|
401 |
delete foobar |
|
402 |
[Endtest] |
|
403 |
||
404 |
//GetList with Drive StartRange |
|
405 |
//Input: Drive as Key and c: as value for startrange |
|
406 |
//Expected list of images filtered based on Drive. details of all files with drive value c: is expected |
|
407 |
[Test] |
|
408 |
title Img_DriveKey_c:StartRange |
|
409 |
create tmediaprovidertesting foobar |
|
410 |
foobar GetFilesListL FileInfo Image Drive c: NULL NULL NULL 0 ExpectedStart StartMap FileName a Drive c: EndMap StartMap FileName ant Drive c: EndMap StartMap FileName blue Drive c: EndMap StartMap FileName dreams Drive c: EndMap ExpectedEnd |
|
411 |
delete foobar |
|
412 |
[Endtest] |
|
413 |
||
414 |
//GetList with FileSize StartRange |
|
415 |
//Input: FileSize as Key and 70000 as value for startrange |
|
416 |
//Expected: list of images filtered based on FileSize. details of all files with size 70000 is expected |
|
417 |
[Test] |
|
418 |
title Img_FileSizeKeyWithStartRange |
|
419 |
create tmediaprovidertesting foobar |
|
420 |
foobar GetFilesListL FileInfo Image FileSize 70000 NULL NULL NULL 0 ExpectedStart StartMap FileSize dreams FileSize 73105 EndMap ExpectedEnd |
|
421 |
delete foobar |
|
422 |
[Endtest] |
|
423 |
||
424 |
//GetList with FileDate StartRange |
|
425 |
//Input: FileDate as Key and 20081019:033638 as value for startrange |
|
426 |
//Expected: list of images filtered based on FileDate 20081019:033638. The details of all files with date 20081019:033638 is the output |
|
427 |
[Test] |
|
428 |
title Img_FileDateKeyWithStartRange |
|
429 |
create tmediaprovidertesting foobar |
|
430 |
foobar GetFilesListL FileInfo Image FileDate 20081019:033638 NULL NULL NULL 0 ExpectedStart StartMap FileName stars FileDate 20081019:033638 EndMap ExpectedEnd |
|
431 |
delete foobar |
|
432 |
[Endtest] |
|
433 |
||
434 |
//GetList with MimeType StartRange |
|
435 |
//Input: MimeType as Key and image/jpeg as value for startrange |
|
436 |
//Expected: list of images filtered based on MimeType image/jpeg. |
|
437 |
[Test] |
|
438 |
title Img_MimeTypeKeyWithStartRange |
|
439 |
create tmediaprovidertesting foobar |
|
440 |
foobar GetFilesListL FileInfo Image MimeType image/jpeg NULL NULL NULL 0 ExpectedStart StartMap FileName a MimeType image/jpeg EndMap StartMap FileName ant MimeType image/jpeg EndMap StartMap FileName stars MimeType image/jpeg EndMap ExpectedEnd |
|
441 |
delete foobar |
|
442 |
[Endtest] |
|
443 |
||
444 |
//GetList with FileNameAndPath StartRange |
|
445 |
//Input: FileNameAndPath as StartRange and c:\data\Images\a.jpg as value for startrange |
|
446 |
//Expected: list of images filtered based on FileNameAndPath, i.e., returns the details about file a.jpg at c:\data\Images\a.jpg |
|
447 |
[Test] |
|
448 |
title Img_FileNameAndPathKeyWithStartRange |
|
449 |
create tmediaprovidertesting foobar |
|
450 |
foobar GetFilesListL FileInfo Image FileNameAndPath c:\data\Images\a.jpg NULL NULL NULL 0 ExpectedStart StartMap FileNameAndPath c:\data\Images\a.jpg EndMap ExpectedEnd |
|
451 |
delete foobar |
|
452 |
[Endtest] |
|
453 |
||
454 |
//FIleSize startrange with value greater than the values of a file |
|
455 |
//Input: FileSize as Key and 95000 as startrange |
|
456 |
//Expected: should return errocode as 0 and empty list |
|
457 |
[Test] |
|
458 |
title Img_FileSizeKeyWithStartRange_NoExpectedo/p |
|
459 |
create tmediaprovidertesting foobar |
|
460 |
foobar GetFilesListL FileInfo Image FileSize 95000 NULL NULL NULL 0 |
|
461 |
delete foobar |
|
462 |
[Endtest] |
|
463 |
||
464 |
//GetList with FileDate StartRange |
|
465 |
//Input: FileDate as Key and 20091019:033638 as value for startrange |
|
466 |
//Expected: should return errocode as 0 and empty list |
|
467 |
[Test] |
|
468 |
title Img_FileDateWithStartRange_NoExpectedo/p |
|
469 |
create tmediaprovidertesting foobar |
|
470 |
foobar GetFilesListL FileInfo Image FileDate 20091019:033638 NULL NULL NULL 0 |
|
471 |
delete foobar |
|
472 |
[Endtest] |
|
473 |
||
474 |
//GetList with negative FileSize StartRange |
|
475 |
//Input: FileSize as Key and -12 as value for StartRange |
|
476 |
//Expected: errorcode 1002- BadArgumentType as the value is out of range |
|
477 |
[Test] |
|
478 |
title ImgNeg_NegativeFileSize |
|
479 |
create tmediaprovidertesting foobar |
|
480 |
foobar GetFilesListL FileInfo Image FileSize -12 NULL NULL NULL 1002 |
|
481 |
delete foobar |
|
482 |
[Endtest] |
|
483 |
||
484 |
||
485 |
//GetList with negative FileDate StartRange |
|
486 |
//Input: FileDate as Key and -12 as value for StartRange |
|
487 |
//Expected: errorcode 1002- BadArgumentType as the value is out of range |
|
488 |
[Test] |
|
489 |
title Img_NegativeFileDate |
|
490 |
create tmediaprovidertesting foobar |
|
491 |
foobar GetFilesListL FileInfo Image FileDate -12 NULL NULL NULL 1002 |
|
492 |
delete foobar |
|
493 |
[Endtest] |
|
494 |
||
495 |
||
496 |
//GetList with FileDate StartRange |
|
497 |
//Input: FileDate as Key and an invalid value 20093045:450990 as startrange |
|
498 |
//Expected: errorcode 1002- BadArgumentType as the value is invalid |
|
499 |
[Test] |
|
500 |
title Img_InvalidFileDate |
|
501 |
create tmediaprovidertesting foobar |
|
502 |
foobar GetFilesListL FileInfo Image FileDate 20093045:450990 NULL NULL NULL 1002 |
|
503 |
delete foobar |
|
504 |
[Endtest] |
|
505 |
||
506 |
//GetList with no Key input, but with values for start and endrange |
|
507 |
//Input: NULL as Key(no input for Key) and 70000 as StartRange and 80000 as endrange |
|
508 |
//Expected: list of all image files |
|
509 |
[Test] |
|
510 |
title Img_NoFilterKeyWithStartRangeValues |
|
511 |
create tmediaprovidertesting foobar |
|
512 |
foobar GetFilesListL FileInfo Image NULL 70000 80000 NULL NULL 0 |
|
513 |
delete foobar |
|
514 |
[Endtest] |
|
515 |
||
516 |
//GetList with empty string StartRange for FileName |
|
517 |
//Input: FileName as Key and empty string as value for StartRange |
|
518 |
//Expected: 0 as errorcode and empty list |
|
519 |
[Test] |
|
520 |
title Img_EmptyStringStartRange |
|
521 |
create tmediaprovidertesting foobar |
|
522 |
foobar GetFilesListL FileInfo Image FileName "" NULL NULL NULL 0 |
|
523 |
delete foobar |
|
524 |
[Endtest] |
|
525 |
||
526 |
||
527 |
//GetList with integer StartRange for FileName |
|
528 |
//Input: FileName as Key and integer value 23 as value for StartRange |
|
529 |
//Expected: 0 errocode and empty list is returned |
|
530 |
[Test] |
|
531 |
title Img_IntegerStartRange |
|
532 |
create tmediaprovidertesting foobar |
|
533 |
foobar GetFilesListL FileInfo Image FileName 23 NULL NULL NULL 0 |
|
534 |
delete foobar |
|
535 |
[Endtest] |
|
536 |
||
537 |
||
538 |
//GetList with Null string as value for FileName |
|
539 |
//Input: FileName as Key and null string "NULL" as value for startrange |
|
540 |
//Expected: 0 errorcode and empty list |
|
541 |
[Test] |
|
542 |
title Img_FileNameKey_NullStringStartRange |
|
543 |
create tmediaprovidertesting foobar |
|
544 |
foobar GetFilesListL FileInfo Image FileName "NULL" NULL NULL NULL 0 |
|
545 |
delete foobar |
|
546 |
[Endtest] |
|
547 |
||
548 |
//GetList with Null string as value for FileExtension |
|
549 |
//Input: FileExtension as Key and null string "NULL" as value for startrange |
|
550 |
//Expected: 0 errorcode and empty list |
|
551 |
[Test] |
|
552 |
title Img_FileExtensionKey_NullStringStartRange |
|
553 |
create tmediaprovidertesting foobar |
|
554 |
foobar GetFilesListL FileInfo Image FileExtension "NULL" NULL NULL NULL 0 |
|
555 |
delete foobar |
|
556 |
[Endtest] |
|
557 |
||
558 |
//GetList with Null string as value for Drive |
|
559 |
//Input: Drive as Key and null string "NULL" as value for startrange |
|
560 |
//Expected: 0 errorcode and empty list |
|
561 |
[Test] |
|
562 |
title Img_DriveKey_NullStringStartRange |
|
563 |
create tmediaprovidertesting foobar |
|
564 |
foobar GetFilesListL FileInfo Image Drive "NULL" NULL NULL NULL 0 |
|
565 |
delete foobar |
|
566 |
[Endtest] |
|
567 |
||
568 |
//GetList with Null string as value for MimeType |
|
569 |
//Input: MimeType as Key and null string "NULL" as value for startrange |
|
570 |
//Expected: 0 errorcode and empty list |
|
571 |
[Test] |
|
572 |
title Img_MimeTypeKey_NullStringStartRange |
|
573 |
create tmediaprovidertesting foobar |
|
574 |
foobar GetFilesListL FileInfo Image MimeType "NULL" NULL NULL NULL 0 |
|
575 |
delete foobar |
|
576 |
[Endtest] |
|
577 |
||
578 |
//GetList with Null string for FileNameAndPath |
|
579 |
//Input: FileNameAndPath as Key and "Null" as value for StartRange |
|
580 |
//Expected: 0 errorcode and empty list |
|
581 |
[Test] |
|
582 |
title Img_FileNameAndPathKey_NullStringStartRange |
|
583 |
create tmediaprovidertesting foobar |
|
584 |
foobar GetFilesListL FileInfo Image FileNameAndPath "NULL" NULL NULL NULL 0 |
|
585 |
delete foobar |
|
586 |
[Endtest] |
|
587 |
||
588 |
#########################Type==“FileInfo” + Passing Filter Map with FileType==Image + Key+Start Range + End Range############################# |
|
589 |
||
590 |
//GetList with FileSize end range less than start range |
|
591 |
//Input: FileSize as key, 40000 as StartRange and 20000 as EndRange |
|
592 |
//Expected: 1002-BadArgumentType |
|
593 |
[Test] |
|
594 |
title ImgNeg_StartRangeGTEndRange |
|
595 |
create tmediaprovidertesting foobar |
|
596 |
foobar GetFilesListL FileInfo Image FileSize 40000 20000 NULL NULL 1002 |
|
597 |
delete foobar |
|
598 |
[Endtest] |
|
599 |
||
600 |
//GetList with Negative end range for FileSize |
|
601 |
//Input: FileSize as key, valid value of 200 for StartRange and a value -400 as value for EndRange |
|
602 |
//Expected: 1002-BadArgumentType as the value of endrange is invalid and not within the range |
|
603 |
[Test] |
|
604 |
title ImgNeg_NegativeFileSizeEndRange |
|
605 |
create tmediaprovidertesting foobar |
|
606 |
foobar GetFilesListL FileInfo Image FileSize 20000 -40000 NULL NULL 1002 |
|
607 |
delete foobar |
|
608 |
[Endtest] |
|
609 |
||
610 |
//GetList with Negative end range for FileDate |
|
611 |
//Input: FileDate as key, valid startrange and a value -400 as value for EndRange |
|
612 |
//Expected: 1002-BadArgumentType as the value of endrange is invalid and not within the range |
|
613 |
[Test] |
|
614 |
title ImgNeg_NegativeFileDateEndRange |
|
615 |
create tmediaprovidertesting foobar |
|
616 |
foobar GetFilesListL FileInfo Image FileDate 20070920:053905 -400 NULL NULL 1002 |
|
617 |
delete foobar |
|
618 |
[Endtest] |
|
619 |
||
620 |
//GetList of images filtered by FileName with EndRange being mentioned |
|
621 |
//Input: FileName as Key, value a as StartRange and value z as EndRange |
|
622 |
//Expected: returns list based on StartRange alone and ignores the EndRange |
|
623 |
[Test] |
|
624 |
title Img_FileNameKeyWithStartAndEndRange |
|
625 |
create tmediaprovidertesting foobar |
|
626 |
foobar GetFilesListL FileInfo Image FileName a z NULL NULL 0 ExpectedStart StartMap FileName a EndMap ExpectedEnd |
|
627 |
delete foobar |
|
628 |
[Endtest] |
|
629 |
||
630 |
||
631 |
//GetList with valid start and end range for FileSize |
|
632 |
//Input: FileSize as key, valid value of 30000 for StartRange and a value 40000 as value for EndRange |
|
633 |
//Expected: file with size in the range 30000 to 40000 is expected. FileName and FileSize is verified in the result |
|
634 |
[Test] |
|
635 |
title Img_FileSizeKeyWithValidRange |
|
636 |
create tmediaprovidertesting foobar |
|
637 |
foobar GetFilesListL FileInfo Image FileSize 30000 40000 NULL NULL 0 ExpectedStart StartMap FileName a FileSize 31097 EndMap ExpectedEnd |
|
638 |
delete foobar |
|
639 |
[Endtest] |
|
640 |
||
641 |
//GetList with Negative end range for FileDate |
|
642 |
//Input: FileDate as key, valid startrange and a value -400 as value for EndRange |
|
643 |
//Expected: 1002-BadArgumentType as the value of endrange is invalid and not within the range |
|
644 |
[Test] |
|
645 |
title Img_FileDateKeyWithValidRange |
|
646 |
create tmediaprovidertesting foobar |
|
647 |
foobar GetFilesListL FileInfo Image FileDate 20070920:053905 20071020:060000 NULL NULL 0 ExpectedStart StartMap FileName a FileDate 20070920:053905 EndMap ExpectedEnd |
|
648 |
delete foobar |
|
649 |
[Endtest] |
|
650 |
||
651 |
//GetList with valid start and end range for FileSize, but no such file is present in the expected list |
|
652 |
//Input: FileSize as key, valid value of 95000 for StartRange and a value 98000 as value for EndRange |
|
653 |
//Expected: file with size in the range 30000 to 40000 is expected.But no such file exists in the expected list |
|
654 |
[Test] |
|
655 |
title Img_FileSizeWithValidRange_WithNoExpectedOutput |
|
656 |
create tmediaprovidertesting foobar |
|
657 |
foobar GetFilesListL FileInfo Image FileSize 95000 98000 NULL NULL 0 |
|
658 |
delete foobar |
|
659 |
[Endtest] |
|
660 |
||
661 |
######################### Type==“FileInfo” + Passing Filter Map with FileType==Image + Sort Map######################### |
|
662 |
||
663 |
//GetList of image file sorted in Ascending order of Drive |
|
664 |
//Input: Drive as SortKey and Ascending as SortOrder, FileSize as Key with startrange of 20000 and 40000 as end range |
|
665 |
//Expected: list of images in ascending order of drive |
|
666 |
[Test] |
|
667 |
title Img_SortAscendingOnDrive |
|
668 |
create tmediaprovidertesting foobar |
|
669 |
foobar GetFilesListL FileInfo Image FileSize 20000 40000 Drive Ascending 0 ExpectedStart StartMap FileName a Drive c: EndMap StartMap FileName stars Drive e: EndMap ExpectedEnd |
|
670 |
delete foobar |
|
671 |
[Endtest] |
|
672 |
||
673 |
//GetList of image file sorted in Descending order of Drive |
|
674 |
//Input: Drive as SortKey and Descending as SortOrder, FileSize as Key with startrange of 20000 and 40000 as end range |
|
675 |
//Expected: list of images in descending order of drive |
|
676 |
[Test] |
|
677 |
title Img_SortDescendingOnDrive |
|
678 |
create tmediaprovidertesting foobar |
|
679 |
foobar GetFilesListL FileInfo Image FileSize 20000 40000 Drive Descending 0 ExpectedStart StartMap FileName stars Drive e: EndMap StartMap FileName a Drive c: EndMap ExpectedEnd |
|
680 |
delete foobar |
|
681 |
[Endtest] |
|
682 |
||
683 |
//GetList of image file sorted in Ascending order of FileExtension |
|
684 |
//Input: FileExtension as SortKey and Ascending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively |
|
685 |
//Expected: list of images in ascending order of FileExtension |
|
686 |
[Test] |
|
687 |
title Img_SortAscendingOnFileExtension |
|
688 |
create tmediaprovidertesting foobar |
|
689 |
foobar GetFilesListL FileInfo Image FileSize 4000 9000 FileExtension Ascending 0 ExpectedStart StartMap FileName ant FileExtension .jpg EndMap StartMap FileName blue FileExtension .png EndMap ExpectedEnd |
|
690 |
delete foobar |
|
691 |
[Endtest] |
|
692 |
||
693 |
//GetList of image file sorted in Descending order of FileExtension |
|
694 |
//Input: FileExtension as SortKey and Descending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively |
|
695 |
//Expected: list of images in descending order of FileExtension |
|
696 |
[Test] |
|
697 |
title Img_DescendingOnFileExtension |
|
698 |
create tmediaprovidertesting foobar |
|
699 |
foobar GetFilesListL FileInfo Image FileSize 4000 9000 FileExtension Descending 0 ExpectedStart StartMap FileName blue FileExtension .png EndMap StartMap FileName ant FileExtension .jpg EndMap ExpectedEnd |
|
700 |
delete foobar |
|
701 |
[Endtest] |
|
702 |
||
703 |
//GetList of image files in Ascending order of MimeType |
|
704 |
//Input: MimeType as SortKey and Ascending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively |
|
705 |
//Expected: list of images in ascending order of MimeType |
|
706 |
[Test] |
|
707 |
title Img_SortAscendingOnMimeType |
|
708 |
create tmediaprovidertesting foobar |
|
709 |
foobar GetFilesListL FileInfo Image FileSize 4000 9000 MimeType Ascending 0 ExpectedStart StartMap FileName ant MimeType image/jpeg EndMap StartMap FileName blue MimeType image/png EndMap ExpectedEnd |
|
710 |
delete foobar |
|
711 |
[Endtest] |
|
712 |
||
713 |
//GetList of image files in Descending order of MimeType |
|
714 |
//Input: MimeType as SortKey and Descending as SortOrder, FileSize as Key with 4000 and 9000 start and end range values respectively |
|
715 |
//Expected: list of images in descending order of MimeType |
|
716 |
[Test] |
|
717 |
title Img_SortDescendingOnMimeType |
|
718 |
create tmediaprovidertesting foobar |
|
719 |
foobar GetFilesListL FileInfo Image FileSize 4000 9000 MimeType Descending 0 ExpectedStart StartMap FileName blue MimeType image/png EndMap StartMap FileName ant MimeType image/jpeg EndMap ExpectedEnd |
|
720 |
delete foobar |
|
721 |
[Endtest] |
|
722 |
||
723 |
//GetList of image files in Ascending order of FileSize |
|
724 |
//Input: FileSize as SortKey and Ascending as SortOrder |
|
725 |
//Expected: list of images in ascending order of FileSize |
|
726 |
[Test] |
|
727 |
title Img_SortAscendingOnFileSize |
|
728 |
create tmediaprovidertesting foobar |
|
729 |
foobar GetFilesListL FileInfo Image Drive c: NULL FileSize Ascending 0 ExpectedStart StartMap FileName blue FileSize 4796 EndMap StartMap FileName ant FileSize 8474 EndMap StartMap FileName a FileSize 31097 EndMap StartMap FileName dreams FileSize 73105 EndMap ExpectedEnd |
|
730 |
delete foobar |
|
731 |
[Endtest] |
|
732 |
||
733 |
//GetList of image files in Descending order of FileSize |
|
734 |
//Input: FileSize as SortKey and Descending as SortOrder |
|
735 |
//Expected: list of images in descending order of FileSize |
|
736 |
[Test] |
|
737 |
title Img_SortDescendingOnFileSize |
|
738 |
create tmediaprovidertesting foobar |
|
739 |
foobar GetFilesListL FileInfo Image Drive c: NULL FileSize Descending 0 ExpectedStart StartMap FileName dreams FileSize 73105 EndMap StartMap FileName a FileSize 31097 EndMap StartMap FileName ant FileSize 8474 EndMap StartMap FileName blue FileSize 4796 EndMap ExpectedEnd |
|
740 |
delete foobar |
|
741 |
[Endtest] |
|
742 |
||
743 |
//GetList of image files sorted in Ascending order of FileDate |
|
744 |
//Input: FileDate as SortKey and Ascending as SortOrder,MimeType as FilterKey and image/jpeg as startvalue |
|
745 |
//Expected: list of images in ascending order of FileDate |
|
746 |
[Test] |
|
747 |
title Img_SortAscendingOnMimeType |
|
748 |
create tmediaprovidertesting foobar |
|
749 |
foobar GetFilesListL FileInfo Image MimeType image/jpeg NULL FileDate Ascending 0 ExpectedStart StartMap FileName ant FileDate 20060819:102426 EndMap StartMap FileName a FileDate 20070920:053905 EndMap StartMap FileName stars FileDate 20081019:033638 EndMap ExpectedEnd |
|
750 |
delete foobar |
|
751 |
[Endtest] |
|
752 |
||
753 |
//GetList of images sorted in Descending order based on FileDate |
|
754 |
//Input: FileDate as SortKey and Descending as SortOrder |
|
755 |
//Expected: list of images in descending order of FileDate,MimeType as FilterKey and image/jpeg as startvalue |
|
756 |
[Test] |
|
757 |
title Img_SortDescendingOnMimeType |
|
758 |
create tmediaprovidertesting foobar |
|
759 |
foobar GetFilesListL FileInfo Image MimeType image/jpeg NULL FileDate Descending 0 ExpectedStart StartMap FileName stars FileDate 20081019:033638 EndMap StartMap FileName a FileDate 20070920:053905 EndMap StartMap FileName ant FileDate 20060819:102426 EndMap ExpectedEnd |
|
760 |
delete foobar |
|
761 |
[Endtest] |
|
762 |
||
763 |
||
764 |
//GetList with no SortOrder |
|
765 |
//Input: Pass NULL as SortOrder and any valid SortKey like FileName |
|
766 |
//Expected list of images in ascending order(default) based on SortKey(FileName) mentioned. The list is sorted in ascending order as Ascending is the default order |
|
767 |
[Test] |
|
768 |
title Img_NoSortOrder |
|
769 |
create tmediaprovidertesting foobar |
|
770 |
foobar GetFilesListL FileInfo Image Drive c: NULL FileName NULL 0 ExpectedStart StartMap FileName a EndMap StartMap FileName ant EndMap StartMap FileName blue EndMap StartMap FileName dreams EndMap ExpectedEnd |
|
771 |
delete foobar |
|
772 |
[Endtest] |
|
773 |
||
774 |
||
775 |
//GetList with Nokia as SortOrder |
|
776 |
//Input: Nokia as value for SortOrder and any valid value eg.FileDate as value for SortKey |
|
777 |
//Expected: 1002-BadArgumentType as Nokia is not a valid SortOrder |
|
778 |
[Test] |
|
779 |
title Img_NokiaSortOrder |
|
780 |
create tmediaprovidertesting foobar |
|
781 |
foobar GetFilesListL FileInfo Image NULL NULL NULL FileDate Nokia 1002 |
|
782 |
delete foobar |
|
783 |
[Endtest] |
|
784 |
||
785 |
||
786 |
//GetList ascending(case sensitive) as sort order |
|
787 |
//Input: lowercase "ascending" as value for SortOrder and FIleSize as value for SortKey |
|
788 |
//Expected: list of images in ascending order, sorted based on Filesize |
|
789 |
[Test] |
|
790 |
title Img_ascendingSortOrder |
|
791 |
create tmediaprovidertesting foobar |
|
792 |
foobar GetFilesListL FileInfo Image Drive c: NULL FileSize ascending 0 ExpectedStart StartMap FileName blue FileSize 4796 EndMap StartMap FileName ant FileSize 8474 EndMap StartMap FileName a FileSize 31097 EndMap StartMap FileName dreams FileSize 73105 EndMap ExpectedEnd |
|
793 |
delete foobar |
|
794 |
[Endtest] |
|
795 |
||
796 |
||
797 |
//GetList with Ascending sort order for FileNameAndPath |
|
798 |
//Input: FileNameAndPath as SortKey and Ascending as SortOrder |
|
799 |
//Expected: list of image files in ascending order sorted based on FileNameAndPath |
|
800 |
[Test] |
|
801 |
title Img_SortAscendingOnFileNameAndPath |
|
802 |
create tmediaprovidertesting foobar |
|
803 |
foobar GetFilesListL FileInfo Image Drive c: NULL FileNameAndPath Ascending 0 ExpectedStart StartMap FileNameAndPath c:\data\Images\a.jpg EndMap StartMap FileNameAndPath c:\data\Images\ant.jpg EndMap StartMap FileNameAndPath c:\data\Images\blue.png EndMap StartMap FileNameAndPath c:\data\Images\pictures\dreams.bmp EndMap ExpectedEnd |
|
804 |
delete foobar |
|
805 |
[Endtest] |
|
806 |
||
807 |
||
808 |
//GetList with Descending order of files sorted based on FileName |
|
809 |
//Input: FileName as SortKey and Descending as SortOrder |
|
810 |
//Expected: list of images sorted in descending order based on FileName |
|
811 |
[Test] |
|
812 |
title Img_SortDescendingOnFileName |
|
813 |
create tmediaprovidertesting foobar |
|
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
814 |
foobar GetFilesListL FileInfo Image Drive c: NULL FileName Descending 0 ExpectedStart StartMap FileName dreams XPixels 800 YPixels 600 EndMap StartMap FileName blue XPixels 318 YPixels 301 EndMap StartMap FileName ant XPixels 329 YPixels 220 EndMap StartMap FileName a XPixels 1152 YPixels 864 EndMap ExpectedEnd |
19 | 815 |
delete foobar |
816 |
[Endtest] |
|
817 |
||
818 |
||
819 |
//Case to check for all fields in output |
|
820 |
//Input: Drive as FilterKey, e: as startrange |
|
821 |
//Expected: list of all images files in e: drive |
|
822 |
[Test] |
|
823 |
title Img_DriveKey_e:StartRange |
|
824 |
create tmediaprovidertesting foobar |
|
825 |
foobar GetFilesListL FileInfo Image Drive e: NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName stars FileExtension .jpg Drive e: FileSize 24790 FileDate 20081019:033638 FileNameAndPath e:\data\Images\stars.jpg MimeType image/jpeg EndMap ExpectedEnd |
|
826 |
delete foobar |
|
827 |
[Endtest] |
|
828 |
||
829 |
||
22
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
830 |
//Case to check for the new output field resolution for Images only added for CJSE 2.0 |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
831 |
//Input: Image as FileType |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
832 |
//Expected: list of all images files with Resolution map as output |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
833 |
[Test] |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
834 |
title Img_Resolution |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
835 |
create tmediaprovidertesting foobar |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
836 |
foobar GetFilesListL FileInfo Image Drive c: NULL NULL NULL 0 ExpectedStart StartMap Type Media FileName a FileExtension .jpg Drive c: FileSize 31097 FileDate 20070920:053905 FileNameAndPath c:\data\Images\a.jpg MimeType image/jpeg XPixels 1152 YPixels 864 EndMap StartMap Type Media FileName ant FileExtension .jpg Drive c: FileSize 8474 FileDate 20060819:102426 FileNameAndPath c:\data\Images\ant.jpg MimeType image/jpeg XPixels 329 YPixels 220 EndMap StartMap Type Media FileName blue FileExtension .png Drive c: FileSize 4796 FileDate 20070302:120443 FileNameAndPath c:\data\Images\blue.png MimeType image/png XPixels 318 YPixels 301 EndMap StartMap Type Media FileName dreams FileExtension .bmp Drive c: FileSize 73105 FileDate 20070108:015537 FileNameAndPath c:\data\Images\pictures\dreams.bmp MimeType image/bmp XPixels 800 YPixels 600 EndMap ExpectedEnd |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
837 |
delete foobar |
fc9cf246af83
Revision: 200931
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
838 |
[Endtest] |
19 | 839 |
|
840 |
################################################################ Image Ends #################################################### |